diff --git a/README.md b/README.md index f5c5f260..c4fe8ae0 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,14 @@ cp scripts/config.dist.php config.php - Ensure you have an account created in your TrinityCore installation - Check to make sure you have the necessary GM level set in `auth.account_access` +### Updates to existing minimanager installations +For older installations, a change was made to improve the security of the application (though in its current state, +more work must be done). Ensure your `config.php` includes the following lines, preferably near the bottom: + +```php +if (!defined('HEADER_LOADED')) { + header('Location: /'); +} +``` - - +This is to ensure direct navigation to the configuration file is not permitted. diff --git a/SQL/index.html b/SQL/index.html deleted file mode 100644 index 8b9da368..00000000 --- a/SQL/index.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/SQL/index.php b/SQL/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/SQL/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/SQL/update/index.php b/SQL/update/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/SQL/update/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/backup/accounts/index.php b/backup/accounts/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/backup/accounts/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/backup/index.php b/backup/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/backup/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/doc/captcha/index.php b/doc/captcha/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/doc/captcha/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/doc/index.php b/doc/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/doc/index.php @@ -0,0 +1,3 @@ + $category){ - if(!isset($category["level_read"])) $forum_skeleton[$cid]["level_read"] = 0; - if(!isset($category["level_post"])) $forum_skeleton[$cid]["level_post"] = 0; - if(!isset($category["level_post_topic"])) $forum_skeleton[$cid]["level_post_topic"] = 0; - if(!isset($category["side_access"])) $forum_skeleton[$cid]["side_access"] = "ALL"; - foreach($category["forums"] as $id => $forum){ - if(!isset($forum["level_read"])) $forum_skeleton[$cid]["forums"][$id]["level_read"] = 0; - if(!isset($forum["level_post"])) $forum_skeleton[$cid]["forums"][$id]["level_post"] = 0; - if(!isset($forum["level_post_topic"])) $forum_skeleton[$cid]["forums"][$id]["level_post_topic"] = 0; - if(!isset($forum["side_access"])) $forum_skeleton[$cid]["forums"][$id]["side_access"] = "ALL"; - } -} - -// ####################################################################################################### -// Forum_Index : Display the forums in categories -// ####################################################################################################### -function forum_index(){ - global $enablesidecheck, $forum_skeleton, $forum_lang, $user_lvl, $output, $realm_db, $mmfpm_db; - if($enablesidecheck) - $side = get_side(); - $mysql = new SQL; - $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - $result = $mysql->query("SELECT `authorname`,`id`,`name`,`time`,`forum` FROM `forum_posts` WHERE `id` IN (SELECT MAX(`id`) FROM `forum_posts` GROUP BY `forum`) ORDER BY `forum`;"); - $lasts = array(); - if($mysql->num_rows($result) > 0){ - while($row = $mysql->fetch_row($result)) - $lasts[$row[4]] = $row; - } - $output .= "

{$forum_lang["forums"]}

{$forum_lang["you_are_here"]} : {$forum_lang["forum_index"]}
"; - foreach($forum_skeleton as $category){ if(($category["level_read"] > $user_lvl)) - continue; - if($user_lvl == 0 && $enablesidecheck){ - if($category["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($category["side_access"] != $side) // Forumside different of the user side - continue; - } - } - $output .= " - - - "; - foreach($category["forums"] as $id => $forum){ - if($forum["level_read"] > $user_lvl) - continue; if($user_lvl == 0 && $enablesidecheck){ - if($forum["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum["side_access"] != $side) // Forumside different of the user side - continue; - } - } - $totaltopics = $mysql->query("SELECT id FROM forum_posts WHERE forum = '$id' AND id = `topic`;"); - $numtopics = $mysql->num_rows($totaltopics); - $totalreplies = $mysql->query("SELECT id FROM forum_posts WHERE forum = '$id';"); - $numreplies = $mysql->num_rows($totalreplies); - $output .= " - - "; - if(isset($lasts[$id])){ - $lasts[$id][2] = htmlspecialchars($lasts[$id][2]); - $output .= ""; - } - else{ - $output .= ""; - } - } - } - $output .= "
".$category["name"]."{$forum_lang["topics"]}{$forum_lang["replies"]}".$forum_lang["last_post"]."
{$forum["name"]}
{$forum["desc"]}
{$numtopics}{$numreplies}{$lasts[$id][2]}
by {$lasts[$id][0]}
{$lasts[$id][3]}
{$forum_lang["no_topics"]}

"; - $mysql->close(); - // Queries : 1 -} - -// ####################################################################################################### -// -// ####################################################################################################### -function forum_view_forum(){ - global $enablesidecheck, $forum_skeleton, $forum_lang, $maxqueries, $user_lvl, $output, $mmfpm_db; - if($enablesidecheck) $side = get_side(); - $mysql = new SQL; - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - if(!isset($_GET["id"])) error($forum_lang["no_such_forum"]); - else $id = $mysql->quote_smart($_GET["id"]); - if(!isset($_GET["page"])) $page = 0; - else $page = $mysql->quote_smart($_GET["page"]); - $cat = 0; - foreach($forum_skeleton as $cid => $category){ - foreach($category["forums"] as $fid => $forum){ - if($fid == $id) $cat = $cid; - } - } - if(empty($forum_skeleton[$cat]["forums"][$id])) error($forum_lang["no_such_forum"]); - $forum = $forum_skeleton[$cat]["forums"][$id]; - if(($forum_skeleton[$cat]["level_read"] > $user_lvl) || ($forum["level_read"] > $user_lvl)) - error($forum_lang["no_access"]); - - if($user_lvl == 0 && $enablesidecheck){ - if($forum_skeleton[$cat]["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum_skeleton[$cat]["side_access"] != $side) // Forumside different of the user side - continue; - } - if($forum["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum["side_access"] != $side) // Forumside different of the user side - continue; - } - } - - $start = ($maxqueries * $page); - $output .= "

