Traffic Exchange


$title
 $title Control Panel
Login:
Password:
"); unset($HTTP_SESSION_VARS); session_destroy(); exit; } global $login, $passwd; $asess_name = $login; $asess_passwd = $passwd; header("Location: /control/?".SID); exit; } echo("$title
 $title Control Panel
Login:
Password:
"); unset($HTTP_SESSION_VARS); session_destroy(); exit; } else { $res = mysql_query("select value from admin where field='login'"); $dblogin = mysql_result($res, 0); $res = mysql_query("select value from admin where field='passwd'"); $dbpasswd = mysql_result($res, 0); if ($asess_name != $dblogin || $asess_passwd != $dbpasswd || !ereg($self_name, $HTTP_REFERER)) { echo("$title
 $title Control Panel
Login:
Password:
"); unset($HTTP_SESSION_VARS); session_destroy(); exit; } } $menu = array('Stats', 'Authorization', 'Properties', 'User List', 'Site List', 'Abuse Reports', 'Content/HTML', 'Sell Credits', 'Sell Accounts', 'E-mail Users', 'Banners', 'F.A.Q', 'Text Ads','Weekly Stats', 'Log Out'); $full_menu = array('Stats Since Last Login', 'Authorization Details', 'System Properties', 'User List', 'Site List', 'Users\' Abuse Reports', 'Content/HTML Management', 'Credits Sales Options', 'Accounts Sales Options', 'E-mail Users', 'Banners For Users\' References', 'Users\' FAQ', 'Main Page Text Ads','Last 7 Days Statistics', 'Log Out'); $lim = 20; if (!isset($y) || $y > 14 || $y < 0) {$y = 0;} echo("$title
"); while (list($key, $val) = each($menu)) { if ($key == $y) {echo("» ");} echo(""); echo($val); if ($key == $y) {echo("");} echo("
"); echo("
"); } echo("
"); $sures = mysql_query("select value from adminprops where field='surplu'"); function surplus() { global $sures; $surp = mysql_result($sures, 0); $surp = round($surp, 2); if ($surp < 0) {$uig = 'Credits Deficiency';} else {$uig = 'Surplus Credits';} echo("
$uig: $surp
"); } function title() { global $full_menu, $y; echo("
$full_menu[$y]

"); } if ($y == 0) { surplus(); title(); $res = mysql_query("select value from admin where field='lastac'"); $lastac = date("Y-m-d H:i:s", mysql_result($res, 0)); $lastac2 = mysql_result($res, 0); $res = mysql_query("select id, email from user where joindate>'$lastac'"); if (mysql_num_rows($res) == 0) { echo("
There are no new users
"); } else { echo("
New users:
"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $em = mysql_result($res, $i, "email"); echo("$em
"); } echo("
"); } $res = mysql_query("select id, url from site where state='Waiting'"); if (mysql_num_rows($res) == 0) { echo("
There are no sites waiting for approval
"); } else { $kuku = mysql_num_rows($res); switch ($kuku) { case 1: $there = "There is"; $sitez = "site"; break; default: $there = "There are"; $sitez = "sites"; } echo("
$there $kuku $sitez waiting for approval
"); } $res = mysql_query("select id, siteid, usrid from abuse where unix_timestamp(date)>'$lastac2'"); if (mysql_num_rows($res) == 0) { echo("
There are no new abuse reports
"); } else { echo("
New abuse reports:
"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $em = mysql_result($res, $i, "siteid"); $et = mysql_result($res, $i, "usrid"); echo("Site #$em by user #$et
"); } echo("
"); } } elseif ($y == 1) { surplus(); title(); if ($a_form1 == 'sent') { $error = ""; if ($a_login == "") { $error = $error . "You must not leave the 'login' field blank
"; } if ($a_email == "") { $error = $error . "You must not leave the 'e-mail' field blank
"; } if ($a_passwd != $asess_passwd) { $error = $error . "Your password is wrong
"; } if ($error != "") { $error = $error . "
Use your browser's BACK button"; echo($error); } else { $res = mysql_query("update admin set value='$a_login' where field='login'"); $res = mysql_query("update admin set value='$a_email' where field='email'"); $asess_name = $a_login; echo("New values were successfully saved in the database."); } } elseif ($a_form2 == 'sent') { $error = ""; if ($a_old_passwd != $asess_passwd) { $error = $error . "Your old password is wrong
"; } if ($a_new_passwd1 == "") { $error = $error . "You must not leave 'new password' field blank
"; } if ($a_new_passwd1 != $a_new_passwd2) { $error = $error . "Your new password doesn't match
"; } if ($error != "") { $error = $error . "
Use your browser's BACK button"; echo($error); } else { $res = mysql_query("update admin set value='$a_new_passwd1' where field='passwd'"); $asess_passwd = $a_new_passwd1; echo("Your password was successfully changed."); } } else { $res = mysql_query("select value from admin where field='email'"); $a_email = mysql_result($res, 0); echo("
  
