Results 1 to 5 of 5
-
7th Mar 2011, 03:46 PM #1OPBannedWebsite's:
WarezRelease.org ThatHosting.coWcDDL whitelist.php
can any1 tell mew how 2 add 4 every1 to see not just admin
Chris2k Reviewed by Chris2k on . WcDDL whitelist.php can any1 tell mew how 2 add 4 every1 to see not just admin Rating: 5
-
7th Mar 2011, 08:43 PM #2MemberPHP Code:
<?php
/*BEGIN_INFO
Show if an Site are white/black Listed!<br>
by jomasaco.
END_INFO*/
if(!defined("WCDDL_GUTS"))
exit;
$modEnabled = true; //Change to false if don't use
if($modEnabled) {
$outbw = '<form action="'.$_SERVER['PHP_SELF'].'" method="post">
<fieldset>
<div class="legend">Check White/Black List:</div>
<div class="form_row">
<div class="form_value"><input type="text" size="32" class="text" value="http://" name="url" /></div>
<input class="button" type="submit" name="submit" value="Submit" />
</div></fieldset></form>';
if(!empty($_POST)) {
$surl = $_POST['url'];
$surl = parse_url(trim($surl)); //remove spaces split the url
$surl = $surl['host']; //get host
$surl = str_replace("www.","",$surl); //remove the www
if (!preg_match('#^[A-Z0-9.-]+\.[A-Z]{2,4}$#i', $surl)) //validate url
{
$outbw .= '<br /><div class="error"> Please enter a valid Site Url. <b>'.$surl.'</div></b>';
}
else { //blacklist
$sql = mysql_query("select * from wcddl_blacklist WHERE url = '".mysql_real_escape_string($surl)."'");
if(mysql_num_rows($sql) > 0) {
$outbw .= '<div class="error">'.$surl.' In <b>Blacklist</b><br />';
while ($row = mysql_fetch_array($sql)){
$outbw .= '<br/> Site Url: '.$row['url'].'</div>';
}
}
else { //whitelist
$sql = mysql_query("select * from wcddl_whitelist WHERE url = '".mysql_real_escape_string($surl)."'");
if(mysql_num_rows($sql) > 0) {
$outbw .= '<div class="success">'.$surl.' In <b>Whitelist</b>.<br />';
while ($row = mysql_fetch_array($sql)){
$outbw .= '<br/> Site Url: '.$row['url'].'</div>';
}
}
else{
$outbw .= '<br /><div class="notice">'.$surl.' NOT In <b>Whitelist</b> or <b>Blacklist</b>.</div><br />';
}
}
}
}
//show the lists
//blacklist
$outbw .= '<div class="clearer"> </div>';
$outbw .= '<div class="post">
<div class="post_title text_center"><div class="error"><h1>BLACKLISTED</h1></div></div>
<div class="post_body">';
$color1 = " class=\"even\"";
$color2 = '';
$row_count = 0;
$getit = @mysql_query("SELECT * FROM wcddl_blacklist limit 0,20");
$outbw .= '<br /><br /><table class="data_table"><tr><th>URL</th></tr>';
while ($row = mysql_fetch_array($getit)) {
$row_color = ($row_count % 2) ? $color1 : $color2;
$outbw .='<tr'.$row_color.'>
<td><strong>'.$row['url'].'</strong></td>
</tr>';
$row_count++;
}
$outbw .= '</table>';
$outbw .= '</div></div>';
//whitelist
$outbw .= '<div class="post">
<div class="post_title text_center"><div class="success"><h1>WHITELISTED</h1></div></div>
<div class="post_body">';
$outbw .= '<div class="clearer"> </div>';
$getit = @mysql_query("SELECT * FROM wcddl_whitelist limit 0,20");
$outbw .= '<br /><br /><table class="data_table"><tr><th>URL</th></tr>';
while ($row = mysql_fetch_array($getit)) {
$row_color = ($row_count % 2) ? $color1 : $color2;
$outbw .= '<tr'.$row_color.'>
<td><strong>'.$row['url'].'</strong></td>
</tr>';
$row_count++;
}
$outbw .= '</table>';
$outbw .= '</div></div>';
$core->setTemplateVar("searchbw",$outbw);
}
?>
-
7th Mar 2011, 09:21 PM #3OPBannedWebsite's:
WarezRelease.org ThatHosting.cothanks m8
-
7th Mar 2011, 10:30 PM #4OPBannedWebsite's:
WarezRelease.org ThatHosting.co
-
8th Mar 2011, 06:12 PM #5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Selling] WCDDL v2 Module - Instant Whitelist
By gtaclub in forum Completed TransactionsReplies: 0Last Post: 21st Aug 2011, 03:52 AM -
WCDDL Whitelist Request
By jomasaco in forum Web Development AreaReplies: 23Last Post: 20th Jun 2011, 11:03 PM -
How to whitelist
By chemicalx in forum Webmaster DiscussionReplies: 6Last Post: 25th May 2011, 12:15 PM -
2x Custom modules, black/whitelist WcDDL
By Chris2k in forum Webmaster ResourcesReplies: 0Last Post: 21st May 2011, 01:01 AM -
[WCDDL] Wcddl Black or whitelist not working
By fletch in forum Web Application/Script SupportReplies: 0Last Post: 5th Apr 2011, 04:30 PM
themaLeecher - leech and manage...
Version 4.93 released. Open older version (or...