{$forum_lang["forums"]}

{$forum_lang["you_are_here"]} : {$forum_lang["forum_index"]} -> {$forum["name"]}
-
"; - $topics = $mysql->query("SELECT id, authorid, authorname, name, annouced, sticked, closed FROM forum_posts WHERE (forum = '$id' AND id = `topic`) OR annouced = 1 AND id = `topic` ORDER BY annouced DESC, sticked DESC, lastpost DESC LIMIT $start, $maxqueries;"); - $result = $mysql->query("SELECT `topic` as curtopic,(SELECT count(`id`)-1 FROM forum_posts WHERE `topic` = `curtopic`) AS replies,lastpost as curlastpost,(SELECT authorname FROM forum_posts WHERE id = curlastpost) as authorname,(SELECT time FROM forum_posts WHERE id = curlastpost) as time FROM `forum_posts` WHERE (`forum` = $id AND `topic` = `id` ) OR annouced = 1;"); - $lasts = array(); - if($mysql->num_rows($result) > 0){ - while($row = $mysql->fetch_row($result)) - $lasts[$row[0]] = $row; - } - if($forum_skeleton[$cat]["level_post_topic"] <= $user_lvl && $forum["level_post_topic"] <= $user_lvl) - $output .= ""; - if($mysql->num_rows($topics)!=0){ - $output .= " - - - - - "; - while($topic = $mysql->fetch_row($topics)){ - $output .= " - - - - "; - } - $totaltopics = $mysql->query("SELECT id FROM forum_posts WHERE forum = '$id' AND id = `topic`;"); //My page system is so roxing, i can' t break this query xD - $pages = ceil($mysql->num_rows($totaltopics)/$maxqueries); - $output .= ""; - } - else - $output .= ""; - $mysql->close(); - $output .= "
{$forum_lang["new_topic"]}
{$forum_lang["title"]}{$forum_lang["author"]}{$forum_lang["replies"]}{$forum_lang["last_post"]}
"; - if($topic[4]=="1") - $output .= "{$forum_lang["annoucement"]} : "; - else{ - if($topic[5]=="1") - $output .= "{$forum_lang["sticky"]} : "; - else{ - if($topic[6]=="1") - $output .= "[{$forum_lang["closed"]}] "; - } - } - $topic[3] = htmlspecialchars($topic[3]); - $output .= "{$topic[3]}{$topic[2]}{$lasts[$topic[0]][1]}{$forum_lang["last_post_by"]} {$lasts[$topic[0]][3]}, {$lasts[$topic[0]][4]}
{$forum_lang["pages"]} : "; - for($x = 1; $x <= $pages; $x++){ - $y = $x-1; - $output .= "$x "; - } - $output .= "
{$forum_lang["no_topics"]}

"; - // Queries : 3 -} -// ####################################################################################################### -// -// ####################################################################################################### -function forum_view_topic(){ - - global $enablesidecheck, $forum_skeleton, $forum_lang, $maxqueries, $user_lvl, $user_id, $output, $realm_db, $characters_db, $realm_id, $mmfpm_db; - - if($enablesidecheck) $side = get_side(); // Better to use it here instead of call it many time in the loop :) - - $mysql = new SQL; - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if(isset($_GET["id"])){ - $id = $mysql->quote_smart($_GET["id"]); - $post = false; - } - else{ - if(isset($_GET["postid"])){ - $id = $mysql->quote_smart($_GET["postid"]); - $post = true; - } - else - error($forum_lang["no_such_topic"]); - } - - - if(!isset($_GET["page"])) $page = 0; - else $page = $mysql->quote_smart($_GET["page"]); // Fok you mathafoker haxorz - $start = ($maxqueries * $page); - - if(!$post){ - $posts = $mysql->query("SELECT id,authorid,authorname,forum,name,text,time,annouced,sticked,closed FROM forum_posts WHERE topic = '$id' ORDER BY id ASC LIMIT $start, $maxqueries;"); - -// Thx qsa for the query structure - - $link = $mysql->connect($realm_db['addr'], $realm_db['user'], $realm_db['pass'], $realm_db['name']); - - $query = "SELECT account,name,gender,race,class, - level,(SELECT SecurityLevel FROM `{$realm_db['name']}`.account_access WHERE `{$realm_db['name']}`.account_access.AccountID = `{$characters_db[$realm_id]['name']}`.characters.account) as SecurityLevel - FROM `{$characters_db[$realm_id]['name']}`.characters WHERE totaltime IN ( SELECT MAX(totaltime) FROM `{$characters_db[$realm_id]['name']}`.characters WHERE account IN ("; - -while($post = $mysql->fetch_row($posts)){ - $query .= "$post[1],"; -} -mysql_data_seek($posts,0); -$query .= "0) GROUP BY account);"; - $link = $mysql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); - $results = $mysql->query($query); - - while($avatar = $mysql->fetch_row($results)){ - $char_gender = str_pad(dechex($avatar[2]),8, 0, STR_PAD_LEFT); - $avatars[$avatar[0]]["name"] = $avatar[1]; - $avatars[$avatar[0]]["sex"] = $char_gender[3]; - $avatars[$avatar[0]]["race"] = $avatar[3]; - $avatars[$avatar[0]]["class"] = $avatar[4]; - $avatars[$avatar[0]]["level"] = $avatar[5]; - $avatars[$avatar[0]]["gm"] = $avatar[6]; - } - -// $link = $mysql->connect($realm_db['addr'], $realm_db['user'], $realm_db['pass'], $realm_db['name']); - $replies = $mysql->num_rows($posts); - if($replies==0) - error($forum_lang["no_such_topic"]); - $post = $mysql->fetch_row($posts); - $fid = $post[3]; - $cat = 0; - foreach($forum_skeleton as $cid => $category){ - foreach($category["forums"] as $fid_ => $forum){ - if($fid_ == $fid) $cat = $cid; - } - } - if(empty($forum_skeleton[$cat]["forums"][$fid])) - error($forum_lang["no_such_forum"]); - $forum = $forum_skeleton[$cat]["forums"][$fid]; - if($forum_skeleton[$cat]["level_read"] > $user_lvl || $forum["level_read"] > $user_lvl) error($forum_lang["no_access"]); - - if($user_lvl == 0 && $enablesidecheck){ - if($forum_skeleton[$cat]["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum_skeleton[$cat]["side_access"] != $side) // Forumside different of the user side - continue; - } - if($forum["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum["side_access"] != $side) // Forumside different of the user side - continue; - } - } - - $post[4] = htmlspecialchars($post[4]); - $post[5] = htmlspecialchars($post[5]); - $post[5] = bbcode_parse($post[5]); - - $output .= "