Login:
E-mail:
Password:
Change password

Old password:
New password:
Confirm new password:
"); } } elseif ($y == 2) { surplus(); title(); $fields = array("inibon", "reftim", "negact", "contex", "contey", "inact"); if ($pform == 'sent') { $error = ""; if (!is_numeric($inact) || !is_numeric($inibon) || !is_numeric($reftim) || !is_numeric($contex) || !is_numeric($contey)) { $error = $error . "All the values you enter must be numeric
"; } if ($inact == "" || $inibon == "" || $reftim == "" || $contex == "" || $contey == "") { $error = $error . "You must not leave any fields blank
"; } if ($error != "") { $error = $error . "
Use your browser's BACK button"; echo($error); } else { while (list($k, $v) = each($fields)) { $res = mysql_query("update adminprops set value=${$v} where field='$v'"); } echo("New values were successfully saved in the database."); } } else { while (list($k, $v) = each($fields)) { $res = mysql_query("select value from adminprops where field='$v'"); $props[$v] = mysql_result($res, 0); } reset($props); echo("
  

"); echo("
"); while (list($k, $v) = each($props)) { switch ($k) { case 'inibon': echo(""); break; case 'reftim': echo(""); break; case 'negact': echo(""); break; case 'contex': echo(""); break; case 'contey': echo(""); break; case 'inact': echo(""); break; } } echo("
Initial bonus:This value is added to every new user's account.
Refresh time:Time in seconds the viewbar is refreshed.
Show sites in advance:System behavior when there are no valid user sites to show. When set to 'NO' the default site (defined in '/vars.php') is shown.
Contest 'x':Number of site views user gets a bonus link. If set to '0', the feature is disabled.
Contest bonus:Amount of credits user wins in viewing contest.
Inactivity threshold:Number of days before user is considered inactive.
"); } } elseif ($y == 3) { surplus(); title(); if (!isset($u) || !is_numeric($u)) { $actypes[0] = "All users"; $res = mysql_query("select id, name from acctype order by id asc"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $actypes[mysql_result($res, $i, "id")] = mysql_result($res, $i, "name"); } $inact = count($actypes); while(!in_array("Inactive", $actypes)) { if (!isset($actypes[$inact])) { $actypes[$inact] = "Inactive"; } else { $inact++; } } if (!isset($a) || !is_numeric($a)) { $a = 0; } echo("| "); reset($actypes); while (list($k, $v) = each($actypes)) { if ($k == $a) {echo("");} else {echo("");} echo($v); if ($k == $a) {echo("");} else {echo("");} echo(" | "); } if (!isset($s) || $s < 1 || !is_numeric($s)) { $s = 1; } $start = ($s - 1) * $lim; $fquery = "select id, name, email, acctype from user"; if ($a == $inact) { $inactset = mysql_result(mysql_query("select value from adminprops where field='inact'"), 0); $inline = date("Y-m-d H:i:s", time() - 86400 * $inactset); $fquery = $fquery . " where lastaccess<'$inline'"; } elseif ($a != 0) {$fquery = $fquery . " where acctype=$a";} $countpages = $fquery; $fquery = $fquery . " order by id asc limit $start, $lim"; $res = mysql_query($fquery); $pages = ceil(mysql_num_rows(mysql_query($countpages)) / $lim); if ($pages > 1) { echo("
"); for ($i = 1; $i <= $pages; $i++) { echo("["); if ($i == $s) {echo("");} else {echo("");} echo("Page $i"); if ($i == $s) {echo("");} else {echo("
");} echo("] "); } echo(""); } echo("
"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $name = mysql_result($res, $i, "name"); $email = mysql_result($res, $i, "email"); $acc = mysql_result($res, $i, "acctype"); echo(""); } echo("
idE-mailNameAccount
$id$email$name$actypes[$acc]
"); if ($pages > 1) { echo("
"); for ($i = 1; $i <= $pages; $i++) { echo("["); if ($i == $s) {echo("");} else {echo("");} echo("Page $i"); if ($i == $s) {echo("");} else {echo("
");} echo("] "); } echo(""); } } else { if ($fform == 'sent') { if ($fac == 'trash') { $fquery = "delete from user where id=$u"; $res = mysql_query("select id from site where usrid=$u"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $sss = mysql_result($res, $i); $newres = mysql_query("delete from abuse where siteid=$sss"); $newres = mysql_query("delete from 7statsite where siteid=$sss"); } $res = mysql_query("delete from site where usrid=$u"); $res = mysql_query("delete from 7stat where usrid=$u"); $rep = "User #$u was deleted from the database."; $back = "a=$a"; } else { $rep = "Changes to user #$u were saved in the database."; $back = "a=$a&s=$s"; $opactyp = mysql_result(mysql_query("select name from acctype where id=$acctype"), 0); if ($opactyp == 'Premium') { $oppremrd = mysql_result(mysql_query("select premregdate from user where id=$u"), 0); if (!isset($oppremrd)) { $opdate = date('Y-m-d H:i:s'); $opprembn = mysql_result(mysql_query("select value from adminprops where field='prembn'"), 0); $res = mysql_query("update user set premregdate='$opdate' where id=$u"); $credits = $credits + $opprembn; } } $oldcred = mysql_result(mysql_query("select credits from user where id=$u"), 0); $surp = $oldcred - $credits; $surpres = mysql_query("update adminprops set value=value+$surp where field='surplu'"); $fquery = "update user set name='$name', email='$email', passwd='$passwd', ref='$ref', acctype='$acctype', credits='$credits', minmax='$minmax' where id=$u"; } $res = mysql_query($fquery); echo("$rep
«
GO TO to user list"); } else { $res = mysql_query("select name, email, passwd, ref, acctype, credits, DATE_FORMAT(joindate, '%Y-%m-%d') as joindate, minmax from user where id=$u"); if (mysql_num_rows($res) == 0) { echo("User #$u was not found in the database."); } else { if ($mail == 'send') { $email = mysql_result(mysql_query("select email from user where id=$u"), 0); $admail = mysql_result(mysql_query("select value from admin where field='email'"), 0); $subject = stripslashes($subject); $message = stripslashes($message); mail($email, $subject, $message, "From: \"$title Admin\" <$admail>"); echo("Your e-mail message was sent.
«
BACK to user #$u
« GO TO to user list"); } else { $name = mysql_result($res, 0, "name"); $email = mysql_result($res, 0, "email"); $passwd = mysql_result($res, 0, "passwd"); $ref = mysql_result($res, 0, "ref"); $acctype = mysql_result($res, 0, "acctype"); $credits = mysql_result($res, 0, "credits"); $credits = round($credits, 2); $joindate = mysql_result($res, 0, "joindate"); $minmax = mysql_result($res, 0, "minmax"); $res = mysql_query("select id, name from acctype"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $key = mysql_result($res, $i, "id"); $val = mysql_result($res, $i, "name"); $actypes[$key] = $val; } $almin = array("No", "Yes"); $res = mysql_query("select id, url, state, credits from site where usrid=$u"); echo("
User #$u:




  
  
Signed up:$joindate
E-mail:
Password:
Name:
Credits:
Account:
Allow minimized:
Referrer:
"); echo("
User sites:
"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $url = mysql_result($res, $i, "url"); $state = mysql_result($res, $i, "state"); $credits = mysql_result($res, $i, "credits"); $credits = round($credits, 2); echo(""); } echo("
idURLStateCredits
$id$url$state$credits
"); echo("
E-mail this user:


Subject:
Message:

"); }} } } } elseif ($y == 4) { surplus(); title(); if (!isset($u) || !is_numeric($u)) { $actypes = array("All sites", "Enabled", "On hold", "Waiting", "Suspended"); if (!isset($a) || !is_numeric($a)) { $a = 0; } echo("| "); while (list($k, $v) = each($actypes)) { if ($k == $a) {echo("");} else {echo("");} echo($v); if ($k == $a) {echo("");} else {echo("");} echo(" | "); } if (!isset($s) || $s < 1 || !is_numeric($s)) { $s = 1; } $start = ($s - 1) * $lim; $fquery = "select id, usrid, url, state from site"; if ($a != 0) {$fquery = $fquery . " where state='$actypes[$a]'";} $countpages = $fquery; $fquery = $fquery . " order by id asc limit $start, $lim"; $res = mysql_query($fquery); $pages = ceil(mysql_num_rows(mysql_query($countpages)) / $lim); if ($pages > 1) { echo("
"); for ($i = 1; $i <= $pages; $i++) { echo("["); if ($i == $s) {echo("");} else {echo("");} echo("Page $i"); if ($i == $s) {echo("");} else {echo("
");} echo("] "); } echo(""); } echo("
"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $url = mysql_result($res, $i, "url"); $usrid = mysql_result($res, $i, "usrid"); $state = mysql_result($res, $i, "state"); echo(""); } echo("
idURLUser idStateOpen
$id$url$usrid$state[open]
"); if ($pages > 1) { echo("
"); for ($i = 1; $i <= $pages; $i++) { echo("["); if ($i == $s) {echo("");} else {echo("");} echo("Page $i"); if ($i == $s) {echo("");} else {echo("
");} echo("] "); } echo(""); } } else { if ($fform == 'sent') { if ($fac == 'trash') { $fquery = "delete from site where id=$u"; $kukures = mysql_query("delete from abuse where siteid=$u"); $rep = "Site #$u was deleted from the database."; $back = "a=$a"; } else { $fquery = "update site set name='$name', url='$url', lang='$lang', state='$state', credits='$credits' where id=$u"; $rep = "Changes to site #$u were saved in the database."; $back = "a=$a&s=$s"; } $oldcred = mysql_result(mysql_query("select credits from site where id=$u"), 0); $surp = $oldcred - $credits; $surpres = mysql_query("update adminprops set value=value+$surp where field='surplu'"); $res = mysql_query($fquery); echo("$rep
«
GO TO to site list"); } else { $res = mysql_query("select usrid, name, url, lang, state, credits, totalhits from site where id=$u"); if (mysql_num_rows($res) == 0) { echo("Site #$u was not found in the database."); } else { $name = mysql_result($res, 0, "name"); $usrid = mysql_result($res, 0, "usrid"); $url = mysql_result($res, 0, "url"); $lang = mysql_result($res, 0, "lang"); $state = mysql_result($res, 0, "state"); $credits = mysql_result($res, 0, "credits"); $credits = round($credits, 2); $totalhits = mysql_result($res, 0, "totalhits"); $states = array("Enabled" => "Enabled", "On hold" => "On hold", "Waiting" => "Waiting for approval", "Suspended" => "Suspended"); $langs = array("English" => "English", "Arabic" => "Arabic", "Chinese" => "Chinese", "Czech" => "Czech", "Danish" => "Danish", "Dutch" => "Dutch", "Estonian" => "Estonian", "Finnish" => "Finnish", "French" => "French", "German" => "German", "Greek" => "Greek", "Hebrew" => "Hebrew", "Hungarian" => "Hungarian", "Icelandic" => "Icelandic", "Italian" => "Italian", "Japanese" => "Japanese", "Korean" => "Korean", "Latvian" => "Latvian", "Lithuanian" => "Lithuanian", "Norwegian" => "Norwegian", "Polish" => "Polish", "Portuguese" => "Portuguese", "Romanian" => "Romanian", "Russian" => "Russian", "Spanish" => "Spanish", "Swedish" => "Swedish", "Turkish" => "Turkish"); $res = mysql_query("select id, usrid, DATE_FORMAT(date, '%Y-%m-%d') as date from abuse where siteid=$u order by date desc"); echo("
Site #$u:




  
  
Owned by:user #$usrid
Total hits:$totalhits
URL: [open]
Name:
State:
Credits:
Language:
"); echo("
Abuse reports:
"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $usrid = mysql_result($res, $i, "usrid"); $date = mysql_result($res, $i, "date"); echo(""); } echo("
idBy user #Date
$id$usrid$dateopen&raquo
"); } } } } elseif ($y == 5) { surplus(); title(); if (!isset($u) || !is_numeric($u)) { if (!isset($s) || $s < 1 || !is_numeric($s)) { $s = 1; } $start = ($s - 1) * $lim; $fquery = "select id, siteid, usrid, DATE_FORMAT(date, '%Y-%m-%d') as date from abuse"; $countpages = $fquery; $fquery = $fquery . " order by id desc limit $start, $lim"; $res = mysql_query($fquery); $pages = ceil(mysql_num_rows(mysql_query($countpages)) / $lim); if ($pages > 1) { echo("
"); for ($i = 1; $i <= $pages; $i++) { echo("["); if ($i == $s) {echo("");} else {echo("");} echo("Page $i"); if ($i == $s) {echo("");} else {echo("
");} echo("] "); } echo(""); } echo("
"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $siteid = mysql_result($res, $i, "siteid"); $usrid = mysql_result($res, $i, "usrid"); $date = mysql_result($res, $i, "date"); $siteurl = mysql_result(mysql_query("select url from site where id=$siteid"), 0); echo(""); } echo("
idSubjectBy user#Date
$id$siteurl$usrid$date
"); if ($pages > 1) { echo("
"); for ($i = 1; $i <= $pages; $i++) { echo("["); if ($i == $s) {echo("");} else {echo("");} echo("Page $i"); if ($i == $s) {echo("");} else {echo("
");} echo("] "); } echo(""); } } else { if ($fform == 'sent') { $res = mysql_query("delete from abuse where id=$u"); echo("Abuse report #$u was deleted from the database.
«
GO TO to abuse report list"); } else { $res = mysql_query("select siteid, usrid, text, DATE_FORMAT(date, '%Y-%m-%d') as date from abuse where id=$u"); if (mysql_num_rows($res) == 0) { echo("Abuse report #$u was not found in the database."); } else { if ($mail == 'send') { $email = mysql_result(mysql_query("select email from user where id=$usrid"), 0); $admail = mysql_result(mysql_query("select value from admin where field='email'"), 0); $subject = stripslashes($subject); $message = stripslashes($message); mail($email, $subject, $message, "From: \"$title Admin\" <$admail>"); echo("Your e-mail message was sent.
«
BACK to abuse report #$u
« GO TO to abuse reports list"); } else { $siteid = mysql_result($res, 0, "siteid"); $usrid = mysql_result($res, 0, "usrid"); $text = mysql_result($res, 0, "text"); $date = mysql_result($res, 0, "date"); $res = mysql_query("select email from user where id=$usrid"); $author = mysql_result($res, 0, "email"); $res = mysql_query("select usrid, url from site where id=$siteid"); $url = mysql_result($res, 0, "url"); $ownid = mysql_result($res, 0, "usrid"); $res = mysql_query("select email from user where id=$ownid"); $ownmail = mysql_result($res, 0); $text = nl2br($text); echo("
Abuse report #$u:

