Hello lm currently working on a theme that l seen at a other place and l would like to know how to make the login and security code all one line to show up in the header.html l have looked and l did find this bit of code but l want it to look like this one this site
http://www.pixdesign.ch/en/ and this is the code l found how do l change this to look like that so l may insert it into my page
|
Code:
|
function main($user) {
global $stop, $module_name, $redirect, $mode, $t, $f;
if(!is_user($user)) {
include("header.php");
if ($stop) {
OpenTable();
echo "<font class=\"title\">"._LOGININCOR."[/b]</font></center>\n";
CloseTable();
echo "\n";
} else {
OpenTable();
echo "<center><font class=\"title\">"._USERREGLOGIN."[/b]</font></center>\n";
CloseTable();
echo "\n";
}
if (!is_user($user)) {
OpenTable();
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
echo "<form action=\"modules.php?name=$module_name\" method=\"post\">\n"
.""._USERLOGIN."
\n"
."<table border=\"0\"><tr><td>\n"
.""._NICKNAME.":</td><td><input type=\"text\" name=\"username\" size=\"15\" maxlength=\"25\"></td></tr>\n"
."<tr><td>"._PASSWORD.":<input type=\"password\" name=\"user_password\" size=\"15\" maxlength=\"20\"></td></tr>\n";
if (extension_loaded("gd")) {
echo "<tr><td colspan='2'>"._SECURITYCODE.": [img]modules.php?name=$module_name&op=gfx&random_num=$random_num[/img]</td></tr>\n"
."<tr><td colspan='2'>"._TYPESECCODE.": <input type=\"text\" NAME=\"gfx_check\" SIZE=\"7\" MAXLENGTH=\"6\"></td></tr>\n"
."<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">\n";
}
echo "</table><input type=\"hidden\" name=\"redirect\" value=$redirect>\n"
."<input type=\"hidden\" name=\"mode\" value=$mode>\n"
."<input type=\"hidden\" name=\"f\" value=$f>\n"
."<input type=\"hidden\" name=\"t\" value=$t>\n"
."<input type=\"hidden\" name=\"op\" value=\"login\">\n"
."<input type=\"submit\" value=\""._LOGIN."\"></form>
\n\n"
."<center><font class=\"content\">[ <a href=\"modules.php?name=$module_name&op=pass_lost\">"._PASSWORDLOST."</a> | <a href=\"modules.php?name=$module_name&op=new_user\">"._REGNEWUSER."</a> ]</font></center>\n";
CloseTable();
}
include("footer.php");
} elseif (is_user($user)) {
global $cookie;
cookiedecode($user);
userinfo($cookie[1]);
}
} |
l simply want the login and security code all one line like they have on there page any help would be appreciated thanks in advance
XtraX :P