Example #1
0
 case 'showerrors':
     if (isAdmin($_SESSION['userid'])) {
         $_SESSION['showerrors'] = true;
     }
     break;
 case 'hideerrors':
     $_SESSION['showerrors'] = false;
     break;
 case 'help':
     show_page('help');
     break;
 case 'error':
     showError();
     break;
 case 'templates':
     Template::show_templates(0, $index_page[1], 0);
     break;
 case 'index':
     show_page('index');
     break;
 case 'privacy':
     show_page('privacy');
     break;
 case 'terms':
     show_page('terms');
     break;
 case 'user':
     if ($index_page[1] == 'register') {
         if (isset($_POST['account_active'])) {
             if (!$_POST['account_active'] != 0) {
                 //0 = Demo account