View Single Post
  #3  
Old 5th April 2009, 01:41
games4pros games4pros is offline
Member
 
Join Date: Apr 2009
P2P
Posts: 2
Default
well, thats fixed but now another problem.

As soon as i go to install.php via my browser i get all this random php text. Like it cant read it or something. heres the first few lines.

Code:
', $db) . '
There seems to be one or more errors with the database configuration information that you supplied. Click here to to back step 2.'); } $secretkey = mksecret (); $secret = '\'' . mysql_real_escape_string ($secretkey) . '\''; $username = '\'' . mysql_real_escape_string ($_SESSION['username']) . '\''; $passhash = '\'' . mysql_real_escape_string (md5 ($secretkey . $_SESSION['password'] . $secretkey)) . '\''; $email = '\'' . mysql_real_escape_string ($_SESSION['email']) . '\''; $status = '\'' . mysql_real_escape_string ('confirmed') . '\''; $usergroup = '\'' . mysql_real_escape_string ('8') . '\''; $added = '\'' . mysql_real_escape_string (get_date_time ()) . '\''; (mysql_query ('' . 'INSERT INTO users (username, passhash, secret, email, status, usergroup, added) VALUES (' . $username . ', ' . $passhash . ', ' . $secret . ', ' . $email . ', ' . $status . ', ' . $usergroup . ', ' . $added . ')') OR critical_error (mysql_errno () . ' : ' . mysql_error ())); $id = mysql_insert_id (); $sechash = md5 ($_SESSION['SITENAME']); $pincode = md5 (md5 ($sechash) . md5 ($_SESSION['pincode'])); mysql_query ('INSERT INTO pincode SET pincode = ' . sqlesc ($pincode) . ', sechash = ' . sqlesc ($sechash) . ', area = 1'); $filename = ROOT_PATH . 'config/STAFFTEAM'; $somecontent = $_SESSION['username'] . ':' . $id; if (is_writable ($filename)) { $handle = @fopen ($filename, 'w'); @fwrite ($handle, $somecontent); @fclose ($handle); } } function writeconfig ($configname, $config) { $configname = basename ($configname); $path = ROOT_PATH . 'config/' . $configname; if ((!file_exists ($path) OR !is_writable ($path))) { critical_error ('' . $path . ' isn\'t writable! Please check chmod settings.'); } $data = @serialize ($config); if (empty ($data)) { critical_error ('' . $path . ' is corrupted! Please re-upload it in binary mode!'); } $fp = @fopen ($path, 'w'); if (!$fp) { critical_error ('' . $path . ' is corrupted! Please re-upload it in binary mode!'); } $Res = @fwrite ($fp, $data); if (empty ($Res)) { critical_error ('' . $path . ' isn\'t writable! Please check chmod settings.'); } fclose ($fp); return true; } function get_ext ($file) { $file = strtolower (substr (strrchr ($file, '.'), 1)); return $file; } function replace_url ($url) { return str_replace (array ('http://www.', 'http://', 'www.'), '', $url); } function critical_error ($message) { echo html_header ('A critical error has occured.', '' . $message . ''); echo html_footer (); exit (); } function next_button ($step, $message = '', $error = false) { return '
its pretty long, i think its all the steps together. Anyone know how i can fix this? am i supposed to install something (am i supposed to install ioncube?). i have php 5.

If i have to install Ioncube, can somone help me, i tried but no luck.
Reply With Quote