diff --git a/web/ajax.php b/web/ajax.php index 21bac9c1..09585ee4 100644 --- a/web/ajax.php +++ b/web/ajax.php @@ -51,14 +51,14 @@ if (isset($admin_id)) { foreach ($userpermissionquery->fetchall() as $userpermissionrow) { if ($userpermissionrow['root']=="Y") { foreach ($userpermissionrow as $key => $value) { - $pa["$key"]=true; + $pa[$key]=true; } } else { foreach ($userpermissionrow as $key => $value) { if ($value=="Y") { - $pa["$key"]=true; + $pa[$key]=true; } else { - $pa["$key"]=false; + $pa[$key]=false; } } } @@ -70,17 +70,17 @@ if (isset($user_id)) { foreach ($userpermissionquery->fetchall() as $userpermissionrow) { if ($userpermissionrow['miniroot']=="Y") { foreach ($userpermissionrow as $key => $value) { - $pau["$key"]=true; + $pau[$key]=true; } } else { foreach ($userpermissionrow as $key => $value) { if (isset($admin_id)) { - $pau["$key"]=true; + $pau[$key]=true; } else { if ($value=="Y") { - $pau["$key"]=true; + $pau[$key]=true; } else { - $pau["$key"]=false; + $pau[$key]=false; } } } diff --git a/web/images.php b/web/images.php index 3a4e9bfc..f6051f63 100644 --- a/web/images.php +++ b/web/images.php @@ -163,7 +163,7 @@ if (isset($admin_id) and $ui->st('img','get')) { $ingoing=($multiplier * $row['ingoing']) / $divisor; $outgoing=($multiplier * $row['outgoing']) / $divisor; $total=($multiplier * $row['total']) / $divisor; - $values["$day2"]=array($ingoing,$outgoing,$total); + $values[$day2]=array($ingoing,$outgoing,$total); } } if ($reseller_id==0 and isset($get_shorten)) { @@ -213,12 +213,12 @@ if (isset($admin_id) and $ui->st('img','get')) { $ingoing=($multiplier * $row2['ingoing']) / $divisor; $outgoing=($multiplier * $row2['outgoing']) / $divisor; $total=($multiplier * $row2['total']) / $divisor; - if (isset($values["$day2"])) { - $ingoing=$ingoing+$values["$day2"]['0']; - $outgoing=$outgoing+$values["$day2"]['1']; - $total=$total+$values["$day2"]['2']; + if (isset($values[$day2])) { + $ingoing=$ingoing+$values[$day2][0]; + $outgoing=$outgoing+$values[$day2][1]; + $total=$total+$values[$day2][2]; } - $values["$day2"]=array($ingoing,$outgoing,$total); + $values[$day2]=array($ingoing,$outgoing,$total); } } $i++; @@ -401,7 +401,7 @@ if (isset($admin_id) and $ui->st('img','get')) { else $averageused=round($row['averageused']); if (!isset($row['averageinstalled'])) $averageinstalled="0"; else $averageinstalled=round($row['averageinstalled']); - $values["$day2"]=array($averageused,$averageinstalled); + $values[$day2]=array($averageused,$averageinstalled); } /*if (isset($get_shorten)) { $pselect=$sql->prepare("SELECT SUM(`used`)/COUNT(`id`) AS `averageused`,SUM(`installed`)/COUNT(`id`) AS `averageinstalled` FROM `voice_server_stats_hours` WHERE `date` LIKE ? AND `sid`=? AND `resellerid`=?"); @@ -421,7 +421,7 @@ if (isset($admin_id) and $ui->st('img','get')) { else $averageused=round($row['averageused']); if (!isset($row['averageinstalled'])) $averageinstalled="0"; else $averageinstalled=round($row['averageinstalled']); - $values["$day2"]=array($averageused,$averageinstalled); + $values[$day2]=array($averageused,$averageinstalled); }*/ } $i++; diff --git a/web/install/install.php b/web/install/install.php index 433055ea..e7f7f4c3 100644 --- a/web/install/install.php +++ b/web/install/install.php @@ -244,13 +244,13 @@ function getconfigcvars($file) { foreach ($lines as $line) { if(strpos(strtolower($line), strtolower("//")) === false and strpos(strtolower($line), strtolower("=")) == true) { $data=explode("=", $line); - $cvar=preg_replace('/\s+/', '', $data['0']); + $cvar=preg_replace('/\s+/', '', $data[0]); $cvar=str_replace('$', "", $cvar); - $data2=explode(";", $data['1']); - $stringlenght=strlen($data2['0']); + $data2=explode(";", $data[1]); + $stringlenght=strlen($data2[0]); $stop=$stringlenght-2; - $value=substr($data2['0'],"1",$stop); - $vars["$cvar"]=$value; + $value=substr($data2[0],"1",$stop); + $vars[$cvar]=$value; } } return $vars; @@ -425,7 +425,7 @@ $aeskey="'.$_POST['aeskey'].'"; $randompass=""; for($i=1; $i<=10; $i++){ $wuerfeln = mt_rand(0,$anzahlcorrect); - $randompass .= $zeichen["$wuerfeln"]; + $randompass .= $zeichen[$wuerfeln]; } ?>