public static function ContactUsPage($page_elements) { if (isset($_GET['print'])) { $page = new PrintedPage($page_elements, 'Contact Us'); } else { $page = new DefaultPage($page_elements, 'Contact Us'); } $page->build(); return $page->theme(); }
public function __construct() { parent::__construct(); //reset de valores para páginas especĂficas //$this->http_header->setTitle(Translation::text("title aqui")); //$this->http_header->setDescription(Translation::text("description")); //$this->http_header->getKeywords(Translation::text("keyword")); }
$time = TIME_NOW; $errors = null; if (is_dir(MYBB_ROOT . "install") && !file_exists(MYBB_ROOT . "install/lock")) { $mybb->trigger_generic_error("install_directory"); } $ip_address = get_ip(); unset($user); // Load Admin CP style if (!isset($cp_style)) { if (!empty($mybb->settings['cpstyle']) && file_exists(MYBB_ADMIN_DIR . "/styles/" . $mybb->settings['cpstyle'] . "/main.css")) { $cp_style = $mybb->settings['cpstyle']; } else { $cp_style = "default"; } } $default_page = new DefaultPage(); $logged_out = false; $fail_check = 0; $post_verify = true; foreach (array('action', 'do', 'module') as $input) { if (!isset($mybb->input[$input])) { $mybb->input[$input] = ''; } } if ($mybb->input['action'] == "unlock") { $user = array(); $error = ''; if ($mybb->input['username']) { $user = get_user_by_username($mybb->input['username'], array('fields' => '*')); if (!$user['uid']) { $error = $lang->error_invalid_username;
public function __construct() { parent::__construct(); }
$time = TIME_NOW; $errors = null; if (is_dir(MYBB_ROOT . "install") && !file_exists(MYBB_ROOT . "install/lock")) { $mybb->trigger_generic_error("install_directory"); } $ip_address = get_ip(); unset($user); // Load Admin CP style if (!isset($cp_style)) { if (!empty($mybb->settings['cpstyle']) && file_exists(MYBB_ADMIN_DIR . "/styles/" . $mybb->settings['cpstyle'] . "/main.css")) { $cp_style = $mybb->settings['cpstyle']; } else { $cp_style = "default"; } } $default_page = new DefaultPage(); $logged_out = false; $fail_check = 0; $post_verify = true; foreach (array('action', 'do', 'module') as $input) { if (!isset($mybb->input[$input])) { $mybb->input[$input] = ''; } } if ($mybb->input['action'] == "unlock") { $user = array(); $error = ''; if ($mybb->input['username']) { $username = $db->escape_string(my_strtolower($mybb->input['username'])); switch ($mybb->settings['username_method']) { case 0:
public function testLoopsGetPagePathInvalidPage() { $app = new WebApplication(__DIR__ . "/app", "/", "GET", [], [], [], [], [], FALSE); $loops = $app->getLoops(); $page = new DefaultPage(); $element = new DefaultElement(); $page->offsetSet("test", $element); $this->assertFalse($element->getPagePath()); }
function GPage() { parent::defaultpage(); $this->viewFile = 'index.phtml'; $this->layoutViewFile = NULL; }
function GPage() { parent::defaultpage(); $this->viewFile = 'training.phtml'; }
function GPage() { parent::defaultpage(); $this->viewFile = 'manual.phtml'; }