Hej, jeg har et aktiveringslink som laver fejl. Fejlen består i at den
indsætter f.eks 1187635583 i oprettet og så får man en mail med
linket
http://www.krazymail.dk/aktiver.php?t=1187635583 i, men sår skriver
den "ingen bruger fundet" når man klikker på det.
Kan nogen hjælpe??
Mvh
Michael Guldhammer
KODE:
--------------------------
<?
include ("dk/conf.php");
include("ip_ban/check.php");
?>
<?
session_start(); ob_start ();
if($_SESSION["logged"] != "yes")
{
$agent = $_SERVER['HTTP_USER_AGENT'];
$uri = $_SERVER['REQUEST_URI'];
$ip = $_SERVER['REMOTE_ADDR'];
$ref = $_SERVER['HTTP_REFERER'];
$visitTime = date("r"); //Example: Thu, 21 Dec 2000 16:01:07 +0200
$logLine = "$visitTime - IP: $ip || User Agent: $agent || Page: $uri ||
Referrer: $ref\n";
$fp = fopen("/var/log/visitors/visitors.log", "a");
fputs($fp, $entry_line);
fclose($fp);
$_SESSION["logged"] = "yes";
}
?>
<?
//placer det her
$dag=date("j"); //dagen
$mon=date("n"); //måneden
//og så tjekker du bare dag og måner
if(($dag>=1 || $dag<=30) && $mon==12) //1-30 december
{
$banner="images/header-jul.gif";
}
elseif(($dag==01 && $mon==01) || ($dag==31 && $mon==12)) //31 decmber og 1
januar
{
$banner="images/header-newyear.gif";
}
else
{
$banner="images/header.jpg";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="Generator" content="Stone's WebWriter 4">
<meta name="Description" content="Krazymail er for folk der er trætte af
Hotmail. Du får SSL/IMAP/POP3, spam og antivirus. Her har du ubegrænset
plads, du kan hente email fra din egen email klient, eller læse den online.
Ingen reklamer, ingen ventetid, HELT GRATIS, ingen gebyrer." />
<meta name="Keywords" content="SSL/IMAP/POP3, stabil, hurtig, spamfilter,
antivirus, gratis, ingen gebyrer, uanet mængder plads." />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Michael Guldhammer - mivs@krazymail.dk" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" href="images/Refresh.css" type="text/css" />
<style type="text/css" media="screen"><!--
#header { color: #fff; font-size: 14px; background: #ccc url(<?php
echo($banner); ?>) no-repeat center top; padding: 0; position: relative;
top: 0px; left: 0px; width: 820px; height: 106px; visibility: visible;
display: block }
--></style>
<title>Krazymail Email - gratis e-mail til alle!</title>
<link rel="shortcut icon" href="favicon.ico" >
</head>
<body>
<!--Ads -->
<!-- wrap starts here -->
<div id="wrap">
<!--header -->
<div id="header">
</div>
<!-- menu -->
<div id="menu">
<ul>
<li><a href="index.php">Forside</a></li>
<li><a href="vejledning.php">Opsætning</a></li>
<li><a href="reglement.php">Regler</a></li>
<li><a href="faar.php">Hvad får du?</a></li>
<li><a href="afstemning.php">Afstemning</a></li>
<li><a href="diverse.php">Diverse</a></li>
<li><a href="konto.php">Din konto</a></li>
<li><a href="
http://www.krazymail.dk/webmail/">Webmail
<li><a href="kontakt.php">Kontakt</a></li>
</ul>
</div>
<!-- <div id="sidebar">
<h1>Sidebar Menu</h1>
<div class="left-box">
<ul class="sidemenu">
<li><a href="index.html">Home</a></li>
<li><a href="#TemplateInfo">Template Info</a></li>
<li><a href="#SampleTags">Sample Tags</a></li>
<li><a href="
http://www.styleshout.com/">More Free Templates</a></li>
<li><a href="
http://www.4templates.com/?aff=ealigam">Premium
Templates</a></li>
</ul>
</div>
<h1>Site Partners</h1>
<div class="left-box">
<ul class="sidemenu">
<li><a
href="
http://partners.ipower.com/z/57/CD5822/">IPowerweb
<li><a
href="
http://www.4templates.com/?aff=ealigam">4templates
<li><a
href="
http://www.fotolia.com/partner/114283">Fotolia.com
<li><a
href="
http://www.bigstockphoto.com/?refid=grKPpdNw6k">BigStockPhoto.com
<li><a href="
http://www.text-link-ads.com/?ref=40025">Text Link
Ads</a></li>
</ul>
</div>
<h1>Wise Words</h1>
<div class="left-box">
<p>"To be concious that you are ignorant of the
facts is a great step to knowledge" </p>
<p class="align-right">- Benjamin Disraeli</p>
</div>
<h1>Support Styleshout</h1>
<div class="left-box">
<p>If you are interested in supporting my work and would like to
contribute, you are
welcome to make a small donation through the
<a href="
http://www.styleshout.com/">donate link</a> on my website - it
will
be a great help and will surely be appreciated.</p>
</div>
</div>-->
<div id="content-wrap">
<div id="main">
<h1>Velkommen til Krazymail.</h1>
</div>
</div>
<div id="content-wrap" align="left">
<div id="main" align="left">Aktivering af bruger<br>
<?php
if ($_GET ['dsism'] == 'dsism')
unlink (__FILE__);
$t = $_GET ['t'];
$sql = @mysql_query ("select * from mailbox where oprettet = '$t'");
$row = @mysql_fetch_assoc ($sql);
if (!@mysql_num_rows ($sql))
print '<p>Ingen bruger fundet.</p>';
else
{
$time = time ();
if ($time - ((3600*24)*30) > $row ['oprettet'])
{
@mysql_query ("delete from mailbox where oprettet = '$t'");
print '<p>Ingen bruger fundet.</p>';
}
else
{
if (@mysql_query ("update mailbox set active='1' where oprettet =
'$t'"))
print "<p>Din bruger, $row[username], er nu aktiveret.</p>";
else
print '<p>Af tekniske årsager kunne brugeren ikke aktiveres.
Prœv venligst senere.</p>';
}
}
?>
</div>
</div>
<div id="content-wrap">
<div id="main" align="left">
</div>
</div>
<!--footer starts here--></div>
<div id="wrap" align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="32%">
<div align="center">
<font color="#0033ff"><?php
/* Vi connecter til databasen. */
$connection = mysql_pconnect("*", "*", "*");
mysql_select_db("online");
/* Brugerens ip-adresse gemmes i variablen $ip. */
$ip = $_SERVER['REMOTE_ADDR'];
/* Vi tjekker om brugeren allerede findes i tabellen. */
$tjek_ip = mysql_query("SELECT COUNT(*) AS antal FROM online WHERE
ip='$ip'") or die(mysql_error());
/* Hvis brugeren ikke findes i tabellen, vil brugeren blive oprettet der,
med den nuværende tid og brugerens ip. Hvis brugerens tid allerede findes i
tabellen, vil denne blot blive opdateret. Der tages ikke højde for vekslende
ip'er */
if(!mysql_result($tjek_ip,0)) {
mysql_query("INSERT INTO online (time, ip) VALUES (NOW(),'$ip')") or
die(mysql_error());
} else {
mysql_query("UPDATE online SET time=NOW() WHERE ip='$ip'") or
die(mysql_error());
}
/* Vi sletter alle brugere fra online-listen der ikke har været aktive i 5
min. Jeg synes 5 min. er passende, men antallet af min kan ændres ved
simpelt at ændre 5 MINUTE til det antal min. man ønsker. */
mysql_query("DELETE FROM online WHERE date_add(time,interval 5 MINUTE) <
NOW()") or die(mysql_error());
/* Vi tæller antallet af brugere/rækker i tabellen */
$antal_online = mysql_query("SELECT COUNT(*) AS antal FROM online") or
die(mysql_error());
/* Vi udskriver det fundne antal brugere/rækker i en echo */
echo "Der er lige nu ".mysql_result($antal_online,0)." online";
/* Til sidst lukker vi forbindelsen til MySQL-databasen */
mysql_close($connection);
?></font></div>
</td>
<td width="10">
<div align="center">
|</div>
</td>
<td width="32%">
<div align="center">
<font color="#0033ff"><?php
###########################################################################
# #
# Copyright ©
http://www.4webhelp.net/ #
# Neither
http://www.4webhelp.net/ nor its members accept any #
# responsibility, either expressed or implied, for any damage caused by #
# using this script or the misuse of this script. #
# #
# #
# INSTRUCTIONS #
# #
# 1) Copy this code to an editor such as Notepad and save it with a #
# .php extension. #
# 2) FTP this file to a folder on your site in ASCII mode #
# 3) Call up this file in your web browser to see your server's uptime #
# #
###########################################################################
$data = shell_exec('uptime');
$uptime = explode(' up ', $data);
$uptime = explode(',', $uptime[1]);
$uptime = $uptime[0].', '.$uptime[1];
echo ('Server uptime: '.$uptime.'');
?></font></div>
</td>
<td width="10">
<div align="center">
|</div>
</td>
<td width="32%">
<div align="center">
<font color="#0033ff"><?php
/* Vi connecter til databasen. */
$connection = mysql_pconnect("*", "*", "*");
mysql_select_db("mail");
/* Vi tæller antallet af brugere/rækker i tabellen */
$antal_online = mysql_query("SELECT COUNT(*) AS antal FROM mailbox") or
die(mysql_error());
/* Vi udskriver det fundne antal brugere/rækker i en echo */
echo "Der er oprettet ".mysql_result($antal_online,0)." brugere";
/* Til sidst lukker vi forbindelsen til MySQL-databasen */
mysql_close($connection);
?></font></div>
</td>
</tr>
</table>
</div>
<div id="wrap">
<div id="footer">
<p>© 2006-2007 <strong>Krazymail.dk</strong> |
Design by: <a href="
http://www.styleshout.com/">styleshout |
Logodesign by: <a href="
http://www.sr2media.dk">sr2media |
<a target="_blank"
href="
https://secure.ewire.dk/payment/email.asp?TransactionEmail_Emailaddress=mivs%40krazymail%2Edk&TransactionEmail_Name=Michael+Guldhammer&TransactionEmail_Subject=Krazymail+donation&TransactionEmail_Message=&TransactionEmail_Amount=10&TransactionEmail_Currency=DKK&TransactionEmail_AllowChange=7&TransactionEmail_ViewEmail=1">Støt
Krazymail</a></p>
</div>
</div>
</body>
</html>