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();
 }
Example #2
0
 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"));
 }
Example #3
0
$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();
 }
Example #5
0
$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:
Example #6
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());
 }
Example #7
0
 function GPage()
 {
     parent::defaultpage();
     $this->viewFile = 'index.phtml';
     $this->layoutViewFile = NULL;
 }
Example #8
0
 function GPage()
 {
     parent::defaultpage();
     $this->viewFile = 'training.phtml';
 }
Example #9
0
 function GPage()
 {
     parent::defaultpage();
     $this->viewFile = 'manual.phtml';
 }