{$forum_lang["forums"]}

{$forum_lang["you_are_here"]} : {$forum_lang["forum_index"]} -> {$forum["name"]} -> {$post[4]}
-
- - - - - "; - $closed = $post[9]; - - while($post = $mysql->fetch_row($posts)){ - $post[5] = htmlspecialchars($post[5]); - $post[5] = bbcode_parse($post[5]); - - if(isset($avatars[$post[1]])) - $avatar = gen_avatar_panel( - $avatars[$post[1]]["level"], - $avatars[$post[1]]["sex"], - $avatars[$post[1]]["race"], - $avatars[$post[1]]["class"],1, - $avatars[$post[1]]["gm"]); - else - $avatar = ""; - $output .= " - "; - } - - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - $totalposts = $mysql->query("SELECT id FROM forum_posts WHERE topic = '$id';"); - $totalposts = $mysql->num_rows($totalposts); - - $pages = ceil($totalposts/$maxqueries); - $output .= "
{$forum_lang["info"]}{$forum_lang["text"]}"; - if($user_lvl > 0) - { - if($post[8]=="1"){ - if($post[7]=="1"){ - // Annoucement - $output .= "{$forum_lang["annoucement"]} - \"{$forum_lang["down"]}\""; - } - else{ - // Sticky - $output .= "{$forum_lang["sticky"]} - \"{$forum_lang["down"]}\" - \"{$forum_lang["up"]}\""; - } - } - else{ - if($post[7]=="1"){ - // Annoucement - $output .= "{$forum_lang["annoucement"]} - \"{$forum_lang["down"]}\""; - } - else{ - // Normal Topic - $output .= "{$forum_lang["normal"]} - \"{$forum_lang["up"]}\""; - - } - } - - if($post[9]=="1") - $output .= " \"{$forum_lang["open"]}\""; - else - $output .= " \"{$forum_lang["close"]}\""; - $output .= " \"{$forum_lang["move"]}\""; - } - if(isset($avatars[$post[1]])) - $avatar = gen_avatar_panel( - $avatars[$post[1]]["level"], - $avatars[$post[1]]["sex"], - $avatars[$post[1]]["race"], - $avatars[$post[1]]["class"],1, - $avatars[$post[1]]["gm"]); - else - $avatar = ""; - $output .= "
$avatar
{$forum_lang["author"]} : "; - if($user_lvl > 0) - $output .= ""; - if(isset($avatars[$post[1]])) - $output .= $avatars[$post[1]]["name"]; - else - $output .= $post[2]; - if($user_lvl > 0) - $output .= ""; - $output .= "
{$forum_lang["at"]} : {$post[6]}
{$post[5]}
"; - if($user_lvl > 0 || $user_id == $post[1]) - $output .= "\"{$forum_lang["edit"]}\" - \"{$forum_lang["delete"]}\""; - $output .= "
$avatar
{$forum_lang["author"]} : "; - if($user_lvl > 0) - $output .= ""; - if(isset($avatars[$post[1]])) - $output .= $avatars[$post[1]]["name"]; - else - $output .= $post[2]; - if($user_lvl > 0) - $output .= ""; - $output .= "
{$forum_lang["at"]} : {$post[6]}
{$post[5]}
"; - if($user_lvl > 0 || $user_id == $post[1]) - $output .= "
\"{$forum_lang["edit"]}\" - \"{$forum_lang["delete"]}\"
"; - $output .= "
{$forum_lang["pages"]} : "; - for($x = 1; $x <= $pages; $x++){ - $y = $x-1; - $output .= "$x "; - } - $output .= "
"; - - // Quick reply form - if((($user_lvl > 0)||!$closed)&&($forum_skeleton[$cat]["level_post"] <= $user_lvl && $forum["level_post"] <= $user_lvl) - ){ - $output .= "
- - - -
"; - makebutton($forum_lang["post"], "javascript:do_submit()",100); - $output .= "{$forum_lang["quick_reply"]}
".bbcode_editor_js()." - {$forum_lang["bold"]}, - {$forum_lang["italic"]}, - {$forum_lang["underline"]}, - {$forum_lang["image"]}, - {$forum_lang["url"]}, - {$forum_lang["url2"]}, - {$forum_lang["code"]}, - {$forum_lang["quote"]}, - {$forum_lang["quote2"]}, - {$forum_lang["media"]} - {$forum_lang["YouTube"]} - {$forum_lang["color"]} : -
- -

- - -
"; - } - - $output .= "
"; - $mysql->close(); - } - else{ - $output .= "

Stand by...

"; - - $post = $mysql->query("SELECT topic, id FROM forum_posts WHERE id = '$id'"); // Get our post id - if($mysql->num_rows($post)==0) - error($forum_lang["no_such_topic"]); - $post = $mysql->fetch_row($post); - if($post[0]==$post[1]) - redirect("forum.php?action=view_topic&id=$id"); - $topic = $post[0]; - $posts = $mysql->query("SELECT id FROM forum_posts WHERE topic = '$topic';"); // Get posts in our topic - $replies = $mysql->num_rows($posts); - if($replies==0) - error($forum_lang["no_such_topic"]); - $row = 0; - while($post = $mysql->fetch_row($posts)){ // Find the row of our post, so we could have his ratio (topic x/total topics) and knew the page to show - $row++; - if($topic==$id) break; - } - $page = 0; - while(($page * $maxqueries) < $row){ - $page++; - }; - $page--; - $mysql->close(); - redirect("forum.php?action=view_topic&id=$topic&page=$page"); - } - // Queries : 2 with id || 2 (+2) with postid -} -function forum_do_edit_close(){ - global $forum_lang, $user_lvl, $mmfpm_db; - $mysql = new SQL; - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if($user_lvl == 0) - error($forum_lang["no_access"]); - - if(!isset($_GET["id"])) error($forum_lang["no_such_topic"]); - else $id = $mysql->quote_smart($_GET["id"]); - - if(!isset($_GET["state"])) error("Bad request, please mail admin and describe what you did to get this error."); - else $state = $mysql->quote_smart($_GET["state"]); - - $mysql->query("UPDATE forum_posts SET closed = '$state' WHERE id = '$id'"); - $mysql->close(); - redirect("forum.php?action=view_topic&id=$id"); - // Queries : 1 -} -function forum_do_edit_announce(){ - global $forum_lang, $user_lvl, $mmfpm_db; - $mysql = new SQL; - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if($user_lvl == 0) - error($forum_lang["no_access"]); - - if(!isset($_GET["id"])) error($forum_lang["no_such_topic"]); - else $id = $mysql->quote_smart($_GET["id"]); - - if(!isset($_GET["state"])) error("Bad request, please mail admin and describe what you did to get this error."); - else $state = $mysql->quote_smart($_GET["state"]); - - $mysql->query("UPDATE forum_posts SET annouced = '$state' WHERE id = '$id'"); - $mysql->close(); - redirect("forum.php?action=view_topic&id=$id"); - // Queries : 1 -} -function forum_do_edit_stick(){ - global $forum_lang, $user_lvl, $mmfpm_db; - $mysql = new SQL; - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if($user_lvl == 0) - error($forum_lang["no_access"]); - - if(!isset($_GET["id"])) error($forum_lang["no_such_topic"]); - else $id = $mysql->quote_smart($_GET["id"]); - - if(!isset($_GET["state"])) error("Bad request, please mail admin and describe what you did to get this error."); - else $state = $mysql->quote_smart($_GET["state"]); - - $mysql->query("UPDATE forum_posts SET sticked = '$state' WHERE id = '$id'"); - $mysql->close(); - redirect("forum.php?action=view_topic&id=$id"); - // Queries : 1 -} -function forum_delete_post(){ - global $enablesidecheck, $forum_skeleton, $forum_lang, $maxqueries, $user_lvl, $user_id, $output, $mmfpm_db; - $mysql = new SQL; - - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - if(!isset($_GET["id"])) error($forum_lang["no_such_post"]); - else $id = $mysql->quote_smart($_GET["id"]); - - $topic = $mysql->query("SELECT id,topic,authorid,forum FROM forum_posts WHERE id = '$id';"); - if($mysql->num_rows($topic)==0) error($forum_lang["no_such_post"]); - $topic = $mysql->fetch_row($topic); - if($user_lvl == 0 && $topic[2] != $user_id) error($forum_lang["no_access"]); - $fid = $topic[3]; - - $topic2 = $mysql->query("SELECT name FROM forum_posts WHERE id = '{$topic[1]}';"); - $name = $mysql->fetch_row($topic2); - - $cat = 0; - foreach($forum_skeleton as $cid => $category){ - foreach($category["forums"] as $fid_ => $forum){ - if($fid_ == $fid) $cat = $cid; - } - } - - if(empty($forum_skeleton[$cat]["forums"][$fid])) // No such forum.. - error($forum_lang["no_such_forum"]); - $forum = $forum_skeleton[$cat]["forums"][$fid]; - $output .= "

{$forum_lang["forums"]}

{$forum_lang["you_are_here"]} : {$forum_lang["forum_index"]} -> {$forum["name"]} -> {$name[0]} -> {$forum_lang["delete"]}!
"; - if($topic[0]==$topic[1]) - $output .= "
{$forum_lang["delete_topic"]}
"; - else - $output .= "
{$forum_lang["delete_post"]}
"; - makebutton($forum_lang["back"], "javascript:window.history.back()", 120); - makebutton($forum_lang["confirm"], "forum.php?action=do_delete_post&id={$topic[0]}", 120); - $output .= "
"; - $mysql->close(); - // Queries : 1 -} -function forum_do_delete_post(){ - global $forum_lang, $forum_skeleton, $maxqueries, $user_lvl, $user_id, $output, $mmfpm_db; - - $mysql = new SQL; - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if(!isset($_GET["id"])) error($forum_lang["no_such_post"]); - else $id = $mysql->quote_smart($_GET["id"]); - - $topic = $mysql->query("SELECT id,topic,name,authorid,forum FROM forum_posts WHERE id = '$id';"); - if($mysql->num_rows($topic)==0) error($forum_lang["no_such_post"]); - $topic = $mysql->fetch_row($topic); - if($user_lvl == 0 && $topic[3] != $user_id) error($forum_lang["no_access"]); - $fid = $topic[4]; - - if($id==$topic[1]){ - $mysql->query("DELETE FROM forum_posts WHERE topic = '$id'"); - redirect("forum.php?action=view_forum&id=$fid"); - } - else - { - $mysql->query("DELETE FROM forum_posts WHERE id = '$id'"); - $result = $mysql->query("SELECT id FROM forum_posts WHERE topic = '{$topic[1]}' ORDER BY id DESC LIMIT 1;"); // get last post id - $lastpostid = $mysql->fetch_row($result); - $lastpostid = $lastpostid[0]; - $mysql->query("UPDATE forum_posts SET lastpost = '$lastpostid' WHERE id = '{$topic[1]}'"); // update topic' s last post id - redirect("forum.php?action=view_topic&id={$topic[1]}"); - } - // Queries : 1 (if delete topic) || 4 if delete post -} - -function forum_add_topic(){ - global $enablesidecheck, $forum_lang, $forum_skeleton, $maxqueries, $minfloodtime, $user_lvl, $user_id, $output, $mmfpm_db; - - if($enablesidecheck) $side = get_side(); // Better to use it here instead of call it many time in the loop :) - $mysql = new SQL; - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if($minfloodtime > 0) - { - $userposts = $mysql->query("SELECT time FROM forum_posts WHERE authorid = '$user_id' ORDER BY id DESC LIMIT 1;"); - if($mysql->num_rows($userposts) != 0) - { - $mintimeb4post = $mysql->fetch_row($userposts); - $mintimeb4post = time() - strtotime($mintimeb4post[0]); - - if($mintimeb4post < $minfloodtime) - error($forum_lang["please_wait"]); - } - } - - if(!isset($_GET["id"])) error($forum_lang["no_such_forum"]); - else $id = $mysql->quote_smart($_GET["id"]); - - $cat = 0; - foreach($forum_skeleton as $cid => $category){ - foreach($category["forums"] as $fid => $forum){ - if($fid == $id) $cat = $cid; - } - } - - if(empty($forum_skeleton[$cat]["forums"][$id])) error($forum_lang["no_such_forum"]); - $forum = $forum_skeleton[$cat]["forums"][$id]; - if($forum_skeleton[$cat]["level_post_topic"] > $user_lvl || $forum["level_post_topic"] > $user_lvl) error($forum_lang["no_access"]); - - if($user_lvl == 0 && $enablesidecheck){ - if($forum_skeleton[$cat]["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum_skeleton[$cat]["side_access"] != $side) // Forumside different of the user side - continue; - } - if($forum["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum["side_access"] != $side) // Forumside different of the user side - continue; - } - } - - - $output .= "

