Example #1
0
     $b = new backup();
     $page = $b->configure();
     break;
 case "monitor":
     $b = new backup();
     $b->dbconnect($GonxAdmin["dbhost"], $GonxAdmin["dbuser"], $GonxAdmin["dbpass"], $GonxAdmin["dbname"]);
     $page = $b->monitor();
     break;
 case "saveconfig":
     $b = new backup();
     $b->saveconfig();
     $page = $b->configure();
     break;
 case "getbackup":
     $b = new backup();
     $b->getbackup($bfile);
     break;
 default:
     $page = $GONX['homepage'];
     $db = new db();
     $db->dbconnect($GonxAdmin["dbhost"], $GonxAdmin["dbuser"], $GonxAdmin["dbpass"], $GonxAdmin["dbname"]);
     $page .= $db->signature();
     $table = "<br/><br/><table width=\"100%\" border=\"1\" style=\"border-collapse: collapse\" bordercolor=#CCCCCC>\n\t<tr><td align=\"center\"><b>" . $GONX["compression"] . "</b></td></tr>\n\r";
     foreach ($GonxAdmin["compression"] as $v) {
         $isdef = get_extension_funcs($v);
         if ($isdef) {
             $table .= "\t<tr><td align=\"center\"><font color=green>{$v} " . $GONX["installed"] . "</font></td></tr>\n\r";
         } else {
             $table .= "\t<tr><td align=\"center\"><font color=red>{$v} " . $GONX["notinstalled"] . "</font></td></tr>\n\r";
         }
     }