<?php session_start(); if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);} include_once('ressources/class.templates.inc'); include_once('ressources/class.xapian.inc'); include_once('ressources/class.samba.inc'); include_once('ressources/class.crypt.php'); if(isset($_GET["xapian-file"])){dowloadfile();exit;} if(isset($_GET["logon-js"])){login_js();exit;} if(isset($_GET["login-popup"])){login_popup();exit;} if(isset($_POST["username"])){login_validate();exit;} if(isset($_GET["loggoff-js"])){logoff_js();exit;} if(isset($_REQUEST["xapsearch"])){xapsearch();exit;} if(isset($_GET["css"])){css();exit;} page(); function login_js(){ $tpl=new templates(); $page=CurrentPageName(); $login=$tpl->_ENGINE_parse_body("{login}"); $html="YahooWin('550','$page?login-popup=yes','$login')"; echo $html; }
<?php session_start(); if (isset($_GET["verbose"])) { $GLOBALS["VERBOSE"] = true; ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); ini_set('error_prepend_string', null); ini_set('error_append_string', null); } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.xapian.inc'; include_once 'ressources/class.samba.inc'; include_once 'ressources/class.crypt.php'; if (isset($_GET["xapian-file"])) { dowloadfile(); exit; } if (isset($_GET["logon-js"])) { login_js(); exit; } if (isset($_GET["login-popup"])) { login_popup(); exit; } if (isset($_POST["username"])) { login_validate(); exit; } if (isset($_GET["loggoff-js"])) {