* @copyright 2009 * @package appl */ //------------------------------------------------------------------------------ //-- Some require require_once 'classes/gsite_object.php'; //============================================================================== /** * */ //============================================================================== function putFrame ($db, $link, $DOCrow, $PAGEresult, $CURRENTPAGErow, $innerTableWidth, $innerTableSpacing) { return searchLemmaClass::run (); } //============================================================================== /** * */ //============================================================================== function putFooter () { return searchLemmaClass::footer (); } class searchLemmaClass extends gsiteClass { /** * Attribute Project arguments */ var $prjArgs_ = array (); //============================================================================ /** * OVERLOAD of factory */ //============================================================================ function factory ($args = null) { static $S_instance = null; if ($S_instance == null) { $S_instance = new searchLemmaClass ($args); } return $S_instance; } function selfURL() { $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $force_https = (isset ($GS_ARGUMENTS['force_https']) ? $GS_ARGUMENTS['force_https'] == 'true' : false); $s = ($force_https) ? "s" : $s; $protocol = $this->strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); } function getFilenamePhp( $url ){ return substr(strrchr( $url , "/"), 1); } //============================================================================ /** * OVERLOAD of run */ //============================================================================ function run ($args = null) { //-------------------------------------------------------------------------- // Get object. $object = searchLemmaClass::factory ($args); if (! $object->manageAuth ($loginForm)) { return $loginForm; } //-------------------------------------------------------------------------- // Manage worlds. return $object->manageMain (); } //============================================================================ /** * Constructor */ //============================================================================ function searchLemmaClass ($args = null) { //-------------------------------------------------------------------------- // Call parent constructor. parent::gsiteClass ($args); global $GS_ARGUMENTS, $GS_GLOBAL,$GS_PROJECT_ARGUMENTS; //-------------------------------------------------------------------------- // Arguments. if (empty ($args)) $args = $GS_ARGUMENTS; $this->prjArgs_ = $GS_PROJECT_ARGUMENTS; } //============================================================================ /** * Manage auth by calling overloadable function manageAuth of util object. * * This method returns true if an user is logged. Otherwise, it returns false * and dump a login form into variable $outputText. *
* If an user is logged, some informations about him are stored, by calling * parent method. * * @param object $loginObj object used for login * @param string $outputText login form, if needed (OUT VALUE) * @return string */ //============================================================================ function manageAuthWithObject (&$loginObj, &$outputText) { if (! gs_manageAuthWithObject ($this->db_, $this->link_, $loginObj, $outputText)) { return false; } return gsiteClass::manageAuth ($outputText); } //============================================================================ /** * Manage auth by calling overloadable function manageAuth of util object. * * This method returns true if an user is logged. Otherwise, it returns false * and dump a login form into variable $outputText. *
* If an user is logged, some informations about him are stored, by calling * parent method.
* This method build a standard login object. * * @param string $outputText login form, if needed (OUT VALUE) * @return string */ //============================================================================ function manageAuth (&$outputText) { require_once 'classes/auth_object_login.php'; $loginObj = new authLoginClass (); return $this->manageAuthWithObject ($loginObj, $outputText); } //============================================================================ /** * Main */ //============================================================================ function manageMain () { global $GS_ARGUMENTS; //-- init $returnTxt = ''; //-------------------------------------------------------------------------- // Labels $title = $this->label ('title'); $fullscreen = $this->label ('fullscreen'); // Variables $width = isset( $GS_ARGUMENTS['width'] )? $GS_ARGUMENTS['width'] : "600px"; $height = isset( $GS_ARGUMENTS['height']) ? $GS_ARGUMENTS['height'] : "600px"; $flashVars = isset( $GS_ARGUMENTS['flashVars']) ? $GS_ARGUMENTS['flashVars'] : ""; $moduleFolder = isset( $GS_ARGUMENTS['moduleFolder']) ? $GS_ARGUMENTS['moduleFolder'] : ""; $swf = $GS_ARGUMENTS['swf']; $rootModuleFolder = "modules/client/flex/" . $moduleFolder . "/" ; $returnTxt = ""; /* $returnTxt .= "\n".''. "\n".''. ''. $fullscreen .''. "\n"."". "\n".''. "\n".'';*/ if ( $flashVars != "" ){ $flashVars = $flashVars . "&" ; } $pathInfo = $this->selfURL(); $pathInfo = substr( $pathInfo , 0 , strlen($pathInfo) - strlen( $this->getFilenamePhp( $pathInfo ) )); // rootURL=modules/client/flex/CartographieDocument/ & serveurURL=http://localhost/khub/html/ & pageURL=document.php?pagendx=59 $flashVars = $flashVars . "rootURL=" . $rootModuleFolder . "&serveurURL=" . $pathInfo . "&pageURL=" . $this->getFilenamePhp( $this->selfURL() ) ; $returnTxt .= "\n".''. "\n".''. "\n"."". "\n"."". "\n"."". "\n"."". "\n"."". "\n"."". "\n".''. "\n"."". "\n".''; $returnTxt .= "\n".''. "\n".' '. "\n".''; $returnTxt .= "\n".''. "\n".' '. "\n".''; return $returnTxt; } //============================================================================ /** * footer */ //============================================================================ function footer () { global $AUTH_GLOBAL; global $GS_GLOBAL; global $GS_ARGUMENTS; //---------------------------------------------------------------------------- // We have a page ? if (! isset ($GS_GLOBAL['current_page_row'])) return ''; //---------------------------------------------------------------------------- // Build a txt object. $object = new gsiteClass (); //-- Update auth. $object->application_ = 'flex'; gs_manageAuth ($object->db_, $object->link_, $notused); $object->manageAuth ($notused); return gs_manageAuthFooter (); } } //------------------------------------------------------------------------------ // $Log: flex,v $ // // //-- End of source ------------------------------------------------------------ ?>
[warning] Cannot modify header information - headers already sent by (output started at /itm/ope1/appli/n1/neu/data/html/modules/client/flex/flex.php:1)
/itm/ope1/appli/n1/neu/data/html/php/common.php:4578
[warning] Cannot modify header information - headers already sent by (output started at /itm/ope1/appli/n1/neu/data/html/modules/client/flex/flex.php:1)
/itm/ope1/appli/n1/neu/data/html/php/session.php:109
[warning] Cannot modify header information - headers already sent by (output started at /itm/ope1/appli/n1/neu/data/html/modules/client/flex/flex.php:1)
/itm/ope1/appli/n1/neu/data/html/php/common.php:3808
[warning] Cannot modify header information - headers already sent by (output started at /itm/ope1/appli/n1/neu/data/html/modules/client/flex/flex.php:1)
/itm/ope1/appli/n1/neu/data/html/php/common.php:3809
[warning] Cannot modify header information - headers already sent by (output started at /itm/ope1/appli/n1/neu/data/html/modules/client/flex/flex.php:1)
/itm/ope1/appli/n1/neu/data/html/php/common.php:3810
[warning] Cannot modify header information - headers already sent by (output started at /itm/ope1/appli/n1/neu/data/html/modules/client/flex/flex.php:1)
/itm/ope1/appli/n1/neu/data/html/php/common.php:1728
Géolocalisation des personnes présentes dans l'annuaire de l'ITMO - itneuro
République Française Inserm
Institut thématique Neurosciences, sciences cognitives, neurologie, psychiatrie