YaBB SE Installer |
---|
Safe Mode Check: "; if ($mode) { print " Warning! It appears that safe mode is enabled. This version of the YaBB SE Installer will not work with safe mode enabled. You should download the safe mode installer from yabb.info and procede with your installation using that version. If you know for a fact that safe mode is NOT enabled, you may continue, although this is strongly discouraged. "; } else { print " It appears that safe mode has been disabled. You may continue. "; } print "Click here to continue. "; } elseif($step == 'zero') { $installdir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"]."/yabbse"; $installdir = str_replace("//","/",$installdir); ?> This program will install YaBB SE on your webserver \n"; $af = fopen("archive.ya","rb"); while(!feof($af)) { $data = explode('|^|', chop(fgets($af, 4086))); $filename = $directory."/".$data[1]; if($data[0] == "dir" && !file_exists($filename) && $data[1] != ".") { mkdir($filename, 0777); chmod($filename, 0777); } if($data[0] == "file") { if(file_exists($filename) && filemtime($filename) >= $data[3] && !$overwrite) echo "Skipping $filename because it's a newer version or a version of the same age \n"; else { $buffer = fread($af, $data[2]); $fp = fopen($filename, "wb"); fputs($fp, $buffer, $data[2]); fclose($fp); chmod($filename, 0666); touch($filename, $data[3]); //echo system("chown $filename $chownuser"); echo "Wrote $filename ... \n"; } } } fclose($af); echo ""; } elseif($step==3) { ?> You will now have to set some settings you need to set =) Inserting data package $counter "; if (!mysql_query($query)) print "Errors: ".mysql_error()." \n"; else print "No Errors \n"; $query = ""; } if($count%200==0) set_time_limit(240); } fclose ($fd); ?> "; } ?> |