CoolFace
Apppublic

kenken999/php

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
expiredpage.php69 linesDownload Raw Back to classes
1<?php2/**3 * Class for session expired page4 */5class SessionExpiredPage extends RunnerPage {6	7	public $sessionControl;8	9	10	/**11	 * @constructor12	 */13	function __construct( &$params ) {14		parent::__construct( $params );15 16 17		//$this->headerForms = array( "supertop" );18		//$this->footerForms = array( "footer" );19		$this->bodyForms = array( "above-grid", "grid" );20	}21 22	23	/**24	 *25	 */26	public function process() {27		$this->addCommonJs();28		$this->addButtonHandlers();29 30		$this->fillSetCntrlMaps();31		$this->doCommonAssignments();32 33		$this->showPage();34	}35 36	/**37	 *38	 */39	public function doCommonAssignments() {40		$this->setLangParams();41	}42 43	/**44	 * Show the page45	 */46	public function showPage() {47		if( $this->mode == LOGIN_POPUP ) {48			$this->displayAJAX( $this->templatefile, $this->id + 1 );49			exit();50		}51 52		$this->assignBody();53		$this->display( $this->templatefile );54	}55 56 57	/**58	 * @return Number59	 */60	public static function readExpiredModeFromRequest() {61		$pageMode = postvalue("mode");62 63		if( postvalue("mode") == "popup" )64			return SESSION_EXPIRED_POPUP;65 66		return SESSION_EXPIRED_SIMPLE;67	}	68}69?>