• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP pwFilemtime函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中pwFilemtime函数的典型用法代码示例。如果您正苦于以下问题:PHP pwFilemtime函数的具体用法?PHP pwFilemtime怎么用?PHP pwFilemtime使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了pwFilemtime函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getguestcache

function getguestcache()
{
    global $fid, $tid, $timestamp, $db_guestdir, $db_guestindex, $db_guestthread, $db_guestread;
    $page = (int) $_GET['page'];
    switch (SCR) {
        case 'thread':
            empty($page) && ($page = 1);
            if (file_exists(D_P . "{$db_guestdir}/T_{$fid}/{$fid}_{$page}.html") && $timestamp - pwFilemtime(D_P . "{$db_guestdir}/T_{$fid}/{$fid}_{$page}.html") < $db_guestthread) {
                readfile(D_P . "{$db_guestdir}/T_{$fid}/{$fid}_{$page}.html");
                guestfooter();
            }
            break;
        case 'index':
            if (file_exists(D_P . "{$db_guestdir}/index.html") && $timestamp - pwFilemtime(D_P . "{$db_guestdir}/index.html") < $db_guestindex) {
                readfile(D_P . "{$db_guestdir}/index.html");
                guestfooter();
            }
            break;
        case 'read':
            $tmp = 'R_' . intval($tid / 500);
            !$page && ($page = 1);
            if (file_exists(D_P . "{$db_guestdir}/{$tmp}/{$tid}_{$page}.html") && $timestamp - pwFilemtime(D_P . "{$db_guestdir}/{$tmp}/{$tid}_{$page}.html") < $db_guestread) {
                readfile(D_P . "{$db_guestdir}/{$tmp}/{$tid}_{$page}.html");
                echo "<script src=\"hitcache.php?tid={$tid}\"></script>";
                guestfooter();
            }
            break;
    }
}
开发者ID:adi00,项目名称:wumaproject,代码行数:29,代码来源:guestfunc.php


