Coding style
This commit is contained in:
parent
0349fef05a
commit
ed3ab589dd
|
@ -611,7 +611,7 @@ class m_aws {
|
|||
* @param string $dom the domain to uninstall
|
||||
*/
|
||||
function alternc_del_domain($dom) {
|
||||
global $db,$err,$cuid;
|
||||
global $err,$cuid;
|
||||
$err->log("aws","alternc_del_domain",$dom);
|
||||
$db=new DB_System();
|
||||
$db->query("SELECT id,hostname FROM aws WHERE uid='$cuid' AND (hostname='$dom' OR hostname like '%.$dom')");
|
||||
|
|
|
@ -80,6 +80,7 @@ array(
|
|||
if (empty($var)) {
|
||||
echo "<p class='error'>";__("Missing var name");echo "</p>";
|
||||
include_once("foot.php");
|
||||
die();
|
||||
}
|
||||
|
||||
// Which one between var_value and var_value_arr ?
|
||||
|
|
|
@ -124,7 +124,7 @@ foreach( $variables->variables_list_name() as $varname => $varcomment) { ?>
|
|||
<td><?php $variables->display_value_html($allvars, 'CREATOR', $creator, $varname); ?></td>
|
||||
<td><?php $variables->display_value_html($allvars, 'MEMBER', $member_id, $varname); ?></td>
|
||||
<td><?php $variables->display_value_html($allvars, 'DOMAIN', 'FIXME', $varname); ?></td>
|
||||
<td><?php $variables->display_valueraw_html($impersonated_conf[$varname]['value'], $varname); ?></td>
|
||||
<td><b><?php $variables->display_valueraw_html($impersonated_conf[$varname]['value'], $varname); ?></b></td>
|
||||
</tr>
|
||||
<?php
|
||||
} //foreach
|
||||
|
|
|
@ -69,7 +69,6 @@ function _subbrowse($curdir,$pos,$level) {
|
|||
function browseforfolder($curdir) {
|
||||
global $maxlevel,$root,$brlist;
|
||||
$maxlevel=0;
|
||||
$pat=explode("/",$curdir);
|
||||
$brlist=array(array("dir"=>"/","level"=>0,"put"=> ife($curdir=="/","","/") ));
|
||||
_subbrowse($curdir,0,1);
|
||||
return $brlist;
|
||||
|
|
|
@ -136,7 +136,7 @@ if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"]=="on" && $host!=$L_FQDN) {
|
|||
*/
|
||||
|
||||
class DB_system extends DB_Sql {
|
||||
var $Host,$Database,$User,$Password;
|
||||
var $Host,$Database,$User,$Password = null;
|
||||
|
||||
/**
|
||||
* Creator
|
||||
|
@ -190,7 +190,7 @@ $hooks=new m_hooks();
|
|||
if (!defined('NOCHECK')) {
|
||||
if (!$mem->checkid()) {
|
||||
$error=$err->errstr();
|
||||
include("index.php");
|
||||
include("$root/admin/index.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue