Ejemplo n.º 1
0
 function initTabbar($def)
 {
     $tab = array("Main", "Previous");
     if (osIsAdmin()) {
         $tab[] = "CPanel";
     }
     $user = osBackUser();
     if ($user['UID'] != -1) {
         $tab[] = "MyAcc";
     }
     $tab[] = "How";
     $this->tabbar->bookContent($tab);
     $this->tabbar->bookSelected($def);
 }
Ejemplo n.º 2
0
 function backAll()
 {
     $users = array();
     if (!osIsAdmin()) {
         return $users;
     }
     query("SELECT * FROM user_info WHERE role='user'");
     while ($row = fetch()) {
         unset($row['password']);
         unset($row['verificationCode']);
         $users[] = $row;
     }
     return $users;
 }
Ejemplo n.º 3
0
 function frmUsers()
 {
     if (!osIsAdmin()) {
         return '<font style="background-color:#000000;color:#00FF00;">. Admin Access Only! .</font>';
     }
     if (count($this->users) < 1) {
         $this->init();
     }
     $html = "<table>";
     foreach ($this->users as $uv) {
         $html .= "<tr>";
         $html .= $uv->_backframe();
         $html .= "</tr>";
     }
     $html .= "</table>";
     return $html;
 }
Ejemplo n.º 4
0
 function frmList()
 {
     if (!osIsAdmin()) {
         return '<font style="background-color:#000000;color:#00FF00;">. Admin Access Only! .</font>';
     }
     $html = "";
     foreach ($this->links as $l) {
         $html .= $l->_backframe();
     }
     return $html;
 }