List Updated Last Time
Author Message
c0rrupt
Administrator


Posts: 250
Joined: Mar 2010
Post: #1
List Updated Last Time
0
0
by jomasaco on Fri Apr 09, 2010








<?php
    /*BEGIN_INFO
    Show Last time the site was updated, and current date.

    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>
';
        $core->setTemplateVar("indexedinfo",$indexinfo);
            }
            ?>


Where you want to show the info

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

Be sure to visit WCDDL.org Affiliates
11-07-2010 02:25 PM


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  White/Black list whit Reason c0rrupt 4 253 07-24-2012 05:57 AM
Last Post: allahwahid
  List Updated Last Time (WCDDL V2) c0rrupt 0 35 07-23-2012 02:49 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.