Source for file AdminDeleteFromBlacklist.class.php
Documentation is available at
AdminDeleteFromBlacklist.class.php
<?php
/**
* Class DeleteFromBlacklist
*
* LICENSE: CREATIVE COMMONS PUBLIC LICENSE "Namensnennung — Nicht-kommerziell 2.0"
*
*
@copyright
2009 <SEDesign />
*
@license
http://creativecommons.org/licenses/by-nc/2.0/de/
*
@version
$3.0.6$
*
@link
http://www.sedesign.de/de_produkte_chat-v3.html
*
@since
File available since Alpha 1.0
*/
class
AdminDeleteFromBlacklist
extends
DbConectionMaker
{
/**
* Constructor
*
*
@uses
ConnectDB::sqlSet()
*
@uses
ConnectDB::close()
*
@return
void
*/
public
function
__construct
(
)
{
// call parent Constructor from class DbConectionMaker
parent
::
__construct
(
)
;
session_start
(
)
;
header
(
'Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'
)
;
// create new LangXml Object
$langObj
= new
LangXml
(
)
;
$lang
=
$langObj
->
getLang
(
)
->
admin
[
0
]
->
admin_blacklist
[
0
]
;
if
(
$_SESSION
[
'etchat_'
.
$this
->
_prefix
.
'user_priv'
]
==
"admin"
)
{
$this
->
dbObj
->
sqlSet
(
"
DELETE FROM {
$this
->
_prefix
}
etchat_blacklist WHERE etchat_blacklist_id =
"
.(int)
$_GET
[
'id'
]
)
;
$this
->
dbObj
->
close
(
)
;
header
(
"Location: ./?AdminBlacklistIndex"
)
;
}
else
{
echo
$lang
->
error
[
0
]
->
tagData
;
return
false
;
}
}
Documentation generated on Tue, 22 Dec 2009 09:42:41 +0100 by
phpDocumentor 1.4.1