Файл: inc/template.php
Строк: 100
<?php
function theader($title = NULL){
global $s_sitename, $s_siteurl;
if(getid() == NULL)
$tuid = 0;
else
$tuid = getid();
if($title == NULL)
setonline($tuid, '???');
else
setonline($tuid, $title);
if($title == NULL)
$title = $s_sitename;
else
$title = $s_sitename . ' - ' . $title;
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>' . $title . '</title>
<link rel="stylesheet" href="/style.css" type="text/css" />
</head><body>
<div class="phdr">' . $s_sitename . '</div>';
}
function tfooter(){
global $s_sitename, $s_siteurl, $set;
echo'<div class="fmenu"><a href="/index.php">© '.$set['copy'].' ' . $s_sitename . '</a>.</div></body></html>';
}
function tloginbox(){
global $s_siteurl, $lang;
echo'<div class="list2">
<form method="get" action="/login.php">
' . $lang['username'] . ':<br /><input type="text" name="username" /><br />
' . $lang['password'] . ':<br /><input type="password" name="password" /><br />
<input type="submit" value="' . $lang['login'] . '" /> <input type="reset" value="' . $lang['reset'] . '" />
</form></div><div class="list2">
<small><a href="/recover.php">' . $lang['lostpassword'] . '?</a></small></div>';
}
function tregisterbox($code){
global $s_siteurl, $lang, $language;
echo '<div class="list2">
<form method="post" action="/register.php">
<input type="hidden" name="code" value="' . $code . '" /><br />
' . $lang['username'] . ':<br /><input type="text" name="username" /><br />
' . $lang['password'] . ':<br /><input type="password" name="password" /><br />
' . $lang['email'] . ':<br /><input type="text" name="email" /><br />
<input type="submit" value="' . $lang['register'] . '" /> <input type="reset" value="' . $lang['reset'] . '" />
</form></div>';
}
function tcodebox(){
global $s_siteurl, $lang, $language;
echo '<div class="list2">
<form method="get" action="/register.php">
' . $lang['invitecode'] . ':<br /><input type="text" name="code" /><br />
<input type="submit" value="' . $lang['continue'] . '" /> <input type="reset" value="' . $lang['reset'] . '" />
</form></div>';
}
function trecoverbox(){
global $s_siteurl, $lang, $language;
echo'<div class="list2">
<form method="post" action="/recover.php">
' . $lang['email'] . ':<br /><input type="text" name="email" /><br />
<input type="submit" value="' . $lang['recover'] . '" /> <input type="reset" value="' . $lang['reset'] . '" />
</form></div>';
}
?>