| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,21 @@ |
| 1 |
+<?php |
|
| 2 |
+if(!defined("_CHARSET")) exit( );
|
|
| 3 |
+ |
|
| 4 |
+ $longform = "{penname} {password} {rememberme} {go} <div id='loginlinks'>{register} | {lostpwd}</div>";
|
|
| 5 |
+ $shortform = "{penname} {password} {rememberme} {go}";
|
|
| 6 |
+if(!isMEMBER) {
|
|
| 7 |
+ $content = "<form method=\"POST\" id=\"loginblock\" enctype=\"multipart/form-data\" action=\""._BASEDIR."user.php?action=login\">"; |
|
| 8 |
+ $replace = array("<label for=\"penname=\">"._PENNAME.":</label><INPUT type=\"text\" class=\"textbox\" name=\"penname\" id=\"penname\" size=\"15\">",
|
|
| 9 |
+ "<label for=\"password\">"._PASSWORD.":</label><INPUT type=\"password\" class=\"textbox\" name=\"password\" id=\"password\" size=\"15\">", |
|
| 10 |
+ "<span id='rememberme'><INPUT type=\"checkbox\" class=\"checkbox\" name=\"cookiecheck\" id=\"cookiecheck\" value=\"1\"><label for=\"cookiecheck=\">"._REMEMBERME."</label></span>", |
|
| 11 |
+ (!empty($pagelinks['register']['link']) ? $pagelinks['register']['link'] : ""), $pagelinks['lostpassword']['link'], |
|
| 12 |
+ "<INPUT type=\"submit\" class=\"button\" name=\"submit\" value=\""._GO."\">"); |
|
| 13 |
+ $search = array("@\{penname\}@", "@\{password\}@", "@\{rememberme\}@", "@\{register\}@", "@\{lostpwd\}@", "@\{go\}@");
|
|
| 14 |
+ if(!empty($blocks['login']['template'])) $content .= preg_replace($search, $replace, stripslashes($blocks['login']['template'])); |
|
| 15 |
+ else $content .= preg_replace( $search, $replace , (!empty($blocks['login']['form']) ? $longform : $shortform)); |
|
| 16 |
+ $content .= "</form>"; |
|
| 17 |
+} |
|
| 18 |
+else if(!empty($blocks['login']['acctlink'])) $content = $pagelinks['login']['link']; |
|
| 19 |
+else $content = ""; |
|
| 20 |
+ |
|
| 21 |
+?> |
|
| 0 | 22 |
\ No newline at end of file |