View file public_html/vipadz/regmailblacklist.php

File size: 1.7Kb
<?php

/************************************

Script : Adnetwork
Website : http://facebook.com/pranto007

Script is created and provided by Pranto (http://facebook.com/pranto007)
**************************************/
include '../db.php';
include '../functions.php';

headtag("$SiteName - Registration Mail Blacklist Words");

if($adminlog==1){
$date=date("d-m-Y");
$blacka = mysql_query("SELECT * FROM blacklist WHERE type='regmail'");
$list = mysql_fetch_array($blacka);
$black=$list["words"];
if($_GET["act"]=="add")
{
if(isset($_POST["words"]))
{
$words=formpost("words");
$errors=array();
if(strlen($words)<1){
  $errors[]='Please Enter Words!';
 }
if(empty($errors)){
$doit=mysql_query("UPDATE blacklist SET words='$black,$words' WHERE type='regmail'");
if($doit){
   echo '<div class="success">Words Added!</div>';
}
}
 else {
   echo '<div class="error">Error adding words!</div>';
}
}
echo '<div class="form"><form method="post">Words (Each Separated By Comma ,)<br/><textarea name="words"/></textarea><br/><input type="submit" value="Blacklist Now"/></form></div>';
echo '<a href="regmailblacklist.php"><div class="page"><b>Registration Mail Blacklist Words</b></div></a>';
}


else {
echo '<div class="title">Registration Mail Blacklisted Words</div>';


if(mysql_num_rows($blacka)>0){

$blackword=explode(",",$black);
foreach($blackword as $blackwords){
echo '<div class="ua">'.$blackwords.'</div>';
}

}
else
{
 echo '<div class="error" align="center">There Are No Blacklisted Words!</div>';
}
}


echo '<a href="?act=add"><div class="ad">Add New Words</div></a>';
echo '<a href="index.php?goto=home"><div class="ua" align="center"><b>HOME</b></div></a>';

include '../foot.php';
}
else {

header('Location:login.php');
}

?>