Date:$date
Author:$author
Site:$url  [open]
Owner:$ownmail
Report:$text
"); echo("
E-mail report author:


Subject:
Message:

"); } } } } } elseif ($y == 6) { surplus(); title(); $css_file_name = $DOCUMENT_ROOT . "/style.css"; $fields = array("1page", "terms", "head1", "foot1", "head2", "foot2", "thanx", "paymn"); $fnames = array("Site first page", "Terms & conditions", "Main page header", "Main page footer", "User area header", "User area footer", "'Thank you' page", "Payment details"); if ($cform == 1) { $fp = fopen($css_file_name, "w"); fwrite($fp, $css); fclose($fp); } elseif ($cform > 1 && $cform < 10) { $key = $cform - 2; $res = mysql_query("update html set content='${$fields[$key]}' where type='$fields[$key]'"); } $fp = fopen($css_file_name, "r"); $css = fread($fp, filesize($css_file_name)); fclose($fp); echo("
Cascading Style Sheets:
  

"); while (list($k, $v) = each($fields)) { $cfn = $k + 2; $content = mysql_result(mysql_query("select content from html where type='$v'"), 0); echo("
$fnames[$k] (HTML):
  

"); } } elseif ($y == 7) { surplus(); title(); if (is_numeric($fform) && ereg($self_name, $HTTP_REFERER)) { if ($fform == 0) { $fquery = "insert into sellcredit (name, descr, cost, paypal) values ('$name', '$descr', '$cost', '$paypal')"; } elseif ($fac == 'trash') { $fquery = "delete from sellcredit where id=$fform"; } else { $fquery = "update sellcredit set name='$name', descr='$descr', cost='$cost', paypal='$paypal' where id=$fform"; } $res = mysql_query($fquery); } echo("
New entry:

Title:
Cost:
Description:
PayPal code:

"); $res = mysql_query("select * from sellcredit order by id asc"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $name = mysql_result($res, $i, "name"); $descr = mysql_result($res, $i, "descr"); $cost = mysql_result($res, $i, "cost"); $paypal = mysql_result($res, $i, "paypal"); echo("
Entry #$id:




  
  
