Third pass at adding key files

This commit is contained in:
dsainty
2024-06-17 22:27:49 +10:00
parent b6fc94ff0f
commit 392aa512b3
633 changed files with 72489 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Header add X-Frame-Options "SAMEORIGIN"
Header add Content-Security-Policy "frame-ancestors 'self'"

View File

@ -0,0 +1,10 @@
#Header add X-Frame-Options "DENY"
#Header add Content-Security-Policy "frame-ancestors 'none';"
#Header set Content-Security-Policy "default-src 'self';"
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteCond %{REMOTE_ADDR} !^208\.70\.245\.120
RewriteRule $ /maintenance.html [R=302,L]

View File

@ -0,0 +1,84 @@
/*
On completion of window load test cycle through all the adzones and
test each element for the display = none style. If found update database.
*/
window.addEvent('domready', function() {
$$('div.advertPro').each(function(curBlock) {
var adzone = curBlock.id;
var userID = '<?=$_GET["userID"]?>';
if (adzone == 'z_20') {
var scripts = curBlock.getElementsByTagName("script");
// alert(scripts.length + ' script tags.');
if (scripts.length > 99) {
// dcImage = scripts['3'].getElementsByTagName("img");
// scripts['3'].setStyle('display') = '';
// if (scripts['3'].getStyle('display') == 'none') {
// alert(adzone + ': ' + scripts['3'].getStyle('display'));
// updateDB(adzone, userID);
// }
}
}
var images = curBlock.getElementsByTagName("img");
if (images.length > 0) {
for (y=0; y < images.length; y++) {
if (images[y].getStyle('display') == 'none') {
// alert(adzone + ' image blocked.');
updateDB(adzone, userID);
}
}
}
var flash = curBlock.getElementsByTagName("embed");
if (flash.length > 0) {
for (y=0; y < flash.length; y++) {
if (flash[y].getStyle('display') == 'none') {
// alert(adzone + ' flash blocked.');
updateDB(adzone, userID);
}
}
}
});
});
// Database update function
//
function updateDB(adzone, userID) {
var http = getHTTPObject();
if (http) {
http.open("GET", "/adblock/dbWrite.php?ipaddr=<?=$_SERVER['REMOTE_ADDR']?>&userID=" + userID + "&adzone=" + adzone, true);
http.onreadystatechange = function() {
if (http.readyState == 4) {
var results = http.responseText;
}
}
http.send(null);
}
}
// Basic AJAX style request object
//
function getHTTPObject() {
var xhr = false;
if(window.XMLHttpRequest) {
var xhr = new XMLHttpRequest();
} else if(window.ActiveXObject) {
try {
var xhr = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
var xhr = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
alert("Your browser does not support AJAX!");
xhr = false;
}
}
}
return xhr;
}

View File

@ -0,0 +1,49 @@
<?
// Insert passed information into database to log ad delivery failure
//
// Mike Apted (mike@devsol.ca) - 2008.12.14
// Configuration
//
$db_host = '192.168.1.10';
$db_user = 'slowtwitch';
$db_pass = 'k9volqlAcpq';
$db_name = 'slowtwitch';
// Accept and validate parameters
//
if (isset($_GET["ipaddr"]))
if (preg_match("/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/", $_GET["ipaddr"]))
$ipaddr = $_GET["ipaddr"];
else
$ipaddr = "";
else
$ipaddr = "";
if (isset($_GET["userID"]))
if (preg_match("/^[a-z\d_]{0,30}$/i", $_GET["userID"]))
$userID = $_GET["userID"];
else
$userID = "";
else
$userID = "";
if (isset($_GET["adzone"]))
if (preg_match("/\d{1,3}/", $_GET["adzone"]))
$adzone = $_GET["adzone"];
else
$adzone = "";
else
$adzone = "";
// Log entry into database
//
$db = mysql_connect($db_host, $db_user,$db_pass) or die("Error: Could not connect to server.");
mysql_select_db($db_name) or die("Error: Could not select database.");
$query = "INSERT into adblock_iplog (ipaddr, user, adzone) values('" . mysql_real_escape_string($ipaddr) . "', '" . mysql_real_escape_string($userID) . "', '" . mysql_real_escape_string($adzone) . "')";
$result = mysql_query($query) or die("Error: Query failed - " . mysql_error());
?>

