Hey , ich bastele gerade an einem guidtech system ...läuft soweit bis auf das $act nicht defininiert ist ...
So eigentlich np , aber aber die get variable act wird auch auf allen anderen Seiten nicht definiert ...
Sie wird aber bei jeder änderung benötig : z.B.
oder :
oder aus der admin.php :
Kann mir jemand helfen wie act defininiert werden könnte ?
Wer mehr Infos brauch melden :P
thx 4 help
So wird $act defininiert auch in den anderen php skripten...:Quote:
Notice: Undefined index: act in C:\xampp\htdocs\vbulletin\guid\settings.php on line 4
PHP Code:
$act = $_GET['act'];
Sie wird aber bei jeder änderung benötig : z.B.
PHP Code:
if($act=="ChangeGUID" && ($changes < $total)){
$newguid = $_POST['GUID'];
$newguid2 = $_POST['GUID2'];
$changesupdate = $changes+1;
if(!empty($_POST['GUID'])) {
if(strlen($newguid) != 32) {
exit("GUID is too short");
}
$a = "wr vip";
}
if(!empty($_POST['GUID2'])) {
if(strlen($newguid2) != 32) {
exit("GUID is too short");
}
$b= "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'");
}
//mysql_query("UPDATE GUIDTech SET GUID3='$newguid3' WHERE user='$username'");
header("Location: settings.php");
}
else { $act = ""; }
PHP Code:
if($act==""){
if($changes == $total){
$x = $hourstime - time();
if($x <= 0) {
$changes = 0;
}
}
PHP Code:
if($act=="guid"){ //Lock Act
$name=$_GET['name'];
$result=mysql_query("SELECT * FROM GUIDTech WHERE user='$name'");
while($rows=mysql_fetch_array($result)){ // Start looping table row
$GUID=$rows['GUID'];
$GUID2=$rows['GUID2'];
$GUID3=$rows['GUID3'];
}?>
Wer mehr Infos brauch melden :P
thx 4 help