Title:
Cost:
Description:
PayPal code:
"); } } elseif ($y == 8) { surplus(); title(); if (is_numeric($fform) && ereg($self_name, $HTTP_REFERER)) { if ($fform == 0) { $fquery = "insert into acctype (name, descr, ratemin, ratemax, cost, paypal) values ('$name', '$descr', '$ratemin', '$ratemax', '$cost', '$paypal')"; } elseif ($fac == 'trash') { $res = mysql_query("update user set acctype=1 where acctype=$fform"); $fquery = "delete from acctype where id=$fform"; } else { $fquery = "update acctype set name='$name', descr='$descr', ratemin='$ratemin', ratemax='$ratemax', cost='$cost', paypal='$paypal' where id=$fform"; if ($name == 'Premium') { $res = mysql_query("update adminprops set value=$premmx where field='premmx'"); $res = mysql_query("update adminprops set value=$prembn where field='prembn'"); } } $res = mysql_query($fquery); } echo("
New entry:

Title:
Cost:
Minimized rate:
Maximized rate:
Description:
PayPal code:

"); $res = mysql_query("select * from acctype order by id asc"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $name = mysql_result($res, $i, "name"); $descr = mysql_result($res, $i, "descr"); $ratemin = mysql_result($res, $i, "ratemin"); $ratemax = mysql_result($res, $i, "ratemax"); $cost = mysql_result($res, $i, "cost"); $paypal = mysql_result($res, $i, "paypal"); echo("
Entry #$id:




  
  
