Some cosmetic

This commit is contained in:
Alan Garcia 2014-03-26 14:36:36 +00:00
parent 2f92810c94
commit 02f735ecdf
8 changed files with 17 additions and 9 deletions

View File

@ -70,6 +70,9 @@ function _subbrowse($curdir,$pos,$level) {
}
}
/**
* @param string $curdir
*/
function browseforfolder($curdir) {
global $maxlevel,$root,$brlist;
$maxlevel=0;

View File

@ -22,7 +22,7 @@
Purpose of file: Main header of all html files
----------------------------------------------------------------------
*/
if (!$charset) $charset="UTF-8";
if (!isset($charset) || ! $charset) $charset="UTF-8";
@header("Content-Type: text/html; charset=$charset");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

View File

@ -55,7 +55,7 @@ if (isset($error) && $error) {
<th><label for="dir"><?php __("Folder"); ?></label></th>
<td>
<input type="text" class="int" name="dir" id="dir" value="<?php (isset($dir)) ? : $dir="";ehe($dir); ?>" maxlength="255" />
<?php display_browser( ehe($dir,0) , "main.dir" ); ?>
<?php display_browser( ehe($dir,false) , "main.dir" ); ?>
</td>
</tr>
</table>

View File

@ -36,7 +36,9 @@ $fields = array (
getFields($fields);
if (!$dir) {
$error=_("No folder selected!");
echo "<p class=\"alert alert-warning\">"._("No folder selected!")."</p>";
require_once('foot.php');
die();
} else {
$r=$hta->get_hta_detail($dir);
if (!$r) {

View File

@ -36,7 +36,7 @@ $H=getenv("HTTP_HOST");
if (!isset($restrictip)) {
$restrictip=1;
}
if (!$charset) $charset="UTF-8";
if (!isset($charset) || ! $charset) $charset="UTF-8";
@header("Content-Type: text/html; charset=$charset");
?>

View File

@ -31,7 +31,7 @@ require_once("../class/config.php");
$mem->del_session();
if (!$charset) $charset="UTF-8";
if (!isset($charset) || ! $charset) $charset="UTF-8";
@header("Content-Type: text/html; charset=$charset");
?>

View File

@ -32,7 +32,7 @@ if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) {
} else {
foreach($res as $r) if ($r!==false) { $url=$r; break; }
}
if ($url) {
if (isset($url) && $url) {
header("Location: $url");
} else {
header("Location: /nowebmail");

View File

@ -34,7 +34,7 @@ if (DO_XHPROF_STATS) require_once('/usr/share/alternc/panel/admin/xhprof_header.
// To enable the display of the alternc debug error, do the following :
// # touch /etc/alternc/alternc_display_php_error
if (file_exists('/etc/alternc/alternc_display_php_error')) {
ini_set('display_errors', true);
ini_set('display_errors', '1');
}
session_name('AlternC_Panel');
session_start();
@ -137,7 +137,10 @@ if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"]=="on" && $host!=$L_FQDN) {
*/
class DB_system extends DB_Sql {
var $Host,$Database,$User,$Password = null;
var $Host = null;
var $Database = null;
var $User = null;
var $Password = null;
/**
* Creator