[Module] ELFileManager (build on elfinder)
#16
RE: [Module] ELFileManager (build on elfinder)
(10-24-2015, 04:34 AM)Hi i have install but i am not able to unzip my files getting this errorUnable to extract files from "zadmin/public_html/innovlearn_com/wordpress.zip".For security reason denied to unpack archives contains symlinks or files with not allowed names. TGates Wrote: Here ya go @[Diablo925], iframe version:

module.zpm:

PHP Code:
<@ Init @>
<
div class="zmodule_content panel" id="zmodule_header_<@ ModuleName @>">
    <div class="panel-heading">
        <img src="<@ ModuleIcon @>" width="35" height="35" border="0" alt="<@ ModuleName @>">

        <div class="zmodule_title">
            <@ ModuleName @>
        </div>

        <div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ ModuleDesc @></div>
        
    
</div>
    
    
<form name="FileManager" action="modules/ELFileManager/app/elfinder.php?id=<@ UserID @>" target="FileManager" method="post" onsubmit="var w=window.open('', 'FileManager', 'scrollbars=no,menubar=no,height=600,width=1024,resizable=no,toolbar=no,location=no,status=no'); w.focus();">
            <table class="table table-striped">
                <tr>
                    <th nowrap="nowrap"><button class="btn btn-primary" type="submit" name="inOpen" value="<@ UseriD @>"><: Launch In New Window :></button></th>
                </tr>
            </table>
        </form>
<!-- 
iframe by TGates -->
<
iframe src="modules/ELFileManager/app/elfinder.php?id=<@ UserID @>" scrolling="no" width="100%" height="200px" id="iframe1" marginheight="0" frameborder="0" onLoad="autoResize('iframe1');"></iframe>
</
div

Controller.ext.php:

PHP Code:
<?php

class module_controller extends ctrl_module
{
 
   /* Load JS */
 
   static function getInit() {
 
       global $controller;
 
       $line '';
 
       $line .= '<!-- iframe by TGates -->
            <script language="JavaScript">
            <!--
            function autoResize(id){
                var newheight;
                var newwidth;

                if(document.getElementById){
                    newheight = document.getElementById(id).contentWindow.document .body.scrollHeight;
                    newwidth = document.getElementById(id).contentWindow.document .body.scrollWidth;
                }

                document.getElementById(id).height = (newheight) + "px";
                document.getElementById(id).width = (newwidth) + "px";
            }
            //-->
            </script>'

 
       return $line;
 
   }

    static function 
getUserID() 
 
      
 
             global $controller
            
$currentuser ctrl_users::GetUserDetail(); 
            
$userid $currentuser['userid']; 
            return 
$userid
    }

}
?>

And in elfinder.php change line 48 to:
PHP Code:
width 950
Reply


Messages In This Thread
RE: [Module] ELFileManager (build on elfinder) - by ashokbhamla - 11-02-2015, 02:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
[MODULE] phpMyAdmin-AU (Auto-Update) TGates 14 51 ,210 06-15-2021, 06:54 AM
Last Post: TGates
[MODULE] SenBrand - Basic Branding module for Sentora TGates 20 58 ,476 06-04-2021, 11:47 AM
Last Post: ccr1969
[MODULE] CoinCorner BitCoin Module Xversion 4 16 ,836 06-03-2021, 05:02 AM
Last Post: zHostingSolutions

Forum Jump:


Users browsing this thread: 1 Guest(s)