{$forum_lang["forums"]}

{$forum_lang["you_are_here"]} : {$forum_lang["forum_index"]} -> {$forum["name"]} -> {$forum_lang["new_topic"]}
"; - - $output .= "
-
"; - makebutton("Post", "javascript:do_submit()",100); - $output .= "{$forum_lang["topic_name"]}:
".bbcode_editor_js()." - {$forum_lang["bold"]}, - {$forum_lang["italic"]}, - {$forum_lang["underline"]}, - {$forum_lang["image"]}, - {$forum_lang["url"]}, - {$forum_lang["url2"]}, - {$forum_lang["code"]}, - {$forum_lang["quote"]}, - {$forum_lang["quote2"]}, - {$forum_lang["media"]} - {$forum_lang["YouTube"]} - {$forum_lang["color"]} : -
- -
- "; - $output .= "

"; - $mysql->close(); - // Queries : 1 -} -function forum_do_add_topic(){ - global $enablesidecheck, $forum_skeleton, $forum_lang, $user_lvl, $user_name, $user_id, $mmfpm_db, $minfloodtime; - - if($enablesidecheck) $side = get_side(); // Better to use it here instead of call it many time in the loop :) - - $mysql = new SQL; - $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - - { - $userposts = $mysql->query("SELECT time FROM forum_posts WHERE authorid = '$user_id' ORDER BY id DESC LIMIT 1;"); - if($mysql->num_rows($userposts) != 0) - { - $mintimeb4post = $mysql->fetch_row($userposts); - $mintimeb4post = time() - strtotime($mintimeb4post[0]); - - if($mintimeb4post < $minfloodtime) - error($forum_lang["please_wait"]); - } - } - - if(!isset($_POST['forum'])) error($forum_lang["no_such_forum"]); - else $forum = $mysql->quote_smart($_POST['forum']); - - $cat = 0; - foreach($forum_skeleton as $cid => $category){ - foreach($category["forums"] as $fid => $forum_){ - if($fid == $forum) $cat = $cid; - } - } - if(empty($forum_skeleton[$cat]["forums"][$forum])) error($forum_lang["no_such_forum"]); - $forum_ = $forum_skeleton[$cat]["forums"][$forum]; - if($forum_skeleton[$cat]["level_post_topic"] > $user_lvl || $forum_["level_post_topic"] > $user_lvl) error($forum_lang["no_access"]); - - if($user_lvl == 0 && $enablesidecheck){ - if($forum_skeleton[$cat]["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum_skeleton[$cat]["side_access"] != $side) // Forumside different of the user side - continue; - } - if($forum_["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum_["side_access"] != $side) // Forumside different of the user side - continue; - } - } - -// $_POST['msg'] = htmlspecialchars($_POST['msg']); - $msg = trim($mysql->quote_smart($_POST['msg']), " "); -// $_POST['name'] = htmlspecialchars($_POST['name']); - $name = trim($mysql->quote_smart($_POST['name']), " "); - - if (strlen($name) > 49){ - $mysql->close(); - error($forum_lang["name_too_long"]); - } - - if (strlen($name) < 5){ - $mysql->close(); - error($forum_lang["name_too_short"]); - } - - if (strlen($msg) < 5){ - $mysql->close(); - error($forum_lang["msg_too_short"]); - } - - $msg = str_replace('\n', '
', $msg); -// $msg = str_replace('\r', '
', $msg); - - $time = date("m/d/y H:i:s"); - - $mysql->query("INSERT INTO forum_posts (authorid, authorname, forum, name, text, time) VALUES ('$user_id', '$user_name', '$forum', '$name', '$msg', '$time');"); - $id = $mysql->insert_id(); - $mysql->query("UPDATE forum_posts SET topic = '$id', lastpost = '$id' WHERE id = '$id';"); - - $mysql->close(); - - redirect("forum.php?action=view_topic&id=$id"); - // Queries : 3 -} -function forum_do_add_post(){ - global $enablesidecheck, $forum_skeleton, $forum_lang, $minfloodtime, $user_lvl, $user_name, $user_id, $mmfpm_db; - - if($enablesidecheck) $side = get_side(); // Better to use it here instead of call it many time in the loop :) - - $mysql = new SQL; - $link = $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if($minfloodtime > 0) - { - $userposts = $mysql->query("SELECT time FROM forum_posts WHERE authorid = '$user_id' ORDER BY id DESC LIMIT 1;"); - if($mysql->num_rows($userposts) != 0) - { - $mintimeb4post = $mysql->fetch_row($userposts); - $mintimeb4post = time() - strtotime($mintimeb4post[0]); - - if($mintimeb4post < $minfloodtime) - error($forum_lang["please_wait"]); - } - } - - if(!isset($_POST['forum'])) error($forum_lang["no_such_forum"]); - else $forum = $mysql->quote_smart($_POST['forum']); - - $cat = 0; - foreach($forum_skeleton as $cid => $category){ - foreach($category["forums"] as $fid => $forum_){ - if($fid == $forum) $cat = $cid; - } - } - - if(empty($forum_skeleton[$cat]["forums"][$forum])) error($forum_lang["no_such_forum"]); - $forum_ = $forum_skeleton[$cat]["forums"][$forum]; - if((($user_lvl > 0)||!$closed)&&($forum_skeleton[$cat]["level_post"] > $user_lvl || $forum_["level_post"] > $user_lvl)) error($forum_lang["no_access"]); - - if($user_lvl == 0 && $enablesidecheck){ - if($forum_skeleton[$cat]["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum_skeleton[$cat]["side_access"] != $side) // Forumside different of the user side - continue; - } - if($forum_["side_access"] != "ALL"){ // Not an all side forum - if($side == "NO") // No char - continue; - else if($forum_["side_access"] != $side) // Forumside different of the user side - continue; - } - } - - if(!isset($_POST['topic'])) error($forum_lang["no_such_topic"]); - else $topic = $mysql->quote_smart($_POST['topic']); - -// $_POST['msg'] = htmlspecialchars($_POST['msg']); - $msg = trim($mysql->quote_smart($_POST['msg']), " "); - - $msg = str_replace('\n', '
', $msg); -// $msg = str_replace('\r', '
', $msg); - - if (strlen($msg) < 5){ - $mysql->close(); - error($forum_lang["msg_too_short"]); - } - - $name = $mysql->query("SELECT name FROM forum_posts WHERE id = '$topic';"); - $name = $mysql->fetch_row($name); - $name = $mysql->quote_smart($name[0]); - - $time = date("m/d/y H:i:s"); - - $mysql->query("INSERT INTO forum_posts (authorid, authorname, forum, topic, name, text, time) VALUES ('$user_id', '$user_name', '$forum', $topic, '$name', '$msg', '$time');"); - $id = @mysql_insert_id($link); - $mysql->query("UPDATE forum_posts SET lastpost = $id WHERE id = $topic;"); - - $mysql->close(); - - redirect("forum.php?action=view_topic&id=$topic"); - // Queries : 4 -} - -function forum_edit_post(){ - global $forum_skeleton, $forum_lang, $maxqueries, $minfloodtime, $user_lvl, $user_id, $output, $mmfpm_db; - - $mysql = new SQL; - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if(!isset($_GET["id"])) error($forum_lang["no_such_post"]); - else $id = $mysql->quote_smart($_GET["id"]); - - $post = $mysql->query("SELECT id,topic,authorid,forum,name,text FROM forum_posts WHERE id = '$id';"); - if($mysql->num_rows($post)==0) error($forum_lang["no_such_post"]); - $post = $mysql->fetch_row($post); - - if($user_lvl == 0 && $user_id != $post[2]) - error($forum_lang["no_access"]); - - $cat = 0; - foreach($forum_skeleton as $cid => $category){ - foreach($category["forums"] as $fid_ => $forum){ - if($fid_ == $post[3]) $cat = $cid; - } - } - if(empty($forum_skeleton[$cat]["forums"][$post[3]])) // No such forum.. - error($forum_lang["no_such_forum"]); - $forum = $forum_skeleton[$cat]["forums"][$post[3]]; - - $output .= "

{$forum_lang["forums"]}

{$forum_lang["you_are_here"]} : {$forum_lang["forum_index"]} -> {$forum["name"]} -> {$post[4]} -> {$forum_lang["edit"]}
"; - - $output .= "
"; - else - $output .= ""; - - $post[5] = str_replace('
', chr(10), $post[5]); - - $output .= "
"; - makebutton("Post", "javascript:do_submit()",220); - if($post[0] = $post[0]) - $output .= "
$post[4]
".bbcode_editor_js()." - {$forum_lang["bold"]}, - {$forum_lang["italic"]}, - {$forum_lang["underline"]}, - {$forum_lang["image"]}, - {$forum_lang["url"]}, - {$forum_lang["url2"]}, - {$forum_lang["code"]}, - {$forum_lang["quote"]}, - {$forum_lang["quote2"]}, - {$forum_lang["media"]} - {$forum_lang["YouTube"]} - {$forum_lang["color"]} : -
- -
"; - - $output .= " - - "; - - $output .= "

"; - $mysql->close(); - // Queries : 1 -} -function forum_do_edit_post(){ - global $forum_lang, $user_lvl, $user_name, $user_id, $mmfpm_db; - - $mysql = new SQL; - $link = $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if(!isset($_POST['forum'])) error($forum_lang["no_such_forum"]); - else $forum = $mysql->quote_smart($_POST['forum']); - if(!isset($_POST['post'])) error($forum_lang["no_such_post"]); - else $post = $mysql->quote_smart($_POST['post']); - - if(!isset($_POST['name'])) - $topic = 0; - else{ - $topic = 1; -// htmlspecialchars($_POST['name']); - $name = $mysql->quote_smart($_POST['name']); - if (strlen($name) > 49){ - $mysql->close(); - error($forum_lang["name_too_long"]); - } - if (strlen($name) < 5){ - $mysql->close(); - error($forum_lang["name_too_short"]); - } - } - -// $_POST['msg'] = htmlspecialchars($_POST['msg']); - $msg = trim($mysql->quote_smart($_POST['msg']), " "); - - if (strlen($msg) < 5){ - $mysql->close(); - error($forum_lang["msg_too_short"]); - } - - $msg = str_replace('\n', '
', $msg); -// $msg = str_replace('\r', '
', $msg); - - $result = $mysql->query("SELECT topic FROM forum_posts WHERE id = $post;"); - $topicid = $mysql->fetch_row($result); - - $mysql->query("UPDATE forum_posts SET text = '$msg' WHERE id = $post;"); - - if($topic == 1){ - $mysql->query("UPDATE forum_posts SET name = '$name' WHERE topic = {$topicid[0]};"); - } - - $result = $mysql->query("SELECT topic FROM forum_posts WHERE id = $post;"); - $topicid = $mysql->fetch_row($result); - - $mysql->close(); - redirect("forum.php?action=view_topic&id={$topicid[0]}"); - // Queries : 3 (+1 if topic) -} - -function forum_move_topic(){ - global $forum_skeleton, $forum_lang, $maxqueries, $user_lvl, $user_id, $output, $mmfpm_db; - $mysql = new SQL; - - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - if(!isset($_GET["id"])) error($forum_lang["no_such_topic"]); - else $id = $mysql->quote_smart($_GET["id"]); - - $topic = $mysql->query("SELECT id,topic,authorid,forum, name FROM forum_posts WHERE id = '$id';"); - // 0 1 2 3 4 - if($mysql->num_rows($topic)==0) error($forum_lang["no_such_topic"]); - $topic = $mysql->fetch_row($topic); - if($user_lvl == 0) error($forum_lang["no_access"]); - $fid = $topic[3]; - - $cat = 0; - foreach($forum_skeleton as $cid => $category){ - foreach($category["forums"] as $fid_ => $forum){ - if($fid_ == $fid) $cat = $cid; - } - } - - if(empty($forum_skeleton[$cat]["forums"][$fid])) // No such forum.. - error($forum_lang["no_such_forum"]); - $forum = $forum_skeleton[$cat]["forums"][$fid]; - - $output .= "

{$forum_lang["forums"]}

{$forum_lang["you_are_here"]} : {$forum_lang["forum_index"]} -> {$forum["name"]} -> {$topic[4]} -> {$forum_lang["move"]}!
-
{$forum_lang["where"]} :
"; - makebutton($forum_lang["back"], "javascript:window.history.back()", 120); - makebutton($forum_lang["confirm"], "javascript:do_submit()", 120); - $output .= "
"; - $mysql->close(); - // Queries : 1 -} -function forum_do_move_topic(){ - global $forum_lang, $forum_skeleton, $maxqueries, $user_lvl, $user_id, $output, $mmfpm_db; - - $mysql = new SQL; - $link = $mysql->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']); - - if(!isset($_POST['forum'])) error($forum_lang["no_such_forum"]); - else $forum = $mysql->quote_smart($_POST['forum']); - if(!isset($_POST['id'])) error($forum_lang["no_such_topic"]); - else $id = $mysql->quote_smart($_POST['id']); - - $mysql->query("UPDATE forum_posts SET forum = '$forum' WHERE topic = '$id'"); // update topic' s last post id - redirect("forum.php?action=view_topic&id=$id"); - // Queries : 1 -} - - - -if(isset($_GET['action'])) - $action = addslashes($_GET['action']); -else $action = NULL; - -$forum_lang = lang_forum(); - -switch ($action){ - case "index": forum_index(); break; - case "view_forum": forum_view_forum(); break; - case "view_topic": forum_view_topic(); break; - case "add_topic": forum_add_topic(); break; - case "do_add_topic": forum_do_add_topic(); break; - case "edit_post": forum_edit_post(); break; - case "do_edit_post": forum_do_edit_post(); break; - case "delete_post": forum_delete_post(); break; - case "do_delete_post": forum_do_delete_post(); break; - case "do_add_post": forum_do_add_post(); break; - case "edit_stick": forum_do_edit_stick(); break; - case "edit_announce": forum_do_edit_announce(); break; - case "edit_close": forum_do_edit_close(); break; - case "move_topic": forum_move_topic(); break; - case "do_move_topic": forum_do_move_topic(); break; - default: forum_index(); -} - -unset($action); -unset($forum_lang); - -require_once("footer.php"); - -?> diff --git a/header.php b/header.php index a4f68221..3cdc8416 100644 --- a/header.php +++ b/header.php @@ -1,4 +1,7 @@ activate gzip compression if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); diff --git a/img/INV/index.html b/img/INV/index.html deleted file mode 100644 index 8b9da368..00000000 --- a/img/INV/index.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/INV/index.php b/img/INV/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/INV/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/avatars/60/index.php b/img/avatars/60/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/avatars/60/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/avatars/70/index.php b/img/avatars/70/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/avatars/70/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/avatars/80/index.php b/img/avatars/80/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/avatars/80/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/avatars/bliz/index.php b/img/avatars/bliz/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/avatars/bliz/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/avatars/frame/index.php b/img/avatars/frame/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/avatars/frame/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/avatars/index.php b/img/avatars/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/avatars/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/avatars/np/index.php b/img/avatars/np/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/avatars/np/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/c_icons/index.php b/img/c_icons/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/c_icons/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/editor/index.php b/img/editor/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/editor/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/emoticons/index.php b/img/emoticons/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/emoticons/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/flags/index.php b/img/flags/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/flags/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/forums/index.php b/img/forums/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/forums/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/icons/index.php b/img/icons/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/icons/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/index.php b/img/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/map/index.php b/img/map/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/map/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/pet/index.php b/img/pet/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/pet/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/img/ranks/index.php b/img/ranks/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/img/ranks/index.php @@ -0,0 +1,3 @@ += $action_permission['update']) $output .= ' - + Edit '; $output .= ' diff --git a/lang/index.html b/lang/index.html deleted file mode 100644 index 8b9da368..00000000 --- a/lang/index.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/lang/index.php b/lang/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/lang/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/lang/outdated/index.php b/lang/outdated/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/lang/outdated/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/libs/captcha/index.php b/libs/captcha/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/libs/captcha/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/libs/db_lib/index.php b/libs/db_lib/index.php new file mode 100644 index 00000000..117857e9 --- /dev/null +++ b/libs/db_lib/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/libs/index.php b/libs/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/libs/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/libs/js/JsHttpRequest/index.php b/libs/js/JsHttpRequest/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/libs/js/JsHttpRequest/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/libs/js/index.php b/libs/js/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/libs/js/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/libs/js/irc/index.php b/libs/js/irc/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/libs/js/irc/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/libs/mailer/index.php b/libs/mailer/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/libs/mailer/index.php @@ -0,0 +1,3 @@ + - - '.$lang_login['username'].' : + + - - '.$lang_login['password'].' : + + '; $result = $sqlr->query('SELECT id, name FROM realmlist ORDER BY id ASC LIMIT 10'); @@ -125,15 +125,15 @@ function dologin () - - '.$lang_login['remember_me'].' : + :
- '; + '; $output .= ' @@ -141,7 +141,7 @@ function dologin () - '; + '; makebutton($lang_login['not_registrated'], 'register.php" type="wrn', 130); makebutton($lang_login['login'], 'javascript:dologin()" type="def', 130); diff --git a/mail_templates/german/index.html b/mail_templates/german/index.html deleted file mode 100644 index 8b9da368..00000000 --- a/mail_templates/german/index.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/mail_templates/german/index.php b/mail_templates/german/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/mail_templates/german/index.php @@ -0,0 +1,3 @@ + - - - - - - you are not suppose to be here, redirecting to here. - - diff --git a/mail_templates/index.php b/mail_templates/index.php new file mode 100644 index 00000000..12c13a79 --- /dev/null +++ b/mail_templates/index.php @@ -0,0 +1,3 @@ + -'<?php echo $realm_name ?>' - online map +'<?php echo $realm_name ?>' - online map - +