Connect($db_url) or die('Connect Database Error'); $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; //打開詳細頁面時指定模式 if (!empty($_REQUEST['_schemas'])) { $db->Execute("SET search_path TO " . $_REQUEST['_schemas'] . ";"); } elseif (!empty($_REQUEST['__schemas'])) {//部分report $db->Execute("SET search_path TO " . $_REQUEST['__schemas'] . ";"); } else { //超级管理员有没有选择数据库模式 if (!empty($_SESSION['_current_schemas'])) { $db->Execute("SET search_path TO " . $_SESSION['_current_schemas'] . ";"); } else { if (empty($_SESSION['ONLINE_USER']['main_schemas'])) { $db->Execute("SET search_path TO public;"); } else { $db->Execute("SET search_path TO " . $_SESSION['ONLINE_USER']['main_schemas'] . ";"); } } } $_VERSION = 'RAO 1.0.0.8'; $_COPYRIGHT = 'Copyright @ 2009 United Software Applications,Inc.'; ?>