Results 1 to 1 of 1
-
21st May 2011, 01:01 AM #1OPBannedWebsite's:
WarezRelease.org ThatHosting.co2x Custom modules, black/whitelist WcDDL
hia,
these 2 modules were written by me as i tried to find with no l?ck so i tgot help from jomasco + others who helped me to code em and understand:
make a file called wcddl_blacklist.php n put it in the modules dir, then copy n paste:
Code:<?php /*BEGIN_INFO Show sites that are blacklisted. END_INFO*/ if(!defined("WCDDL_GUTS")) exit; $modEnabled = true; //Change to false if don't use if($modEnabled) { $outbw .= '<div class="clear"> </div>'; $getit = @mysql_query("SELECT * FROM wcddl_blacklist ORDER BY dat DESC limit 400"); $outbw .= '<table width="100%" cellspacing="3" cellpadding="3" align="center" id="blacklist"> <tr><td>Date</td><td>Site URL</td><td>Reason</td> </tr>'; while ($row = mysql_fetch_array($getit)) { $dat = date('d-m-Y'); $outbw .='<tr> <td>'.$dat.'</td><td>'.$row['url'].'</td><td>'.$row['reason'].'</td> </tr>'; } $outbw .= '</table>'; $core->setTemplateVar("black",$outbw); } ?>
Code:<?php /*BEGIN_INFO Show if a site is whitelisted! END_INFO*/ if(!defined("WCDDL_GUTS")) exit; $modEnabled = true; //Change to false if don't use if($modEnabled) { $list .= '<div class="clear"> </div>'; $getit = @mysql_query("SELECT * FROM wcddl_whitelist ORDER BY dat DESC limit 20"); $list .= '<table width="100%" cellspacing="3" cellpadding="3" align="center" id="whitelist"> <tr><td>Whitelited Sites</td><td>Date</td>'; while ($row = mysql_fetch_array($getit)) { $dat = date('d-m-Y'); $list .='<tr><td>'.$row['url'].'</td><td>'.$dat.'</td> </tr>'; } $list .= '</table>'; $core->setTemplateVar("white",$list); } ?>
Code:<?=$core->templateVar("white")?> or <?=$core->templateVar("black")?>
Chris2k Reviewed by Chris2k on . 2x Custom modules, black/whitelist WcDDL hia, these 2 modules were written by me as i tried to find with no l?ck so i tgot help from jomasco + others who helped me to code em and understand: make a file called wcddl_blacklist.php n put it in the modules dir, then copy n paste: <?php /*BEGIN_INFO Show sites that are blacklisted. Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
WCDDL - Development How-To (Modules, Hooks, etc)
By JmZ in forum Web Development AreaReplies: 19Last Post: 25th Jan 2014, 09:09 AM -
WCDDL Modules, Plugins and Extensions
By Mr Happy in forum Webmaster ResourcesReplies: 151Last Post: 15th Nov 2012, 04:54 PM -
WCDDL Modules
By Peach in forum Forum and DDL DiscussionReplies: 3Last Post: 21st Jun 2011, 01:19 PM -
[WCDDL] Wcddl Black or whitelist not working
By fletch in forum Web Application/Script SupportReplies: 0Last Post: 5th Apr 2011, 04:30 PM -
Custom WCDDL Style BiO White&Black or Black&Red [PAID]
By Skunked in forum Webmaster ResourcesReplies: 0Last Post: 29th Jan 2010, 12:52 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...