Esempio n. 1
0
 }
 switch ($_POST['as']) {
     case 0:
         switch ($_POST['as_sql']) {
             case 0:
                 sqlh();
                 sql();
                 break;
             case 1:
                 sqlh();
                 sql();
                 sql1();
                 break;
             case 2:
                 sqlh();
                 sql1();
                 break;
         }
         if ($_POST['save'] == 1) {
             switch ($_POST['compr']) {
                 case 0:
                     $n = '.txt';
                     fclose($fp);
                     break;
                 case 1:
                     $n = '.gz';
                     gzclose($fp);
                     break;
                 case 2:
                     $n = '.bz2';
                     bzclose($fp);
Esempio n. 2
0
                     sql($table_sel);
                     sql1($table_sel);
                 }
             } else {
                 sql($_POST['table_sel']);
                 sql1($_POST['table_sel']);
             }
             break;
         case 2:
             if ($dbtr == 1) {
                 $it = 0;
                 while ($table_sel = @mysql_tablename(mysql_list_tables($_POST['db']), $it++)) {
                     sql1($table_sel);
                 }
             } else {
                 sql1($_POST['table_sel']);
             }
             break;
     }
     if ($_POST['save'] > 0) {
         if (isset($fp)) {
             eval($far[$_POST['compr']] . "close(\$fp);");
             $_POST['save'] == 1 ? head($tmpfname, ($dbtr == 1 ? $_POST['db'] : $_POST['table_sel']) . $far[$_POST['compr'] + 3]) : ($message = '<center><b>' . $_POST['local'] . ' Saved</b><center>');
         } else {
             $message = '<center><b>No writeable select Dir</b><center>';
         }
     }
     break;
 case 1:
     //-----------------------------------
     if ($dbtr == 1) {