Ejemplo n.º 1
0
 }
 // creating template
 if (wf_CheckPost(array('newtemplatename', 'newtemplatebody'))) {
     zb_PhpConsoleCreateTemplate($_POST['newtemplatename'], $_POST['newtemplatebody']);
     log_register("DEVCONSOLE TEMPLATE CREATE");
     rcms_redirect("?module=sqlconsole&devconsole=true");
 }
 // deleting template
 if (wf_CheckGet(array('deltemplate'))) {
     zb_StorageDelete($_GET['deltemplate']);
     log_register("DEVCONSOLE TEMPLATE DELETE");
     rcms_redirect("?module=sqlconsole&devconsole=true");
 }
 // editing template
 if (wf_CheckPost(array('edittemplatename', 'edittemplatebody'))) {
     zb_StorageDelete($_GET['edittemplate']);
     zb_PhpConsoleCreateTemplate($_POST['edittemplatename'], $_POST['edittemplatebody']);
     log_register("DEVCONSOLE TEMPLATE EDIT");
     rcms_redirect("?module=sqlconsole&devconsole=true");
 }
 //construct query forms
 $sqlinputs = wf_Link("?module=sqlconsole", 'SQL Console', false, 'ubButton');
 $sqlinputs .= wf_Link("?module=sqlconsole&devconsole=true", 'PHP Console', false, 'ubButton');
 if (cfr('ROOT')) {
     $sqlinputs .= wf_Link("?module=migration", __('Migration'), false, 'ubButton');
     $sqlinputs .= wf_Link("?module=migration2", __('Migration') . ' 2', false, 'ubButton');
     if (cfr('MIKMIGR')) {
         $sqlinputs .= wf_Link("?module=mikbill_migration", __('Migration') . ' mikbill', true, 'ubButton');
     }
 }
 if (wf_CheckPost(array('sqlq'))) {
Ejemplo n.º 2
0
         }
     }
 } else {
     //display all of available fdb tables
     $fdbData_raw = rcms_scandir('./exports/', '*_fdb');
     if (!empty($fdbData_raw)) {
         //// mac filters setup
         if (wf_CheckPost(array('setmacfilters'))) {
             //setting new MAC filters
             if (!empty($_POST['newmacfilters'])) {
                 $newFilters = base64_encode($_POST['newmacfilters']);
                 zb_StorageSet('FDBCACHEMACFILTERS', $newFilters);
             }
             //deleting old filters
             if (isset($_POST['deletemacfilters'])) {
                 zb_StorageDelete('FDBCACHEMACFILTERS');
             }
         }
         //log download
         if (wf_CheckGet(array('dlswpolllog'))) {
             zb_FDBTableLogDownload();
         }
         //push ajax data
         if (wf_CheckGet(array('ajax'))) {
             if (wf_CheckGet(array('swfilter'))) {
                 $fdbData_raw = array($_GET['swfilter'] . '_fdb');
             }
             if (wf_CheckGet(array('macfilter'))) {
                 $macFilter = $_GET['macfilter'];
             } else {
                 $macFilter = '';