예제 #1
0
파일: admin.php 프로젝트: uplight/gallery
         die('ERROR 1');
     }
     $result = utils()->savePage(REM . $get['url'], file_get_contents('php://input'));
     break;
 case 'get_page':
     if (!isset($get['url'])) {
         die('ERROR 1');
     }
     $result = file_get_contents(REM . $get['url']);
     break;
 case 'users':
     include 'cl/TableEditor.php';
     $ctr = new TableEditor('users');
     $ctr->where = " WHERE role IS NOT 'test'";
     $ctr->defaultVals = array('role' => 'admin');
     $result = $ctr->process($a);
     break;
     // LARGE Classes here
 // LARGE Classes here
 case 'cats':
     include 'cl/Categories.php';
     $ctr = new Categories();
     $result = $ctr->process($a, $post, $get);
     break;
 case 'dests':
     include 'cl/Destinations.php';
     $ctr = new Destinations();
     $result = $ctr->process($a, $post, $get);
     break;
 case 'destination':
     include 'cl/Destinations.php';