Toplist ompbouwen in phpbb
Geplaatst: 09 jun 2004, 18:07
Ik heb nu proberen een toplist willen ombouwen dat je de header ook hebt.
Maar nu is dat een betje uitgevallen en mislukt.
design.php is desing
En er is een andere config gebruikt.
De code van design.php:
Maar nu is dat een betje uitgevallen en mislukt.
design.php is desing
En er is een andere config gebruikt.
De code van design.php:
Hopenlijk kunnen jullie me helpen.<?php
// standard hack prevent
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// standard session management
$userdata = session_pagestart($user_ip, PAGE_TEMPLATE);
init_userprefs($userdata);
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
include("config2.php");
mysql_connect ($conf['mysql_host'], $conf['mysql_user'], $conf['mysql_pass']);
mysql_select_db($conf['mysql_db']);
IF(file_exists("languages_toplist/lang_" . $conf['lang'] . ".php")) {
include("languages_toplist/lang_" . $conf['lang'] . ".php");
}
elseIF(!file_exists("languages_toplist/lang_" . $conf['lang'] . ".php")) {
include("languages_toplist/lang_english.php");
}
function password ($len) {
$chars = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ123456789";
mt_srand( (double) microtime() * 1000000);
for ($i=1;$i<=$len;$i++) $out .= $chars[mt_rand(0,(strlen($chars)-1))];
return $out;
}
function design_topp() {
include("config.php2");
IF(file_exists("languages_toplist/lang_" . $conf['lang'] . ".php")) {
include("languages_toplist/lang_" . $conf['lang'] . ".php");
}
elseIF(!file_exists("languages_toplist/lang_" . $conf['lang'] . ".php")) {
include("languages_toplist/lang_english.php");
}
?>
<html>
<head>
<meta http-equiv="Content-Language" content="no-bok">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>TopList</title>
</head>
<body bgcolor="#7CA3BE" text="#335368" link="#294456" vlink="#294456" alink="#294456" style="font-size: 10pt; font-family: Arial">
<div align="center">
<center>
<table border="0" width="600">
<tr>
<td width="100%">
<p align="center"><img border="0" src="img_toplist/banner.gif" width="468" height="60"></td>
</tr>
<tr>
<td width="100%">
<p align="center"><i><font face="Arial" size="2">[<a href="toplist.php">hoofd pagina</a>]
[<a href="signup.php">registreren</a>] [<a href="member.php">Leden gedeelte</a>] </font></i>
</td>
</tr>
<tr>
<td width="100%" style="border: 1 solid #294456" valign="top"> <font size="2">
<?php
}
function design_bunn() {
?>
</font> </td>
</tr>
<tr>
<td width="100%">
<div align="center"><font size="1" face="Arial">
Powered By <a href="http://projects.sourceforge.no">TopList</a>.
</font></div>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
<?php
}
function verifyLogin($_user, $_pass){
$sql = "SELECT * FROM sites WHERE mail = '$_user' AND pass = '$_pass'";
$res = mysql_query($sql);
if ($res){
if (mysql_num_rows($res) > 0){
return true;
}else{
return false;
} // if
}else{
print "Fatal error. Please contact the <a href=\"mailto:" . $conf['mail'] . "\">webmaster/a> of this site.";
} // if
} // verifyLogin
?>