I am getting this error:
Parse error: syntax error, unexpected T_RETURN in /home/myler/public_html/green-buy.info/photo/functions.php on line 9
and do now know how to fix it. I have searched and tried a few things that didn't work, so now I am just lost.
Code:
<?php
Return (1);
function include404(){
function get_template($id){
$loadingq=mysql_query("SELECT * FROM `templates` WHERE `id` = '".$id."'");
$loading=mysql_fetch_assoc($loadingq);
stripslashes
Return ($loading()) function include_text($text){
$GLOBALS+=get_defined_vars();
function login_formecho "<html>\n"($showjs = false){
echo "<s";
echo "tyle>\nbody,td,th {\n font-family: Verdana, Arial, Helvetica, sans-serif;\n font-size: 10px;\n color: #000000;\n}\n</style>\n";
if ($showjs==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."'");
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){
$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");
?>
http://green-buy.info/error.txt
I get syntax errors and expect the same thing on lines 11, 17, 22, 29, 33, and 38 as well.
Can anyone fix this for me please?
As always I have AdWords and Facebook vouchers for any help. TIA
return
is not your only problem. Fixing that pretty much means rewriting it. – deceze Aug 25 '11 at 6:08$row()unlink$row;
What is this?stripslashes
. Why are't the "'s inecho "<center>\n<a href="http
. Why is there no end to any of your functions? Who wrote this? Was their first programming language Malbolge? Is PHP their second language? – ascii-lime Aug 25 '11 at 6:14