Thats because you need to null the script. Take out those lines that "phone home" for the license before you do anything. Next you would have to fix the parse errors with the PHP so just replace the entire code in function.php with this:
PHP:
<?php
function include404()
{
Return (1);
}
function get_template($id)
{
// This query is vulnerable to SQL Injection
$loadingq = mysql_query("SELECT * FROM `templates` WHERE `id` = '" . $id . "'");
$loading = mysql_fetch_assoc($loadingq);
// next line commented as not a legal statement what are you trying to do here?
// stripslashes
Return ($loading);
}
function include_text($text)
{
$GLOBALS += get_defined_vars();
}
function login_form($showjs = false)
{
echo "<html>\n";
echo "<style>\nbody,td,th {\n font-family: Verdana, Arial, Helvetica, sans-serif;\n font-size: 10px;\n color: #000000;\n}\n</style>\n";
if ($showjs) {
echo "<script>alert('Invalid Password Specified');</script>";
}
echo "<center>\n<a href=\"http://psa.com\" target=\"_blank\"><img src=\"images/logo.png\" border=0 alt=\"PSA\"></a>\n<br/><br/>\n<h2>Login to PSA</h2><br/><br/>\n<form method=\"POST\" action=\"index.php\">\nPassword: <input type=\"password\" name=\"adminpass\"> <input type=\"submit\" value=\"Login\">\n</form>\n</center>\n</html>\n";
}
function delete_category($id)
{
$query = mysql_query("SELECT * FROM `photos` WHERE `category` = '" . $id . "'");
/* Next bit seems unneeded
while (0<mysql_affected_rows()) {
while ($row=mysql_fetch_assoc($query)) {
$row()unlink$row;
*/
mysql_query("DELETE FROM `photos` WHERE `category` = '" . $id . "'");
mysql_query("DELETE FROM `photo_cats` WHERE `id` = '" . $id . "' LIMIT 1");
mysql_query("DELETE FROM `apps` WHERE `imgcategory` = '" . $id . "'");
}
function delete_photo($id)
{
/* Unneeded ?
$query=mysql_query("SELECT * FROM `photos` WHERE `id` = '".$id."' LIMIT 1");
$row=mysql_fetch_assoc($query);
$row()unlink$row;
*/
mysql_query("DELETE FROM `photos` WHERE `id` = '" . $id . "' LIMIT 1");
}
function add_category($name)
{
mysql_query("INSERT INTO `photo_cats` VALUES(null,'" . addslashes($name) . "')");
echo "<font color=\"green\">Category added to database...</font><br/><br/>";
}
function delete_app($id)
{
mysql_query("DELETE FROM `apps` WHERE `id` = '" . $id . "' LIMIT 1");
mysql_query("DELETE FROM `landings` WHERE `app` = '" . $id . "' LIMIT 1");
}
?>
After that go to the index of where this script is installed and enter the password you put in the config.php
I think this is a moot point however, because all I have seen around the net about this app is that it isn't working anymore.
Please let me know what results you get in return for my time in decoding this script an making it nulled.