View File

@ -0,0 +1 @@
adblock dir

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,176 @@
<script type="text/javascript" src="/overlib.js"></script>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="/flash/AC_RunActiveContent.js" language="javascript"></script>
<script src="/adblock/mootools.js" type="text/javascript"></script>
<script src="/adblock/adBlockJS.php?userID=userName" type="text/javascript"></script>
<script language="Javascript">
<!--
sgi_ord=Math.random()*10000000000000000;
//-->
</script>
z_20:
<div class="advertPro" id="z_20">
<!-- BEGIN ADVERTPRO CODE BLOCK -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
document.write('<SCR'+'IPT src="http://reach.slowtwitch.com/servlet/view/banner/javascript/zone?zid=20&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<A href="http://reach.slowtwitch.com/servlet/click/zone?zid=20&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://reach.slowtwitch.com/servlet/view/banner/image/zone?zid=20&pid=0&position=1" height="90" width="728" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</NOSCRIPT>
<!-- END ADVERTPRO CODE BLOCK -->
</div>
<p>
z_8:
<div class="advertPro" id="z_8">
<!-- BEGIN ADVERTPRO CODE BLOCK -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
document.write('<SCR'+'IPT src="http://reach.slowtwitch.com/servlet/view/banner/javascript/zone?zid=8&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<A href="http://reach.slowtwitch.com/servlet/click/zone?zid=8&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://reach.slowtwitch.com/servlet/view/banner/image/zone?zid=8&pid=0&position=1" height="90" width="120" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</NOSCRIPT>
<!-- END ADVERTPRO CODE BLOCK -->
</div>
<p>
z_9:
<div class="advertPro" id="z_9">
<!-- BEGIN ADVERTPRO CODE BLOCK -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
document.write('<SCR'+'IPT src="http://reach.slowtwitch.com/servlet/view/banner/javascript/zone?zid=9&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<A href="http://reach.slowtwitch.com/servlet/click/zone?zid=9&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://reach.slowtwitch.com/servlet/view/banner/image/zone?zid=9&pid=0&position=1" height="90" width="120" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</NOSCRIPT>
<!-- END ADVERTPRO CODE BLOCK -->
</div>
<p>
z_4:
<div class="advertPro" id="z_4">
<!-- BEGIN ADVERTPRO CODE BLOCK -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
document.write('<SCR'+'IPT src="http://reach.slowtwitch.com/servlet/view/banner/javascript/zone?zid=4&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<A href="http://reach.slowtwitch.com/servlet/click/zone?zid=4&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://reach.slowtwitch.com/servlet/view/banner/image/zone?zid=4&pid=0&position=1" height="60" width="120" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</NOSCRIPT>
<!-- END ADVERTPRO CODE BLOCK -->
</div>
<p>
z_1:
<div class="advertPro" id="z_1">
<!-- BEGIN ADVERTPRO CODE BLOCK -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
document.write('<SCR'+'IPT src="http://reach.slowtwitch.com/servlet/view/banner/javascript/zone?zid=1&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<A href="http://reach.slowtwitch.com/servlet/click/zone?zid=1&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://reach.slowtwitch.com/servlet/view/banner/image/zone?zid=1&pid=0&position=1" height="90" width="120" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</NOSCRIPT>
<!-- END ADVERTPRO CODE BLOCK -->
</div>
<p>
z_21:
<div class="advertPro" id="z_21">
<!-- BEGIN ADVERTPRO CODE BLOCK -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
document.write('<SCR'+'IPT src="http://reach.slowtwitch.com/servlet/view/banner/javascript/zone?zid=21&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<A href="http://reach.slowtwitch.com/servlet/click/zone?zid=21&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://reach.slowtwitch.com/servlet/view/banner/image/zone?zid=21&pid=0&position=1" height="240" width="120" border="0" alt="Click Here!">
</A>
</NOSCRIPT>
<!-- END ADVERTPRO CODE BLOCK -->
</div>
<p>
z_18:
<div class="advertPro" id="z_18">
<!-- BEGIN ADVERTPRO CODE BLOCK -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
document.write('<SCR'+'IPT src="http://reach.slowtwitch.com/servlet/view/banner/javascript/zone?zid=18&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<A href="http://reach.slowtwitch.com/servlet/click/zone?zid=18&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://reach.slowtwitch.com/servlet/view/banner/image/zone?zid=18&pid=0&position=1" height="600" width="120" border="0" alt="Click Here!">
</A>
</NOSCRIPT>
<!-- END ADVERTPRO CODE BLOCK -->
</div>
<p>
z_21:
<div class="advertPro" id="z_21">
<!-- BEGIN ADVERTPRO CODE BLOCK -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
document.write('<SCR'+'IPT src="http://reach.slowtwitch.com/servlet/view/banner/javascript/zone?zid=21&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<A href="http://reach.slowtwitch.com/servlet/click/zone?zid=21&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://reach.slowtwitch.com/servlet/view/banner/image/zone?zid=21&pid=0&position=1" height="240" width="120" border="0" alt="Click Here!">
</A>
</NOSCRIPT>
<!-- END ADVERTPRO CODE BLOCK -->
</div>
<p>
z_1:
<div class="advertPro" id="z_1">
<!-- BEGIN ADVERTPRO CODE BLOCK -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
document.write('<SCR'+'IPT src="http://reach.slowtwitch.com/servlet/view/banner/javascript/zone?zid=1&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
//-->
</SCRIPT>
<NOSCRIPT>
<A href="http://reach.slowtwitch.com/servlet/click/zone?zid=1&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://reach.slowtwitch.com/servlet/view/banner/image/zone?zid=1&pid=0&position=1" height="90" width="120" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</NOSCRIPT>
<!-- END ADVERTPRO CODE BLOCK -->
</div>

View File

@ -0,0 +1,6 @@
AuthUserFile /home/slowtwitch/forum.slowtwitch.com/cgi-bin/admin/.htpasswd
AuthGroupFile /dev/null
AuthType Basic
AuthName "Gossamer Forum Administration"
require valid-user

View File

@ -0,0 +1,45 @@
<?
###########################################
#-----------Forum stats config------------#
###########################################
/*=========================================\
Author : Jordan Rapped \\
Version : 1.0 \\
Date Created: Feb 2 2008 \\
---------------------------- \\
Last Update: Feb 2 2008 \\
---------------------------- \\
\\
===========================================\
------------------------------------------*/
//skip the config file if somebody call it from the browser.
if (eregi("config.php", $_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php"); die();
}
//your database hostname.
$dbhost = "192.168.1.10";
//your database username.
$dbuname = "slowtwitch";
//your db password
$dbpass = "k9volqlAcpq";
$dbname = "slowtwitch";
$prefix = "gforum_";
//change this
$site_name = "Slowtwitch.com";
$site_email = "aaron@gossamer-threads.com";
$site_url = "http://test.slowtwitch.com/stackreach/";
include("mysql.class.php");
$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
echo "<br><font color=red><h3><br><center>Error:</b><br><hr><br>
<b>Connection to database failed</b><br>
<br><br><br><br><br><br><br><br><br></b></center>";
exit();
}
?>

View File

@ -0,0 +1,65 @@
<?PHP
require_once ("config.php");
echo ("<font face=\"Tahoma,Arial,Helvetica\" size=\"2\">");
$main_table = "Triathlons";
$field_lead = "";
$year_part = date( "Y", strtotime("-6 months") );
$min_date = ""+$year_part+"-01-01"; // start date for races that display
$base_url = "https://www.slowtwitch.com/calendar/";
echo("<br /><br /><strong style=\"text-decoration: underline;\">".$main_table." Admin:</strong>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0 AND ".$field_lead."date >= '".$min_date."'"));
echo("<br /><a target='_blank' href='".$base_url."validate.php'><strong>Validate Entries (".$unvalid_count.")</strong></a>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits"));
echo("<br /><a target='_blank' href='".$base_url."wiki_validate.php'><strong>Validate Edits (".$unvalid_count.")</strong></a>");
$main_table = "Retailers";
$field_lead = "retailer_";
$base_url = "https://www.slowtwitch.com/retailers/";
echo("<br /><br /><strong style=\"text-decoration: underline;\">".$main_table." Admin:</strong>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0"));
echo("<br /><a target='_blank' href='".$base_url."validate.php'><strong>Validate Entries (".$unvalid_count.")</strong></a>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits"));
echo("<br /><a target='_blank' href='".$base_url."wiki_validate.php'><strong>Validate Edits (".$unvalid_count.")</strong></a>");
$main_table = "Triclubs";
$field_lead = "triclub_";
$base_url = "https://www.slowtwitch.com/triclubs/";
echo("<br /><br /><strong style=\"text-decoration: underline;\">".$main_table." Admin:</strong>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0"));
echo("<br /><a target='_blank' href='".$base_url."validate.php'><strong>Validate Entries (".$unvalid_count.")</strong></a>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits"));
echo("<br /><a target='_blank' href='".$base_url."wiki_validate.php'><strong>Validate Edits (".$unvalid_count.")</strong></a>");
$main_table = "Runshops";
$field_lead = "runshop_";
$base_url = "https://www.slowtwitch.com/runshops/";
echo("<br /><br /><strong style=\"text-decoration: underline;\">".$main_table." Admin:</strong>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0"));
echo("<br /><a target='_blank' href='".$base_url."validate.php'><strong>Validate Entries (".$unvalid_count.")</strong></a>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits"));
echo("<br /><a target='_blank' href='".$base_url."wiki_validate.php'><strong>Validate Edits (".$unvalid_count.")</strong></a>");
$main_table = "Fitters";
$field_lead = "fitter_";
$base_url = "https://www.slowtwitch.com/fitters/";
echo("<br /><br /><strong style=\"text-decoration: underline;\">".$main_table." Admin:</strong>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0"));
echo("<br /><a target='_blank' href='".$base_url."validate.php'><strong>Validate Entries (".$unvalid_count.")</strong></a>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits"));
echo("<br /><a target='_blank' href='".$base_url."wiki_validate.php'><strong>Validate Edits (".$unvalid_count.")</strong></a>");
$main_table = "Coaches";
$field_lead = "coach_";
$base_url = "https://www.slowtwitch.com/coaches/";
echo("<br /><br /><strong style=\"text-decoration: underline;\">".$main_table." Admin:</strong>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0"));
echo("<br /><a target='_blank' href='".$base_url."validate.php'><strong>Validate Entries (".$unvalid_count.")</strong></a>");
$unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits"));
echo("<br /><a target='_blank' href='".$base_url."wiki_validate.php'><strong>Validate Edits (".$unvalid_count.")</strong></a>");
echo ("</font>");
?>

