public function __construct() { parent::__construct(); $this->addPost('sql', 'post'); $this->addGet('dump', 'getDump'); $this->addPost('import', 'import'); if (empty($_SESSION['cms_sql_session'])) { $_SESSION['cms_sql_session'] = array(); } $this->aSession =& $_SESSION['cms_sql_session']; // Не более десяти запросов if (sizeof($this->aSession) > 30) { array_shift($this->aSession); } // Сохраняем результат if (empty($_SESSION['cms_sql_result'])) { $_SESSION['cms_sql_result'] = array(); } $this->aResult =& $_SESSION['cms_sql_result']; // Сохраняем ошибку if (empty($_SESSION['cms_sql_error'])) { $_SESSION['cms_sql_error'] = array(); } $this->szError =& $_SESSION['cms_sql_error']; }
function __construct(ISblamServices $s) { parent::__construct($s); if (!function_exists('apc_cache_info')) { throw new Exception("APC not installed"); } }
function __construct() { parent::__construct(); $this->setTitle(sprintf(Messages::getString('EnterDataPage.Title'), $this->project->getName())); $this->menu = array(Messages::getString('General.AdminMenu') => "admin.php") + $this->menu; $this->db = Database::getInstance(); }
function __construct() { parent::__construct(); $this->setTitle(sprintf("Enter results for %s:", $this->project->getName())); $this->menu = array("Admin Menu" => "admin.php") + $this->menu; $this->db = Database::getInstance(); }
public function __construct() { parent::__construct(); $this->addGet('id,to', 'move'); $this->addPost('id,to', 'move'); $this->AddGet('id', 'showMove'); }
function __construct() { parent::__construct(); if (isset($_POST['name'])) { $this->error = $this->processForm(); if (!$this->error) { header("Location: " . $this->SUCCESS_REDIRECT_PAGE); //Redirect to admin menu, if succeeded } } else { if (isset($_POST['reset_data'])) { $this->error = $this->processResetForm(); if (!$this->error) { header("Location: " . $this->SUCCESS_REDIRECT_PAGE); //Redirect to admin menu, if succeeded } else { if ($this->error == "project_deleted") { header("Location: " . $this->LOGOUT_REDIRECT_PAGE); //Redirect to admin menu, if succeeded } } } } $this->setTitle(sprintf(Messages::getString('ManageProjectPage.Title'), $this->project->getName())); $this->menu = array(Messages::getString('General.AdminMenu') => "admin.php") + $this->menu; }
public function __construct() { parent::__construct(); $this->addGet('id', 'showAliases'); $this->addPost('id,aliasId,delete', 'delete'); $this->addPost('id,url,submit', 'add'); }
public function __construct() { parent::__construct(); $this->addGet('filter,term', 'searchForJqueryUI'); $this->addPost('filter,term', 'searchForJqueryUI'); $this->addGet('query,start,limit,callback', 'search'); }
public function __construct() { parent::__construct(); $this->addPost('node', 'getData'); $this->addPost('method,path,title', 'call'); $this->addPost('method,path', 'call'); }
function __construct() { parent::__construct('', 'wicketpixie-admin.php', null, array($GLOBALS['site_settings'], $GLOBALS['socnet_settings'], $GLOBALS['misc_settings'])); $this->page_title = 'WicketPixie Admin'; $this->page_name = 'WicketPixie'; $this->page_description = 'WicketPixie requires some configuration before it works properly.'; }
public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array()) { parent::__construct($app, $layout, $arguments); $id = $this->app->initVar('id'); $dimension = $this->app->initVar('dimension', 'small'); $this->photo = $this->getPhoto($id); $this->dimension_shortname = $dimension; }
public function __construct() { parent::__construct(); $this->addGet('id', 'showEditForm'); $this->addPost('sitemapId,submit', 'post'); $this->addPost('sitemapId,fieldName,action', 'ajaxEditColumn'); $this->addPost('sitemapId,fieldnName,action,data', 'ajaxEditColumn'); }
public function __construct() { parent::__construct(); $this->addPost('ssl,server,port,name,password,from_email,from_name', 'post'); $this->title = 'Редактирование данных для аутентификации'; $this->begin = array('Почта' => './index.php', $this->title => '#'); $this->register = new SystemRegister('System/email'); }
public function __construct() { parent::__construct(); $this->addPost('tplFile,content,comment', 'post'); $this->addPost('tplFile,content,comment', 'post'); $this->addPost('tpl', 'create'); $this->addPost('type,path', 'create'); $this->addGet('tplFile', 'show'); }
public function __construct() { parent::__construct(); $this->addGet('json', 'getData'); $this->addPost('json', 'getData'); $this->addPost('node', 'getData'); $this->addPost('name,type,comment,value,parent,create', 'create'); $this->addPost('id,name,comment,value,update', 'update'); $this->addPost('delete', 'delete'); }
public function __construct() { parent::__construct(); $this->addGet('parent,add', 'add'); $this->addGet('parent,page', 'processParent'); $this->addGet('parent', 'processParent'); $this->addGet('page', 'main'); $this->addPost('id,page,move_up', 'orderMoveUp'); $this->addPost('id,page,move_down', 'orderMoveDown'); $this->addPost('id', 'delete'); }
public function __construct() { parent::__construct(); $this->addGet('schema', 'showEditForm'); $this->addPost('schema,tabsheets', 'setupTabsheets'); $this->addPost('schema,name,xtype,title,config', 'addControl'); $this->addPost('schema,name,xtype,title', 'addControl'); $this->addPost('schema,control,delete', 'deleteControls'); $this->addPost('xtype,getAdminForm', 'getAdminForm'); $this->addPost('schema,sitemapLink', 'setupLink'); }
public function __construct($param) { global $_DIR; parent::__construct($param); $this->valid = new Validation(); $function = isset($this->param[2]) ? $this->param[2] : ''; $id = isset($this->param[3]) ? $this->param[3] : ''; switch ($function) { case 'new': $this->tpl->assign('edit', false); $this->tpl->assign('new', true); $this->setIncludeTemplate('admin/admin_newUser.tpl'); break; case 'add': if (!$this->validateFields()) { $this->tpl->assign('edit', true); $this->tpl->assign('new', true); $this->tpl->assign('user', $this->tempUser); $this->setIncludeTemplate('admin/admin_newUser.tpl'); } else { $this->addUser(); header('Location: ' . $_DIR['webRoot'] . '/' . $_DIR['adminPage'] . '/users/'); } break; case 'edit': $this->tpl->assign('edit', true); $this->tpl->assign('new', false); $this->setIncludeTemplate('admin/admin_newUser.tpl'); $this->getUser($id); break; case 'change': if (!$this->validateFields()) { $this->tpl->assign('edit', true); $this->tpl->assign('new', false); $this->tpl->assign('user', $this->tempUser); $this->setIncludeTemplate('admin/admin_newUser.tpl'); } else { $this->editUser($id); header('Location: ' . $_DIR['webRoot'] . '/' . $_DIR['adminPage'] . '/users/'); } break; case 'delete': $this->deleteUser($id); header('Location: ' . $_DIR['webRoot'] . '/' . $_DIR['adminPage'] . '/users/'); break; default: $this->setIncludeTemplate('admin/admin_userPage.tpl'); $this->getUsers(); break; } $this->tpl->assign('error', $this->errorMessage); }
function __construct() { parent::__construct(); $db = Database::getInstance(); $this->pdfTexts = $db->getProjectPdfTexts($this->project->getId()); //Construct access URL: if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") { $this->url = 'https://'; } else { $this->url = 'http://'; } $PHP_SELF = $_SERVER['PHP_SELF']; $this->url .= $_SERVER['HTTP_HOST'] . substr($PHP_SELF, 0, strrpos($PHP_SELF, '/')); }
function __construct($aBegin, $szTitle, $szConfigPath, $aButton = array()) { parent::__construct(); $this->addPost('submit', 'post'); $this->config = new Config(); $this->path = $szConfigPath; $aResultBegin = array(); foreach ($aBegin as $key => $row) { $aResultBegin[_msg($key)] = $row; } $this->aBegin = $aResultBegin; $this->szTitle = _msg($szTitle); $this->aButton = $aButton; }
/** * Constructor Checking which page to show and manage the templates * @param string $param Parameter given with the url */ public function __construct($param) { global $_DIR; parent::__construct($param); $function = isset($this->param[2]) ? $this->param[2] : ''; $id = isset($this->param[3]) ? $this->param[3] : ''; if (isset($_POST['guest_id']) || isset($_POST['title']) || isset($_POST['text'])) { $this->postFields = array('guest_id' => $_POST['guest_id'], 'title' => $_POST['title'], 'content' => $_POST['text']); } switch ($function) { case 'edit': $this->tpl->assign('edit', true); $this->getBlogItem($id); $this->getGuests(); $this->getGuest($this->dbBlog->guest_id); $this->getCategories(); $this->setIncludeTemplate('admin/admin_newBlogItem.tpl'); break; case 'change': $this->editBlogItem($id); header('Location: ' . $_DIR['webRoot'] . '/' . $_DIR['adminPage'] . '/blogs/'); break; case 'ip': $this->banGuest($id, 'ip'); $this->hideBlogByIp($this->dbGuest->ip); header('Location: ' . $_DIR['webRoot'] . '/' . $_DIR['adminPage'] . '/blogs/'); break; case 'guest': $this->banGuest($id, 'guest'); $this->hideBlog($id); header('Location: ' . $_DIR['webRoot'] . '/' . $_DIR['adminPage'] . '/blogs/'); break; case 'delete': $this->deleteBlogItem($id); header('Location: ' . $_DIR['webRoot'] . '/' . $_DIR['adminPage'] . '/blogs/'); break; default: $this->getGuests(); $this->getBlogItems(); $this->setIncludeTemplate('admin/admin_BlogPage.tpl'); break; } }
function __construct() { parent::__construct(); //Construct access URL: if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") { $this->url = 'https://'; } else { $this->url = 'http://'; } $PHP_SELF = $_SERVER['PHP_SELF']; $this->url .= $_SERVER['HTTP_HOST'] . substr($PHP_SELF, 0, strrpos($PHP_SELF, '/')); $this->introduction = $this->project->getIntroduction(); if (isset($_POST['introduction'])) { $this->introduction = stripslashes($_POST['introduction']); } $this->hint = $this->project->getHint(); if (isset($_POST['hint'])) { $this->hint = stripslashes($_POST['hint']); } }
public function __construct() { // $auth = CMSAuth::getInstance(); if (!$auth->isSuperAdmin(UsersLogin::getCurrentSession())) { $this->addError('Access denied'); $this->jump(\Extasy\CMS::getDashboardWWWRoot()); } parent::__construct(); // Вызов формы редактирования $this->addGet('id', 'showEdit'); // Вызов формы добавления $this->addGet('add', 'showAdd'); // Вызов функции редактирования $this->addPost('id,login,password,rights', 'postEdit'); $this->addPost('id,login,password', 'postEdit'); // Вызов функции добавления $this->addPost('login,password,rights', 'postAdd'); $this->addPost('login,password', 'postAdd'); // Удаление $this->addPost('id', 'delete'); }
function __construct() { parent::__construct(); $this->option_list = array('generate_keys.php' => Messages::getString('AdminMenuPage.GenerateNewKeys'), 'enter_data.php' => Messages::getString('AdminMenuPage.EnterResults'), 'manage_project.php' => Messages::getString('ManageProjectPage.ManageProject'), 'logout.php' => Messages::getString('AdminMenuPage.Logout')); $this->setTitle(sprintf(Messages::getString('AdminMenuPage.Title'), $this->project->getName())); }
public function __construct() { parent::__construct(); $this->addPost('document,place', 'add'); $this->addPost('document', 'showPlaces'); }
public function __construct() { parent::__construct(); $this->addPost('name,delete', 'delete'); $this->addPost('name,title', 'create'); }
public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array()) { $layout = new SiteLayout($app, 'Site/layouts/xhtml/json.php'); parent::__construct($app, $layout, $arguments); }
public function __construct($param) { parent::__construct($param); $function = isset($this->param[2]) ? $this->param[2] : ''; $id = isset($this->param[3]) ? $this->param[3] : ''; $this->valid = new Validation(); $this->tpl->assign('pBreak', $this->pBreak); switch ($function) { case 'new': $this->getUsers(); $this->getPageTypes(); $this->getPageParents(); $this->tpl->assign('new', true); $this->tpl->assign('edit', false); $this->tpl->assign('newItem', true); $this->setIncludeTemplate('admin/admin_newPageItem.tpl'); break; case 'add': if (!$this->validateFields()) { $this->getUsers(); $this->getPageTypes(); $this->getPageParents(); $this->tpl->assign('edit', true); $this->tpl->assign('new', true); $this->tpl->assign('pageItem', $this->tempPageItem); $this->setIncludeTemplate('admin/admin_newPageItem.tpl'); } else { $this->addPageItem(); header('Location: http://localhost:8888/admin.php/pages/'); } break; case 'edit': $this->tpl->assign('edit', true); $this->tpl->assign('new', false); $this->getUsers(); $this->getPageTypes(); $this->getPageItem($id); $this->getPageParents(); $this->setIncludeTemplate('admin/admin_newPageItem.tpl'); break; case 'change': if (!$this->validateFields()) { $this->getUsers(); $this->getCategories(); $this->tpl->assign('edit', true); $this->tpl->assign('new', true); $this->tpl->assign('pageItem', $this->tempPageItem); $this->setIncludeTemplate('admin/admin_newPageItem.tpl'); } else { $this->editPageItem($id); header('Location: http://localhost:8888/admin.php/pages/'); } break; case 'delete': $this->deleteNewsItem($id); header('Location: http://localhost:8888/admin.php/pages/'); break; default: $this->getUsers(); $this->getPageItems(); $this->setIncludeTemplate('admin/admin_PagesPage.tpl'); break; } $this->tpl->assign('error', $this->errorMessage); }
function __construct() { parent::__construct('Theme Options', 'theme-options.php', 'wicketpixie-admin.php', array($GLOBALS['theme_options'])); }
function __construct() { parent::__construct(); $this->setTitle(sprintf(Messages::getString('GenerateKeysPage.Title'), $this->project->getName(), $this->project->getId())); $this->menu = array(Messages::getString('General.AdminMenu') => "admin.php") + $this->menu; }