Bear with me I am really new so. I download this code and I'm trying to use it and I get this :
Parse error: parse error, unexpected T_VARIABLE in c:\apache\htdocs\photo\default_entry.dat on line 17
Please enter a user name and password below. this will activate the application.
I was originally getting undefined variable issues but fixed that.
here is the code:
<?php
/************************************************************************
Picture/News Gallery Version 0.4.0 (axiom)
Copyright (c) 2002 BY Geoffrey Golliher <cid441@hotmail.com>
please see licence.txt for usage
Creation Date 04/20/2001
This program is free software. You can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License.
************************************************************************/
$username = $_POST['username']
$directory = $username;
$isPub = $_GET['isPub'];
$public = $isPub;
if($public == "")
$public = 0;
$entry = "<?php include(\"../mainfile.php\");
\$directory = $username;
include(\"../auth.inc\");
include(\"../template.php\");
include(\"../header.php\");
global \$username; ?>\n";
$entry2 = "<?php\n
\$directory = $directory;\n
\$public = $public;\n
include(\"../mainfile.php\");\n
include(\"../template.php\");\n
include(\"../header.php\");\n
global \$username; ?>\n";
$entry3 = "<?php tblock1(\$username);\n include(\"../switchCase.inc\"); ?>\n";
$entry4 = "<?php tblock2(); ?> \n";
$entry5 = "<?php include(\"../footer.php\")?>";
$adminEntry = "<?php\n include(\"../adminAuth.inc\");\n if(\$auth)\n {\n echo \"<meta http-equiv=refresh content=0;URL=index.php>\";\n}\n?>";
$userEntry = "<?php\n include(\"../auth.inc\");\n if(\$auth)\n {\n echo \"<meta http-equiv=refresh content=0;URL=index.php>\";\n}\n?>";
?>
any help is appreciated thanks