Current File : //etc/zpanel/panel/etc/apps/filemanager/include/header.php
<?php
// ensure this file is being included by a parent file
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
/**
 * @version $Id: header.php 231 2013-09-04 18:12:47Z soeren $
 * @package eXtplorer
 * @copyright soeren 2007-2012
 * @author The eXtplorer project (http://extplorer.net)
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
 * 
 * @license
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 * 
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 * 
 * Alternatively, the contents of this file may be used under the terms
 * of the GNU General Public License Version 2 or later (the "GPL"), in
 * which case the provisions of the GPL are applicable instead of
 * those above. If you wish to allow use of your version of this file only
 * under the terms of the GPL and not to allow others to use
 * your version of this file under the MPL, indicate your decision by
 * deleting  the provisions above and replace  them with the notice and
 * other provisions required by the GPL.  If you do not delete
 * the provisions above, a recipient may use your version of this file
 * under either the MPL or the GPL."
 * 
 * This is the file, which prints the header row with the Logo
 */
function show_header($dirlinks='') {
	$url = htmlentities(str_replace( array('&dir=', '&action=', '&file_mode='), 
						array('&a=','&b=','&c='), 
						$_SERVER['REQUEST_URI'] ), ENT_QUOTES );
	$urlArr = parse_url( $url );
	$url_appendix = '';
	if( !empty( $urlArr['query'])) {
		$queryParts = explode('&', $urlArr['query']);
		$params = array(); 
	    foreach ($queryParts as $param) { 
	        $item = explode('=', $param); 
	        $params[urlencode(urldecode($item[0]))] = urlencode(urldecode($item[1])); 
	    }
	    $query = '';
	    foreach( $params as $key => $val ) {
	    	$query .= $key .'='. $val.'&amp;';
	    }
	    $url = $urlArr['path'].'?'.$query;
	} else {
		$url_appendix = '?';
	}
	
	echo "<link rel=\"stylesheet\" href=\""._EXT_URL."/style/style.css\" type=\"text/css\" />\n";
	//echo "<div id=\"ext_header\" >";
	echo "<div id=\"ext_header\" style=\"min-height: 40px;\">";
	//echo "<img src=\""._EXT_URL."/images/logo.jpg\" alt=\"Filemanager Logo\" border=\"0\" />";
	//echo "<div style=\"width:100%;min-height: 65px;background-color:#162636;padding:8px 0px 10px 0px;\" >\n";
		//echo "<div style=\"width:180px; min-height:10px; margin-top:5px; margin-left:20px;\" class=\"left_ext_header\">";
			//echo "<div style=\"width:32px; float:left;\"><img src=\""._EXT_URL."/images/logo.jpg\" alt=\"Filemanager Logo\" border=\"0\" /></div>";
			//echo "<div style=\"margin-top:5px; margin-left:15px;float:left;color:#EAEAEA;font-weight:600;\"><h1 class=\"file_manager_head\">File Manager</h1></div>";
		//echo "</div>";
		/*echo "<div style=\"width:auto; min-height:10px; margin-left:20px;\" class=\"right_ext_header\">";
			echo "<div id=\"rightNavArea\" class=\"pull-right\">";
				echo "<form class=\"form-inline search\" onsubmit=\"return false;\">";
					echo "<div class=\"form-group form-group-sm\">";
						echo "<label id=\"lblSearch\" for=\"searchdir\">";
							echo "Search";
						echo "</label>";
						echo "<select name=\"searchdir\" id=\"searchdir\" class=\"form-control input-sm\">";
							echo "<option value=\"\">All Your Files</option>";
							echo "<option value=\"public_html\">Only public_html</option>";
							echo "<option value=\"$cwd\">Current Directory</option>";
						echo "</select>";
					echo "</div>";
					echo "<div class=\"form-group\">";
						echo "<label id=\"lblFor\" for=\"searchbox\">";
							echo "for";
						echo "</label>";
						echo "<input id=\"searchbox\" type=\"text\" class=\"form-control input-sm\" name=\"searchbox\">";
					echo "</div>";
					echo "<div class=\"form-group\">";
						echo "<input id=\"btnSearch\" type=\"submit\" value=\"Go\" class=\"btn btn-sm btn-primary\" onclick=\"openActionDialog(this, 'search')\">";
					echo "</div>";
				echo "</form>";
				echo "<span id=\"settings\" class=\"topbar-settings\">";
					echo "<a id=\"btnSettings\" class=\"btn btn-sm btn-default\" onclick=\"showPrefs(); return false;\" href=\"javascript:void(0)\">";
						echo "<img src=\""._EXT_URL."/images/extension/settings.png\" alt=\"\" />";
						echo "<span>Settings</span>";
					echo "</a>";
				echo "</span>";
			echo "</div>";
                echo "</div>";*/
        echo "</div>";
	echo '</div>';
}
//------------------------------------------------------------------------------
?>