//Page components answer 'yes' or 'no'
$page_name = 'nri_in';
$lock = 'no';
$breakout = 'yes';
$refresh = 'no';
$path = './';
//Page Title Start
$page_title = "
";
//Page Title End
//Page Header Funtion
function title() {}
// Header Include Statment Start-->
require_once($path . 'header.php');
// Header Include Statment End -->
?>
// ad routine //
// Size = 728 or 460
$size = 728;
include ($path . "ads/ad_code.php")
// end ad routine //
?>
switch($_GET['func']) {
case "add":
add();
break;
}
?>
require("config.php");
$main4 = "SELECT id, submitter, one, two, three, four, five, six, final FROM $table7";
$mresult4 = mysql_query($main4) or die("Query failed : " . mysql_error());
$total = mysql_num_rows($mresult4);
If ($total > 0) {
echo "";
echo "";
echo "";
echo "ID# | ";
echo "Submitter | ";
echo "1st | 2nd | 3rd | 4th | 5th | 6th | Final | ";
while ($line4 = mysql_fetch_array($mresult4, MYSQL_ASSOC)) {
$c = 1; echo "
";
foreach ($line4 as $col_value) {
if ($c == 2) {if ($col_value == "") {$col_value = "Unknown";} echo "". htmlspecialchars($col_value) ." | ";}
if ($c != 2) {echo "$col_value | \n";};
$c++;
}
echo "
"; $c=1;
}
echo "
";
} else {
echo "
** There are currently no ratios in the temporary table **
";
}
?>
function add() {
require("config.php");
//global $car, $submitter, $first, $second, $third, $fourth, $fifth, $sixth, $fin;
$car = $_POST['car']; $submitter = $_POST['submitter']; $first = $_POST['first']; $second = $_POST['second']; $third = $_POST['third'];
$fourth = $_POST['fourth']; $fifth = $_POST['fifth']; $sixth = $_POST['sixth']; $fin = $_POST['fin'];
$alert ="";
if ($car <= 0 | $car == '' | $car > 25) {echo "$alert Fuck off you wannabe hacker $alert
"; return;}
//if (is_string($submitter) ) {echo "$alert Fuck off you wannabe hacker $alert
"; return;}
if ($first > 8 | $second > 4 | $third > 4 | $fourth > 3 | $fifth > 1.5 | $sixth > 1 | $fin > 6) {echo "$alert Input Error, Please Re-Enter Your Numbers $alert
"; return;};
if ($first + $second + $third + $fourth + $fifth + $sixth + $fin < 10) {echo "$alert Fuck off you hacker $alert
"; return;}
#if ($first >= $second | $second >= $third | $third >= $fourth | $fourth >= $fifth | $fifth >= $sixth) {echo "$alert Input Error, Please Re-Enter Your Numbers $alert
"; return;};
$add1 = "SELECT * FROM $table4 WHERE link = '$car'";
$aresult1 = mysql_query($add1) or die("Query failed : " . mysql_error());
$parse1 = mysql_fetch_array($aresult1);
$cars = $parse1['cars']; $numbers = $parse1['numbers']; $ind = $parse1['ind'];
$cquery1 = "SELECT one, two, three, four, five, six, final FROM $table7 WHERE name='$numbers' AND
one='$first' AND two='$second' AND three='$third' AND four='$fourth' AND five='$fifth' AND six='$sixth' AND final='$fin'";
$cquery2 = "SELECT one, two, three, four, five, six, final FROM $table6 WHERE name='$numbers' AND
one='$first' AND two='$second' AND three='$third' AND four='$fourth' AND five='$fifth' AND six='$sixth' AND final='$fin'";
$cresult1 = mysql_query($cquery1) or die("Query failed : " . mysql_error());
$cresult2 = mysql_query($cquery2) or die("Query failed : " . mysql_error());
$total = mysql_num_rows($cresult2) + mysql_num_rows($cresult1);
if ($total == 0) {mysql($db1, "INSERT INTO $table7 VALUES ('', '$submitter', '$numbers', '$ind', '$first', '$second', '$third', '$fourth', '$fifth', '$sixth', '$fin', '0', '0', '0', '0', '0', '0')"); }
else {echo "$alert That set of ratios has already exists in the NRI Database! $alert
";}
?>
}
?>
Ratios Submited, will be scanned for Bullshit, then transfered to the main database
$mypage = basename($PHP_SELF);
if ($path == "./") {require_once("counter/acounter.php");} else {require_once("../counter/acounter2.php");}
$ani_counter = new acounter();
echo $ani_counter->create_output($page_name);
?>
Visits to this page
include $path . "counter/iplog.php" ?>
|
|
|
// ad routine //
// Size = 728 or 460
//$size = 460;
//include ($path . "ads/ad_code.php")
// end ad routine //
?>
|
|
|
|
|