removing more php warnings
This commit is contained in:
parent
3b1e4cdd63
commit
f32eeec4b5
3 changed files with 25 additions and 25 deletions
|
@ -90,7 +90,7 @@ class editusers_panel extends admin_module{
|
|||
$panel->formClose();
|
||||
$panel->parse_page();
|
||||
}
|
||||
}elseif($_GET["action"]=="delete" && $_GET["user"]){
|
||||
}elseif(isset($_GET["action"]) && $_GET["action"]=="delete" && isset($_GET["user"])){
|
||||
$result=$db->query("SELECT * FROM `" . $config["prefix"] . "users` WHERE `uid`='".intval($_GET["user"])."'");
|
||||
$data = $db->fetch_array($result);
|
||||
$plugin->run_hook('admin_user_before_delete',array('data'=>$data));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php global $session;
|
||||
/**
|
||||
* Project: BeCast WebEngine - simple site engine
|
||||
* File: /admin/module.apnl.php
|
||||
|
@ -67,15 +67,15 @@ class module_panel extends admin_module{
|
|||
$panel->content.="<h2>Installierte Module</h2><br />
|
||||
<table width=\"90%\" cellspacing=\"2\">
|
||||
<tr>
|
||||
<th align=\"center\">Modul</th>
|
||||
<th align=\"center\">Version</th>
|
||||
<th align=\"center\">Autor</th>
|
||||
<th align=\"center\">Homepage</th>
|
||||
<th align=\"center\">Aktion</th>
|
||||
<th style=\"text-align='center';\">Modul</th>
|
||||
<th style=\"text-align='center';\">Version</th>
|
||||
<th style=\"text-align='center';\">Autor</th>
|
||||
<th style=\"text-align='center';\">Homepage</th>
|
||||
<th style=\"text-align='center';\">Aktion</th>
|
||||
</tr>";
|
||||
if(!empty($core->mod_)){
|
||||
foreach($core->mod_ as $mod){
|
||||
If($mod["depends"]!=""){
|
||||
if(isset($mod["depends"]) && $mod["depends"]!=""){
|
||||
|
||||
$depends="";
|
||||
$dependands=unserialize($mod["depends"]);
|
||||
|
@ -89,11 +89,11 @@ class module_panel extends admin_module{
|
|||
$depends.='<br /><span style="font-size: xx-small;">hängt ab von: '.$deps;
|
||||
}
|
||||
$panel->content.="<tr>
|
||||
<td align=\"center\">".$mod["name"].$depends."</td>
|
||||
<td align=\"center\">".$mod["version"]."</td>
|
||||
<td align=\"center\">".$mod["author"]."</td>
|
||||
<td align=\"center\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td>
|
||||
<td align=\"center\"><a onclick=\"return confirmLink(this, 'Willst du wirklich das Modul ".$mod["name"]." deinstallieren? Alle Daten diese Plugins werden gelöscht!')\" href=\"".$config["path"]."/admin/index.php?panel=module&action=uninstall&module=".$mod["file"]."\">Deinstallieren</a></td>
|
||||
<td style=\"text-align='center';\">".$mod["name"].$depends."</td>
|
||||
<td style=\"text-align='center';\">".$mod["version"]."</td>
|
||||
<td style=\"text-align='center';\">".$mod["author"]."</td>
|
||||
<td style=\"text-align='center';\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td>
|
||||
<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this, 'Willst du wirklich das Modul ".$mod["name"]." deinstallieren? Alle Daten diese Plugins werden gelöscht!')\" href=\"".$config["path"]."/admin/index.php?panel=module&action=uninstall&module=".$mod["file"]."\">Deinstallieren</a></td>
|
||||
</tr>";
|
||||
unset($deps);
|
||||
unset($depends);
|
||||
|
@ -109,17 +109,17 @@ class module_panel extends admin_module{
|
|||
$panel->content.="<h2>Nicht Installierte Module</h2><br />";
|
||||
$panel->content.="<table width=\"90%\" cellspacing=\"2\">
|
||||
<tr>
|
||||
<th align=\"center\">Modul</th>
|
||||
<th align=\"center\">Version</th>
|
||||
<th align=\"center\">Autor</th>
|
||||
<th align=\"center\">Homepage</th>
|
||||
<th align=\"center\">Aktion</th>
|
||||
<th style=\"text-align='center';\">Modul</th>
|
||||
<th style=\"text-align='center';\">Version</th>
|
||||
<th style=\"text-align='center';\">Autor</th>
|
||||
<th style=\"text-align='center';\">Homepage</th>
|
||||
<th style=\"text-align='center';\">Aktion</th>
|
||||
</tr>";
|
||||
|
||||
$modules=$this->avaiable_modules();
|
||||
if(is_array($modules)){
|
||||
foreach($modules as $mod){
|
||||
If($mod["depends"]!=""){
|
||||
if(isset($mod["depends"]) && $mod["depends"]!=""){
|
||||
|
||||
$depends="";
|
||||
$dependands=explode(",",$mod["depends"]);
|
||||
|
@ -133,11 +133,11 @@ class module_panel extends admin_module{
|
|||
$depends.='<br /><span style="font-size: xx-small;">hängt ab von: '.$deps;
|
||||
}
|
||||
$panel->content.="<tr>
|
||||
<td align=\"center\">".$mod["name"].$depends."</td>
|
||||
<td align=\"center\">".$mod["version"]."</td>
|
||||
<td align=\"center\">".$mod["author"]."</td>
|
||||
<td align=\"center\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td>
|
||||
<td align=\"center\"><a href=\"".$config["path"]."/admin/index.php?panel=module&action=install&module=".$mod["file"]."\">Installieren</a></td>
|
||||
<td style=\"text-align='center';\">".$mod["name"].$depends."</td>
|
||||
<td style=\"text-align='center';\">".$mod["version"]."</td>
|
||||
<td style=\"text-align='center';\">".$mod["author"]."</td>
|
||||
<td style=\"text-align='center';\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td>
|
||||
<td style=\"text-align='center';\"><a href=\"".$config["path"]."/admin/index.php?panel=module&action=install&module=".$mod["file"]."\">Installieren</a></td>
|
||||
</tr>";
|
||||
unset($deps);
|
||||
unset($depends);
|
||||
|
|
|
@ -203,7 +203,7 @@ class panel {
|
|||
}
|
||||
function submit ($args=array(),$extra="",$return=FALSE)
|
||||
{
|
||||
$name = $args["name"] ? $args["name"] : 'submit';
|
||||
$name = $args["name"] ?? 'submit';
|
||||
$fld = '<input type="submit" name="'.$name.'" ' .$extra. ' />'; // html: form submit button
|
||||
if(!$return){
|
||||
$this->content .= $fld;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue