| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,25 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-if(!defined("_CHARSET")) exit( );
|
|
| 3 |
-if(!isMEMBER) {
|
|
| 4 |
- $output .= "<div id=\"pagetitle\">"._MEMBERLOGIN."</div>"; |
|
| 5 |
- |
|
| 6 |
-if(!isset($_SESSION)) session_start(); |
|
| 7 |
-if(isset($_GET['sid']) && isNumber($_GET['sid'])) $_SESSION['login_url'] = $url."/viewstory.php?sid=".$_GET['sid']; |
|
| 8 |
-else $_SESSION['login_url'] = $url."/user.php"; |
|
| 9 |
- $output .= "<div style='text-align: center;'><form method=\"POST\"enctype=\"multipart/form-data\" action=\"".PATHTOSMF."index.php?action=login2\"><div style=\"width: 320px; padding: 5px; margin: 0 auto;\"> |
|
| 10 |
- <input type=\"hidden\" name=\"cookielength\" value=\"-1\" /><input type=\"hidden\" name=\"login_url\" value=\"".$_SESSION['login_url']."\" /> |
|
| 11 |
- <div class=\"label\" style=\"float: left; width: 30%; text-align: right;\"><label for=\"penname\">"._PENNAME.":</label></div><INPUT type=\"text\" class=\"textbox\" name=\"user\" id=\"user\"><br /> |
|
| 12 |
- <div class=\"label\" style=\"float: left; width: 30%; text-align: right;\"><label for=\"pswd\">"._PASSWORD.":</label></div><INPUT type=\"password\" class=\"textbox\" id=\"passwrd\" name=\"passwrd\"><br /> |
|
| 13 |
- <INPUT type=\"checkbox\" class=\"checkbox\" name=\"cookieneverexp\" id=\"cookieneverexp\" value=\"1\"><label for=\"cookieneverexp\">"._REMEMBERME."</label><br /> |
|
| 14 |
- <INPUT type=\"submit\" class=\"button\" name=\"submit\" value=\""._SUBMIT."\"> |
|
| 15 |
- </div></form></div>"; |
|
| 16 |
- $linkquery = dbquery("SELECT * from ".TABLEPREFIX."fanfiction_pagelinks WHERE link_name = 'login' OR link_name = 'lostpassword'");
|
|
| 17 |
- while($link = dbassoc($linkquery)) {
|
|
| 18 |
- if($link['link_access'] && !isMEMBER) continue; |
|
| 19 |
- if($link['link_access'] == 2 && !isADMIN) continue; |
|
| 20 |
- $pagelinks[$link['link_name']] = array("id" => $link['link_id'], "text" => $link['link_text'], "url" => _BASEDIR.$link['link_url'], "link" => "<a href=\"".$link['link_url']."\" title=\"".$link['link_text']."\"".($link['link_target'] ? " target=\"_blank\"" : "").($current == $link['link_name'] ? " id=\"current\"" : "").">".$link['link_text']."</a>");
|
|
| 21 |
- } |
|
| 22 |
- $output .= "<div style='text-align: center;'>".$pagelinks['register']['link']." | ".$pagelinks['lostpassword']['link']."</div>"; |
|
| 23 |
-} |
|
| 24 |
-else accessDenied( ); |
|
| 25 |
-?> |
|
| 26 | 0 |
\ No newline at end of file |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,25 @@ |
| 1 |
+<?php |
|
| 2 |
+if(!defined("_CHARSET")) exit( );
|
|
| 3 |
+if(!isMEMBER) {
|
|
| 4 |
+ $output .= "<div id=\"pagetitle\">"._MEMBERLOGIN."</div>"; |
|
| 5 |
+ |
|
| 6 |
+if(!isset($_SESSION)) session_start(); |
|
| 7 |
+if(isset($_GET['sid']) && isNumber($_GET['sid'])) $_SESSION['login_url'] = $url."/viewstory.php?sid=".$_GET['sid']; |
|
| 8 |
+else $_SESSION['login_url'] = $url."/user.php"; |
|
| 9 |
+ $output .= "<div style='text-align: center;'><form method=\"POST\"enctype=\"multipart/form-data\" action=\"".PATHTOSMF."index.php?action=login2\"><div style=\"width: 320px; padding: 5px; margin: 0 auto;\"> |
|
| 10 |
+ <input type=\"hidden\" name=\"cookielength\" value=\"-1\" /><input type=\"hidden\" name=\"login_url\" value=\"".$_SESSION['login_url']."\" /> |
|
| 11 |
+ <div class=\"label\" style=\"float: left; width: 30%; text-align: right;\"><label for=\"penname\">"._PENNAME.":</label></div><INPUT type=\"text\" class=\"textbox\" name=\"user\" id=\"user\"><br /> |
|
| 12 |
+ <div class=\"label\" style=\"float: left; width: 30%; text-align: right;\"><label for=\"pswd\">"._PASSWORD.":</label></div><INPUT type=\"password\" class=\"textbox\" id=\"passwrd\" name=\"passwrd\"><br /> |
|
| 13 |
+ <INPUT type=\"checkbox\" class=\"checkbox\" name=\"cookieneverexp\" id=\"cookieneverexp\" value=\"1\"><label for=\"cookieneverexp\">"._REMEMBERME."</label><br /> |
|
| 14 |
+ <INPUT type=\"submit\" class=\"button\" name=\"submit\" value=\""._SUBMIT."\"> |
|
| 15 |
+ </div></form></div>"; |
|
| 16 |
+ $linkquery = dbquery("SELECT * from ".TABLEPREFIX."fanfiction_pagelinks WHERE link_name = 'login' OR link_name = 'lostpassword'");
|
|
| 17 |
+ while($link = dbassoc($linkquery)) {
|
|
| 18 |
+ if($link['link_access'] && !isMEMBER) continue; |
|
| 19 |
+ if($link['link_access'] == 2 && !isADMIN) continue; |
|
| 20 |
+ $pagelinks[$link['link_name']] = array("id" => $link['link_id'], "text" => $link['link_text'], "url" => _BASEDIR.$link['link_url'], "link" => "<a href=\"".$link['link_url']."\" title=\"".$link['link_text']."\"".($link['link_target'] ? " target=\"_blank\"" : "").($current == $link['link_name'] ? " id=\"current\"" : "").">".$link['link_text']."</a>");
|
|
| 21 |
+ } |
|
| 22 |
+ $output .= "<div style='text-align: center;'>".$pagelinks['register']['link']." | ".$pagelinks['lostpassword']['link']."</div>"; |
|
| 23 |
+} |
|
| 24 |
+else accessDenied( ); |
|
| 25 |
+?> |
|
| 0 | 26 |
\ No newline at end of file |