403Webshell
Server IP : 103.75.185.95  /  Your IP : 216.73.217.162
Web Server : nginx/1.30.0
System : Linux cs-linux-20260509085757017 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : cuuhootoxema ( 1215)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/fastpanel2-phppgadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/fastpanel2-phppgadmin/indexes.js
    // Globals
    //


    /*
     * Multiple Selection lists in HTML Document
     */
    var tableColumnList;
    var indexColumnList;

    /*
     * Two Array vars
     */

    var indexColumns, tableColumns;


    function buttonPressed(object) {

             if (object.name == "add") {
                 from = tableColumnList;
                 to = indexColumnList;
             }
             else {
                 to = tableColumnList;
                 from = indexColumnList;
             }

             var selectedOptions = getSelectedOptions(from);

             for (i = 0; i < selectedOptions.length; i++) {
                  option = new Option(selectedOptions[i].text);
                  addToArray(to, option);
                  removeFromArray(from, selectedOptions[i].index);
             }
    }

    function doSelectAll() {
      for(var x = 0; x < indexColumnList.options.length; x++){
         indexColumnList.options[x].selected = true;
      }
    }

    function init() {
             tableColumnList = document.formIndex.TableColumnList;
             indexColumnList = document.getElementById("IndexColumnList");
             indexColumns = indexColumnList.options;
             tableColumns = tableColumnList.options;
    }


    function getSelectedOptions(obj) {
             var selectedOptions = new Array();

             for (i = 0; i < obj.options.length; i++) {
                  if (obj.options[i].selected) {
                      selectedOptions.push(obj.options[i]);
                  }
             }

             return selectedOptions;
    }

    function removeFromArray(obj, index) {
             obj.remove(index);
    }

    function addToArray(obj, item) {
             obj.options[obj.options.length] = item;
    }

Youez - 2016 - github.com/yon3zu
LinuXploit