Help - Search - Members - Calendar
Full Version: Problems Uploading Script, Please Help
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
bec911
this code I uploaded as index.php....heres the code for
index.php
CODE
<?php

include($DOCUMENT_ROOT . '/vars.php');
include($DOCUMENT_ROOT . '/headfoot.php');
mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db_name);
if (!isset($ac) || !is_numeric($ac) || !isset($i) || !is_numeric($i)) {
    echo("<head><title>$title</title><meta http-equiv=\"Refresh\" content=\"1;URL=$self_url\"></head><body><span style=\"font-size:250%\">$title</span><br><span style=\"font-size:150%\">Failed to resolve activation code!</span></body></html>");
    exit;
}
$res = mysql_query("select email from user where id=$i && ac=$ac");
if (mysql_num_rows($res) != 1) {
    echo("<head><title>$title</title><meta http-equiv=\"Refresh\" content=\"1;URL=$self_url\"></head><body><span style=\"font-size:250%\">$title</span><br><span style=\"font-size:150%\">Failed to resolve activation code!</span></body></html>");
    exit;
}
$email = mysql_result($res, 0);
$res = mysql_query("update user set ac=0 where id=$i");
uheader();
echo("<p align=center class=big>Your account was activated!</p>");
echo("<form action=/members/ method=post><input type=hidden name=form value=sent><div align=center><b>You may now log in:</b><br>");
echo("E-mail:<br><input type=text name=email size=10 maxlength=100 value=$email><br>Password:<br><input type=password name=passwd size=10 maxlength=20><br><input type=submit value=\"Log in\"></div></form>\n");
ufooter();
mysql_close;
?>


HERES My Errors

CODE
Warning: include() [function.include]: Unable to access /vars.php in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 18

Warning: include(/vars.php) [function.include]: failed to open stream: No such file or directory in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 18

Warning: include() [function.include]: Failed opening '/vars.php' for inclusion (include_path='.:/usr/lib/php') in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 18

Warning: include() [function.include]: Unable to access /headfoot.php in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 19

Warning: include(/headfoot.php) [function.include]: failed to open stream: No such file or directory in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 19

Warning: include() [function.include]: Failed opening '/headfoot.php' for inclusion (include_path='.:/usr/lib/php') in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 19

Warning: include() [function.include]: Unable to access /regmail.php in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 20

Warning: include(/regmail.php) [function.include]: failed to open stream: No such file or directory in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 20

Warning: include() [function.include]: Failed opening '/regmail.php' for inclusion (include_path='.:/usr/lib/php') in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 20

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'vhostswww'@'localhost' (using password: NO) in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 21

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'vhostswww'@'localhost' (using password: NO) in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 22

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 22

Fatal error: Call to undefined function uheader() in /www/uuuq.com/q/u/a/quantumplanets/htdocs/index.php on line 24


Here is my Vars.php

CODE
<?

//Database host:
$db_host = 'localhost';

//Database username:
$db_user = 'quantumplanets';

//Database password:
$db_pwd = 'hidden for security reason';

//Database name:
$db_name = 'quantumplanets_q';

//Root URL:
$self_url = 'http://www.quantumplanets.uuuq.com/';

//Site name for security checks:
$self_name = 'http://www.quantumplanets.uuuq.com/';

//Default site to show when no valid user sites:
$default_site = 'http://www.quantumplanets.uuuq.com/';

//Site Title:
$title = 'quantumplanets.uuuq.com';

//Site URL to Index.php - Leave out http:// and do add a / at the end of the url:
$siteurl = 'www.quantumplanets.uuuq.com';

//==========Site Settings============//

//Font Type
$fontface = 'Verdana';

//Admin Panel BG Color
$admincolor = 'B0D8DD';

//Button BG
$adminbutton = 'B0D8DD';

//Members Area Cell BG 1
$cellbg1 = "#B0D8DD";

//Members Area Link Rollover
$links = '#B0D8DD';

//Members Area Cell Bg 2
$cellbg2 = "#ECF8FF";

?>


Anyone please help!!!!!!!!!!!
bec911
please help anyone
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.