示例2: ifUpdateCache

 /**
  * @param $tag
  * @param $result
  * @return unknown_type
  */
 function ifUpdateCache()
 {
     if (is_file($this->filepath) && pwFilemtime($this->filepath) + 60 * 10 >= $this->timestamp) {
         return false;
     } else {
         return true;
     }
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:13,代码来源:datanalysecache.class.php


示例3: _checkWaitSegment

 /**
  * 检查用户搜索间隔时间
  * @return unknown_type
  */
 function _checkWaitSegment()
 {
     if (!$this->_waitSegment) {
         return true;
     }
     if (file_exists(D_P . 'data/bbscache/schwait_cache.php')) {
         if ($this->_timestamp - pwFilemtime(D_P . 'data/bbscache/schwait_cache.php') > $this->_waitSegment) {
             P_unlink(D_P . 'data/bbscache/schwait_cache.php');
         } else {
             return false;
         }
     }
     return true;
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:18,代码来源:base.search.php


示例4: mailmx

 function mailmx($email, $retrys = 3)
 {
     global $timestamp;
     $domain = substr($email, strpos($email, '@') + 1);
     @(include D_P . 'data/bbscache/mx_config.php');
     if (!$_MX[$domain] || $timestamp - pwFilemtime(D_P . 'data/bbscache/mx_config.php') > 3600 * 24 * 10) {
         for ($i = 0; $i < $retrys; $i++) {
             $result = $this->GetMax($domain);
             if ($result !== false) {
                 $_MX[$domain] = $result;
                 pwCache::writeover(D_P . 'data/bbscache/mx_config.php', "<?php\r\n\$_MX=" . pw_var_export($_MX) . ";\r\n?>");
                 $this->smtp['tomx'] = $result;
                 return true;
             }
         }
         return false;
     } else {
         $this->smtp['tomx'] = $_MX[$domain];
         return true;
     }
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:21,代码来源:sendemail.php


示例5: md5

 $schline = md5($schline . '|search');
 $orderway != 'replies' && $orderway != 'hits' && $orderway != 'favors' && ($orderway = 'lastpost');
 $asc != 'ASC' && ($asc = 'DESC');
 $sorderby = $orderway . '|' . $asc;
 $orderby = "ORDER BY t.{$orderway} {$asc}";
 if (!$authorid) {
     @extract($db->get_one("SELECT sid,schtime,total,schedid FROM pw_schcache WHERE schline=" . pwEscape($schline) . ' LIMIT 1'));
     if ($newatc && $timestamp - $schtime > 1800) {
         $db->update("DELETE FROM pw_schcache WHERE sid=" . pwEscape($sid));
         $schedid = '';
     }
 }
 if (!$schedid) {
     $db_schwait = (int) $db_schwait;
     if (file_exists(D_P . 'data/bbscache/schwait_cache.php')) {
         if ($timestamp - pwFilemtime(D_P . 'data/bbscache/schwait_cache.php') > $db_schwait) {
             P_unlink(D_P . 'data/bbscache/schwait_cache.php');
         } else {
             Showmsg('search_wait');
         }
     }
     $db->update("DELETE FROM pw_schcache WHERE schtime<" . pwEscape($timestamp - 3600));
     if (($keyword || $pwuser || !is_numeric($authorid)) && $_G['searchtime'] != 0) {
         @extract($db->get_one("SELECT lasttime FROM pw_memberinfo WHERE uid=" . pwEscape($winduid)));
         if ($timestamp - $lasttime < $_G['searchtime']) {
             Showmsg('search_limit');
         }
         $db->update("UPDATE pw_memberinfo SET lasttime=" . pwEscape($timestamp) . ' WHERE uid=' . pwEscape($winduid));
     }
     $sqlwhere = "t.ifcheck='1' ";
     if ($seekfid != 'all') {
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:normalsearch.php


示例6: serialize

            $right .= '_' . $match[4][$key];
        }
        $PHPWind_StatAdmin[$right] = $PHPWind_StatAdmin[$right] ? $PHPWind_StatAdmin[$right] + 1 : 1;
    }
    $statadmin = serialize($PHPWind_StatAdmin);
    $statadmin = base64_encode($statadmin);
    $s_url = rawurlencode($pwServer['HTTP_HOST']);
    $rawbbsname = rawurlencode($db_bbsname);
    PostHost('http://nt.phpwind.net/pwstat.php', "bbsname={$rawbbsname}&url={$s_url}&type=admin&data={$statadmin}", 'POST');
    writeover(D_P . 'data/bbscache/file_lock1.txt', '');
} elseif (pwFilemtime(D_P . 'data/bbscache/info.txt') < $cachetime) {
    require_once R_P . 'require/posthost.php';
    $wget = PostHost('http://nt.phpwind.net/src/pw7/info1.php', "charset={$db_charset}&ce={$ceversion}");
    $wget = str_replace(array('<pwret>', '</pwret>'), '', $wget);
    writeover(D_P . 'data/bbscache/info.txt', $wget);
} elseif (pwFilemtime(D_P . "data/bbscache/myshow_default.php") < $cachetime) {
    require_once R_P . 'require/posthost.php';
    $url = "http://dm.phpwind.net/misc/custom/recommend_2.xml?{$timestamp}";
    $data = PostHost($url);
    if ($data && strpos($data, '<?xml') !== false) {
        $name = array();
        $id = array();
        $T = '';
        $maxnum = 8;
        $xml_parser = xml_parser_create();
        xml_parse_into_struct($xml_parser, $data, $arr_vals);
        xml_parser_free($xml_parser);
        foreach ($arr_vals as $v) {
            if ($v['tag'] == 'ITEM' && $v['attributes']) {
                $name[] = $v['attributes']['NAME'];
            } elseif ($v['tag'] == 'CODE') {
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:notice.php


示例7: while

                 $tpcdb[] = $thread;
             }
             $db->free_result($query);
         }
     } else {
         $topadd && ($topadd .= $R ? ' ASC,' : ' DESC,');
         $query = $db->query("SELECT * FROM pw_threads WHERE {$sql} {$searchadd} ORDER BY {$topadd} {$orderway} {$asc} {$limit2}");
         while ($thread = $db->fetch_array($query)) {
             $tpcdb[] = $thread;
         }
         $db->free_result($query);
     }
 }
 $R && ($tpcdb = array_reverse($tpcdb));
 //Start Here pwcache
 if ($db_ifpwcache & 112 && pwFilemtime(D_P . 'data/bbscache/hitsort_judge.php') < $timestamp - 600) {
     extract(pwCache::getData(D_P . 'data/bbscache/hitsort_judge.php', false));
     $updatelist = $updatetype = array();
     foreach ($tpcdb as $thread) {
         if ($db_ifpwcache & 16) {
             if ($thread['hits'] > $hitsort_judge['hitsort'][$fid] && $thread['fid'] == $fid) {
                 $updatelist[] = array('hitsort', $fid, $thread['tid'], $thread['hits'], '', 0);
                 $updatetype['hitsort'] = 1;
             }
         }
         if ($db_ifpwcache & 32 && $thread['postdate'] > $timestamp - 24 * 3600) {
             if ($thread['hits'] > $hitsort_judge['hitsortday'][$fid] && $thread['fid'] == $fid) {
                 $updatelist[] = array('hitsortday', $fid, $thread['tid'], $thread['hits'], $thread['postdate'], 0);
                 $updatetype['hitsortday'] = 1;
             }
         }
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:area_thread.php


示例8: unset

            }
            unset($threaddbs);
        }
        $channel['pubDate'] = date('r', $forumLastPostTime);
        $Rss->channel($channel);
        $Rss->generate($cache_path);
    }
    header("Content-type: application/xml");
    if (file_exists($cache_path)) {
        $etag = '"' . md5_file($cache_path) . '"';
        if (isset($_SERVER['HTTP_IF_NONE_MATCH']) && $etag == $_SERVER['HTTP_IF_NONE_MATCH']) {
            $statusCode = 304;
        } else {
            header('Etag:' . $etag);
        }
        $fileModifiedTime = pwFilemtime($cache_path);
        if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && $fileModifiedTime == $_SERVER['HTTP_IF_MODIFIED_SINCE']) {
            $statusCode = 304;
        } else {
            $lastModifiedTime = date('D, d M Y H:i:s', $fileModifiedTime) . ' GMT';
            header("Last-Modified: {$lastModifiedTime}");
        }
        if ($statusCode === 304) {
            header("HTTP/1.0 304 Not Modified");
            exit;
        }
    }
    @readfile($cache_path);
    exit;
}
function decodeRssHtml($str)
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:rss.php


