PHP Classes

File: admin/quixplorer/_include/js_admin.php

Recommend this page to a friend!
  Classes of Joko Prasetyo   miwo WordPress FTP Plugin   admin/quixplorer/_include/js_admin.php   Download  
File: admin/quixplorer/_include/js_admin.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: miwo WordPress FTP Plugin
WordPress plugin to upload and manage files
Author: By
Last change:
Date: 1 year ago
Size: 1,173 bytes
 

Contents

Class file image Download
<?php
/*
* @package MiwoFTP
* @copyright Copyright (C) 2009-2014 Miwisoft, LLC. All rights reserved.
* @license GNU General Public License version 2 or later
*
*/

// no direct access
defined('ABSPATH') or die('MIWI');
?>

<script language="JavaScript1.2" type="text/javascript">
<!--
    function check_pwd() {
        if(document.chpwd.newpwd1.value!=document.chpwd.newpwd2.value) {
            alert("<?php echo $GLOBALS["error_msg"]["miscnopassmatch"]; ?>");
            return false;
        }
        if(document.chpwd.oldpwd.value==document.chpwd.newpwd1.value) {
            alert("<?php echo $GLOBALS["error_msg"]["miscnopassdiff"]; ?>");
            return false;
        }
        return true;
    }
   
   
    // Edit / Delete
   
    function Edit() {
        document.userform.action2.value = "edituser";
        document.userform.submit();
    }
   
    function Delete() {
        var ml = document.userform;
        var len = ml.elements.length;
        var user;
        for (var i=0; i<len; ++i) {
            var e = ml.elements[i];
            if(e.name == "user" && e.checked) {
                user=e.value;
                break;
            }
        }
       
        if(confirm("<?php echo $GLOBALS["error_msg"]["miscdeluser"]; ?>")) {
            document.userform.action2.value = "rmuser";
            document.userform.submit();
        }
    }

// -->
</script>