View File

@ -0,0 +1,48 @@
<?PHP
require_once ("config.php");
// GLINKS COMMENTS SQL
/** Fetch comments matching %<a href=%[url=% **/
$count_spam_glinks_comments_sql = "SELECT COUNT(ReviewID) AS amount_spam FROM glinks_Reviews WHERE Review_Contents LIKE '%a href=%[url=%'";
$remove_spam_glinks_comments_sql = "DELETE FROM glinks_Reviews WHERE Review_Contents LIKE '%a href=%[url=%'";
echo ("<font face=\"Tahoma,Arial,Helvetica\" size=\"2\">");
?>
<? echo ("<strong>**Deleting Spam Comments**</strong><br /><br />"); ?>
<? // Delete Comments
// count the spam comments
echo ("<strong>Counting Spam Comments...</strong><br />");
$sql = $count_spam_glinks_comments_sql;
$results = mysql_query($sql);
while ($row = mysql_fetch_array($results)) {
echo ("Number of spam comments: ".$row[amount_spam]);
if ($row[amount_spam] > 0) $spam_count = $row[amount_spam];
echo ("<br />\n\r");
}
echo ("<br />");
// end count
// delete the spam comments
//echo ("Comments to be deleted: ".$spam_count);
if ($spam_count > 0) {
echo ("Deleting spam comments...");
$sql = $remove_spam_glinks_comments_sql;
$results = mysql_query($sql);
}
// end delete comments
?>
<? echo ("</font>"); ?>

