mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-11 07:06:06 +00:00
delete more change of songeriux (i prefer that users can register in any language), improve forum and BBcode (not 100%, but fix some bugs)
This commit is contained in:
+29
-6
@@ -33,14 +33,19 @@ if(isset($_GET['newdid'])) {
|
||||
if(isset($_GET['s'])){
|
||||
$automation->isWinner();
|
||||
}
|
||||
if(isset($_GET['aname'])){
|
||||
$aname = $database->getAllianceID($_GET['aname']);
|
||||
$_GET['aid'] = $aname;
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?aid=".$aname);
|
||||
}
|
||||
if(isset($_GET['fid'])){
|
||||
$fid = $_GET['fid'];
|
||||
$forum = mysql_query("SELECT * FROM " . TB_PREFIX . "forum_cat WHERE id = ".$fid."");
|
||||
$forum_type = mysql_fetch_array($forum);
|
||||
if($forum_type['forum_name'] != ""){
|
||||
if($forum_type['forum_name'] != "" && $forum_type['forum_area'] != 1){
|
||||
if($forum_type['forum_area'] == 0){
|
||||
if($forum_type['alliance'] != $session->alliance){
|
||||
header("Location: allianz.php");
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
}else if($forum_type['forum_area'] == 2){
|
||||
if($forum_type['alliance'] != $session->alliance){
|
||||
@@ -49,11 +54,30 @@ if($forum_type['alliance'] != $session->alliance){
|
||||
}
|
||||
|
||||
}else{
|
||||
header("Location: allianz.php");
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
}
|
||||
}else if(isset($_GET['fid2'])){
|
||||
$fid = $_GET['fid2'];
|
||||
$forum = mysql_query("SELECT * FROM " . TB_PREFIX . "forum_cat WHERE id = ".$fid."");
|
||||
$forum_type = mysql_fetch_array($forum);
|
||||
if($forum_type['forum_name'] != "" && $forum_type['forum_area'] != 1){
|
||||
if($forum_type['forum_area'] == 0){
|
||||
if($forum_type['alliance'] != $session->alliance){
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
}else if($forum_type['forum_area'] == 2){
|
||||
if($forum_type['alliance'] != $session->alliance){
|
||||
}else if($forum_type['forum_area'] == 3){
|
||||
|
||||
}
|
||||
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
}
|
||||
}
|
||||
if($_GET['aid'] or $session->alliance!=0){
|
||||
if($_GET['aid'] or $_GET['fid'] or $_GET['fid2'] or $session->alliance!=0){
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
@@ -192,7 +216,7 @@ if($_GET['aid'] or $session->alliance!=0){
|
||||
}
|
||||
// Options
|
||||
}else{
|
||||
header("Location: allianz.php");
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}} elseif(isset($_POST['o'])) {
|
||||
switch($_POST['o']) {
|
||||
case 1:
|
||||
@@ -345,5 +369,4 @@ if($_GET['aid'] or $session->alliance!=0){
|
||||
</html>
|
||||
<?php
|
||||
}else{
|
||||
header("Location: spieler.php?uid=".$session->uid);
|
||||
}
|
||||
Reference in New Issue
Block a user