eXtplorer - a PHP-based File Manager: Henrique Ribeirohttp://extplorer.net/http://extplorer.net/favicon.ico?16960560042013-09-30T18:14:23ZeXtplorer - a PHP-based File Manager
Redmine eXtplorer - PHP-based File Manager - Help: Using eXtplorer with Wordpress.http://extplorer.net/boards/1/topics/592013-09-30T18:14:23ZHenrique Ribeirohenrique@ribeirotecnologia.com.br
<p>Hi, I'm using eXtplorer with a wordpress page, just adding some lines in includes/init.php file.</p>
<p>Look:<br />I was putted the extplorer folder inside my website, accessing in mydomain.com/extplorer, but just will to work if I am logged in normal site.</p>
<p>I have a AWS Server in Amazon, and work perfectlly, but in my official website in other server, don't.</p>
<p>The file init.php was editted with the lines bellow Joomla check.</p>
<p>// Don't edit this lines...<br /> if ( !ext_isjoomla() ) {<br /> // login to use eXtplorer: (true/false)<br /> $GLOBALS["require_login"] = true;<br /> } else {<br /> $GLOBALS["require_login"] = false;<br /> }<br />// Don't edit this lines...</p>
<p>//Integration with wordpress<br /> error_reporting(E_ALL);<br /> $GLOBALS["require_login"] = true;<br /> include('../wp-load.php');<br /> include('../wp-blog-header.php');<br /> if(is_user_logged_in()) {<br /> $user_info = get_userdata(get_current_user_id());<br /> if ( $user_info->user_level <= 1 ) die("<b>Voce precisa de mais poder, volte ao treinamento!</b>");<br /> $GLOBALS["require_login"] = false;<br /> }else{ die("<b>Voce precisa de mais poder, volte ao treinamento!</b>"); }<br />// End of integration with wordpress</p>