示例9: getSpecialFid

function getSpecialFid()
{
    static $fids = null;
    if (!isset($fids)) {
        if (pwFilemtime(D_P . 'data/bbscache/specialforum.php') < pwFilemtime(D_P . 'data/bbscache/forum_cache.php')) {
            global $db;
            $query = $db->query("SELECT fid FROM pw_forums WHERE type<>'category' AND (cms=1 OR password!='' OR forumsell!='' OR f_type='hidden' OR allowvisit!='')");
            while ($rt = $db->fetch_array($query)) {
                $fids .= ",'{$rt['fid']}'";
            }
            $fids && ($fids = substr($fids, 1));
            pwCache::setData(D_P . 'data/bbscache/specialforum.php', "<?php\r\n\$fids = \"{$fids}\";\r\n?>");
        } else {
            //* include pwCache::getPath(D_P.'data/bbscache/specialforum.php');
            extract(pwCache::getData(D_P . 'data/bbscache/specialforum.php', false));
        }
    }
    return $fids;
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:19,代码来源:functions.php


示例10: PrintEot

            }
        }
    }
    include PrintEot('safecheck');
    exit;
} elseif ($action == 'cache') {
    $check = $dirlist = array();
    $cklog = array('1' => 0, '2' => 0, '3' => 0);
    cachefile(D_P . 'data/');
    if (empty($check)) {
        adminmsg('all_file_ok');
    }
    foreach ($check as $file => $value) {
        $dir = dirname($file);
        $filename = basename($file);
        $filemtime = get_date(pwFilemtime($file));
        $filesize = filesize($file);
        $dirlist[$dir][] = array($filename, $filesize, $filemtime, $value);
    }
    include PrintEot('safecheck');
    exit;
}
function checkfile($keyword, $dir, $sub)
{
    global $check;
    $fp = opendir($dir);
    while ($filename = readdir($fp)) {
        $path = $dir . $filename;
        if ($filename != '.' && $filename != '..') {
            if (is_dir($path)) {
                $sub && checkfile($keyword, $path . '/', $sub);
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:safecheck.php


示例11: array

        $rt['anonymous'] && ($rt['author'] = $db_anonymousname);
        $link = "{$db_bbsurl}/job.php?action=topost&tid={$rt['tid']}&pid={$rt['pid']}";
        $item = array('title' => $rt['subject'], 'description' => $rt['content'], 'link' => $link, 'author' => $rt['author'], 'category' => strip_tags($rs['name']), 'pubdate' => date('r', $rt['postdate']));
        $Rss->item($item);
    }
    $all = $Rss->rssHeader;
    $all .= $Rss->rssChannel;
    $all .= $Rss->rssImage;
    $all .= $Rss->rssItem;
    $all .= "</channel></rss>";
    header("Content-type: application/xml");
    echo $all;
    exit;
} else {
    $cache_path = D_P . 'data/bbscache/rss_' . $fid . '_cache.xml';
    if ($timestamp - pwFilemtime($cache_path) > $Rss_updatetime * 60) {
        require_once R_P . 'lib/rss.class.php';
        require_once D_P . 'data/bbscache/forum_cache.php';
        if ($db_tlist) {
            @extract($db->get_one("SELECT MAX(tid) AS tid FROM pw_threads"));
            $pw_tmsgs = GetTtable($tid);
        } else {
            $pw_tmsgs = 'pw_tmsgs';
        }
        if ($fid) {
            $rt = $db->get_one("SELECT allowvisit,f_type FROM pw_forums WHERE fid=" . pwEscape($fid));
            if (!$rt || $rt['allowvisit'] != '' || $rt['f_type'] == 'hidden') {
                echo "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=rss.php'>";
                exit;
            }
        }
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:rss.php


示例12: exit

<?php

!defined('P_W') && exit('Forbidden');
$cachetime = pwFilemtime(D_P . "data/bbscache/tagdb.php");
if (!file_exists(D_P . "data/bbscache/tagdb.php") || $timestamp - $cachetime > 3600) {
    $tagnum = max($db_tagindex, 200);
    $tagdb = array();
    $query = $db->query("SELECT * FROM pw_tags WHERE ifhot='0' ORDER BY num DESC" . S::sqlLimit($tagnum));
    while ($rs = $db->fetch_array($query)) {
        $tagdb[$rs['tagname']] = $rs['num'];
    }
    /** writeover(D_P . "data/bbscache/tagdb.php", "<?php\r\n\$tagdb=" . pw_var_export($tagdb) . ";\r\n?>"); **/
    pwCache::setData(D_P . "data/bbscache/tagdb.php", "<?php\r\n\$tagdb=" . pw_var_export($tagdb) . ";\r\n?>");
    touch(D_P . "data/bbscache/tagdb.php");
} else {
    //* include_once (D_P . "data/bbscache/tagdb.php");
    extract(pwCache::getData(D_P . "data/bbscache/tagdb.php", false));
}
foreach ($tagdb as $key => $num) {
    echo $key . ',' . $num . "\t";
}
ajax_footer();
开发者ID:jechiy,项目名称:PHPWind,代码行数:22,代码来源:tag.php


示例13: uasort

        uasort($admindb, "cmp");
        $sort_a[$type] = "class='link_down'";
    }
    require PrintEot('sort');
    footer();
} elseif ($action == 'delsort') {
    PostCheck();
    S::gp(array('month'));
    (!$month || !is_numeric($month) || $groupid != '3') && Showmsg('undefined_action');
    if (file_exists(D_P . 'data/bbscache/admin_sort_' . $month . '.php')) {
        //* P_unlink(D_P.'data/bbscache/admin_sort_'.$month.'.php');
        pwCache::deleteData(D_P . 'data/bbscache/admin_sort_' . $month . '.php');
    }
    refreshto("sort.php?action=admin", 'operate_success');
} elseif ($action == 'favor') {
    $cachetime = pwFilemtime(D_P . "data/bbscache/favor_sort.php");
    if (!$per || !file_exists(D_P . "data/bbscache/favor_sort.php") || $timestamp - $cachetime > $per * 3600) {
        $element = L::loadClass('element');
        $element->setDefaultNum(50);
        $_sort = array();
        $_SORTDB = $element->hotFavorsort();
        pwCache::writeover(D_P . 'data/bbscache/favor_sort.php', "<?php\r\n\$_FAVORS=" . pw_var_export($_SORTDB) . ";\r\n?>");
    } else {
        include pwCache::getPath(D_P . "data/bbscache/favor_sort.php");
        $_SORTDB = $_FAVORS;
        unset($_FAVORS);
    }
    $cachetime = get_date($cachetime + $per * 3600);
    require PrintEot('sort');
    footer();
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:sort.php


示例14: getLastUpdateTime

 function getLastUpdateTime()
 {
     if (!file_exists($this->_filePath)) {
         return $this->_timestamp;
     }
     $time = pwFilemtime($this->_filePath);
     return PwStrtoTime(get_date($time, 'Y-m-d'));
 }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:8,代码来源:keywordstatistic.class.php


示例15: elseif

} elseif ($tab == 'g' && $db_groups_open && $o_browse & 32) {
    $reGroups = browseGroup(15);
    $cMembers = array();
    $colonyids = pwImplode(array_keys($reGroups));
    if ($colonyids) {
        $query = $db->query("SELECT id,ifadmin,colonyid FROM pw_cmembers WHERE colonyid IN ({$colonyids}) AND uid=" . pwEscape($winduid, false));
        while ($rt = $db->fetch_array($query)) {
            $cMembers[$rt['colonyid']] = 1;
        }
    }
} elseif ($tab == 'r' && $o_browse & 256) {
    $newreply = browseNewreply(30);
} else {
    $tab = 'h';
    $pwCacheFile = D_P . 'data/bbscache/o_browse_cache.php';
    if (pwFilemtime($pwCacheFile) + 60 < $timestamp) {
        $element = L::loadClass('element');
        if ($o_browse & 128) {
            $newsubject = browseNewSubject(10);
        }
        if ($o_browse & 256) {
            $newreply = browseNewreply(10);
        }
        if ($o_browse & 1) {
            $newPics = array();
            $result = $element->newPic(0, 5);
            foreach ($result as $val) {
                $newPics[] = array('url' => $val['url'], 'title' => substrs($val['title'], 30), 'image' => $val['image']);
            }
            $newThreads = array();
            $result = $element->replySortWeek(0, 9);
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:m_browse.php


示例16: getThreadMethod

 function getThreadMethod()
 {
     global $page, $db_fcachenum, $fid, $foruminfo, $timestamp, $db_fcachetime;
     $fcache = 0;
     if ($db_fcachenum && $page <= $db_fcachenum && empty($this->threadSearch->urladd)) {
         $fcachetime = pwFilemtime(D_P . "data/bbscache/fcache_{$fid}_{$page}.php");
         $lastpost = explode("\t", $foruminfo['lastpost']);
         if (!file_exists(D_P . "data/bbscache/fcache_{$fid}_{$page}.php") || $lastpost[2] > $fcachetime && $timestamp - $fcachetime > $db_fcachetime) {
             $fcache = 1;
         } else {
             $fcache = 2;
         }
     }
     return $fcache;
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:15,代码来源:thread.php


示例17: get_date

     $bankdb['savetime'] = get_date($bankdb['startdate']);
 }
 if (!$bankdb['ddeposit'] || !$bankdb['dstartdate']) {
     $bankdb['dsavetime'] = "--";
 } else {
     $bankdb['dsavetime'] = get_date($bankdb['dstartdate'], 'Y-m-d');
     $endtime = get_date($bankdb['dstartdate'] + $bk_ddate * 30 * 86400, 'Y-m-d');
 }
 foreach ($_CREDITDB as $key => $value) {
     if (!$showdb[$key]) {
         $showdb[$key][0] = $value[0];
         $showdb[$key][1] = 0;
     }
 }
 !$bk_num && ($bk_num = 10);
 if (!$bk_per || $timestamp - pwFilemtime(D_P . "data/bbscache/bank_sort.php") > $bk_per * 3600) {
     $_DESPOSTDB = array();
     $query = $db->query("SELECT i.uid,m.username,i.deposit,i.startdate FROM pw_memberinfo i LEFT JOIN pw_members m ON m.uid=i.uid ORDER BY i.deposit DESC " . S::sqlLimit($bk_num));
     while ($deposit = $db->fetch_array($query)) {
         if ($deposit['deposit']) {
             $deposit['startdate'] = $deposit['startdate'] ? get_date($deposit['startdate']) : '';
             $_DESPOSTDB[] = array($deposit['uid'], $deposit['username'], $deposit['deposit'], $deposit['startdate']);
         }
     }
     $_DDESPOSTDB = array();
     $query = $db->query("SELECT i.uid,username,ddeposit,dstartdate FROM pw_memberinfo i LEFT JOIN pw_members m ON m.uid=i.uid ORDER BY ddeposit DESC " . S::sqlLimit($bk_num));
     while ($deposit = $db->fetch_array($query)) {
         if ($deposit['ddeposit']) {
             $deposit['dstartdate'] = $deposit['dstartdate'] ? get_date($deposit['dstartdate']) : '';
             $_DDESPOSTDB[] = array($deposit['uid'], $deposit['username'], $deposit['ddeposit'], $deposit['dstartdate']);
         }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:index.php


示例18: modeEot

function modeEot($template, $EXT = 'htm')
{
    global $db_mode, $db_tplpath;
    if ($db_mode == 'area') {
        $srcTpl = getAreaSrcTpl($template, $EXT);
        $tarTpl = D_P . "data/tplcache/" . $db_tplpath . $template . '.' . $EXT;
    } else {
        $srcTpl = M_P . "template/{$template}.{$EXT}";
        $tarTpl = D_P . "data/tplcache/" . $db_mode . '_' . $template . '.' . $EXT;
    }
    if (!file_exists($srcTpl)) {
        return false;
    }
    if (pwFilemtime($tarTpl) > pwFilemtime($srcTpl)) {
        return $tarTpl;
    } else {
        return modeTemplate($template, $srcTpl, $tarTpl);
    }
}
开发者ID:adi00,项目名称:wumaproject,代码行数:19,代码来源:common.php


示例19: adminmsg

function adminmsg($msg, $jumpurl = '', $t = 2, $langtype = 'admin')
{
    @extract($GLOBALS, EXTR_SKIP);
    if ($langtype == 'admin') {
        $msg = getLangInfo('cpmsg', $msg);
    } else {
        $msg = getLangInfo('msg', $msg);
    }
    if (defined('AJAX')) {
        echo $msg;
        ajax_footer();
    }
    if ($jumpurl != '') {
        $basename = $jumpurl;
        $ifjump = "<meta http-equiv='Refresh' content='{$t}; url={$jumpurl}'>";
    } elseif (!$basename) {
        $basename = $REQUEST_URI;
    }
    if ($db_adminrecord == 1 && $basename != 'javascript:history.go(-1);') {
        $adminmsg = 2;
    } else {
        $adminmsg = 1;
    }
    include PrintEot('message');
    $cachetime = $timestamp - 3600 * 24;
    if (readover(D_P . 'data/bbscache/none.txt') != '' || pwFilemtime(D_P . 'data/bbscache/file_lock.txt') < $cachetime || pwFilemtime(D_P . 'data/bbscache/info.txt') < $cachetime || pwFilemtime(D_P . 'data/bbscache/userpay.txt') < $cachetime) {
        echo '<script language="JavaScript">if (parent.notice) {parent.notice.location.href = "' . $admin_file . '?adminjob=notice";}</script>';
    }
    afooter();
}
开发者ID:adi00,项目名称:wumaproject,代码行数:30,代码来源:admincp.php


示例20: str_replace

             }
             $userdb = "{$pre} <a href='{$db_bbsurl}/{$value['url']}' target='_blank'>{$value['title']}</a> {$useradd}";
             $userdb = str_replace('"', '\\"', $userdb);
             $newlist .= "document.write(\"{$userdb}<br>\");\n";
         }
         pwCache::writeover($cachefile, $newlist);
         procUnLock('new_js_member');
         echo $newlist;
     } else {
         @readfile($cachefile);
     }
     break;
 case 'article':
     S::gp(array('num', 'length', 'fidin', 'fidout', 'postdate', 'author', 'fname', 'hits', 'replies', 'pre', 'digest', 'order'));
     $cachefile = D_P . "data/bbscache/new_{$action}_" . md5($action . (int) $num . (int) $length . $fidin . $fidout . (int) $postdate . (int) $author . (int) $fname . (int) $hits . (int) $replies . (int) $pre . (int) $digest . (int) $order);
     if ($timestamp - $per >= pwFilemtime($cachefile) && procLock('new_js_article')) {
         $num = is_numeric($num) ? $num : 10;
         $length = is_numeric($length) ? $length : 35;
         $pre = is_numeric($pre) ? $prefix[$pre] : $prefix[0];
         //* $fname && include_once pwCache::getPath(D_P.'data/bbscache/forum_cache.php');
         $fname && pwCache::getData(D_P . 'data/bbscache/forum_cache.php');
         $orderway = array('1' => 'lastpost', '2' => 'postdate', '3' => 'replies', '4' => 'hits');
         $orderby = is_numeric($order) ? $orderway[$order] : $orderway[1];
         !$orderby && ($orderby = $orderway[1]);
         $sqladd = "ifcheck=1";
         $fidoff = $ext = '';
         $query = $db->query("SELECT fid FROM pw_forums WHERE password!='' OR allowvisit!='' OR f_type='hidden'");
         while ($rt = $db->fetch_array($query)) {
             $fidoff .= $ext . $rt['fid'];
             !$ext && ($ext = ',');
         }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:new.php



注:本文中的pwFilemtime函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP pwFtpClose函数代码示例发布时间:2022-05-15
下一篇:
PHP pwEscape函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap