File indexing completed on 2024-12-22 05:33:23
0001 <?php 0002 class UserPanelController extends EController { 0003 0004 public function index ($args) { 0005 $dat2 = new RetrieveModel(); 0006 if (isset($_COOKIE["login"])) { 0007 EStructure::view("user_control_panel", $dat2->getSelfInfo(), $dat2->getUserData(1), $dat2->getCategories()); 0008 } 0009 else {echo "ERROR: You're not logged in";} 0010 } 0011 0012 public function upload() { 0013 $dat = new UserpanelModel(); 0014 $dat->upload(); 0015 } 0016 0017 public function edit($args) { 0018 $dat = new UserpanelModel(); 0019 $dat->edit($args[0]); 0020 } 0021 public function page ($args) { 0022 $dat2 = new RetrieveModel(); 0023 $pag = new RetrieveModel(); 0024 EStructure::view("user_control_panel", $dat2->getSelfInfo(), $dat2->getUserData($args[0]), $dat2->getCategories()); 0025 } 0026 } 0027 0028 ?>