more big update

This commit is contained in:
unknown
2012-05-15 23:23:19 +03:00
parent 0583888a14
commit 1215e1c42f
50 changed files with 478 additions and 498 deletions
-34
View File
@@ -33,52 +33,31 @@
}
public function procMessage($post) {
global $session;
if(isset($post['ft'])) {
switch($post['ft']) {
case "m1":
if($session->access!=BANNED){
$this->quoteMessage($post['id']);
}else{
header("Location: banned.php");
}
break;
case "m2":
if($session->access!=BANNED or $post['an']==strtolower("multihunter")){
if ($post['an'] == "[ally]"){
$this->sendAMessage($post['an'],$post['be'],$post['message']);
}else{
$this->sendMessage($post['an'],$post['be'],$post['message']);
}
header("Location: nachrichten.php?t=2");
}else{
header("Location: banned.php");
}
break;
case "m3":
case "m4":
case "m5":
if(isset($post['delmsg_x'])) {
if($session->access!=BANNED){
$this->removeMessage($post);
$this->header($get);
}else{
header("Location: banned.php");
}
}
if(isset($post['archive_x'])) {
if($session->access!=BANNED){
$this->archiveMessage($post);
}else{
header("Location: banned.php");
}
}
if(isset($post['start_x'])) {
if($session->access!=BANNED){
$this->unarchiveMessage($post);
}else{
header("Location: banned.php");
}
}
break;
case "m6":
@@ -120,27 +99,14 @@
}
public function procNotice($post) {
global $session;
if(isset($post["del_x"])) {
if($session->access != BANNED){
$this->removeNotice($post);
}else{
header("Location: banned.php");
}
}
if(isset($post['archive_x'])) {
if($session->access != BANNED){
$this->archiveNotice($post);
}else{
header("Location: banned.php");
}
}
if(isset($post['start_x'])) {
if($session->access != BANNED){
$this->unarchiveNotice($post);
}else{
header("Location: banned.php");
}
}
}