echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'addcomment': if (@$_SESSION['rights']['public']['awards']['com_add'] or @$_SESSION['rights']['superadmin']) { $conditions['action'] = 'add'; $conditions['link'] = '?section=awards&action=view&id=' . (int) $_GET['id']; comments_add('awards', (int) $_GET['id'], $conditions); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'editcomment': $conditions['action'] = 'edit'; $conditions['link'] = '?section=awards&action=view&id=' . (int) $_GET['subid']; comments_edit('awards', (int) $_GET['subid'], (int) $_GET['id'], $conditions); break; default: if (@$_SESSION['rights']['public']['awards']['view'] or @$_SESSION['rights']['superadmin']) { awards(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } } } else { if (@$_SESSION['rights']['public']['awards']['view'] or @$_SESSION['rights']['superadmin']) { awards(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } }
gallery_gallery((int) $_GET['id']); break; case 'viewpic': gallery_viewpic((int) $_GET['id']); $conditions['action'] = 'add'; $conditions['link'] = '?section=gallery&action=viewpic&id=' . (int) $_GET['id']; comments_get('gallery', (int) $_GET['id'], $conditions); break; case 'addcomment': if (@$_SESSION['rights']['public']['gallery']['com_add'] or @$_SESSION['rights']['superadmin']) { $conditions['action'] = 'add'; $conditions['link'] = '?section=gallery&action=viewpic&id=' . (int) $_GET['id']; comments_add('gallery', (int) $_GET['id'], $conditions); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'editcomment': $conditions['action'] = 'edit'; $conditions['link'] = '?section=gallery&action=viewpic&id=' . (int) $_GET['subid']; comments_edit('gallery', (int) $_GET['subid'], (int) $_GET['id'], $conditions); break; default: gallery(); } } else { gallery(); } } else { table(ERROR, NO_ACCESS_RIGHTS); }
account_stats(); break; case 'guestbook': $conditions['action'] = 'add'; $conditions['link'] = '?section=account&action=guestbook'; comments_get('user', $_SESSION['userID'], $conditions, 0, 1, "user"); break; case 'addcomment': $conditions['action'] = 'add'; $conditions['link'] = '?section=account&action=guestbook'; comments_add('user', $_SESSION['userID'], $conditions, "user"); break; case 'editcomment': $conditions['action'] = 'edit'; $conditions['link'] = '?section=account&action=guestbook'; comments_edit('user', $_SESSION['userID'], (int) $_GET['id'], $conditions, "user"); break; default: account(); } // Funktionen für nicht angemelde User // } elseif (isset($_GET['action'])) { switch ($_GET['action']) { case 'register': account_register(); break; case 'login': account_login(); break; case 'open': account_aktiv((int) $_GET['id'], strsave(@$_GET['key']));
echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'addcomment': if (@$_SESSION['rights']['public']['survey']['com_add'] or @$_SESSION['rights']['superadmin']) { $conditions['action'] = 'add'; $conditions['link'] = '?section=survey&action=viewsurvey&id=' . (int) $_GET['id']; comments_add('survey', (int) $_GET['id'], $conditions); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'editcomment': $conditions['action'] = 'edit'; $conditions['link'] = '?section=survey&action=viewsurvey&id=' . (int) $_GET['subid']; comments_edit('survey', (int) $_GET['subid'], (int) $_GET['id'], $conditions); break; default: if (@$_SESSION['rights']['public']['survey']['view'] or @$_SESSION['rights']['superadmin']) { survey(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } } } else { if (@$_SESSION['rights']['public']['survey']['view'] or @$_SESSION['rights']['superadmin']) { survey(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } }
echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'addcomment': if (@$_SESSION['rights']['public']['clanwars']['com_add'] or @$_SESSION['rights']['superadmin']) { $conditions['action'] = 'add'; $conditions['link'] = '?section=clanwars&action=view&id=' . (int) $_GET['id']; comments_add('clanwars', (int) $_GET['id'], $conditions); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'editcomment': $conditions['action'] = 'edit'; $conditions['link'] = '?section=clanwars&action=view&id=' . (int) $_GET['subid']; comments_edit('clanwars', (int) $_GET['subid'], (int) $_GET['id'], $conditions); break; default: if (@$_SESSION['rights']['public']['clanwars']['view'] or @$_SESSION['rights']['superadmin']) { clanwars(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } } } else { if (@$_SESSION['rights']['public']['clanwars']['view'] or @$_SESSION['rights']['superadmin']) { clanwars(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } }
$conditions['action'] = 'add'; $conditions['link'] = '?section=guestbook&action=comments&id=' . (int) $_GET['id']; comments_add('gb_com', (int) $_GET['id'], $conditions, 'guestbook'); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'editcomment': $conditions['action'] = 'edit'; $conditions['link'] = '?section=guestbook&action=comments&id=' . (int) $_GET['subid']; comments_edit('gb_com', (int) $_GET['subid'], (int) $_GET['id'], $conditions, 'guestbook'); break; case 'editgbcomment': $conditions['action'] = 'editgb'; $conditions['link'] = '?section=guestbook&action=comments&id=' . (int) $_GET['id']; comments_edit('guestbook', 0, (int) $_GET['id'], $conditions, 'guestbook', 'edit'); break; default: if (@$_SESSION['rights']['public']['guestbook']['view'] or @$_SESSION['rights']['superadmin']) { guestbook(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } } } else { if (@$_SESSION['rights']['public']['guestbook']['view'] or @$_SESSION['rights']['superadmin']) { guestbook(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } }
} if (isset($_GET['action'])) { switch ($_GET['action']) { case 'viewonline': user_view_online(); break; case 'list': if (@$_SESSION['rights']['public']['user']['list'] or @$_SESSION['rights']['superadmin']) { user_liste(); } else { table(ERROR, ACCESS_DENIED); } break; case 'addcomment': $conditions['action'] = 'add'; $conditions['link'] = '?section=user&view=gb&id=' . (int) $_GET['id']; comments_add('user', (int) $_GET['id'], $conditions); break; case 'editcomment': $conditions['action'] = 'edit'; $conditions['link'] = '?section=user&view=gb&id=' . (int) $_GET['subid']; comments_edit('user', (int) $_GET['subid'], (int) $_GET['id'], $conditions); break; default: table(ERROR, NO_FUNKTION_CHOOSE); } } elseif (isset($_GET['id'])) { user_details((int) $_GET['id']); } else { table(ERROR, NO_FUNKTION_CHOOSE); }
echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'addcomment': if (@$_SESSION['rights']['public']['downloads']['com_add'] or @$_SESSION['rights']['superadmin']) { $conditions['action'] = 'add'; $conditions['link'] = '?section=downloads&action=viewdl&id=' . (int) $_GET['id']; comments_add('downloads', (int) $_GET['id'], $conditions); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } break; case 'editcomment': $conditions['action'] = 'edit'; $conditions['link'] = '?section=downloads&action=viewdl&id=' . (int) $_GET['subid']; comments_edit('downloads', (int) $_GET['subid'], (int) $_GET['id'], $conditions); break; default: if (@$_SESSION['rights']['public']['downloads']['view'] or @$_SESSION['rights']['superadmin']) { downloads(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } } } else { if (@$_SESSION['rights']['public']['downloads']['view'] or @$_SESSION['rights']['superadmin']) { downloads(); } else { echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS); } }