Updated to latest version of CMS
This commit is contained in:
parent
ccdf8fbb81
commit
edf41b1198
76 changed files with 465 additions and 1162 deletions
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php global $session;
|
||||
/**
|
||||
* Project: BeCast WebEngine - simple site engine
|
||||
* File: /admin/editusers.apnl.php
|
||||
|
@ -24,7 +24,7 @@
|
|||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
If (!defined("in_BL_ADMIN")) {
|
||||
If (!defined("IN_BCWE_ADMIN")) {
|
||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||
}
|
||||
$addnav["right"]=FALSE;
|
||||
|
@ -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));
|
||||
|
@ -111,12 +111,12 @@ class editusers_panel extends admin_module{
|
|||
$panel->content.="<table id=\"users\" width=\"90%\" cellspacing=\"2\">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align=\"center\">".$lang->_('ID')."</th>
|
||||
<th align=\"center\">".$lang->_('USERNAME')."</th>
|
||||
<th align=\"center\">".$lang->_('REALNAME')."</th>
|
||||
<th align=\"center\">".$lang->_('ROLE')."</th>
|
||||
<th align=\"center\">".$lang->_('STATUS')."</th>
|
||||
<th align=\"center\">".$lang->_('ACTION')."</th>
|
||||
<th style=\"text-align='center';\">".$lang->_('ID')."</th>
|
||||
<th style=\"text-align='center';\">".$lang->_('USERNAME')."</th>
|
||||
<th style=\"text-align='center';\">".$lang->_('REALNAME')."</th>
|
||||
<th style=\"text-align='center';\">".$lang->_('ROLE')."</th>
|
||||
<th style=\"text-align='center';\">".$lang->_('STATUS')."</th>
|
||||
<th style=\"text-align='center';\">".$lang->_('ACTION')."</th>
|
||||
</tr></thead><tbody>";
|
||||
if(!empty($user)){
|
||||
foreach($user as $u){
|
||||
|
@ -131,22 +131,22 @@ class editusers_panel extends admin_module{
|
|||
$u['activestyle']='style="font-style:italic;"';
|
||||
}
|
||||
$panel->content.="<tr ".$u['activestyle'].">
|
||||
<td align=\"center\">".$u["uid"]."</td>
|
||||
<td align=\"center\">".$u["username"]."</td>
|
||||
<td align=\"center\">".$u["realname"]."</td>
|
||||
<td align=\"center\">".$u["role_name"]."</td>
|
||||
<td align=\"center\">".$u['activetext']."</td>";
|
||||
<td style=\"text-align='center';\">".$u["uid"]."</td>
|
||||
<td style=\"text-align='center';\">".$u["username"]."</td>
|
||||
<td style=\"text-align='center';\">".$u["realname"]."</td>
|
||||
<td style=\"text-align='center';\">".$u["role_name"]."</td>
|
||||
<td style=\"text-align='center';\">".$u['activetext']."</td>";
|
||||
if($u["uid"]==$session->userdata["uid"]){
|
||||
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this,'".$lang->_('BADIDEA')."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&action=delete&user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
|
||||
$panel->content.="<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this,'".$lang->_('BADIDEA')."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&action=delete&user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
|
||||
</tr>";
|
||||
}else{
|
||||
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, '".sprintf($lang->_('DELETEUSER'),$u["username"])."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&action=delete&user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
|
||||
$panel->content.="<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this, '".sprintf($lang->_('DELETEUSER'),$u["username"])."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&action=delete&user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
|
||||
</tr>";
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$panel->content.="<tr>
|
||||
<td align=\"center\" colspan=\"5\">".$lang->_('NOUSERS')."</td>
|
||||
<td style=\"text-align='center';\" colspan=\"5\">".$lang->_('NOUSERS')."</td>
|
||||
</tr>";
|
||||
}
|
||||
$panel->content.="</tbody></table><br />";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue