private function sendMessage($login) { startCore::setCSS('sendMessage.css'); startCore::setJS('sendMessage.js'); if ($this->getServerRequestMethod() === 'POST' and $this->getType() === 'sendMessage') { if (!$this->checkCaptcha()) { return false; } $this->messager = new mail($login, filter_input(INPUT_POST, 'body'), filter_input(INPUT_POST, 'subject'), filter_input(INPUT_POST, 'mail')); $this->messager->sendMessage(); } }
private function setJSCss() { $playerInfo = $this->getUserBusyInfo(); if ($playerInfo['roomStatus'] === 'creating') { startCore::setCSS('ticTacToeCreatingRoom.css'); //устанавливаем путь к css файлу } if ($playerInfo['roomStatus'] === 'created') { startCore::setCSS('ticTacToeAddPlayers.css'); } if ($playerInfo['roomStatus'] !== 'start' and $playerInfo['roomStatus'] !== 'end') { startCore::setCSS('ticTacToeViewRooms.css'); startCore::setJS('viewRooms.js'); } else { startCore::setCSS('ticTacToePlayGame.css'); startCore::setJS('ticTacToePlayGame.js'); } }
?> </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="<?php echo startCore::$objects['pageParams']['description']; ?> "> <meta name="Keywords" content="<?php echo startCore::$objects['pageParams']['keywords']; ?> "> <?php echo startCore::getCSS(); ?> <?php echo startCore::getJS(); ?> </head> <body> <?php $errorHandler->setGlobalVariables(); //echo $errorHandler->getGlobalVariables(); if (startCore::$authorization->userID and startCore::$authorization->getAccessLvl() !== 'manager') { $user = startCore::$authorization->userData; $userStat = isset($user['statistics']['entire']) ? $user['statistics']['entire'] : null; ?> <div class="mainWrapper"> <div class="leftContainer"> <div class="autorizationPanel"> <div class="title">Добро пожаловать</div>
protected function setPageParams($path) { $pageParams = $this->getData()->getPages($path); startCore::setObject('pageParams', $pageParams); }