⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inc.php

📁 网络硬盘_支持1GB文件上传和续传_无错版
💻 PHP
字号:
<?
/*
+--------------------------------------------------------------------------
|   Mega File Hosting Script v1.2
|   ========================================
|   by Stephen Yabziz
|   (c) 2005-2006 YABSoft Services
|   http://www.yabsoft.com
|   ========================================
|   Web: http://www.yabsoft.com
|   Email: ywyhnchina@163.com
+--------------------------------------------------------------------------
|
|   > Script written by Stephen Yabziz
|   > Date started: 1th March 2006
+--------------------------------------------------------------------------
*/
@session_start();
error_reporting  (E_ERROR | E_WARNING | E_PARSE );
$included_files = get_included_files();
$root_dir = dirname(dirname(end($included_files)));
define('ROOT',$root_dir);

include_once(ROOT.'/config.php');
include_once(ROOT.'/includes/sysvars.php');
include_once(ROOT.'/includes/database.php');
include_once(ROOT.'/includes/function.php');

# initiate db connection
$db=new database($sql_host,$sql_user,$sql_pass,$sql_database,"");
# parse input
$input=parse_incoming();
# load front end
if(!defined('IN_ADMIN')&&IN_PAGE!='GETFILE')
{
   include_once(ROOT.'/includes/upload.class.php');
   include_once(ROOT.'/includes/user.class.php');

   $user=new user();
   if(IN_MAIN_SERVER==1)
   {
       include_once(ROOT.'/includes/template.php');
       include_once(ROOT.'/includes/functions_template.php');
       include_once(ROOT.'/includes/email.class.php');
       
       $template = new Template( ROOT.'/skin/'.$user->setting['skin_dir'] );
   
       $email = new Email(ROOT.'/language/'.$user->setting[language].'/emails');
       $email->admin_email =$user->setting[adminemail];
   
       $template->cache=$user->setting[cached];
       $template->allow_php=$user->setting[allow_php]=='yes';
   }
   $user->initiate();
}

include(ROOT.'/includes/plugin.class.php');
$YABPlugin=& YABPlugin::init();
//$YABPlugin->complie($db);
//$YABPlugin->loadfromfile();
if(IN_MAIN_SERVER==1)
{
    $parts=parse_url($baseWeb);
    $parts[host] = $_SERVER[HTTP_HOST];
    $baseWeb = "$parts[scheme]://$parts[host]$parts[path]";
}
# load language setting
$langWeb = $baseWeb.($user->setting[lang_page]=='static'?'/'.$user->langcode:'');

$DEMOMODE=0;
$DEMOTEXT='Demo mode disabled some function!';
$debug = $user->setting[debug]=='no';
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -