List Updated Last Time (WCDDL V2)
Author Message
c0rrupt
Administrator


Posts: 250
Joined: Mar 2010
Post: #1
List Updated Last Time (WCDDL V2)
0
0







Create a new file named wcddl_indexedinfo.php and paste the following in it:
<?php
    /*BEGIN_INFO
    Show Last time the site was updated, and current date.<br />
    Stugas-ddl.org
    END_INFO*/
    if(!defined("WCDDL_GUTS"))
        exit;

            $ip = $_SERVER['REMOTE_ADDR'];
            $sql = 'SELECT dat FROM wcddl_downloads WHERE id = (select Max(id)from wcddl_downloads)';
            $result = mysql_query($sql);
            $row = mysql_fetch_assoc($result);
              $lastime = date("D,M,d H:i",$row[dat]);

        $modEnabled = true; //Change to false if don't use
        if($modEnabled) {
    $indexinfo= '
    <table class="tablebg" width="100%" cellspacing="0">
        <caption><div class="cap-left"><div class="cap-right">List Updated Last Time</div></div></caption>
        <tr>
            <td class="row2 nobold" width="100%"><p class="genmed">

                IP: '.$ip.' | Site Current Time: '.date("D,M,d H:i").' | List Updated Last Time: '.$lastime.'      
            </p></td>
        </tr>
        </table><br />';
        $core->setTemplateVar("indexedinfo",$indexinfo);
            }
            ?>

Upload the wcddl_indexedinfo.php file to your modules folder.

Where you want to show the info

<?=$core->templateVar("indexedinfo")?>

Code by jomasaco

Be sure to visit WCDDL.org Affiliates
07-23-2012 02:49 PM


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Show the downloads for a specific site (WCDDL v2) c0rrupt 0 36 07-26-2012 04:35 PM
Last Post: c0rrupt
  White/Black list whit Reason c0rrupt 4 252 07-24-2012 05:57 AM
Last Post: allahwahid
  [WCDDL] Download Provider Mod immu 2 181 09-25-2011 01:16 AM
Last Post: linkstar
  WcDDL BackLink c0rrupt 1 235 09-17-2011 12:57 PM
Last Post: linkstar
  [WCDDL] Colored Category Titles Mod immu 1 111 09-17-2011 12:46 PM
Last Post: linkstar
  List Updated Last Time c0rrupt 0 104 11-07-2010 02:25 PM
Last Post: c0rrupt
  Updated: TIME ago c0rrupt 0 84 11-07-2010 06:27 AM
Last Post: c0rrupt



User(s) browsing this thread: 1 Guest(s)

This forum uses Lukasz Tkacz MyBB addons.