(#1)
c0rrupt Offline
Administrator
 
Posts: 192
Join Date: Mar 2010
Location: Canada
List Updated Last Time - 11-07-2010, 06:25 PM

by jomasaco on Fri Apr 09, 2010



Code:
    <?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

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


Before doing any edits to your DDL Site always make a BACKUP first.

Bookmarks

Tags
list, time, updated

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin


Content Relevant URLs by vBSEO