View File

@ -0,0 +1,174 @@
<?PHP
require_once ("config.php");
// FORUM USERS SQL
/** Users online now?
Unique users posting over the last 1 day?
Unique users posting over the last 7 days?
Unique users posting over the last 30 days?
Versus same 30 days one year ago?
Unique users posting over the last 6 months? **/
$user_date_limit = array("1", "7", "30", "183");
$user_date_append = "WHERE post_time > UNIX_TIMESTAMP(NOW()) - (24*60*60)";
$online_now_sql = "SELECT COUNT(user_id) AS online_now FROM gforum_User WHERE user_last_seen > UNIX_TIMESTAMP(NOW()) - (15*60)";
$unique_posters_sql = "SELECT COUNT(DISTINCT(user_id_fk)) AS uniques FROM gforum_Post";
// ADBLOCK STATS SQL
$date_limit = array("2", "30");
$date_append = "WHERE UNIX_TIMESTAMP(ai.timestamp) > UNIX_TIMESTAMP(NOW()) - (24*60*60)";
$adblock_users_sql = "SELECT DISTINCT(ai.user) AS uid, gu.user_username, gu.user_enabled FROM adblock_iplog AS ai RIGHT JOIN gforum_User AS gu ON gu.user_id = ai.user";
$adblock_email_all_sql = "SELECT DISTINCT(ai.user), gu.user_email FROM adblock_iplog AS ai RIGHT JOIN gforum_User AS gu ON gu.user_id = ai.user";
$adblock_email_enabled_sql = "SELECT DISTINCT(ai.user), gu.user_email FROM adblock_iplog AS ai RIGHT JOIN gforum_User AS gu ON gu.user_id = ai.user AND gu.user_enabled = 1";
$adblock_email_disabled_sql = "SELECT DISTINCT(ai.user), gu.user_email FROM adblock_iplog AS ai RIGHT JOIN gforum_User AS gu ON gu.user_id = ai.user AND gu.user_enabled = 0";
$adblock_ip_sql = "SELECT DISTINCT(ai.ipaddr) FROM adblock_iplog AS ai";
echo ("<font face=\"Tahoma,Arial,Helvetica\" size=\"2\">");
?>
<? echo ("<strong>**Forum Stats**</strong><br /><br />"); ?>
<? // Fetch the users online now
echo ("<strong>ONLINE NOW (Last 15 Minutes)</strong><br />");
$sql = $online_now_sql;
$results = mysql_query($sql);
while ($row = mysql_fetch_array($results)) {
echo ($row[online_now]);
echo ("<br />\n\r");
}
echo ("<br />");
// end online now
?>
<? // Fetch the unique posters
echo ("<strong>UNIQUE POSTERS</strong><br />");
foreach ($user_date_limit AS $limit) {
echo ("<strong>Last ".$limit." day(s)</strong>: ");
$sql = $unique_posters_sql." ".$user_date_append."*".$limit;
$results = mysql_query($sql);
while ($row = mysql_fetch_array($results)) {
echo ($row[uniques]);
}
echo ("<br />");
}
// end unique loop
?>
<? // Fetch the unique posters
echo ("<br /><strong>ONE YEAR AGO</strong><br />");
foreach ($user_date_limit AS $limit) {
echo ("<strong>Last ".$limit." day(s)</strong>: ");
$user_year_append = "WHERE post_time > UNIX_TIMESTAMP(NOW()) - (24*60*60)*(365+".$limit.") AND post_time < UNIX_TIMESTAMP(NOW()) - (24*60*60)*(365)";
$sql = $unique_posters_sql." ".$user_year_append;
$results = mysql_query($sql);
while ($row = mysql_fetch_array($results)) {
echo ($row[uniques]);
}
echo ("<br />");
}
// end unique loop
?>
<? echo ("<br /><br /><strong>**AdBlock Stats**</strong><br /><br />"); ?>
<? // Fetch the users
echo ("<strong>USERS</strong><br />");
foreach ($date_limit AS $limit) {
echo ("<strong>Last ".$limit." days</strong><br />");
$sql = $adblock_users_sql." ".$date_append."*".$limit;
$results = mysql_query($sql);
while ($row = mysql_fetch_array($results)) {
echo ("<a href='http://forum.slowtwitch.com/cgi-bin/admin/db.cgi?db=User;do=modify_search_results;user_id=".$row[uid].";user_id-opt=%3D'>".$row[user_username]."</a>");
if ($row[user_enabled] == 1) {
echo (" (enabled)");
} else {
echo (" (disabled)");
}
echo ("<br />\n\r");
}
echo ("<br />");
}
// end user loop
?>
<? // Fetch the email
echo ("<strong>EMAIL</strong><br />");
foreach ($date_limit AS $limit) {
echo ("<strong>Last ".$limit." days</strong><br />");
$sql = $adblock_email_all_sql." ".$date_append."*".$limit;
$results = mysql_query($sql);
echo ("ALL users: \n\r");
while ($row = mysql_fetch_array($results)) {
echo ("<a href='mailto:".$row[user_email]."'>".$row[user_email]."</a>, ");
echo ("\n\r");
}
echo ("<br /><br />");
$sql = $adblock_email_enabled_sql." ".$date_append."*".$limit;
$results = mysql_query($sql);
echo ("ENABLED users: \n\r");
while ($row = mysql_fetch_array($results)) {
echo ("<a href='mailto:".$row[user_email]."'>".$row[user_email]."</a>, ");
echo ("\n\r");
}
echo ("<br /><br />");
$sql = $adblock_email_disabled_sql." ".$date_append."*".$limit;
$results = mysql_query($sql);
echo ("DISABLED users: \n\r");
if (mysql_num_rows($results) == 0) {
echo ("none");
} else {
while ($row = mysql_fetch_array($results)) {
echo ("<a href='mailto:".$row[user_email]."'>".$row[user_email]."</a>, ");
echo ("\n\r");
}
}
echo ("<br /><br />");
}
// end email loop
?>
<? // Fetch the ips
echo ("<strong>IPs</strong><br />");
foreach ($date_limit AS $limit) {
echo ("<strong>Last ".$limit." days</strong><br />");
$sql = $adblock_ip_sql." ".$date_append."*".$limit;
$results = mysql_query($sql);
while ($row = mysql_fetch_array($results)) {
echo ($row[ipaddr]);
echo ("<br />\n\r");
}
echo ("<br />");
}
// end ip loop
?>
<? echo ("</font>"); ?>

