Example #1
0
             include 'auth.php';
             break;
         default:
             include 'login.php';
     }
     break;
 case 'recover':
     include 'recover.php';
     break;
 case 'photo':
     require_once 'init.php';
     $f = basename($subcommand);
     $f = explode('_', $f);
     $id = array_shift($f);
     $id = intval($id);
     User::OutputPhoto($id, isset($_GET['32']));
     break;
 case 'view':
     include 'preview.php';
     break;
 case 'get':
     require_once 'init.php';
     $coreDir = Config::get('core_dir');
     if (!empty($_REQUEST['export'])) {
         $p = Util\jsonDecode($_REQUEST['export']);
         $export = new \Export\Instance();
         $export->getHTML($p);
     } elseif (is_file($coreDir . DIRECTORY_SEPARATOR . 'get.php')) {
         include $coreDir . DIRECTORY_SEPARATOR . 'get.php';
     } else {
     }