stuur je hele code.
en er bestaat zoiets als CRONJOBS
en misschien helpt een database een beetje :P
Link gekopieerd
indd kevin een hele code is wel handig:p
Link gekopieerd
Dit is de hele code Van de Page
<?PHP
include("connect.php");
require_once("verify.php");
$act = $_GET['act'];
$result=mysql_query("SELECT * FROM GUIDTech WHERE user='".$username."'");
$numrows=mysql_num_rows($result);
if($numrows!=0){
while($rows=mysql_fetch_array($result)){
$locked = $rows['locked'];
$GUID = $rows['GUID'];
$GUID2 = $rows['GUID2'];
$GUID3 = $rows['GUID3'];
$GUID4 = $rows['GUID4'];
$GUID5 = $rows['GUID5'];
$total = $rows['total'];
$hours = $rows['hours'];
$changes = $rows['changes'];
$timestamp = $rows['firstchangetime'];
$hourstime = $rows['hourstime'];
}
if (!$vip) {
$GUID4 = "";
$GUID5 = "";
$GUID = "";
}
if($act==""){
if($changes == $total){
$x = $hourstime - time();
if($x <= 0) {
$changes = 0;
}
}
//mysql_query("UPDATE GUIDTech SET nickname='$nickname' WHERE user='$username'");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="../favicon.ico" />
<title>DGHB - GuidTech</title>
<style type="text/css" media="all">
@import url(http://powercheats.org/style_images/css_4.css);
</style>
</head>
<body>
<div id="ipbwrapper">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="tabletopleft"> </td>
<td class="tabletopper"> </td>
<td class="tabletopright"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tableleft"> </td>
<td class="tablebg" valign="top">
<center><img src="http://powercheats.org/style_images/4_logo.png" ></a></center>
<div class="borderwrap">
<div id="submenu">
<!--ipb.leftlinks.start-->
<div class='ipb-top-left-link'><a href="http://powercheats.org/index.php">Portal</a></div>
<div class='ipb-top-left-link'><a href="http://powercheats.org/index.php?act=idx">Forum</a></div>
<div class='ipb-top-left-link'><a href="http://powercheats.org/vip.php">Buy VIP</a></div>
</if>
<!--IBF.RULES-->
<!--ipb.leftlinks.end-->
<!--ipb.rightlinks.start-->
<div class='ipb-top-right-link'><a href="http://powercheats.org/index.php?act=Members">Members</a></div>
<div class='popupmenu-new' id='ipb-tl-search_menu' style='display:none;width:210px'>
<form action="http://psghacks.nl/index.php?act=Search&CODE=01" method="post">
<input type='hidden' name='forums' id='gbl-search-forums' value='all' />
<input type="text" size="20" name="keywords" id='ipb-tl-search-box' />
<input class="button" type="image" style='border:0px' src="http://www.dghb.net/GB/style_images/hi/login-button.gif" />
</form>
</div>
</div>
</div>
<div id="userlinks">
<p class="home"><b>Logget In as: <a href="#"><?php echo $nickname; ?></a></b> ( <a href="logout.php">Logout</a> )</p>
<p> </p>
</div>
<div id='get-myassistant' style='display:none;width:400px;text-align:left;'>
<div class="borderwrap">
<div class='maintitle' id='myass-drag' title='Click and hold to drag this window'>
<div style='float:right'><a href='#' onclick='document.getElementById("get-myassistant").style.display="none"'>[X]</a></div>
<div>My Assistant</div>
</div>
<div id='myass-content' style='overflow-x:auto;'></div>
</div>
</div>
<!-- Loading Layer -->
<div id='loading-layer' style='display:none'>
<div id='loading-layer-shadow'>
<div id='loading-layer-inner'>
<img src='style_images/hi/loading_anim.gif' border='0' alt='Loading. Please Wait...' />
<span style='font-weight:bold' id='loading-layer-text'>Loading. Please Wait...</span>
</div>
</div>
</div>
<!-- / Loading Layer -->
<div id="navstrip">
<p><img src='http://powercheats.org/style_images/aurora3/nav.gif'' border='0' alt='>' /> <a href='http://www.powercheats.org/index.php?act=idx'>Powercheats.org</a> > GuidTech > Settings</p>
</div>
<div class="borderwrap">
<div class="maintitle">Settings</div>
<div class="tablepad"><center>
<?php if($ignoretime){ ?> U Can Ingore The Time limit.
<br>
<?php }else{ ?>U can Change Your Guid
<strong><?php echo $total;?></strong> Times <strong><?php echo $hours; ?></strong> Per Hour. You Have<strong><?php echo $changes;?></strong> Times Changed Your Guid Code!<br>
You Can Change Your Guid<strong><?php echo ($total - $changes); ?></strong> Times In The Next<strong><?php echo $hours; ?></strong> Hours.
<br>
<?php } ?>
<form name="GUIDTech" action="settings.php?act=ChangeGUID" method="post">
<?php if($vip){ ?>
WarRock VIP GUID<br>
<input type="text" name="GUID" value="<?php echo $GUID;?>" size="50" maxlength="32"><br />
Commbat Arms Europe VIP GUID<br />
<input type="text" name="GUID4" value="<?php echo $GUID4;?>" size="50" maxlength="32"><br />
OP7 VIP GUID<br />
<input type="text" name="GUID4" value="<?php echo $GUID5;?>" size="50" maxlength="32"><br />
<?php }?>
Public GUID<br>
<input type="text" name="GUID2" value="<?php echo $GUID2;?>" size="50" maxlength="32"><br>
<br>
<?php if($changes!=$total){
if($locked==0){ ?>
<input type="submit" value="Verander GUIDS">
<?php }else{ ?>
<br>
<span class="style1">Your Account Is locked On this System, Contact A Staff.</span>
<?php }
}else{
$allSecs = $hourstime - time();
$mins = $allSecs / 60;
$hour=0;
if($mins >= 60) {
$mins = $mins - 60;
$hour =1;
if($mins >= 60) {
$mins = $mins - 60;
$hour =2;
}
}
$mins = floor($mins);
$secs = $allSecs - ($hour * 60 * 60 + $mins * 60 );
$time = $hour .":" .$mins . ":" . $secs; ?>
<br>
You Have The Limit To Change The Guid To much
. <br>
You need <?php echo $time; ?>Long Time When U can Change Agian!
<?php } ?>
</form>
<br>
<b><u>Notice:</b>If U try To Crack Our System It will Result In a Ip Ban!.</u>
<br>
<br></center></div>
</div>
<?php
if($act==""){
?>
<div align='center' class='xcopyright'>© <b>Powercheats.org</b> 2009-2010 All Rights Reserved.
</div></td> <?php } ?>
<td class="tableright" > </td>
</tr>
<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="6">
<tr>
<td class="tablebotleft"> </td>
<td class="tablebottomer"> </td>
<td class="tablebotright"> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<?php if($admin){ ?>
<div class="borderwrap">
<div class="maintitle">Admin Panel</div>
<div class="tablepad">
<table BACKGROUND="../images/trans/trans00.png" " width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<form name="update" action="admin.php?act=update" method="post">
<input type="text" name="changelimit" size="1" value="<?php echo $total; ?>">Times
<input type="text" name="hours" size="1" value="<?php echo $hours; ?>"> hours.
<input type="Submit" value="Update">
</form><br>
<span style='text-align:right;'>
<form action="admin.php?act=search" method="get">Search: <input type="text" name="searchname"><input type="hidden" name="act" value="search"> <input type="submit" value="Search">
</span></form>
<td colspan="2">
<tr>
<td width="15%" align="center" BACKGROUND="../images/trans/trans00.png"><strong>Nickname</strong></td>
<td width="15%" align="center" BACKGROUND="../images/trans/trans00.png"><strong>Gebruikersnaam</strong></td>
<td width="15%" align="center" BACKGROUND="../images/trans/trans00.png"><strong>Warrock VIP</strong></td>
<td width="15%" align="center" BACKGROUND="../images/trans/trans00.png"><strong>Public</strong></td>
<td width="15%" align="center" BACKGROUND="../images/trans/trans00.png"><strong>Combat Arms EU</strong></td>
<td width="15%" align="center" BACKGROUND="../images/trans/trans00.png"><strong>OP7 VIP</strong></td>
<td width="10%" align="center" BACKGROUND="../images/trans/trans00.png"><strong>Aanpasingen</strong></td>
<td width="15%" align="center" BACKGROUND="../images/trans/trans00.png"><strong>Actie</strong></td>
</tr>
<?php
$result=mysql_query("SELECT * FROM GUIDTech ORDER BY user ASC");
while($rows=mysql_fetch_array($result)){ // Start looping table row
?>
<tr>
<td align="center" BACKGROUND="../images/trans/trans00.png"><?php echo $rows['nickname'];?></td>
<td align="center" BACKGROUND="../images/trans/trans00.png"><?php echo $rows['user'];?></td>
<td align="center" BACKGROUND="../images/trans/trans00.png"><?php echo $rows['GUID']; if(!empty($rows['GUID']) && (!empty($rows['GUID2']))) echo "|"; ?></td>
<td align="center" BACKGROUND="../images/trans/trans00.png"><?php echo $rows['GUID2'];?></td>
<td align="center" BACKGROUND="../images/trans/trans00.png"><?php echo $rows['GUID4'];?></td>
<td align="center" BACKGROUND="../images/trans/trans00.png"><?php echo $rows['GUID5'];?></td>
<td align="center" BACKGROUND="../images/trans/trans00.png"><?php echo $rows['changes'];?></td>
<td align="center" BACKGROUND="../images/trans/trans00.png">
<FORM>
<SELECT NAME="liste1" SIZE="1">
<?php if($rows['locked']==0){?><OPTION SELECTED VALUE="admin.php?act=lock&name=<?php echo $rows['user']; ?>">Sluit
<?php }else{ ?><OPTION VALUE="admin.php?act=unlock&name=<?php echo $rows['user'];?>">Open<? } ?>
<OPTION VALUE="admin.php?act=reset&name=<?php echo $rows['user'];?>">Reset
<OPTION VALUE="admin.php?act=guid&name=<?php echo $rows['user'];?>">Aanpasen
</SELECT>
<INPUT TYPE="button" VALUE="Go"
onClick="
location = form.liste1.options[form.liste1.selectedIndex].value;
">
</FORM></td>
</tr>
<?php } ?>
</td>
</tr>
</table>
<?php } ?>
<tr>
</tr>
</table></center></div>
<?php
}
}else{
//Insert new row for new users
$IP = $_SERVER['REMOTE_ADDR'];
mysql_query("INSERT INTO GUIDTech(IP, user, nickname)VALUES('$IP', '$username','$nickname')");
header("Location: settings.php");
}
//Change GUID
if($act=="ChangeGUID" && ($changes < $total)){
$newguid = $_POST['GUID'];
$newguid2 = $_POST['GUID2'];
$newguid3 = $_POST['GUID3'];
$newguid4 = $_POST['GUID4'];
$newguid5 = $_POST['GUID5'];
$changesupdate = $changes+1;
if(!empty($_POST['GUID'])) {
if(strlen($newguid) != 32) {
exit("VIP GUID is too short");
}
$a = "wr vip";
}
if(!empty($_POST['GUID2'])) {
if(strlen($newguid2) != 32) {
exit("GUID is too short");
}
$b= "public";
}
if(!empty($_POST['GUID4'])) {
if(strlen($newguid4) != 32) {
exit("GUID is too short");
}
$c= "public";
}
if(!empty($_POST['GUID5'])) {
if(strlen($newguid5) != 32) {
exit("GUID is too short");
}
$d= "public";
}
if($changes==0){
$timestamp = time();
$hourstime = $timestamp + ($hours * 60 * 60); //86400 = 24 hours
}
if(isset($a)) {
mysql_query("UPDATE GUIDTech SET GUID='$newguid', changes='$changesupdate', firstchangetime='$timestamp', hourstime='$hourstime' WHERE user='$username'");
}
if(isset($b)) {
mysql_query("UPDATE GUIDTech SET GUID2='$newguid2', changes='$changesupdate', firstchangetime='$timestamp', hourstime='$hourstime' WHERE user='$username'");
}
if(isset($c)) {
mysql_query("UPDATE GUIDTech SET GUID4='$newguid4', changes='$changesupdate', firstchangetime='$timestamp', hourstime='$hourstime' WHERE user='$username'");
}
if(isset($d)) {
mysql_query("UPDATE GUIDTech SET GUID5='$newguid5', changes='$changesupdate', firstchangetime='$timestamp', hourstime='$hourstime' WHERE user='$username'");
}
//mysql_query("UPDATE GUIDTech SET GUID3='$newguid3' WHERE user='$username'");
header("Location: settings.php");
}
else { $act = ""; }
//Update time restrictions
$time=time();
if($time >= $hourstime || $ignoretime){
mysql_query("UPDATE GUIDTech SET changes='0', firstchangetime='', hourstime='' WHERE user='$username'");
}
?>
</body>
</html>
Link gekopieerd
Iig 1 tip: Probeer je HTML en PHP te scheiden, wordt het een stuk overzichterlijker van, en kan je errors ook goed weergeven.
Link gekopieerd
pim .
misschien als ik het in woorden uitleg is het denk makkelijker
dit is eigelijk mijn probleem
<?php }
}else{
$allSecs = $hourstime - time();
$mins = $allSecs / 60;
$hour=0;
if($mins >= 60) {
$mins = $mins - 60;
$hour =1;
if($mins >= 60) {
$mins = $mins - 60;
$hour =2;
}
}
$mins = floor($mins);
$secs = $allSecs - ($hour * 60 * 60 + $mins * 60 );
$time = $hour .":" .$mins . ":" . $secs; ?>
<br>
You Have The Limit To Change The Guid To much
. <br>
You need <?php echo $time; ?>Long Time When U can Change Agian!
<?php } ?>
ik snap niet hoe of wat ik doe
ik wil alleen graag weten hoe ik me timer instel op 20 minuten
Link gekopieerd
kevin schreef op 29.01.2010 17:37
pim .
misschien als ik het in woorden uitleg is het denk makkelijker
dit is eigelijk mijn probleem
<?php }
}else{
$allSecs = $hourstime - time();
$mins = $allSecs / 60;
$hour=0;
if($mins >= 60) {
$mins = $mins - 60;
$hour =1;
if($mins >= 60) {
$mins = $mins - 60;
$hour =2;
}
}
$mins = floor($mins);
$secs = $allSecs - ($hour * 60 * 60 + $mins * 60 );
$time = $hour .":" .$mins . ":" . $secs; ?>
<br>
You Have The Limit To Change The Guid To much
. <br>
You need <?php echo $time; ?>Long Time When U can Change Agian!
<?php } ?>
ik snap niet hoe of wat ik doe
ik wil alleen graag weten hoe ik me timer instel op 20 minuten
Maar als je HTML & PHP van elkaar afhoud is het ook makkelijker voor ons
Link gekopieerd
+ als je zelfs scripts maakt (waar we deels vanuitgaan) heb je voldoende kennis over hoe je systeem werkt
en zoals jij praat. dan is het netalsof je geen donder dan php weet
voorbeeld
<?php
// dus 1x per uur (standaard en lekker brak)
/// en ik ga er vanuit dat dit een cdonjob is.
//mysqlconnectie en database
$sql = mysql_query("SELECT `time` FROM `time`;");
$sql = mysql_fetch_array($sql);
if ( date("H") > $sql['time'] )
{
$update=true;
}
else
{
if ( $sql['time'] == 23 && date("H") <= 23 )
{
$update=true;
}
}
if ( isset ( $update ) )
{
#update:nieuwe tijd adden
$sql = mysql_query("UPDATE `time` SET `time`='" . date("H") . "';");
//update
}
?>
ik ben ziekig denk niet helder na dus wees niet boos als dit niet in 1x werkt
onthoud dit is een refferentie niet een oplossing :)
Link gekopieerd
wesley de groot schreef op 29.01.2010 18:19
+ als je zelfs scripts maakt (waar we deels vanuitgaan) heb je voldoende kennis over hoe je systeem werkt
en zoals jij praat. dan is het netalsof je geen donder dan php weet
voorbeeld
<?php
// dus 1x per uur (standaard en lekker brak)
/// en ik ga er vanuit dat dit een cdonjob is.
//mysqlconnectie en database
$sql = mysql_query("SELECT `time` FROM `time`;");
$sql = mysql_fetch_array($sql);
if ( date("H") > $sql['time'] )
{
$update=true;
}
else
{
if ( $sql['time'] == 23 && date("H") <= 23 )
{
$update=true;
}
}
if ( isset ( $update ) )
{
#update:nieuwe tijd adden
$sql = mysql_query("UPDATE `time` SET `time`='" . date("H") . "';");
//update
}
?>
ik ben ziekig denk niet helder na dus wees niet boos als dit niet in 1x werkt
onthoud dit is een refferentie niet een oplossing :)
Ik ken Kevin en hij zegt dat hij jou ook persoonlijk kent:p
is dat waar:p..
Link gekopieerd