secretman8o
Gebruiker
- Lid geworden
- 9 jul 2009
- Berichten
- 40
beste scripters,
ik heb gister op mijn website een programma geinstalleerd, wat mij zou moeten helpen om een game-clan page te onderhouden, deze programma heet webspell.
als ik de installatie mag geloven heb ik deze correct geinstalleerd, nu is het probleem dat niemand zich kan aanmelden en of kan inloggen, deze geeft elke keer weer dezelfde melding:
Please make sure that cookies are enabled on your browser.
deze meldig geeft ie altijd, en bij elke combinatie.
gebruikersnaam bot1 wachtwoord test1 = Please make sure that cookies are enabled on your browser
gebruikersnaam bot1 wachtwoord (fout) = Please make sure that cookies are enabled on your browser
gebruikersnaam (leeg) wachtwoord (leeg) = Please make sure that cookies are enabled on your browser
deze melding ligt niet aan mijn cookie instellingen, deze fout komt bij elke pc mobiel tablet.
op het internet zijn er meerdere soortgelijke fouten te vinden, maar er is nog niet echt een oplossing volgens mij.
link naar de betreffende website:
www.secretplay.de/counterstrike/source
link naar het programma ( webspell ):
http://www.webspell.org/
er schijnt een mogelijke oplossing voor te zijn met een zogenaamde BOM-script, hieronder een link ernaartoe:
http://addons-webspell.org/index.php?site=files&file=313
nu weet ik alleen niet hoe je deze inschakeld, volgens mij moet je inloggen om deze script te activeren ? maarja als ik wil inloggen geeft ie dus weer de fout hierboven aan..
hieronder 3 scripts
de eerste scipt is de index.php:
de 2e script is de login.php:
de 3e script is de loginoverview.php:
hieronde het bom-file:
en hieronde de readme uitleg over de bom-file:
##########################
# Byte-Order-Mark Check #
# Find and Fix files #
# webSPELL Version 4.02* #
# Copyright #
# Philipp Rehs #
##########################
Deutch:
__________________________
1) Alle Dateien in der vorgegebenen Ordnerstruktur hochladen
2) admincenter.php?site=bomcheck aufrufen
3) Fehlerhafte Dateien auswählen und korrigiren lassen
Englisch:
__________________________
1) Upload all file in the specified folder structure
2) visit admincenter.php?site=bomcheck
3) Select broken files and fix them
bij nummer 2 moet je dus inloggen lijkt mij, en dat gaat dus niet...
help
ik heb gister op mijn website een programma geinstalleerd, wat mij zou moeten helpen om een game-clan page te onderhouden, deze programma heet webspell.
als ik de installatie mag geloven heb ik deze correct geinstalleerd, nu is het probleem dat niemand zich kan aanmelden en of kan inloggen, deze geeft elke keer weer dezelfde melding:
Please make sure that cookies are enabled on your browser.
deze meldig geeft ie altijd, en bij elke combinatie.
gebruikersnaam bot1 wachtwoord test1 = Please make sure that cookies are enabled on your browser
gebruikersnaam bot1 wachtwoord (fout) = Please make sure that cookies are enabled on your browser
gebruikersnaam (leeg) wachtwoord (leeg) = Please make sure that cookies are enabled on your browser
deze melding ligt niet aan mijn cookie instellingen, deze fout komt bij elke pc mobiel tablet.
op het internet zijn er meerdere soortgelijke fouten te vinden, maar er is nog niet echt een oplossing volgens mij.
link naar de betreffende website:
www.secretplay.de/counterstrike/source
link naar het programma ( webspell ):
http://www.webspell.org/
er schijnt een mogelijke oplossing voor te zijn met een zogenaamde BOM-script, hieronder een link ernaartoe:
http://addons-webspell.org/index.php?site=files&file=313
nu weet ik alleen niet hoe je deze inschakeld, volgens mij moet je inloggen om deze script te activeren ? maarja als ik wil inloggen geeft ie dus weer de fout hierboven aan..
hieronder 3 scripts
de eerste scipt is de index.php:
PHP:
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2011 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# -- http://www.fsf.org/licensing/licenses/gpl.html #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
##########################################################################
*/
// important data include
include("_mysql.php");
include("_settings.php");
include("_functions.php");
$_language->read_module('index');
$index_language = $_language->module;
// end important data include
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Clanpage using webSPELL 4 CMS" />
<meta name="author" content="webspell.org" />
<meta name="keywords" content="webspell, webspell4, clan, cms" />
<meta name="copyright" content="Copyright © 2005 - 2011 by webspell.org" />
<meta name="generator" content="webSPELL" />
<!-- Head & Title include -->
<title><?php echo PAGETITLE; ?></title>
<link href="_stylesheet.css" rel="stylesheet" type="text/css" />
<link href="tmp/rss.xml" rel="alternate" type="application/rss+xml" title="<?php echo getinput($myclanname); ?> - RSS Feed" />
<script src="js/bbcode.js" language="jscript" type="text/javascript"></script>
<!-- end Head & Title include -->
<!-- standard Design stylesheet -->
<style type="text/css">
body { margin: 5px 0 10px 0; padding: 0; font: 10px Verdana, Arial, Tahoma, Helvetica, sans-serif; color: #000000; background-image: url(images/bg.gif); }
div#container { width: 1000px; margin: 0 auto; padding: 0; text-align: left; }
div#head { width: 1000px; height: 12px; background-color: #36befc; }
div#content { width: 1000px; margin: 0; background-color: #ffffff; }
div#content .cols { float: left; width: 800px; }
div#content .col1 { float: left; width: 200px; border-right: 1px solid #cccccc; }
div#content .col2 { margin-left: 200px; text-align: justify; }
div#content .col3 { margin-left: 800px; border-left: 1px solid #cccccc; }
div#footer { clear: both; height: 50px; width: 1000px; text-align: center; background-color: <?php echo BG_4; ?>; }
hr.grey { height: 1px; background-color: #cccccc; color: #cccccc; border: none; margin: 10px 0 4px 0; }
.nav { color: #36befc; font-weight: bold; }
</style>
<!--[if IE]>
<style type="text/css">
div#content .col2 { width: 74%; }
div#content .col3 { width: 19%; }
hr.grey { margin: 3px 0 3px 0; }
</style>
<![endif]-->
<!--[if lte IE 7]>
<style type="text/css">
hr.grey { margin: 3px 0 -3px 0; }
</style>
<![endif]-->
<!--[if gte IE 8]>
<style type="text/css">
hr.grey { margin: 3px 0 3px 0;}
</style>
<![endif]-->
<!-- end standard Design stylesheet -->
</head>
<body>
<div id="container">
<div id="head"></div>
<div id="content">
<div class="cols">
<div class="col1">
<div style="padding:10px;">
<!-- clanname -->
<span style="font-size:20px;"><?php echo $myclanname ?></span>
<!-- end clanname -->
<!-- quicksearch include -->
<?php include("quicksearch.php"); ?><br style="line-height:1px;" />
<!-- end clanname -->
<hr class="grey" />
<!-- poll include -->
<b><?php echo $myclanname.".".$index_language['poll']; ?></b><br />
<?php include("poll.php"); ?>
<!-- end poll include -->
<hr class="grey" />
<!-- pic of the moment include -->
<b><?php echo $myclanname.".".$index_language['pic_of_the_moment']; ?></b><br />
<center><?php include("sc_potm.php"); ?></center>
<!-- end pic of the moment include -->
<hr class="grey" />
<!-- language switch include -->
<b><?php echo $myclanname.".".$index_language['language_switch']; ?></b><br />
<center><?php include("sc_language.php"); ?></center>
<!-- end language switch include -->
<hr class="grey" />
<!-- randompic include -->
<b><?php echo $myclanname.".".$index_language['random_user']; ?></b><br />
<?php include("sc_randompic.php"); ?>
<!-- end randompic include -->
<hr class="grey" />
<!-- articles include -->
<b><?php echo $myclanname.".".$index_language['articles']; ?></b><br />
<?php include("sc_articles.php"); ?>
<!-- end articles include -->
<hr class="grey" />
<!-- downloads include -->
<b><?php echo $myclanname.".".$index_language['downloads']; ?></b><br />
<?php include("sc_files.php"); ?>
<!-- end downloads include -->
<hr class="grey" />
<!-- latest topics include -->
<b><?php echo $myclanname.".".$index_language['topics']; ?></b><br />
<?php include("latesttopics.php"); ?>
<!-- end latest topics include -->
<hr class="grey" />
<!-- servers include -->
<b><?php echo $myclanname.".".$index_language['server']; ?></b><br />
<?php include("sc_servers.php"); ?>
<!-- end servers include -->
<hr class="grey" />
<!-- sponsors include -->
<b><?php echo $myclanname.".".$index_language['sponsors']; ?></b><br />
<center><?php include("sc_sponsors.php"); ?></center>
<!-- end sponsors include -->
<hr class="grey" />
<!-- partners include -->
<b><?php echo $myclanname.".".$index_language['partners']; ?></b><br />
<center><?php include("partners.php"); ?></center>
<!-- end partners include -->
</div>
</div>
<div class="col2">
<div style="padding:10px;">
<!-- navigation include -->
<?php include("navigation.php"); ?>
<!-- end navigation include -->
<!-- scrolltext include -->
<b><?php echo $myclanname.".".$index_language['scrolltext']; ?></b><br />
<?php include("sc_scrolltext.php"); ?>
<!-- end scrolltext include -->
<hr class="grey" />
<!-- bannerrotation include -->
<b><?php echo $myclanname.".".$index_language['advertisement']; ?></b><br />
<center><?php include("sc_bannerrotation.php"); ?></center>
<!-- end bannerrotation include -->
<hr class="grey" />
<!-- content include -->
<b><?php echo $myclanname.".".$index_language['content']; ?></b><br />
<!-- php site include -->
<?php
if(!isset($site)) $site="news";
$invalide = array('\\','/','/\/',':','.');
$site = str_replace($invalide,' ',$site);
if(!file_exists($site.".php")) $site = "news";
include($site.".php");
?>
<!-- content include -->
</div>
</div>
</div>
<div class="col3">
<div style="padding:10px;">
<!-- login include -->
<b><?php echo $myclanname.".".$index_language['login']; ?></b><br />
<?php include("login.php"); ?>
<!-- end login include -->
<hr class="grey" />
<!-- topnews include -->
<b><?php echo $myclanname.".".$index_language['hotest_news']; ?></b><br />
<?php include("sc_topnews.php"); ?>
<!-- topnews include -->
<hr class="grey" />
<!-- headlines include -->
<b><?php echo $myclanname.".".$index_language['latest_news']; ?></b><br />
<?php include("sc_headlines.php"); ?>
<!-- end headlines include -->
<hr class="grey" />
<!-- squads include -->
<b><?php echo $myclanname.".".$index_language['squads']; ?></b><br />
<center><?php include("sc_squads.php"); ?></center>
<!-- end squads include -->
<hr class="grey" />
<!-- clanwars include -->
<b><?php echo $myclanname.".".$index_language['matches']; ?></b><br />
<?php include("sc_results.php"); ?>
<!-- end clanwars include -->
<hr class="grey" />
<!-- demos include -->
<b><?php echo $myclanname.".".$index_language['demos']; ?></b><br />
<?php include("sc_demos.php"); ?>
<!-- end demos include -->
<hr class="grey" />
<!-- upcoming events include -->
<b><?php echo $myclanname.".".$index_language['upcoming_events']; ?></b><br />
<?php include("sc_upcoming.php"); ?>
<!-- end upcoming events include -->
<hr class="grey" />
<!-- shoutbox include -->
<b><?php echo $myclanname.".".$index_language['shoutbox']; ?></b><br />
<center><?php include("shoutbox.php"); ?></center>
<!-- end shoutbox include -->
<hr class="grey" />
<!-- newsletter include -->
<b><?php echo $myclanname.".".$index_language['newsletter']; ?></b><br />
<?php include("sc_newsletter.php"); ?>
<!-- end newsletter include -->
<hr class="grey" />
<!-- statistics include -->
<b><?php echo $myclanname.".".$index_language['statistics']; ?></b><br />
<?php include("counter.php"); ?>
<!-- end statistics include -->
</div>
</div>
<div style="line-height:10px;clear:both;"> </div>
</div>
<div id="footer">
<br style="line-height:16px;" />Copyright by <b><?php echo $myclanname ?></b> | CMS powered by <a href="http://www.webspell.org" target="_blank"><b>webSPELL.org</b></a> | <a href="http://validator.w3.org/check?uri=referer" target="_blank">XHTML 1.0</a> & <a href="http://jigsaw.w3.org/css-validator/check/refer" target="_blank">CSS 2.1</a> valid W3C standards | <a href="tmp/rss.xml" target="_blank"><img src="images/icons/rss.png" width="16" height="16" style="vertical-align:bottom;" alt="" /></a> <a href="tmp/rss.xml" target="_blank">RSS Feed</a>
</div>
</div>
</body>
</html>
de 2e script is de login.php:
PHP:
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2011 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# -- http://www.fsf.org/licensing/licenses/gpl.html #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
##########################################################################
*/
$_language->read_module('login');
if($loggedin) {
$username='<a href="index.php?site=profile&id='.$userID.'"><b>'.strip_tags(getnickname($userID)).'</b></a>';
if(isanyadmin($userID)) $admin='• <a href="admin/admincenter.php" target="_blank">'.$_language->module['admin'].'</a><br />';
else $admin='';
if(isclanmember($userID) or iscashadmin($userID)) $cashbox='• <a href="index.php?site=cash_box">'.$_language->module['cash-box'].'</a><br />';
else $cashbox='';
$anz=getnewmessages($userID);
if($anz) {
$newmessages=' (<b>'.$anz.'</b>)';
}
else $newmessages='';
if($getavatar = getavatar($userID)) $l_avatar='<img src="images/avatars/'.$getavatar.'" alt="Avatar" />';
else $l_avatar=$_language->module['n_a'];
eval ("\$logged = \"".gettemplate("logged")."\";");
echo $logged;
}
else {
//set sessiontest variable (checks if session works correctly)
$_SESSION['ws_sessiontest'] = true;
eval ("\$loginform = \"".gettemplate("login")."\";");
echo $loginform;
}
?>
de 3e script is de loginoverview.php:
PHP:
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2011 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# -- http://www.fsf.org/licensing/licenses/gpl.html #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
##########################################################################
*/
$_language->read_module('loginoverview');
if($userID && !isset($_GET['userID']) && !isset($_POST['userID'])) {
eval ("\$title_loginoverview = \"".gettemplate("title_loginoverview")."\";");
echo $title_loginoverview;
$pagebg=PAGEBG;
$border=BORDER;
$bghead=BGHEAD;
$bgcat=BGCAT;
$ds=mysql_fetch_array(safe_query("SELECT registerdate FROM `".PREFIX."user` WHERE userID='".$userID."'"));
$username='<a href="index.php?site=profile&id='.$userID.'">'.getnickname($userID).'</a>';
$lastlogin = date('d.m.Y, H:i',$_SESSION['ws_lastlogin']);
$registerdate = date('d.m.Y, H:i',$ds['registerdate']);
//messages?
$newmessages = getnewmessages($userID);
if($newmessages==1) $newmessages=$_language->module['one_new_message'];
elseif($newmessages>1) $newmessages=str_replace('%new_messages%', $newmessages, $_language->module['x_new_message']);
else $newmessages=$_language->module['no_new_messages'];
//boardposts?
$posts=safe_query("SELECT
p.topicID,
p.date,
p.message,
p.boardID,
t.topic,
t.readgrps
FROM
`".PREFIX."forum_posts` AS p,
`".PREFIX."forum_topics` AS t
WHERE
p.date>".$_SESSION['ws_lastlogin']." AND
p.topicID = t.topicID
LIMIT
0, 10");
$topics=safe_query("SELECT * FROM ".PREFIX."forum_topics WHERE date > ".$_SESSION['ws_lastlogin']." LIMIT 0, 10");
$new_posts=mysql_num_rows(safe_query("SELECT p.postID FROM `".PREFIX."forum_posts` AS p, `".PREFIX."forum_topics` AS t WHERE p.date>".$_SESSION['ws_lastlogin']." AND p.topicID = t.topicID"));
$new_topics=mysql_num_rows(safe_query("SELECT * FROM ".PREFIX."forum_topics WHERE date > ".$_SESSION['ws_lastlogin']));
//new topics
$topiclist="";
if(mysql_num_rows($topics)) {
$n=1;
while($db=mysql_fetch_array($topics)) {
if($db['readgrps'] != "") {
$usergrps = explode(";", $db['readgrps']);
$usergrp = 0;
foreach($usergrps as $value) {
if(isinusergrp($value, $userID)) {
$usergrp = 1;
break;
}
}
if(!$usergrp and !ismoderator($userID, $db['boardID'])) continue;
}
$n%2 ? $bgcolor=BG_1 : $bgcolor=BG_2;
$posttime=date("d.m.y H:i",$db['date']);
$topiclist.='<tr bgcolor="'.$bgcolor.'">
<td>
<table width="100%" cellpadding="1" cellspacing="1">
<tr>
<td colspan="3"><a href="index.php?site=forum_topic&topic='.$db['topicID'].'">'.$posttime.'<br /><b>'.str_break(getinput($db['topic']), 34).'</b></a><br /><i>'.$db['views'].' '.$_language->module['views'].' - '.$db['replys'].' '.$_language->module['replys'].'</i></td>
</tr>
</table>
</td>
</tr>';
$n++;
}
}
else $topiclist='<tr>
<td bgcolor="'.BG_1.'">'.$_language->module['no_new_topics'].'</td>
</tr>';
//new posts
$postlist="";
if(mysql_num_rows($posts)) {
$n=1;
while($db=mysql_fetch_array($posts)) {
if($db['readgrps'] != "") {
$usergrps = explode(";", $db['readgrps']);
$usergrp = 0;
foreach($usergrps as $value) {
if(isinusergrp($value, $userID)) {
$usergrp = 1;
break;
}
}
if(!$usergrp and !ismoderator($userID, $db['boardID'])) continue;
}
$n%2 ? $bgcolor1=BG_1 : $bgcolor1=BG_2;
$n%2 ? $bgcolor2=BG_3 : $bgcolor2=BG_4;
$posttime=date("d.m.y H:i",$db['date']);
if(mb_strlen($db['message']) > 100) $message=mb_substr($db['message'],0,90+mb_strpos(mb_substr($db['message'],90,mb_strlen($db['message']))," "))."...";
else $message = $db['message'];
$postlist.='<tr bgcolor="'.$bgcolor1.'">
<td>
<table width="100%" cellpadding="2" cellspacing="1">
<tr>
<td colspan="3"><a href="index.php?site=forum_topic&topic='.$db['topicID'].'">'.$posttime.' <br /><b>'.str_break(getinput($db['topic']), 34).'</b></a></td>
</tr>
<tr><td></td></tr>
<tr>
<td width="1%"> </td>
<td bgcolor="'.$bgcolor2.'" width="98%"><div style="overflow:hidden;">'.str_break(clearfromtags($message), 34).'</div></td>
<td width="1%"> </td>
</tr>
</table>
</td>
</tr>';
$n++;
}
}
else $postlist='<tr>
<td bgcolor="'.BG_1.'" valign="top">'.$_language->module['no_new_posts'].'</td>
</tr>';
//clanmember/admin/referer
if(isclanmember($userID)) $cashboxpic = '<td><a href="index.php?site=cash_box"><img src="images/icons/cashbox.gif" border="0" alt="Cashbox" /></a></td>
<td width="10"></td>';
else $cashboxpic = '<td></td><td></td>';
if(isanyadmin($userID)) $admincenterpic = '<td><a href="admin/admincenter.php" target="_blank"><img src="images/icons/admincenter.gif" border="0" alt="Admincenter" /></a></td>
<td width="10"></td>';
else $admincenterpic = '<td></td><td></td>';
if(isset($_SESSION['referer'])) {
$referer_uri = '<tr><td bgcolor="'.$bgcat.'"><br /><a href="'.$_SESSION['referer'].'" style="padding:8px 0;"><b>« '.$_language->module['back_last_page'].'</b></a><br /> </td></tr>';
unset($_SESSION['referer']);
}
else $referer_uri = '';
//upcoming
$clanwars = '';
if(isclanmember($userID)) {
$clanwars .= '<tr>
<td colspan="3"><b>'.$_language->module['upcoming_clanwars'].'</b><br /> </td>
</tr>';
$squads=safe_query("SELECT squadID FROM `".PREFIX."squads_members` WHERE userID='".$userID."'");
while($squad=mysql_fetch_array($squads)) {
if(isgamesquad($squad['squadID'])) {
$dn=mysql_fetch_array(safe_query("SELECT name FROM `".PREFIX."squads` WHERE squadID='".$squad['squadID']."' AND gamesquad='1'"));
$clanwars .= '<tr><td><i>'.$_language->module['squad'].': '.$dn['name'].'</i></td></tr><tr><td align="center">';
$n = 1;
$ergebnis=safe_query("SELECT * FROM `".PREFIX."upcoming` WHERE type='c' AND squad='".$squad['squadID']."' AND date>".time()." ORDER by date");
$anz = mysql_num_rows($ergebnis);
if($anz) {
$clanwars .= '<table border="0" width="98%" cellpadding="2">
<tr>
<td width="20%"><b>'.$_language->module['date'].'</b></td>
<td width="20%"><b>'.$_language->module['against'].'</b></td>
<td><b>'.$_language->module['announcement'].'</b></td>
<td width="10%"><b>'.$_language->module['announce'].'</b></td>
</tr>';
while($ds=mysql_fetch_array($ergebnis)) {
$n%2 ? $bg=BG_1 : $bg=BG_2;
$date=date("d.m.y", $ds['date']);
$anmeldung=safe_query("SELECT * FROM ".PREFIX."upcoming_announce WHERE upID='".$ds['upID']."'");
if(mysql_num_rows($anmeldung)) {
$i=1;
$players = "";
while ($da = mysql_fetch_array($anmeldung)) {
if ($da['status'] == "y") $fontcolor = $wincolor;
elseif ($da['status'] == "n") $fontcolor = $loosecolor;
else $fontcolor = $drawcolor;
if($i>1) $players.=', <a href="index.php?site=profile&id='.$da['userID'].'"><font color="'.$fontcolor.'">'.strip_tags(stripslashes(getnickname($da['userID']))).'</font></a>';
else $players.='<a href="index.php?site=profile&id='.$da['userID'].'"><font color="'.$fontcolor.'">'.strip_tags(stripslashes(getnickname($da['userID']))).'</font></a>';
$i++;
}
} else $players=$_language->module['no_players_announced'];
$tag = date("d", $ds['date']);
$monat = date("m", $ds['date']);
$yahr = date("Y", $ds['date']);
$clanwars .= '<tr>
<td bgcolor="'.$bg.'">'.$date.'</td>
<td bgcolor="'.$bg.'"><a href="'.$ds['opphp'].'" target="_blank">'.$ds['opptag'].' / '.$ds['opponent'].'</a></td>
<td bgcolor="'.$bg.'">'.$players.'</td>
<td bgcolor="'.$bg.'"><a href="index.php?site=calendar&action=announce&upID='.$ds['upID'].'&tag='.$tag.'&month='.$monat.'&year='.$yahr.'#event">'.$_language->module['click'].'</a></td>
</tr>';
$n++;
}
$clanwars .= '</table></td></tr>';
} else $clanwars .= $_language->module['no_entries'].'</td></tr>';
}
}
$clanwars.='<tr><td> </td></tr>';
}
unset($events);
$bg1=BG_1;
$bg2=BG_2;
$bg3=BG_3;
$bg4=BG_4;
$events = '';
$ergebnis=safe_query("SELECT * FROM `".PREFIX."upcoming` WHERE type='d' AND date>".time()." ORDER by date");
$anz = mysql_num_rows($ergebnis);
if($anz) {
$n=1;
while($ds=mysql_fetch_array($ergebnis)) {
$n%2 ? $bg=BG_1 : $bg=BG_2;
$events.='<tr>
<td bgcolor="'.$bg.'">'.$ds['title'].'</td>
<td bgcolor="'.$bg.'">'.date('d.m.y, H:i', $ds['date']).'</td>
<td bgcolor="'.$bg.'">'.date('d.m.y, H:i', $ds['enddate']).'</td>
<td bgcolor="'.$bg.'">'.$ds['location'].'</td>
<td bgcolor="'.$bg.'"><a href="index.php?site=calendar&tag='.date('d',$ds['date']).'&month='.date('m',$ds['date']).'&year='.date('Y',$ds['date']).'#event">'.$_language->module['click'].'</a></td>
</tr>';
$n++;
}
}
else $events='<tr>
<td colspan="5" bgcolor="'.$bg1.'"><i>'.$_language->module['no_events'].'</i></td>
</tr>';
eval ("\$loginoverview = \"".gettemplate("loginoverview")."\";");
echo $loginoverview;
}
else echo $_language->module['you_have_to_be_logged_in'];
?>
hieronde het bom-file:
PHP:
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2009 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# -- http://www.fsf.org/licensing/licenses/gpl.html #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
##########################################################################
# Byte-Order-Mark Check #
# Find and Fix files #
# webSPELL Version 4.02* #
# Copyright #
# Philipp Rehs #
##########################
*/
if(mb_substr(basename($_SERVER['REQUEST_URI']),0,15) != "admincenter.php" OR !ispageadmin($userID)) die();
$_language->read_module('bom');
function checkBom($dir){
global $col;
$BOM = chr(239).chr(187).chr(191);
$dh = opendir($dir);
$return = array();
while (false !== ($filename = readdir($dh))) {
if($filename != "." && $filename != ".."){
if(is_dir($dir.$filename)){
$return = array_merge($return, checkBom($dir.$filename."/"));
}
else{
if(substr(file_get_contents($dir.$filename),0,strlen($BOM)) == $BOM){
$return[] = $dir.$filename;
}
}
}
}
return $return;
}
function fixBom($file){
$BOM = chr(239).chr(187).chr(191);
if(file_exists($file) && is_readable($file) && is_writeable($file)){
$source = file_get_contents($file);
if(substr($source,0,strlen($BOM)) == $BOM){
$new_source = substr($source,strlen($BOM));
$fh = fopen($file,"w+");
$do = fwrite($fh,$new_source);
fclose($fh);
return $do;
}
}
return false;
}
if(isset($_POST['sfix'])){
$CAPCLASS = new Captcha;
if($CAPCLASS->check_captcha(0, $_POST['captcha_hash'])) {
if(isset($_POST['fix'])) $files = $_POST['fix'];
else $files = array();
foreach($files as $file){
fixBom($file);
}
} else echo $_language->module['transaction_invalid'];
}
$col = 'td1';
echo'<h1>¤ '.$_language->module['bom'].'</h1>';
echo'<form method="post" name="form" action="admincenter.php?site=bomcheck">
<table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#DDDDDD">
<tr>
<td width="85%" class="title"><b>'.$_language->module['file'].'</b></td>
<td width="15%" class="title" align="center"><b>'.$_language->module['fix'].'</b></td>
</tr>';
if(count($files = checkBom("../"))){
$CAPCLASS = new Captcha;
$CAPCLASS->create_transaction();
$hash = $CAPCLASS->get_hash();
foreach($files as $file){
if( $col == 'td1') { $col='td2'; }
else { $col='td1'; }
echo '<tr>
<td class="'.$col.'" align="left">'.$file.'</td>
<td class="'.$col.'" align="center"><input type="checkbox" value="'.$file.'" name="fix[]" /></td>
</tr>';
}
if( $col == 'td1') { $col='td2'; }
else { $col='td1'; }
echo '<tr>
<td class="'.$col.'" align="right"><input type="hidden" name="captcha_hash" value="'.$hash.'" /><input type="checkbox" onclick="SelectAll();" value="ALL" name="ALL" /> '.$_language->module['select_all'].'</td>
<td class="'.$col.'" align="center"><input type="submit" name="sfix" value="'.$_language->module['fix'].'" /></td>
</tr>';
}
else{
echo '<tr>
<td class="'.$col.'" colspan="2" align="left">'.$_language->module['no_bom'].'</td>
</tr>';
}
echo "</table></form>";
?>
en hieronde de readme uitleg over de bom-file:
##########################
# Byte-Order-Mark Check #
# Find and Fix files #
# webSPELL Version 4.02* #
# Copyright #
# Philipp Rehs #
##########################
Deutch:
__________________________
1) Alle Dateien in der vorgegebenen Ordnerstruktur hochladen
2) admincenter.php?site=bomcheck aufrufen
3) Fehlerhafte Dateien auswählen und korrigiren lassen
Englisch:
__________________________
1) Upload all file in the specified folder structure
2) visit admincenter.php?site=bomcheck
3) Select broken files and fix them
bij nummer 2 moet je dus inloggen lijkt mij, en dat gaat dus niet...
help
