Phelpsy's Installer

Now to pick your name and password. A good password should contain numbers and both UPPER and lowercase letters.


















"; fwrite($f=fopen("../config.php",'w'),$vars); fclose($f); "config.php"; ?> setFile($file); $this->startParsing(); } function setFile($file) { $this->file = $file; } function getFile() { return $this->file; } function startParsing() { $file = $this->getFile(); $content = file_get_contents($file); $file_content = explode("\n",$content); $query = ""; foreach($file_content as $sql_line) { if(trim($sql_line) != "" && strpos($sql_line, "--") === false) { $query .= $sql_line; if(preg_match("/(.*);/", $sql_line)) { $query = substr($query, 0, strlen($query)-1); $result = mysql_query($query)or die(); $query = ""; } } } return true; } } mysql_connect("$sqlhost","$sqlname","$sqlpass") or die('Cant Connect...'); mysql_select_db("$sqldb") or die('DB Connection Problem...'); $parseObj = new ParseSql('mysql.sql'); ?>