Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. if you add the changes you shouldn't get any blank screens but inplace an error telling why the blank screen are due to file not found or bad file type
  2. the directory of the file current file being run.. SO.. $path = dirname('../adam/cycling/excel/CSV/'); really means "../adam/cycling/excel/"
  3. OR <?php error_reporting(E_ALL); $path = dirname(__FILE__)."/CSV/"; $destination= $path; if ($_FILES["file"]["error"] >0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { move_uploaded_file ($_FILES["file"]["tmp_name"] , $destination. $_FILES["file"]["name"]); echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; } ?> basically your using dirname incorrectly another option $path = '../adam/cycling/excel/CSV/'; $destination= realpath($path);
  4. <?php error_reporting(E_ALL); $path = '../adam/cycling/excel/CSV/'; $destination= $path; //<--changed if ($_FILES["file"]["error"] >0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { move_uploaded_file ($_FILES["file"]["tmp_name"] , $destination. $_FILES["file"]["name"]); echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; } ?>
  5. from the code i sent <?php $curpath = dirname(__FILE__)."/"; sendDownLoadFile($curpath,"test.jpg"); ?> Now $curpath = dirname(__FILE__)."/"; is the current path (where the script is) test.jpg = the file i am looking for, the download looks for this file in the current folder and all sub folders.. if none is found it will have a blank screen to fix this change if (!is_file($file_path)) { return false; } to if (!is_file($file_path)) { die("No file found"); } also you can change if (!array_key_exists($fext, $allowed_ext)) { return false; } to if (!array_key_exists($fext, $allowed_ext)) { die("Bad FileType"); } as for the . and .. . = parent folder .. = back one folder these exist in ever folder thus we exlude them from the search
  6. can you post your lastest code
  7. you can just click solved (bottom left) Planning is are to explain.. it depends on the client spec (even if your the client) write the what the system should do (main goal) then sub goals etc break the system down into smaller sections you could look into UML
  8. hummmm change $path = "../adam/cycling/excel/CSV/"; to $path = '../adam/cycling/excel/CSV/'; i think CSV maybe defined. so single quotes are needed in this case
  9. if the URL does NOT contains passkey= then that code will be triggered a have reviewed you code and tweaked it a little, (didn't really read it first time, i see so much code everyday lol) <?php include('config.php'); // Passkey that got from link ## added here if (!isset($_GET['passkey'])) { echo "Error here :: Validation Failed"; }else{ //Cleanup $passkey = mysql_escape_string($_GET['passkey']); ## table name $tbl_name="temp_users"; $tbl_name2="users"; // after connecting succesfully: $sql1 = "SELECT * FROM $tbl_name WHERE confirm_code ='$passkey'"; $result = mysql_query($sql1) or die(mysql_error()); $found = mysql_num_rows( $result); if($found > 0) { //Don't need loop as only 1 record is valid per passkey $row = mysql_fetch_array($result); $sql2="INSERT INTO $tbl_name2(name, address, address1, address2, address3, address4, county, zip, telephone, email, username, password, user)VALUES('".$row['name'] . "', '".$row['address'] . "', '".$row['address1'] . "', '".$row['address2'] . "', '".$row['address3'] . "', '".$row['address4'] . "', '".$row['county'] . "', '".$row['zip'] . "', '".$row['telephone'] . "', '".$row['email'] . "', '".$row['username'] . "', '".$row['password'] . "', 1)"; $result2=mysql_query($sql2)or die(mysql_error()); echo "Your account has been activated"; $sql3="DELETE FROM $tbl_name WHERE confirm_code = '$passkey'"; $result3=mysql_query($sql3)or die(mysql_error()); }else{ echo "Error here :: PASSKEY NOT FOUND "; } } ?>
  10. well i would do this while (($file = readdir($handle)) !== false)
  11. i'm kinda lost.. i assume you want this $path = dirname(__FILE__)."/CSV/"; $destination= $path;
  12. remove the || die("Could not open Modules directory") so change if ($handle = opendir(ROOT.'/admin/mods/') || die("Could not open Modules directory")) { to if ($handle = opendir(ROOT.'/admin/mods/') ) {
  13. Okay.. this is to stop SQL Injection.. this sets $row to the array of the next record, if their a no more records it returns false (which ends the loop) so if you had 5 records you could do this $row1 = mysql_fetch_array($result); $row2 = mysql_fetch_array($result); $row3 = mysql_fetch_array($result); $row4 = mysql_fetch_array($result); $row5 = mysql_fetch_array($result); but while ($row = mysql_fetch_array($result)) is better as you don't need to know the number of records hope that helps NB: records = rows
  14. Main problem was here <?php $file_path = ''; find_file($base_directory, $fname, $file_path); if (!is_file($file_path)) { return false; } ?> $file_path was always empty this always returning false (ending the script) changes <?php $file_path = find_file($base_directory, $fname, $file_path); if (!is_file($file_path)) { return false; } ?> also function find_file returnd nothing if the file was found or not.. so i changed to return $file_path;
  15. erm.. planning a project .. this isn't strictly a php question is it.. !!
  16. try this <?php echo (strlen($row['name'])>6)?substr($row['name'], 0, 6)."...":$row['name']; ?> OR a function (if used many times) <?php echo shortname($row['name'], 6); function shortname($name, $len) { return (strlen($name)>$len)?substr($name, 0, $len)."...":$name; } ?>
  17. which is way i am 99% sure its the index.php file.. try this (see attached) feel free to view it but if you open it DO NOT save it. its contains <?php include("../include/session.php"); echo "Hello World"; ?> nothing more but lets see [attachment deleted by admin]
  18. fixed <?php $curpath = dirname(__FILE__)."/"; sendDownLoadFile($curpath,"test.jpg"); function sendDownLoadFile($base_directory, $file_name) { $allowed_ext = array ( 'txt' => 'text/text', // archives 'zip' => 'application/zip', // documents 'pdf' => 'application/pdf', 'doc' => 'application/msword', 'xls' => 'application/vnd.ms-excel', 'ppt' => 'application/vnd.ms-powerpoint', // executables 'exe' => 'application/octet-stream', // images 'gif' => 'image/gif', 'png' => 'image/png', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', // audio 'mp3' => 'audio/mpeg', 'wav' => 'audio/x-wav', // video 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpe' => 'video/mpeg', 'mov' => 'video/quicktime', 'avi' => 'video/x-msvideo' ); #################################################################### ### DO NOT CHANGE BELOW #################################################################### // Make sure program execution doesn't time out // Set maximum script execution time in seconds (0 means no limit) set_time_limit(0); // Get real file name. // Remove any path info to avoid hacking by adding relative path, etc. $fname = basename($file_name); // Check if the file exists // Check in subfolders too // get full file path (including subfolders) $file_path = ''; $file_path = find_file($base_directory, $fname, $file_path); if (!is_file($file_path)) { return false; } // file size in bytes $fsize = filesize($file_path); // file extension $fext = strtolower(substr(strrchr($fname,"."),1)); // check if allowed extension if (!array_key_exists($fext, $allowed_ext)) { return false; } // get mime type if ($allowed_ext[$fext] == '') { $mtype = ''; // mime type is not set, get from server settings if (function_exists('mime_content_type')) { $mtype = mime_content_type($file_path); } else if (function_exists('finfo_file')) { $finfo = finfo_open(FILEINFO_MIME); // return mime type $mtype = finfo_file($finfo, $file_path); finfo_close($finfo); } if ($mtype == '') { $mtype = "application/force-download"; } } else { // get mime type defined by admin $mtype = $allowed_ext[$fext]; } // Browser will try to save file with this filename, regardless original filename. // You can override it if needed. $asfname = $fname; // set headers header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Type: $mtype"); header("Content-Disposition: attachment; filename=\"$asfname\""); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . $fsize); // download @readfile($file_path); } function find_file ($dirname, $fname, &$file_path) { $dir = opendir($dirname); while ($file = readdir($dir)) { if (empty($file_path) && $file != '.' && $file != '..') { if (is_dir($dirname.'/'.$file)) { find_file($dirname.'/'.$file, $fname, $file_path); } else { if (file_exists($dirname.'/'.$fname)) { $file_path = $dirname.'/'.$fname; return $file_path; } } } } return false; } // find_file ?>
  19. yeah a few change from }; /** * Initialize session object - This must be initialized before * the form object because the form uses session variables, * which cannot be accessed unless the session has started. */ $session = new Session; /* Initialize form object */ $form = new Form; ?> to } /** * Initialize session object - This must be initialized before * the form object because the form uses session variables, * which cannot be accessed unless the session has started. */ $session = new Session; /* Initialize form object */ $form = new Form; ?> Now thats done nothing i'll STILL point to the index.php So change your index.php from <?php include("../include/session.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Welcome to HCB games <?php echo date('l dS \of F Y h:i:s A'); ?></title> <meta name="keywords" content="play free games online flash games flash arcade swf cool movies cartoons"> <meta name="robots" content="index, follow"> <meta name="description" content="Play free flash games online, watch cool movies and cartoons!"> <link rel="stylesheet" type="text/css" href="../index.css" media="all"> </head> <body> <div id="wrapper" style="width: 92%;" align="center"> <div id="header"> <div class="heada"> <div class="headc"> <table border="0" cellspacing="0"> <tbody><tr> <td><a linkindex="0" href="http://localhost/" title=""><img class="logo" src="../images/logo.png" alt="Game Script" border="0" height="84" hspace="10" width="284"></a></td> <td rowspan="2" valign="top"> <div class="topmenu"> <a linkindex="1" href="http://localhost/page-memberlist" class="topmenu">Memberlist</a> | <a linkindex="2" href="http://localhost/page-about_us" class="topmenu">About Us</a> | <a linkindex="3" href="http://localhost/page-help" class="topmenu">Help</a> | <a href="mailto:" class="topmenu">Contact Us</a> | <a class="topmenu" href="mailto:?subject=Play%20Free%20Games%20at%20HCB%20Games%21">Tell a Friend</a> | <a class="topmenu" href="http://localhost/">Bookmark Us</a> </div> <div class="quickgame"> Quick Play: <select id="games" name="games" onchange="switchme()"> <option value="">--select a game--</option> </select> <img src="../images/px.gif" align="absmiddle" height="23" width="4"></div> </td> </tr> <tr class="navigator"> <td class="menu"><ul> <li><span><img src="../images/px.gif" align="absmiddle" height="23" width="40"></span></li> <li class="sel"><span>Games</span></li><li class="unsel"><a linkindex="4" href="http://localhost/index.php?mcid=2">Movies</a></li> </ul></td> </tr> </tbody></table> </div> </div> </div> <div id="submenu"> <div class="submenua"> <div class="submenuc"> <div> <a linkindex="5" href="http://localhost/cat-1-p0.html" class="submenu">Action / Adventure</a> | <a linkindex="6" href="http://localhost/cat-8- p0.html" class="submenu">Beat em up</a> | <a linkindex="7" href="http://localhost/cat-5-p0.html" class="submenu">Other</a> | <a linkindex="8" href="http://localhost/cat-3-p0.html" class="submenu">Puzzle</a> | <a linkindex="9" href="http://localhost/cat-6-p0.html" class="submenu">Racing</a> | <a linkindex="10" href="http://localhost/cat-7-p0.html" class="submenu">Retro</a> | <a linkindex="11" href="http://localhost/cat-4-p0.html" class="submenu">Shoot 'em up</a> | <a linkindex="12" href="http://localhost/cat-2-p0.html" class="submenu">Sports</a></div> </div> </div> </div> <div id="submenushadow"> <div class="sushada"> <div class="sushadc"> </div> </div> </div> <div class="wrappera"> <div class="wrapperc"> <div id="content"> <div class="wideboxs adsbox"><div class="boxs_head adsbox"><span></span></div><div class="boxs_body adsbox"><p align="center"><? /** * User not logged in, display the login form. * If user has already tried to login, but errors were * found, display the total number of errors. * If errors occurred, they will be displayed. */ if($form->num_errors > 0){ echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font>"; echo $form->error("user"); echo $form->error("pass"); } ?> </p></div></div> <table class="content" border="0" cellspacing="5"> <tbody><tr><td class="sidecol" width="1"><div class="boxs bluebox"><div class="boxs_head bluebox"><h2>Top Games</h2></div><div class="boxs_body bluebox"><p></p><table class="topgamescashe" cellspacing="1"> <tbody><tr><td class="topgamerowalt"><a linkindex="13" href="http://localhost/play-4017- _Heli_Strike.html"> Heli Strike</a></td><td class="topgamerowalt" align="right">278</td></tr> <tr><td class="topgamerow"><a linkindex="14" href="http://localhost/play-3997- _Gold_Miner.html"> Gold Miner</a></td><td class="topgamerow" align="right">158</td></tr> <tr><td class="topgamerowalt"><a linkindex="15" href="http://localhost/play-3637- Superbike__GP.html">Superbike GP</a></td><td class="topgamerowalt" align="right">100</td></tr> <tr><td class="topgamerow"><a linkindex="16" href="http://localhost/play-3993- _Dragonball_Z_Pong.html"> Dragonball Z Pong</a></td><td class="topgamerow" align="right">72</td></tr> <tr><td class="topgamerowalt"><a linkindex="17" href="http://localhost/play-3998- _12_Puzzle.html"> 12 Puzzle</a></td><td class="topgamerowalt" align="right">71</td></tr> <tr><td class="topgamerow"><a linkindex="18" href="http://localhost/play-14- _A.L.I.A.S._3.html"> A.L.I.A.S. 3</a></td><td class="topgamerow" align="right">62</td></tr> <tr><td class="topgamerowalt"><a linkindex="19" href="http://localhost/play-3999- _12_Holes_of_X-Mas.html"> 12 Holes of X-Mas</a></td><td class="topgamerowalt" align="right">57</td></tr> <tr><td class="topgamerow"><a linkindex="20" href="http://localhost/play-375- _Life_Buoys.html"> Life Buoys</a></td><td class="topgamerow" align="right">57</td></tr> <tr><td class="topgamerowalt"><a linkindex="21" href="http://localhost/play-814- _Pretty_Girl.html"> Pretty Girl</a></td><td class="topgamerowalt" align="right">54</td></tr> <tr><td class="topgamerow"><a linkindex="22" href="http://localhost/play-1504- __Office_Paintball.html"> Office Paintball</a></td><td class="topgamerow" align="right">54</td></tr> <tr><td class="topgamerowalt"><a linkindex="23" href="http://localhost/play-3982- _Shoot_the_Turkeys.html"> Shoot the Turkeys</a></td><td class="topgamerowalt" align="right">50</td></tr> <tr><td class="topgamerow"><a linkindex="24" href="http://localhost/play-3509- _Sexy__Slots.html"> Sexy Slots</a></td><td class="topgamerow" align="right">47</td></tr> <tr><td class="topgamerowalt"><a linkindex="25" href="http://localhost/play-3930- _Contra.html"> Contra</a></td><td class="topgamerowalt" align="right">43</td></tr> <tr><td class="topgamerow"><a linkindex="26" href="http://localhost/play-3508- _G__Ball.html"> G Ball</a></td><td class="topgamerow" align="right">42</td></tr> <tr><td class="topgamerowalt"><a linkindex="27" href="http://localhost/play-323- _Hovercraft.html"> Hovercraft</a></td><td class="topgamerowalt" align="right">41</td></tr> <tr><td class="topgamerow"><a linkindex="28" href="http://localhost/play-3914-_Halo.html"> Halo</a></td><td class="topgamerow" align="right">41</td></tr> <tr><td class="topgamerowalt"><a linkindex="29" href="http://localhost/play-3901- _Mario_Star_Catcher_2.html"> Mario Star Catcher 2</a></td><td class="topgamerowalt" align="right">39</td></tr> <tr><td class="topgamerow"><a linkindex="30" href="http://localhost/play-504- _______Red_Beard.html"> Red Beard</a></td><td class="topgamerow" align="right">37</td></tr> <tr><td class="topgamerowalt"><a linkindex="31" href="http://localhost/play-610- _5_Miles_to_Go.html"> 5 Miles to Go</a></td><td class="topgamerowalt" align="right">37</td></tr> <tr><td class="topgamerow"><a linkindex="32" href="http://localhost/play-1445- _Flash_Pong.html"> Flash Pong</a></td><td class="topgamerow" align="right">36</td></tr> <tr><td class="topgamerowalt"><a linkindex="33" href="http://localhost/play-4033- GameTeam_Drop_Blocks.html">GameTeam Drop Blocks</a></td><td class="topgamerowalt" align="right">36</td></tr> <tr><td class="topgamerow"><a linkindex="34" href="http://localhost/play-2367- ___World_Cup_Soccer_Tournament.html"> World Cup Soccer Tournament</a></td><td class="topgamerow" align="right">35</td></tr> <tr><td class="topgamerowalt"><a linkindex="35" href="http://localhost/play-333- _Insect_Hunter_2_:__Frozen.html"> Insect Hunter 2 : Frozen</a></td><td class="topgamerowalt" align="right">33</td></tr> <tr><td class="topgamerow"><a linkindex="36" href="http://localhost/play-2617- ___Pet_Puzzle.html"> Pet Puzzle</a></td><td class="topgamerow" align="right">32</td></tr> <tr><td class="topgamerowalt"><a linkindex="37" href="http://localhost/play-1524- Street_Cred.html">Street Cred</a></td><td class="topgamerowalt" align="right">31</td></tr> <tr><td class="topgamerow"><a linkindex="38" href="http://localhost/play-2800- Booby__Blast.html">Booby Blast</a></td><td class="topgamerow" align="right">30</td></tr> <tr><td class="topgamerowalt"><a linkindex="39" href="http://localhost/play-3884- _Kerry_Bush_Bash.html"> Kerry Bush Bash</a></td><td class="topgamerowalt" align="right">30</td></tr> <tr><td class="topgamerow"><a linkindex="40" href="http://localhost/play-4006- _3D_Worm.html"> 3D Worm</a></td><td class="topgamerow" align="right">27</td></tr> <tr><td class="topgamerowalt"><a linkindex="41" href="http://localhost/play-286- _Ghetto_Chase.html"> Ghetto Chase</a></td><td class="topgamerowalt" align="right">27</td></tr> <tr><td class="topgamerow"><a linkindex="42" href="http://localhost/play-327- _Hybrid_Fighter.html"> Hybrid Fighter</a></td><td class="topgamerow" align="right">27</td></tr> <tr><td class="topgamerowalt"><a linkindex="43" href="http://localhost/play-2296- ____AnimeChickGame.html"> AnimeChickGame</a></td><td class="topgamerowalt" align="right">27</td></tr> <tr><td class="topgamerow"><a linkindex="44" href="http://localhost/play-4000- _12_Many.html"> 12 Many</a></td><td class="topgamerow" align="right">26</td></tr> <tr><td class="topgamerowalt"><a linkindex="45" href="http://localhost/play-4009- _Crazy_Police_Dogs.html"> Crazy Police Dogs</a></td><td class="topgamerowalt" align="right">26</td></tr> <tr><td class="topgamerow"><a linkindex="46" href="http://localhost/play-1432-_Aspen.html"> Aspen</a></td><td class="topgamerow" align="right">24</td></tr> <tr><td class="topgamerowalt"><a linkindex="47" href="http://localhost/play-3128- _Bomb__Defusal.html"> Bomb Defusal</a></td><td class="topgamerowalt" align="right">23</td></tr> </tbody></table> <a linkindex="48" class="link" href="http://localhost/page-top100">Top 100 >>></a> </div></div><div class="boxs greenbox"><div class="boxs_head greenbox"><h2>Top Rated</h2></div><div class="boxs_body greenbox"><p></p><table class="topgamescashe" cellspacing="1"> <tbody><tr><td class="topgamerowalt"><span class="toprate">5.0</span></td><td class="topgamerowalt"><a linkindex="49" href="http://localhost/play-3637- Superbike__GP.html">Superbike GP</a></td></tr><tr><td class="topgamerow"><span class="toprate">5.0</span></td><td class="topgamerow"><a linkindex="50" href="http://localhost/play-3998-_12_Puzzle.html"> 12 Puzzle</a></td></tr> </tbody></table> </div></div><div class="boxs bluebox"><div class="boxs_head bluebox"><h2>Statistics</h2></div><div class="boxs_body bluebox"><p></p><table class="topgamescashe" cellspacing="0"> <tbody><tr> <td class="topgamerow"><b>Total Members</b></td><td class="topgamerow"><?php echo "".$database->getNumMembers()."" ?></td></tr> <tr><td class="topgamerowalt"><b>Users Online</b></td><td class="topgamerowalt"><?php echo "$database->num_active_users"; ?></td></tr> <tr> <td class="topgamerow"><b>Guests Online</b></td><td class="topgamerow"><?php echo "$database->num_active_guests"; ?></td></tr> </tbody></table> </div></div><div class="boxs greenbox"><div class="boxs_head greenbox"><h2>Affiliate Sites</h2></div><div class="boxs_body greenbox"><p></p><table class="topgamescashe" cellspacing="1"> </table> <?php include("../links.txt"); ?> </div></div></td><td class="centercol"><div class="cntttl"> <div class="cntbox"> <div class="cntbox_head"><div> <h1>Welcome to HCB Games</h1> </div></div> <div class="cntbox_cnt"> <p><?php include("../mainintro.txt"); ?></p> </div> <div class="cntbox_foot"><div><div></div></div></div> </div> </div> </td> <td class="sidecol" width="1"><div class="boxs bluebox"><div class="boxs_head bluebox"><h2>Latest Games</h2></div><div class="boxs_body bluebox"><p></p><table class="topgamescashe" cellspacing="1"> <tbody><tr><td class="topgamerowalt"><a linkindex="162" href="http://localhost/play-4026- Captain_Jack_Adventure.html">Captain Jack Adventure</a></td><td class="topgamerowalt" align="right">5</td></tr> <tr><td class="topgamerow"><a linkindex="163" href="http://localhost/play-4025- HolyWar:_Invasion.html">HolyWar: Invasion</a></td><td class="topgamerow" align="right">3</td></tr> <tr><td class="topgamerowalt"><a linkindex="164" href="http://localhost/play-4024- Sky_Fire.html">Sky Fire</a></td><td class="topgamerowalt" align="right">7</td></tr> <tr><td class="topgamerow"><a linkindex="165" href="http://localhost/play-4023- Naval_Strike.html">Naval Strike</a></td><td class="topgamerow" align="right">3</td></tr> <tr><td class="topgamerowalt"><a linkindex="166" href="http://localhost/play-4022- Onslaught.html">Onslaught</a></td><td class="topgamerowalt" align="right">3</td></tr> <tr><td class="topgamerow"><a linkindex="167" href="http://localhost/play-4021- KGB_Hunter.html">KGB Hunter</a></td><td class="topgamerow" align="right">5</td></tr> <tr><td class="topgamerowalt"><a linkindex="168" href="http://localhost/play-4020- Naval_Fighter.html">Naval Fighter</a></td><td class="topgamerowalt" align="right">10</td></tr> <tr><td class="topgamerow"><a linkindex="169" href="http://localhost/play-4019- Mad_Truckers.html">Mad Truckers</a></td><td class="topgamerow" align="right">9</td></tr> <tr><td class="topgamerowalt"><a linkindex="170" href="http://localhost/play-4018- Crusader_Tank.html">Crusader Tank</a></td><td class="topgamerowalt" align="right">8</td></tr> <tr><td class="topgamerow"><a linkindex="171" href="http://localhost/play-4016- _Swimming_With_No_Arms.html"> Swimming With No Arms</a></td><td class="topgamerow" align="right">0</td></tr> <tr><td class="topgamerowalt"><a linkindex="172" href="http://localhost/play-4015- _Hot_Chick_With_a_Gun.html"> Hot Chick With a Gun</a></td><td class="topgamerowalt" align="right">0</td></tr> <tr><td class="topgamerow"><a linkindex="173" href="http://localhost/play-4010- _Juggling_During_Dance_Dance_Revolution.html"> Juggling During Dance Da</a></td><td class="topgamerow" align="right">13</td></tr> <tr><td class="topgamerowalt"><a linkindex="174" href="http://localhost/play-4009- _Crazy_Police_Dogs.html"> Crazy Police Dogs</a></td><td class="topgamerowalt" align="right">26</td></tr> <tr><td class="topgamerow"><a linkindex="175" href="http://localhost/play-4008- _Corey_Martinez_BMX.html"> Corey Martinez BMX</a></td><td class="topgamerow" align="right">18</td></tr> <tr><td class="topgamerowalt"><a linkindex="176" href="http://localhost/play-4007- _Agassi_vs_Federer_at_the_Burj_al_Arab_Hotel.html"> Agassi vs Federer at the</a></td><td class="topgamerowalt" align="right">5</td></tr> <tr><td class="topgamerow"><a linkindex="177" href="http://localhost/play-4006- _3D_Worm.html"> 3D Worm</a></td><td class="topgamerow" align="right">27</td></tr> <tr><td class="topgamerowalt"><a linkindex="178" href="http://localhost/play-4005- _3D_Space_Skimmer.html"> 3D Space Skimmer</a></td><td class="topgamerowalt" align="right">10</td></tr> <tr><td class="topgamerow"><a linkindex="179" href="http://localhost/play-4004- _3D_MAZE.html"> 3D MAZE</a></td><td class="topgamerow" align="right">14</td></tr> <tr><td class="topgamerowalt"><a linkindex="180" href="http://localhost/play-4003- 3_Foot__Ninja_II.html">3 Foot Ninja II</a></td><td class="topgamerowalt" align="right">12</td></tr> <tr><td class="topgamerow"><a linkindex="181" href="http://localhost/play-4002- _3__Foot_Ninja.html"> 3 Foot Ninja</a></td><td class="topgamerow" align="right">15</td></tr> </tbody></table> <a linkindex="182" class="link" href="http://localhost/page-last100">Last 100 >>></a> </div></div> </td> </tr> </tbody></table> <div class="wideboxs adsbox"><div class="boxs_head adsbox"><span></span></div><div class="boxs_body adsbox"><p align="center"> </p> </div></div></div> <br> </div> </div> <div id="footer"> <div class="footera"> <div class="footerc"> <p>All Games Copyright © To Their Respective Owners. All Rights Reserved.</p> </div> </div> </div> </div><!-- end WRAPPER --> <br> <div style="position: absolute; width: 28px; height: 28px; z-index: 1000; display: none;"></div><img style="position: absolute; width: 35px; height: 29px; z-index: 1000; display: none;" src="chrome://piclens/content/launch.png"></body> </html> to <?php include("../include/session.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Yes it seams pointless but it the problem is still their then try deleting and retyping this part (no copy and paste) <?php include("../include/session.php"); ?>
  20. $destination= dirname($path)."/"; note the filename are folder are concatenated into one
  21. <?php include('config.php'); //Cleanup #$passkey=$_GET['passkey']; $passkey = mysql_escape_string($_GET['passkey']); // Passkey that got from link ## added here if (!isset($_GET['passkey'])) { echo "Error here :: PASSKEY NOT ENTERED"; }else{ ## table name $tbl_name="temp_users"; $tbl_name2="users"; // after connecting succesfully: $sql1 = "SELECT * FROM $tbl_name WHERE confirm_code ='$passkey'"; $result = mysql_query($sql1) or die(mysql_error()); $found = mysql_num_rows( $result); if($found > 0) { // while there is a result, fetch it into an array... while ($row = mysql_fetch_array($result)) { $sql2="INSERT INTO $tbl_name2(name, address, address1, address2, address3, address4, county, zip, telephone, email, username, password, user)VALUES('".$row['name'] . "', '".$row['address'] . "', '".$row['address1'] . "', '".$row['address2'] . "', '".$row['address3'] . "', '".$row['address4'] . "', '".$row['county'] . "', '".$row['zip'] . "', '".$row['telephone'] . "', '".$row['email'] . "', '".$row['username'] . "', '".$row['password'] . "', 1)"; $result2=mysql_query($sql2)or die(mysql_error()); echo "Your account has been activated"; $sql3="DELETE FROM $tbl_name WHERE confirm_code = '$passkey'"; $result3=mysql_query($sql3)or die(mysql_error()); } }else{ echo "Error here :: PASSKEY NOT FOUND "; } } ?>
  22. stop the press }; //<---REMOVE THAT ; /** * Initialize session object - This must be initialized before * the form object because the form uses session variables, * which cannot be accessed unless the session has started. */ $session = new Session; /* Initialize form object */ $form = new Form; ?>
  23. I just tried it.. or course a ton of error due to missing files etc.. but no header problems
  24. try $destination = dirname(__FILE__)."/../adam/cycling/excel";
  25. In session.php <?php $subpass = stripslashes($subnewpass); //<--pointless unless you use it if(strlen($subnewpass) < 4){ ?> but thats unrelated to the problem the problem seams to be in the index.php file.. check the start of the file check NOTHING is there no spaces/returns etc
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.