PDA

View Full Version : Webinstall - SMF


privateproxy
11-14-2007, 12:51 AM
http://privateproxy.ulmb.com/webinstall.htm

It says like all this stuff like...

', $txt['smf_installer'], '
'; if (function_exists('doStep' . $_GET['step'])) call_user_func('doStep' . $_GET['step']); echo '
'; function initialize_inputs() { // Turn off magic quotes runtime and enable error reporting. @set_magic_quotes_runtime(0); error_reporting(E_ALL); // Fun. Low PHP version... if (!isset($_GET)) { $GLOBALS['_GET']['step'] = 0; return; } ob_start(); if (@ini_get('session.save_handler') == 'user') @ini_set('session.save_handler', 'files'); @session_start(); ignore_user_abort(true); // Add slashes, as long as they aren't already being added. if (get_magic_quotes_gpc() == 0) { foreach ($_POST as $k => $v) { if (is_array($v)) { foreach ($v as $k2 => $v2) $_POST[$k][$k2] = addslashes($v2); } else $_POST[$k] = addslashes($v); } } // Create a file - this is defined in PHP 5, just use the same function name. if (!function_exists('file_put_contents')) { function file_put_contents($filename, $data) { $text_filetypes = array('php', 'txt', '.js', 'css', 'vbs', 'tml', 'htm'); $fp = fopen($filename, in_array(substr($filename, -3), $text_filetypes) ? 'w' : 'wb'); if (!$fp) return 0; fwrite($fp, $data); fclose($fp); return strlen($data); } } if (isset($_GET['ftphelp'])) { global $txt; echo '
', $txt['ftp_path'], '

', $txt['ftp_path_help'], '

', $txt['ftp_path_help_close'], '
'; exit; } // Perhaps they don't want to use a chmod of 777. if (isset($_REQUEST['chmod']) && is_numeric($_REQUEST['chmod'])) { // Make sure they passed us a valid mode. if (preg_match('~^([0]?[0-7]{3})$~', $_REQUEST['chmod']) !== 0

UnlimitedMB
11-14-2007, 02:09 AM
You cannot use webinstall here, and you name php files .php not .htm