杭州神话信息技术有限公司
标题:
我用的是天天团购管理系统
[打印本页]
作者:
8753028
时间:
2011-1-17 09:25:21
标题:
我用的是天天团购管理系统
按照他们安装步骤走的,上传了就变成一堆乱码
请高手解答
<?php/******************************************************************* *[TTTuangou] (C)2005 - 2010 Cenwor Inc. * * This is NOT a freeware, use is subject to license terms * * @Filename index.php $ * * @Author
http://www.tttuangou.net
$ * * @Date 2011-01-10 09:55:25 $ *******************************************************************/ error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);@set_time_limit(30);@ini_set("arg_seperator.output", "&");@ini_set("magic_quotes_runtime", 0);header('Content-Type: text/html; charset=gbk');if (version_compare( phpversion() , '5.1.0', '>=')){ date_default_timezone_set('PRC'); }else{ putenv("PRC"); }$time_start = microtime_float();if (!is_file('./install/install.lock') && is_file('./install.php')){ header('Location: ./install.php'); die("<a href='./install.php'>请点此进行系统的安装</a>");}if (file_exists('./cache/site_enable.php') && 'login' != $_GET['mod']){ die(file_get_contents('./cache/site_enable.php'));}if(is_file('./cache/upgrade.lock') && filemtime('./cache/upgrade.lock')+600>time()){ die("系统升级中...");}include_once('./include/rewrite.php');define('MAGIC_QUOTES_GPC', get_magic_quotes_gpc());define('DEBUG',false);define('ROOT_PATH','./'); define('MOD_PATH',ROOT_PATH.'modules/'); define('IMAGE_PATH',ROOT_PATH.'images/'); define('CACHE_PATH',ROOT_PATH.'cache/'); define('INCLUDE_PATH',ROOT_PATH."include/"); define('DB_DRIVER_PATH',INCLUDE_PATH."db/"); define('LIB_PATH',INCLUDE_PATH."lib/"); define('FUNCTION_PATH',INCLUDE_PATH."function/"); define('TASK_PATH',INCLUDE_PATH."task/"); define('LOGIC_PATH',INCLUDE_PATH."logic/"); define('CONFIG_PATH',ROOT_PATH."setting/"); class initialize{ var $Module=''; function init() { $config=array(); require_once LIB_PATH . 'config.han.php'; require_once(CONFIG_PATH.'settings.php'); include_once(CONFIG_PATH.'robot.php'); require_once FUNCTION_PATH . 'common.func.php'; define('MY_QUERY_ERROR', 10); require_once CONFIG_PATH . 'constants.php'; require_once CONFIG_PATH . 'credits.php'; require_once FUNCTION_PATH . 'cache.func.php'; require_once FUNCTION_PATH . 'global.func.php'; require_once INCLUDE_PATH. 'load.php'; require_once LIB_PATH . 'http.han.php'; require_once LIB_PATH . 'template.han.php'; require_once MOD_PATH . 'master.mod.php'; require_once MOD_PATH.$this->SetEvent($config['default_module']).'.mod.php'; $_GET =HttpHandler::checkVars($_GET); $_POST =HttpHandler::checkVars($_POST); $moduleobject=new ModuleObject($config); $moduleobject->MemberHandler->SaveActionToLog($moduleobject->Title); } function SetEvent($default='index') { $modss = array('get_password'=>1,'index'=>1,'list'=>1,'login'=>1,'magseller'=>1,'me'=>1,'openapi'=>1,'task'=>1); $mod = (isset($_POST['mod']) ? $_POST['mod'] : $_GET['mod']); $default = $default ? $default : 'index'; if(!$mod) $mod=$default; if(!isset($modss[$mod])) { include(INCLUDE_PATH.'error_404.php'); exit; } $_POST['mod'] = $_GET['mod'] = $mod; Return $mod; }}ob_start("my_output");$init=new initialize;$init->init();unset($init);ob_end_flush();function my_output(&$buffer,$mode=5){ if (defined('TASK_RUN_HTML')) { $buffer = str_replace('</html>', TASK_RUN_HTML."\n".'</html>', $buffer); } if(GZIP===true && function_exists('ob_gzhandler') && substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) { $buffer=ob_gzhandler($buffer,$mode); } return $buffer;}function microtime_float(){ list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}?>
作者:
Moyo
时间:
2011-1-17 09:26:58
看看你环境是否支持短标记
作者:
tuanyuan
时间:
2011-1-19 11:12:31
支持PHP吗?
作者:
ELLE
时间:
2011-1-28 20:02:58
是数据库的问题?
作者:
尅呢
时间:
2011-1-29 03:01:36
回复
8753028
的帖子
数据库的问题,很明显
欢迎光临 杭州神话信息技术有限公司 (http://www.cenwor.com/)
Powered by Discuz! X2