"); if ($name == 'Premium') { $premmx = mysql_result(mysql_query("select value from adminprops where field='premmx'"), 0); $prembn = mysql_result(mysql_query("select value from adminprops where field='prembn'"), 0); echo(""); } echo("
Title:
Cost:
Minimized rate:
Maximized rate:
Max. months no.:
First month bonus:
Description:
PayPal code:
"); } } elseif ($y == 9) { surplus(); title(); if ($fform == 'sent' && ereg($self_name, $HTTP_REFERER) && $subject != "" && $message != "") { $admail = mysql_result(mysql_query("select value from admin where field='email'"), 0); $res = mysql_query("select name, email from user"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $name = mysql_result($res, $i, "name"); $email = mysql_result($res, $i, "email"); $message = str_replace('[name]', $name, $message); $subject = stripslashes($subject); $message = stripslashes($message); mail($email, $subject, $message, "From: \"$title Admin\" <$admail>"); } } echo("

Subject:
Message:
If you want to address user personally, use [name] in the message body.
The program will substitute proper user name for [name] automatically.
"); } elseif ($y == 10) { surplus(); title(); if ($bform == 'file') { if (($HTTP_POST_FILES['upfile']['type'] == "image/gif" || $HTTP_POST_FILES['upfile']['type'] == "image/jpeg" || $HTTP_POST_FILES['upfile']['type'] == "image/pjpeg") && $HTTP_POST_FILES['upfile']['size'] <= 30720 && ereg($self_name, $HTTP_REFERER)) { switch ($HTTP_POST_FILES['upfile']['type']) { case "image/gif": $ext = ".gif"; break; case "image/pjpeg": case "image/jpeg": $ext = ".jpg"; break; } $simgurl = '/banners/' . $HTTP_POST_FILES['upfile']['name']; $wh = getimagesize($HTTP_POST_FILES['upfile']['tmp_name']); $res = mysql_query("insert into banner (imgurl, widtheight) values ('$simgurl', '$wh[3]')"); $lastid = mysql_insert_id(); rename($HTTP_POST_FILES['upfile']['tmp_name'], $DOCUMENT_ROOT . "/banners/ban$lastid" . $ext); $simgurl = $self_url . "banners/ban$lastid" . $ext; $res = mysql_query("update banner set imgurl='$simgurl' where id=$lastid"); } } elseif (is_numeric($bform) && ereg($self_name, $HTTP_REFERER)) { $res = mysql_query("select imgurl from banner where id=$bform"); $dext = mysql_result($res, 0); $dext = substr($dext, -4); unlink($DOCUMENT_ROOT . "/banners/ban" . $bform . $dext); $res = mysql_query("delete from banner where id=$bform"); } echo("
Upload new banner:

Only GIF & JPEG files that are not bigger than 30Kb can be uploaded.
"); $res = mysql_query("select id, imgurl, widtheight from banner order by id asc"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $imgurl = mysql_result($res, $i, "imgurl"); $widht = mysql_result($res, $i, "widtheight"); echo("
Banner #$id:

$imgurl
"); } } elseif ($y == 11) { surplus(); title(); if (is_numeric($fform) && ereg($self_name, $HTTP_REFERER)) { if ($fform == 0) { $fquery = "insert into faq (quest, answ) values ('$quest', '$answ')"; } elseif ($fac == 'trash') { $fquery = "delete from faq where id=$fform"; } else { $fquery = "update faq set quest='$quest', answ='$answ' where id=$fform"; } $res = mysql_query($fquery); } echo("
New entry:

Question:
Answer:
"); $res = mysql_query("select * from faq order by id asc"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $quest = mysql_result($res, $i, "quest"); $answ = mysql_result($res, $i, "answ"); echo("
Entry #$id:




  
  
Question:
Answer:
"); } } elseif ($y == 12) { surplus(); title(); if (is_numeric($fform) && ereg($self_name, $HTTP_REFERER)) { if ($fform == 0) { $fquery = "insert into tads (text) values ('$text')"; } elseif ($fac == 'trash') { $fquery = "delete from tads where id=$fform"; } else { $fquery = "update tads set text='$text' where id=$fform"; } $res = mysql_query($fquery); } echo("
New entry:


Text (HTML):
"); $res = mysql_query("select * from tads order by id asc"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $id = mysql_result($res, $i, "id"); $text = mysql_result($res, $i, "text"); echo("
Entry #$id:




  
  
Text (HTML):
"); } } elseif ($y == 13) { surplus(); title(); $res = mysql_query("select date from 7stat order by date desc"); for ($i = 0; $i < mysql_num_rows($res); $i++) { $arr1[] = mysql_result($res, $i); } $arr1u = array(); for ($i = 0; $i < count($arr1); $i++) { if (!in_array($arr1[$i], $arr1u)) { $arr1u[] = $arr1[$i];} } $arr1u = array_slice($arr1u, 0, 7); $arr2 = array(); while (list($k, $v) = each($arr1u)) { $res = mysql_query("select sum(num) from 7stat where date='$v'"); $arr2[$v] = mysql_result($res, 0); } reset($arr2); while (list($k, $v) = each($arr2)) { $maxnum = $maxnum + $v; } $maxnum = round($maxnum); echo("
Users' earned credits:
"); reset($arr2); while (list($k, $v) = each($arr2)) { $v = round($v); $px = 500 * ((($v * 100) / $maxnum) / 100); $px = round($px); echo(""); } echo("
$k $v
Total: $maxnum
"); $res = mysql_query("select date from 7statsite order by date desc"); $sarr1 = array(); for ($i = 0; $i < mysql_num_rows($res); $i++) { $sarr1[] = mysql_result($res, $i); } $sarr1u = array(); for ($i = 0; $i < count($sarr1); $i++) { if (!in_array($sarr1[$i], $sarr1u)) { $sarr1u[] = $sarr1[$i];} } $sarr1u = array_slice($sarr1u, 0, 7); $sarr2 = array(); reset($sarr1u); while (list($k, $v) = each($sarr1u)) { $res = mysql_query("select sum(num) from 7statsite where date='$v'"); $sarr2[$v] = mysql_result($res, 0); } $maxnum = 0; reset($sarr2); while (list($k, $v) = each($sarr2)) { $maxnum = $maxnum + $v; } $maxnum = round($maxnum); echo("
Users' sites shown:
"); reset($sarr2); while (list($k, $v) = each($sarr2)) { $v = round($v); $px = 500 * ((($v * 100) / $maxnum) / 100); $px = round($px); echo(""); } echo("
$k $v
Total: $maxnum
"); } elseif ($y == 14) { title(); unset($HTTP_SESSION_VARS); session_destroy(); $time = time(); $res = mysql_query("update admin set value='$time' where field='lastac'"); echo("You have successfully logged out."); } echo(""); mysql_close; ?>

100 Dofollow Forums List that Can Bring You Traffic

Having a Blog and not having visitors is like having a Mobile Without display.and to get Visitors you would have to do Search Engine Optimization whic includes On-page Optimization,Off Page Optimization and Link Building,If Google’s Matt Cutts is to be believed Link building is important for Getting page rank which eventually results into high traffic from search engine and to get high SERP you need to have high PR dofollow link pointing to your blog.
  1. http://forums.digitalpoint.com
  2. http://www.vuju.com/
  3. http://checkthisup.com
  4. http://www.sitepoint.com/forums
  5. http://www.thewebmasterforum.net
  6. http://www.webmasterforums.com
  7. http://www.allcoolforum.com
  8. http://www.warriorforum.com
  9. http://forums.webicy.com
  10. http://thehyipforum.com
  11. http://www.webmasterforumsonline.com
  12. http://www.webmasters.am/forum
  13. http://www.webmasterforums.net
  14. http://www.devhunters.com
  15. http://www.webmaster-forum.net
  16. http://www.geekvillage.com/forums
  17. http://www.zymic.com/forum
  18. http://www.webmastershelp.com
  19. http://www.webmasterdesk.org
  20. http://www.webmasterground.com
  21. http://developers.evrsoft.com/forum
  22. http://www.websitebabble.com
  23. http://www.elancetalk.com
  24. http://www.talkingcity.com
  25. http://www.australianwebmaster.com
  26. http://www.wtricks.com
  27. http://www.forums.webzonetalk.com
  28. http://www.htmlforums.com
  29. http://www.searchbliss.com/forum
  30. http://www.webmasterize.com
  31. http://www.webmasterserve.com
  32. http://www.freehostforum.com
  33. http://www.seorefugee.com/forums
  34. http://www.cre8asiteforums.com/forums
  35. http://forums.seo.ph
  36. http://forums.delphiforums.com
  37. http://www.web-mastery.net
  38. http://www.webworkshop.net/seoforum/index.php
  39. http://www.webproworld.com
  40. http://www.bzimage.org
  41. http://www.v7n.com/forums
  42. http://www.dnforum.com
  43. http://www.webcosmoforums.com
  44. http://forums.webicy.com
  45. http://forum.hittail.com/phpbb2/index.php
  46. http://www.affiliateseeking.com/forums
  47. http://siteownersforums.com/index.php
  48. http://www.webmaster-forums.net
  49. http://www.geekpoint.net
  50. http://www.smallbusinessforums.org
  51. http://forums.ukwebmasterworld.com
  52. http://www.experienceadvertising.com/forum
  53. http://opensourcephoto.net/forum
  54. http://forums.seochat.com
  55. http://forums.searchenginewatch.com
  56. http://www.ihelpyou.com/forums
  57. http://dishnews.medianetwork.co.in/yabb2/YaBB.pl
  58. http://www.businesss-forum.com
  59. http://www.9mb.com
  60. http://acapella.harmony-central.com/forums
  61. http://forums.seroundtable.com
  62. http://www.submitexpress.com/bbs
  63. http://www.startups.co.uk/6678842908486596004/forums.html
  64. http://www.webmaster-talk.com
  65. http://forums.comicbookresources.com
  66. http://www.clicks.ws/forum/index.php
  67. http://www.acorndomains.co.uk
  68. http://forums.onlinebookclub.org
  69. http://www.ableton.com/forum
  70. http://www.davidcastle.org/BB
  71. http://www.webtalkforums.com
  72. http://www.bloggapedia.com/forum
  73. http://www.bloggertalk.com/forum.php
  74. http://paymentprocessing.cc
  75. http://www.directoryjunction.com/forums
  76. http://www.internetmarketingforums.net
  77. http://www.lex224.com/forums/index.php
  78. http://forum.joomla.org
  79. http://forum.mambo-foundation.org/index.php
  80. http://www.simplemachines.org/community/index.php
  81. http://www.namepros.com/index.php
  82. http://loanofficerforum.com/forum
  83. http://iq69.com/forums
  84. http://forum.hot4s.com.au
  85. http://forums.mysql.com
  86. http://forums.amd.com/forum
  87. http://softwarecommunity.intel.com/isn/Community/en-us/Forums
  88. http://forums.cnet.com
  89. http://seotalk.medianetwork.co.in
  90. https://www.computerbb.org
  91. http://forum.vbulletinsetup.com
  92. http://www.irishwebmasterforum.com
  93. http://www.app-developers.com
  94. http://forums.stuffdaily.com
  95. http://forums.seo.com
  96. http://www.webdigity.com
  97. http://www.inboundlinksforum.com
  98. http://forums.gentoo.org
  99. http://ubuntuforums.org
  100. http://forum.textpattern.com