=1){ $A_replace = explode($S_web_domain,$site_url); if($A_replace[1]==''){ $site_url = $S_web_domain; } } } //不論有沒有cookie都看seesion if(isset($_COOKIE[$web_id])){ session_id($_COOKIE[$web_id]); session_start(); }else{ session_start(); setcookie( $web_id , session_id() , time()+86400 , "/" , ".".$site_url ); } date_default_timezone_set('Asia/Taipei');//設定時區為台北 $company_name = "奧森國際語言"; $host_url_all = "https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; $host_url = substr($host_url_all,0,strrpos($host_url_all,'/')+1); //物件開始 ob_start (); error_reporting(E_ALL ^ E_NOTICE); ini_set('display_errors', 0); //ini_set('memory_limit','128M'); ini_set('short_open_tag', 0);//ini_set ( 'session.bug_compat_42' , '1' ); //防止一些機車廠商Dsession.bug_compat_42 $web_vol = "20171021"; $web_name = "奧森國際語言學習中心"; $web_subname = "線上英文 線上美語"; $web_slogan = 'AWESOME 最好的線上教學平台'; $keywd_more = '奧森線上美語 奧森線上英語 奧森線上 奧森英語 奧森美語 奧森兒童 KidsAwesome 線上學英文 線上學美語'; $S_keys = ''; $S_rate = 100;//點數倍率 $M_title = $web_name.$web_subname; $M_keywd=$M_title.$S_keys.'|'.$site_url; $M_descp = $keywd_more.'|'.$web_slogan; /*去除最後一個斜線*/ $S_getid = $_GET['id']; $A_getid = explode('/',$S_getid); if(isset($A_getid[1])){ if(strpos($_SERVER['REQUEST_URI'],'?')>0){ $A_quri = explode('?',$_SERVER['REQUEST_URI']); $S_l = $A_getid[0].'?'.$A_quri[1]; }else{ $S_l = $A_getid[0]; } header('Location: /'.$S_l); } //DB $db_host = "localhost"; $db_serverid = ""; $db_name = $db_serverid."eip"; $db_user = $db_serverid."root"; $db_password = "SwOOlEmysql2215"; $set_sql_dir = 'set/sql/'; include ( 'set/db.php' ); // 資料庫連結設定 include ( 'set/fc.php' ); // 程式呼叫設定 include ( 'set/auto.php' );// 路徑判別與組合 ?>