View File

@ -0,0 +1,6 @@
<?PHP
header('Location:http://forum.slowtwitch.com/');
exit();
?>

View File

@ -0,0 +1,339 @@
<?PHP
###########################################
#-----------Users login system------------#
###########################################
/*=========================================\
Author : Mohammed Ahmed(M@@king) \\
Version : 1.0 \\
Date Created: Aug 20 2005 \\
---------------------------- \\
Last Update: August 22 2005 \\
---------------------------- \\
Country : Palestine \\
City : Gaza \\
E-mail : m@maaking.com \\
MSN : m@maaking.com \\
AOL-IM : maa2pal \\
WWW : http://www.maaking.com \\
Mobile/SMS : 00972-599-622235 \\
\\
===========================================\
------------------------------------------*/
if (eregi("mysql.class.php", $_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php"); die();
}
//db class
if(!defined("SQL_LAYER"))
{
define("SQL_LAYER","mysql");
class sql_db
{
var $db_connect_id;
var $query_result;
var $row = array();
var $rowset = array();
var $num_queries = 0;
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->server = $sqlserver;
$this->dbname = $database;
if($this->persistency)
{
$this->db_connect_id = @mysql_pconnect($this->server, $this->user, $this->password);
}
else
{
$this->db_connect_id = @mysql_connect($this->server, $this->user, $this->password);
}
if($this->db_connect_id)
{
if($database != "")
{
$this->dbname = $database;
$dbselect = @mysql_select_db($this->dbname);
if(!$dbselect)
{
@mysql_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
}
return $this->db_connect_id;
}
else
{
return false;
}
}
//
// Other base methods
//
function sql_close()
{
if($this->db_connect_id)
{
if($this->query_result)
{
@mysql_free_result($this->query_result);
}
$result = @mysql_close($this->db_connect_id);
return $result;
}
else
{
return false;
}
}
//
// Base query method
//
function sql_query($query = "", $transaction = FALSE)
{
// Remove any pre-existing queries
unset($this->query_result);
if($query != "")
{
$this->query_result = @mysql_query($query, $this->db_connect_id);
}
if($this->query_result)
{
unset($this->row[$this->query_result]);
unset($this->rowset[$this->query_result]);
return $this->query_result;
}
else
{
return ( $transaction == END_TRANSACTION ) ? true : false;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_num_rows($query_id);
return $result;
}
else
{
return false;
}
}
function sql_affectedrows()
{
if($this->db_connect_id)
{
$result = @mysql_affected_rows($this->db_connect_id);
return $result;
}
else
{
return false;
}
}
function sql_numfields($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_num_fields($query_id);
return $result;
}
else
{
return false;
}
}
function sql_fieldname($offset, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_field_name($query_id, $offset);
return $result;
}
else
{
return false;
}
}
function sql_fieldtype($offset, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_field_type($query_id, $offset);
return $result;
}
else
{
return false;
}
}
function sql_fetchrow($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$this->row[$query_id] = @mysql_fetch_array($query_id);
return $this->row[$query_id];
}
else
{
return false;
}
}
function sql_fetchrowset($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
unset($this->rowset[$query_id]);
unset($this->row[$query_id]);
while($this->rowset[$query_id] = @mysql_fetch_array($query_id))
{
$result[] = $this->rowset[$query_id];
}
return $result;
}
else
{
return false;
}
}
function sql_fetchfield($field, $rownum = -1, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
if($rownum > -1)
{
$result = @mysql_result($query_id, $rownum, $field);
}
else
{
if(empty($this->row[$query_id]) && empty($this->rowset[$query_id]))
{
if($this->sql_fetchrow())
{
$result = $this->row[$query_id][$field];
}
}
else
{
if($this->rowset[$query_id])
{
$result = $this->rowset[$query_id][$field];
}
else if($this->row[$query_id])
{
$result = $this->row[$query_id][$field];
}
}
}
return $result;
}
else
{
return false;
}
}
function sql_rowseek($rownum, $query_id = 0){
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_data_seek($query_id, $rownum);
return $result;
}
else
{
return false;
}
}
function sql_nextid(){
if($this->db_connect_id)
{
$result = @mysql_insert_id($this->db_connect_id);
return $result;
}
else
{
return false;
}
}
function sql_freeresult($query_id = 0){
if(!$query_id)
{
$query_id = $this->query_result;
}
if ( $query_id )
{
unset($this->row[$query_id]);
unset($this->rowset[$query_id]);
@mysql_free_result($query_id);
return true;
}
else
{
return false;
}
}
function sql_error($query_id = 0)
{
$result["message"] = @mysql_error($this->db_connect_id);
$result["code"] = @mysql_errno($this->db_connect_id);
return $result;
}
} // class sql_db
} // if ... define
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Some files were not shown because too many files have changed in this diff Show More