Hi Sniper,
die betroffenen Zeilen in der reno.php sind für die Punktevergabe und lauten:
<?php
########################################################
# Renommee v1.0 by GeCk0
# www.gecko-report.de
# Reno-Admin
# Support: http://www.ilch.de/forum.html
defined ('main') or die ( 'no direct access' );
defined ('admin') or die ( 'only admin access' );
$design = new design ( 'Admins Area', 'Admins Area', 2 );
$design->header();
$tpl = new tpl ( 'reno.htm', 1 );
#########################################################
# aktuelle Einstellungen auslesen
$rowI = db_result(db_query("SELECT pmin FROM `prefix_reno_set` WHERE bild = '1'"));
$rowII = db_result(db_query("SELECT pmin FROM `prefix_reno_set` WHERE bild = '2'"));
$rowIII = db_result(db_query("SELECT pmin FROM `prefix_reno_set` WHERE bild = '3'"));
$rowIIII = db_result(db_query("SELECT pmin FROM `prefix_reno_set` WHERE bild = '4'"));
$rowIIIII = db_result(db_query("SELECT pmin FROM `prefix_reno_set` WHERE bild = '5'"));
$rowIIIIII = db_result(db_query("SELECT pmin FROM `prefix_reno_set` WHERE bild = '6'"));
$rowIIIIIII = db_result(db_query("SELECT pmin FROM `prefix_reno_set` WHERE bild = '7'"));
$rowIIIIIIII = db_result(db_query("SELECT pmin FROM `prefix_reno_set` WHERE bild = '8'"));
$xrenozahl = db_result(db_query("SELECT pmax FROM `prefix_reno_set` WHERE bild = 'renozahl'"));
$rowO = db_result(db_query("SELECT pmax FROM `prefix_reno_set` WHERE bild = '0'"));
$rowOO = db_result(db_query("SELECT pmax FROM `prefix_reno_set` WHERE bild = '00'"));
$rowOOO = db_result(db_query("SELECT pmax FROM `prefix_reno_set` WHERE bild = '000'"));
$rowOOOO = db_result(db_query("SELECT pmax FROM `prefix_reno_set` WHERE bild = '0000'"));
$rowOOOOO = db_result(db_query("SELECT pmax FROM `prefix_reno_set` WHERE bild = '00000'"));
$rowOOOOOO = db_result(db_query("SELECT pmax FROM `prefix_reno_set` WHERE bild = '000000'"));
# Formular absenden
if (isset ($_POST['setset'])) {
# ESCAPES ROT
$setoa = escape ($_POST['set01'], 'integer');
$setob = escape ($_POST['set02'], 'integer');
$setoc = escape ($_POST['set03'], 'integer');
$setod = escape ($_POST['set04'], 'integer');
$setoe = escape ($_POST['set05'], 'integer');
$setof = escape ($_POST['set06'], 'integer');
# ESCAPES GRUN
$seta = escape ($_POST['set1'], 'integer');
$setb = escape ($_POST['set2'], 'integer');
$setc = escape ($_POST['set3'], 'integer');
$setd = escape ($_POST['set4'], 'integer');
$sete = escape ($_POST['set5'], 'integer');
$setf = escape ($_POST['set6'], 'integer');
$setg = escape ($_POST['set7'], 'integer');
$seth = escape ($_POST['set8'], 'integer');
# Maximalwerte setzen
$setmaxOa = $seta -1;
$setmaxOb = $setoc +1;
$setmaxOc = $setod +1;
$setmaxOd = $setoe +1;
$setmaxOe = $setof +1;
$setmaxOf = -999999999;
#
$setmaxa = $setb -1;
$setmaxb = $setc -1;
$setmaxc = $setd -1;
$setmaxd = $sete -1;
$setmaxe = $setf -1;
$setmaxf = $setg -1;
$setmaxg = $seth -1;
$setmaxh = 999999999;
# Datenbank-Update grün
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$seta."', `pmax` = '".$setmaxa."' WHERE `bild` = '1'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setb."', `pmax` = '".$setmaxb."' WHERE `bild` = '2'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setc."', `pmax` = '".$setmaxc."' WHERE `bild` = '3'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setd."', `pmax` = '".$setmaxd."' WHERE `bild` = '4'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$sete."', `pmax` = '".$setmaxe."' WHERE `bild` = '5'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setf."', `pmax` = '".$setmaxf."' WHERE `bild` = '6'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setg."', `pmax` = '".$setmaxg."' WHERE `bild` = '7'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$seth."', `pmax` = '".$setmaxh."' WHERE `bild` = '8'");
# Datenbank-Update rot
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setmaxOa."', `pmax` = '".$setoa."' WHERE `bild` = '0'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setmaxOb."', `pmax` = '".$setob."' WHERE `bild` = '00'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setmaxOc."', `pmax` = '".$setoc."' WHERE `bild` = '000'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setmaxOd."', `pmax` = '".$setod."' WHERE `bild` = '0000'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setmaxOe."', `pmax` = '".$setoe."' WHERE `bild` = '00000'");
db_query("UPDATE `prefix_reno_set` SET `pmin` = '".$setmaxOf."', `pmax` = '".$setof."' WHERE `bild` = '000000'");
wd ('?reno', 'Daten gespeichert', 2);
$design->footer(1);
}
# Versionscheck
echo isset($_POST['version']) ? '<hr><iframe width="100%" height="100" src="http://gecko-project.de/index.php?vcheck-Renommee&v=1.0" style="border:0px #FFFFFF none;"></iframe><br>' : '<form method="post"><input type="submit" name="version" value="Versionscheck" /></form><hr>';
# Copyright
$cr = '<br /><br />Renommee-Modul © by <a href="http://gecko-project.de" target="_blank">GeCk0</a>';
#########################################################
# Template erstellen #
#########################################################
$tpl->set('1', $rowI);
$tpl->set('2', $rowII);
$tpl->set('3', $rowIII);
$tpl->set('4', $rowIIII);
$tpl->set('5', $rowIIIII);
$tpl->set('6', $rowIIIIII);
$tpl->set('7', $rowIIIIIII);
$tpl->set('8', $rowIIIIIIII);
$tpl->set('0', $rowO);
$tpl->set('00', $rowOO);
$tpl->set('000', $rowOOO);
$tpl->set('0000', $rowOOOO);
$tpl->set('00000', $rowOOOOO);
$tpl->set('000000', $rowOOOOOO);
$tpl->set('CR', $cr);
$tpl->set('XRZ', $xrenozahl);
$tpl->out(0);
#########################################################
$design->footer();
?>
Zuletzt modifiziert von SHAQ am 23.02.2011 - 20:17:03