cek_posting_remoteLoginInfo($frm_relog); $gdl_session->cek_remote_session(); $gdl_session->setup_indexing_option(); // set general language if (file_exists("./lang/".$gdl_content->language.".php")) { include("./lang/".$gdl_content->language.".php"); } // set general function if (file_exists("./theme/".$gdl_content->theme."/function.php")) { include("./theme/".$gdl_content->theme."/function.php"); } // modul and operation authentication if (preg_match("/\.\./",$gdl_mod)|| preg_match("/\.\./",$gdl_op)) { $gdl_content->set_error(_YOUCANACCESSDIRECLY); } else { if (!file_exists("./files/misc/install.lck") && (!preg_match("/install/",$gdl_mod))) { $gdl_content->main=gdl_content_box("

"._INSTALLATIONPAGE."

",_INSTALLATION); } else { if ($gdl_auth->module() || (preg_match("/install/",$gdl_mod) && !file_exists("./files/misc/install.lck"))){ // define language per modul if (file_exists("./module/$gdl_mod/lang/".$gdl_content->language.".php")) { include("./module/$gdl_mod/lang/".$gdl_content->language.".php"); } if ($gdl_auth->operation() || (preg_match("/install/",$gdl_mod) && !file_exists("./files/misc/install.lck"))){ if (file_exists("./module/$gdl_mod/$gdl_op.php")) { include("./module/$gdl_mod/$gdl_op.php"); }else{ $gdl_content->set_error(_OPERATIONNOTEXIST,_ERROR,"main.operation_file"); } } else { $gdl_content->set_error(_YOUHAVENOTAUTHORITY,_EXCLAMATION,"main.operation_authority"); } }else{ $gdl_content->set_error(_YOUHAVENOTAUTHORITY,_EXCLAMATION,"main.module_authority"); } } } $request_uri = $_SERVER["REQUEST_URI"]; $dinamic_title = $_SESSION['DINAMIC_TITLE']; if(empty($dinamic_title) || ($request_uri == "/index.php")){ $dinamic_title = "WELCOME";} // display error, replace all content $gdl_session->set_access_log(); if ($gdl_content->error<>"" && (!preg_match("/install/",$gdl_mod)) && (file_exists("./files/misc/install.lck"))) $gdl_content->main = $gdl_content->error; echo "\n\n" ."\n" ."\n" ."$gdl_publisher[publisher] - $dinamic_title | Powered by GDL4.2\n" ."\n" ."\n"; if ($gdl_content->meta<>"") echo $gdl_content->meta; echo "theme."/".$gdl_content->theme.".css\" type=\"text/css\" media=\"screen\"/>\n"; if ((file_exists("./theme/".$gdl_content->theme."/".$gdl_content->theme."_print.css"))&& ($_GET['mod']== "browse") && ($_GET['op']=="read") && (! empty ($_GET['id']))) echo "theme."/".$gdl_content->theme."_print.css\" type=\"text/css\" media=\"print\"/>\n"; $is_state_offline = $_GET['state']; if($is_state_offline != "offline"){ if (file_exists("gdl.xml")) echo ""; } if(file_exists("./theme/".$gdl_content->theme."/offlinegdl")){ // Current theme support live CD service. echo "\n"; echo "\n"; } // script for style type text/css if ($gdl_content->style <> ""){ echo "\n"; } // script for javascript if (($gdl_content->javascript <> "") or (file_exists("./theme/".$gdl_content->theme."/javascripts.php"))) { echo "\n"; } echo "\n"; echo "\n\n"; include("./theme/".$gdl_content->theme."/theme.php"); echo "\n" .""; ?>