当前位置: 首页>>代码示例>>PHP>>正文


PHP GetMkTime函数代码示例

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


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

示例1: SumYear

function SumYear($uid){
	global $dsql,$ntime;
	$y = strftime("%Y",$ntime);
	$stime = GetMkTime("{$y}-01-01");
	$row = $dsql->GetOne("Select sum(click) as dd From #@__archives where adminid='$uid' And senddate>=$stime; ");
	return $row['dd'];
}
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:7,代码来源:sys_admin_user_tj.php

示例2: __construct

 /**
  *  php5构造函数
  *
  * @access    public
  * @param     int  $starttime  开始时间
  * @return    string
  */
 function __construct($starttime = 0)
 {
     global $ftp;
     $this->TypeID = 0;
     $this->dsql = $GLOBALS['dsql'];
     $this->dtp = new DedeTagParse();
     $this->dtp->SetRefObj($this);
     $this->dtp->SetNameSpace("dede", "{", "}");
     $this->dtp2 = new DedeTagParse();
     $this->dtp2->SetNameSpace("field", "[", "]");
     $this->TypeLink = new TypeLink(0);
     $this->ChannelUnit = new ChannelUnit(-1);
     $this->ftp =& $ftp;
     $this->remoteDir = '';
     //设置一些全局参数的值
     foreach ($GLOBALS['PubFields'] as $k => $v) {
         $this->Fields[$k] = $v;
     }
     if ($starttime == 0) {
         $this->StartTime = 0;
     } else {
         $this->StartTime = GetMkTime($starttime);
     }
     $this->CountRecord();
     $tempfile = $GLOBALS['cfg_basedir'] . $GLOBALS['cfg_templets_dir'] . "/" . $GLOBALS['cfg_df_style'] . "/list_spec.htm";
     if (!file_exists($tempfile) || !is_file($tempfile)) {
         echo "模板文件不存在,无法解析文档!";
         exit;
     }
     $this->dtp->LoadTemplate($tempfile);
     $this->TempInfos['tags'] = $this->dtp->CTags;
     $this->TempInfos['source'] = $this->dtp->SourceString;
     $ctag = $this->dtp->GetTag("page");
     if (!is_object($ctag)) {
         $this->PageSize = 20;
     } else {
         if ($ctag->GetAtt("pagesize") != "") {
             $this->PageSize = $ctag->GetAtt("pagesize");
         } else {
             $this->PageSize = 20;
         }
     }
     $this->TotalPage = ceil($this->TotalResult / $this->PageSize);
 }
开发者ID:iabing,项目名称:mzzyc,代码行数:51,代码来源:arc.specview.class.php

示例3: __construct

	function __construct($typeid,$starttime=0,$areaid=0,$areaid2=0,$sectorid=0,$sectorid2=0,$smalltypeid=0)
 	{
 		$this->areaid = $areaid;
 		$this->areaid2 = $areaid2;
 		$this->sectorid = $sectorid;
 		$this->sectorid2 = $sectorid2;
 		$this->smalltypeid = $smalltypeid;
 		$this->TypeID = $typeid;
 		$this->dsql = new DedeSql(false);
 		$this->dtp = new DedeTagParse();
 		$this->dtp->SetNameSpace("dede","{","}");
 		$this->dtp2 = new DedeTagParse();
 		$this->dtp2->SetNameSpace("field","[","]");
 		$this->TypeLink = new TypeLink($typeid);
 		$this->ChannelUnit = new ChannelUnit($this->TypeLink->TypeInfos['channeltype']);

 		$this->maintable = $this->ChannelUnit->ChannelInfos['maintable'];
 		$this->topareas = $this->subareas = $this->areas = $this->sectors = $this->smalltypes = array();
 		$this->areas[0] = $this->sectors[0] = $this->smalltypes[0] = '不限';
		$this->topareas[0] = array("id"=>0 , "name"=>'不限');
 		$this->addtable = $this->ChannelUnit->ChannelInfos['addtable'];
 		$this->Fields = $this->TypeLink->TypeInfos;
 		
 		$this->hasDmCache = false;
 		
 		$this->Fields['id'] = $typeid;
 		$this->Fields['position'] = $this->TypeLink->GetPositionLink(true);
 		$this->Fields['title'] = ereg_replace("[<>]"," / ",$this->TypeLink->GetPositionLink(false));
 		
 		//设置一些全局参数的值
 		foreach($GLOBALS['PubFields'] as $k=>$v) $this->Fields[$k] = $v;
 		$this->Fields['rsslink'] = $GLOBALS['cfg_mainsite'].$GLOBALS['cfg_plus_dir']."/rss/".$this->TypeID.".xml";
 		
 		if($starttime==0) $this->StartTime = 0;
 		else $this->StartTime = GetMkTime($starttime);

    if($this->TypeLink->TypeInfos['ispart']<=2)
    {
 		    $this->PartView = new PartView($typeid);
 		    $this->CountRecord();
 		}
  }
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:42,代码来源:inc_arclist_view.php

示例4: ShowMsg

         }
     }
     ShowMsg("完成更新所有文档,现在开始更新栏目页!", "makehtml_all.php?action=make&step=4&uptype={$uptype}&mkvalue={$mkvalue}");
     exit;
 } else {
     if ($step == 4) {
         $mkvalue = intval($mkvalue);
         $typeidsok = $typeids = array();
         $adminID = $cuserLogin->getUserID();
         $mkcachefile = DEDEDATA . "/mkall_cache_{$adminID}.php";
         if ($uptype == 'all' || empty($mkvalue)) {
             ShowMsg("不需要进行初处理,现更新所有栏目!", "makehtml_list_action.php?gotype=mkallct");
             exit;
         } else {
             if ($uptype == 'time') {
                 $query = "SELECT  DISTINCT typeid From `#@__arctiny` WHERE senddate >=" . GetMkTime($mkvalue) . " AND arcrank>-1";
             } else {
                 $query = "SELECT DISTINCT typeid From `#@__arctiny` WHERE id>={$mkvalue} AND arcrank>-1";
             }
             $dsql->SetQuery($query);
             $dsql->Execute();
             while ($row = $dsql->GetArray()) {
                 $typeids[$row['typeid']] = 1;
             }
             foreach ($typeids as $k => $v) {
                 $vs = array();
                 $vs = GetParentIds($k);
                 if (!isset($typeidsok[$k])) {
                     $typeidsok[$k] = 1;
                 }
                 foreach ($vs as $k => $v) {
开发者ID:hensonvip,项目名称:ymroad,代码行数:31,代码来源:makehtml_all.php

示例5: GetMkTime

				</li>
			</ul></td>
	</tr>
	<?php 
$sql = "SELECT * FROM `#@__sysevent` WHERE `id`<>0";
if (!empty($uname)) {
    $sql .= " AND `uname`='{$uname}'";
}
if (!empty($siteid)) {
    $sql .= " AND `siteid`={$siteid}";
}
if (!empty($starttime)) {
    $sql .= " AND `posttime`>=" . GetMkTime($starttime);
}
if (!empty($endtime)) {
    $sql .= " AND `posttime`<=" . GetMkTime($endtime);
}
$dopage->GetPage($sql, 30);
while ($row = $dosql->GetArray()) {
    $r = $dosql->GetOne("SELECT `sitename` FROM `#@__site` WHERE `id`=" . $row['siteid']);
    if (empty($r)) {
        $r['sitename'] = '未知站点';
    }
    if ($row['model'] == 'login') {
        ?>
	<tr class="dataTr">
		<td height="36"><span class="padl10"> <span class="number"><?php 
        echo GetDateTime($row['posttime']);
        ?>
</span>:</span>用户 <strong><?php 
        echo $row['uname'];
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:sysevent.php

示例6: time

 //获取时间和标题
 $pubdate = $sortrank = time();
 $title = $row->title;
 $litpic = '';
 foreach ($dtp->CTags as $ctag) {
     $itemName = $ctag->GetAtt('name');
     if ($itemName == 'title' && $usetitle == 0) {
         $title = trim($ctag->GetInnerText());
         if ($title == '') {
             $title = $row->title;
         }
     } else {
         if ($itemName == 'pubdate') {
             $pubdate = trim($ctag->GetInnerText());
             if (preg_match("#[^0-9]#", $pubdate)) {
                 $pubdate = $sortrank = GetMkTime($pubdate);
             } else {
                 $pubdate = $sortrank = time();
             }
         } else {
             if ($itemName == 'litpic') {
                 $litpic = trim($ctag->GetInnerText());
             }
         }
     }
 }
 //检测重复标题
 $title = addslashes($title);
 if ($onlytitle) {
     $testrow = $dsql->GetOne("SELECT COUNT(ID) AS dd FROM `{$maintable}` WHERE title LIKE '{$title}'");
     if ($testrow['dd'] > 0) {
开发者ID:hensonvip,项目名称:ymroad,代码行数:31,代码来源:co_export.php

示例7: GetFieldValue

function GetFieldValue($dvalue, $dtype, $aid = 0, $job = 'add', $addvar = '')
{
    global $cfg_cookie_encode, $cfg_dir_purview;
    if ($dtype == "int") {
        $dvalue = trim(ereg_replace("[^0-9]", "", $dvalue));
        if ($dvalue == "") {
            $dvalue = 0;
        }
        return $dvalue;
    } else {
        if ($dtype == "float") {
            $dvalue = trim(ereg_replace("[^0-9\\.]", "", $dvalue));
            if ($dvalue == "") {
                $dvalue = 0;
            }
            return $dvalue;
        } else {
            if ($dtype == "datetime") {
                return GetMkTime($dvalue);
            } else {
                if ($dtype == "textdata") {
                    if ($job == 'edit') {
                        $addvarDirs = explode('/', $addvar);
                        $addvarDir = ereg_replace("/" . $addvarDirs[count($addvarDirs) - 1] . "\$", "", $addvar);
                        $mdir = $GLOBALS['cfg_basedir'] . $addvarDir;
                        if (!is_dir($mdir)) {
                            MkdirAll($mdir, $GLOBALS['cfg_dir_purview']);
                        }
                        $fp = fopen($GLOBALS['cfg_basedir'] . $addvar, "w");
                        fwrite($fp, stripslashes($dvalue));
                        fclose($fp);
                        CloseFtp();
                        return $addvar;
                    } else {
                        $ipath = $GLOBALS['cfg_cmspath'] . "/data/textdata";
                        $tpath = ceil($aid / 5000);
                        if (!is_dir($GLOBALS['cfg_basedir'] . $ipath)) {
                            MkdirAll($GLOBALS['cfg_basedir'] . $ipath, $cfg_dir_purview);
                        }
                        if (!is_dir($GLOBALS['cfg_basedir'] . $ipath . '/' . $tpath)) {
                            MkdirAll($GLOBALS['cfg_basedir'] . $ipath . '/' . $tpath, $cfg_dir_purview);
                        }
                        $ipath = $ipath . '/' . $tpath;
                        $filename = "{$ipath}/{$aid}-" . cn_substr(md5($cfg_cookie_encode), 0, 16) . ".txt";
                        $fp = fopen($GLOBALS['cfg_basedir'] . $filename, "w");
                        fwrite($fp, stripslashes($dvalue));
                        fclose($fp);
                        CloseFtp();
                        return $filename;
                    }
                } else {
                    if ($dtype == "img") {
                        $iurl = stripslashes($dvalue);
                        if (trim($iurl) == "") {
                            return "";
                        }
                        $iurl = trim(str_replace($GLOBALS['cfg_basehost'], "", $iurl));
                        $imgurl = "{dede:img text='' width='' height=''} " . $iurl . " {/dede:img}";
                        if (eregi("^http://", $iurl) && $GLOBALS['isUrlOpen']) {
                            //远程图片
                            $reimgs = "";
                            if ($isUrlOpen) {
                                $reimgs = GetRemoteImage($iurl, $GLOBALS['adminid']);
                                if (is_array($reimgs)) {
                                    $imgurl = "{dede:img text='' width='" . $reimgs[1] . "' height='" . $reimgs[2] . "'} " . $reimgs[0] . " {/dede:img}";
                                }
                            } else {
                                $imgurl = "{dede:img text='' width='' height=''} " . $iurl . " {/dede:img}";
                            }
                        } else {
                            if ($iurl != "") {
                                //站内图片
                                $imgfile = $GLOBALS['cfg_basedir'] . $iurl;
                                if (is_file($imgfile)) {
                                    $imginfos = GetImageSize($imgfile, &$info);
                                    $imgurl = "{dede:img text='' width='" . $imginfos[0] . "' height='" . $imginfos[1] . "'} {$iurl} {/dede:img}";
                                }
                            }
                        }
                        return addslashes($imgurl);
                    } else {
                        return $dvalue;
                    }
                }
            }
        }
    }
}
开发者ID:klr2003,项目名称:sourceread,代码行数:88,代码来源:inc_archives_all.php

示例8: addslashes

             $v[] = addslashes($post_value);
         }
     } else {
         $v = addslashes($_POST[$row['fieldname']]);
     }
 } else {
     $v = '';
 }
 if (!empty($row['fieldcheck'])) {
     if (!preg_match($row['fieldcheck'], $v)) {
         ShowMsg($row['fieldcback']);
         exit;
     }
 }
 if ($row['fieldtype'] == 'datetime') {
     $v = GetMkTime($v);
 }
 if ($row['fieldtype'] == 'fileall') {
     $vTxt = isset($_POST[$row['fieldname'] . '_txt']) ? $_POST[$row['fieldname'] . '_txt'] : '';
     if (is_array($v) && is_array($vTxt)) {
         $vNum = count($v);
         $vTmp = '';
         for ($i = 0; $i < $vNum; $i++) {
             $vTmp[] = $v[$i] . ',' . addslashes($vTxt[$i]);
         }
         $v = serialize($vTmp);
     }
 }
 if ($row['fieldtype'] == 'checkbox') {
     @($v = implode(',', $v));
 }
开发者ID:jsycwangwei,项目名称:NJIT,代码行数:31,代码来源:modeldata_save.php

示例9: GetSonIds

}
$gwhere = " WHERE 1 ";
if ($startid > 0) {
    $gwhere .= " AND id>= {$startid} ";
}
if ($endid > $startid) {
    $gwhere .= " AND id<= {$endid} ";
}
$idsql = '';
if ($typeid != 0) {
    $ids = GetSonIds($typeid);
    $gwhere .= " AND typeid IN({$ids}) ";
}
if ($seltime == 1) {
    $t1 = GetMkTime($starttime);
    $t2 = GetMkTime($endtime);
    $gwhere .= " AND (senddate >= {$t1} AND senddate <= {$t2}) ";
}
if (!empty($userid)) {
    $row = $dsql->GetOne("SELECT `mid` FROM #@__member WHERE `userid` LIKE '{$userid}'");
    if (is_array($row)) {
        $gwhere .= " AND mid = {$row['mid']} ";
    }
}
//特殊操作
if (!empty($heightdone)) {
    $action = $heightdone;
}
//指量审核
if ($action == 'check') {
    if (empty($startid) || empty($endid) || $endid < $startid) {
开发者ID:stonelf,项目名称:mcgmh,代码行数:31,代码来源:content_batchup_action.php

示例10: ShowMsg

     } else {
         $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET matt=0 WHERE mid='{$id}' AND matt<>10 LIMIT 1");
         ShowMsg("成功取消一个会员推荐!", $ENV_GOBACK_URL);
         exit;
     }
 } else {
     if ($dopost == 'edituser') {
         CheckPurview('member_Edit');
         if (!isset($_POST['id'])) {
             exit('Request Error!');
         }
         $pwdsql = empty($pwd) ? '' : ",pwd='" . md5($pwd) . "'";
         if (empty($sex)) {
             $sex = '男';
         }
         $uptime = GetMkTime($uptime);
         if ($matt == 10 && $oldmatt != 10) {
             ShowMsg("对不起,为安全起见,不支持直接把前台会员转为管理的操作!", "-1");
             exit;
         }
         $query = "UPDATE `#@__member` SET\n            email = '{$email}',\n            uname = '{$uname}',\n            sex = '{$sex}',\n            matt = '{$matt}',\n            money = '{$money}',\n            scores = '{$scores}',\n            rank = '{$rank}',\n            spacesta='{$spacesta}',\n            uptime='{$uptime}',\n            exptime='{$exptime}'\n            {$pwdsql}\n            WHERE mid='{$id}' AND matt<>10 ";
         $rs = $dsql->ExecuteNoneQuery2($query);
         if ($rs == 0) {
             $query = "UPDATE `#@__member` SET\n            email = '{$email}',\n            uname = '{$uname}',\n            sex = '{$sex}',\n            money = '{$money}',\n            scores = '{$scores}',\n            rank = '{$rank}',\n            spacesta='{$spacesta}',\n            uptime='{$uptime}',\n            exptime='{$exptime}'\n            {$pwdsql}\n            WHERE mid='{$id}' ";
             $rs = $dsql->ExecuteNoneQuery2($query);
         }
         #api{{
         if (defined('UC_API') && @(include_once DEDEROOT . '/api/uc.func.php')) {
             $row = $dsql->GetOne("SELECT `scores`,`userid` FROM `#@__member` WHERE `mid`='{$id}' AND `matt`<>10");
             $amount = $scores - $row['scores'];
             uc_credit_note($row['userid'], $amount);
开发者ID:hensonvip,项目名称:ymroad,代码行数:31,代码来源:member_do.php

示例11: dirname

<?php

/**
 * 增加任务
 *
 * @version        $Id: sys_task_add.php 1 23:07 2010年7月20日Z tianya $
 * @package        DedeCMS.Administrator
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require dirname(__FILE__) . "/config.php";
CheckPurview('sys_Task');
if (empty($dopost)) {
    $dopost = '';
}
if ($dopost == 'save') {
    $starttime = empty($starttime) ? 0 : GetMkTime($starttime);
    $endtime = empty($endtime) ? 0 : GetMkTime($endtime);
    $runtime = $h . ':' . $m;
    $Query = "INSERT INTO `#@__sys_task`(`taskname`,`dourl`,`islock`,`runtype`,`runtime`,`starttime`,`endtime`,`freq`,`lastrun`,`description`,`parameter`,`settime`)\n        VALUES('{$taskname}', '{$dourl}', '{$nislock}', '{$runtype}', '{$runtime}', '{$starttime}', '{$endtime}','{$freq}', '0', '{$description}','{$parameter}', '" . time() . "'); ";
    $rs = $dsql->ExecuteNoneQuery($Query);
    if ($rs) {
        ShowMsg('成功增加一个任务!', 'sys_task.php');
    } else {
        ShowMsg('增加任务失败!' . $dsql->GetError(), 'javascript:;');
    }
    exit;
}
include DedeInclude('templets/sys_task_add.htm');
开发者ID:hensonvip,项目名称:ymroad,代码行数:30,代码来源:sys_task_add.php

示例12: ShowMsg

     $pv->SaveToHtml($homeFile);
     $pv->Close();
     ShowMsg("完成更新所有文档,现在开始更新栏目页!", "makehtml_all.php?action=make&step=4&uptype={$uptype}&mkvalue={$mkvalue}");
     exit;
 } else {
     if ($step == 4) {
         $mkvalue = intval($mkvalue);
         $typeidsok = $typeids = array();
         $adminID = $cuserLogin->getUserID();
         $mkcachefile = DEDEROOT . "/data/mkall_cache_{$adminID}.php";
         if ($uptype == 'all' || empty($mkvalue)) {
             ShowMsg("不需要进行初处理,现更新所有栏目!", "makehtml_list_action.php?gotype=mkallct");
             exit;
         } else {
             if ($uptype == 'time') {
                 $query = "Select  DISTINCT typeid From `#@__arctiny` where senddate >=" . GetMkTime($mkvalue) . " And arcrank>-1";
             } else {
                 $query = "Select DISTINCT typeid From `#@__arctiny` where id>={$mkvalue} And arcrank>-1";
             }
             $dsql->SetQuery($query);
             $dsql->Execute();
             while ($row = $dsql->GetArray()) {
                 $typeids[$row['typeid']] = 1;
             }
             foreach ($typeids as $k => $v) {
                 $vs = array();
                 $vs = GetParentIds($k);
                 if (!isset($typeidsok[$k])) {
                     $typeidsok[$k] = 1;
                 }
                 foreach ($vs as $k => $v) {
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:makehtml_all.php

示例13: GetFieldValue

function GetFieldValue($dvalue,$dtype,$aid=0,$job='add',$addvar='',$admintype='admin')
{
	global $cfg_basedir,$cfg_cmspath,$adminID,$cfg_ml;
	
	if(!empty($adminID)) $adminid = $adminID;
	else $adminid = $cfg_ml->M_ID;
	
	if($dtype=="int"){
		return GetAlabNum($dvalue);
	}
	else if($dtype=="float"){
	  return GetAlabNum($dvalue);
	}
	else if($dtype=="datetime"){
		return GetMkTime($dvalue);
	}
	else if($dtype=="checkbox"){
		$okvalue = '';
		if(is_array($dvalue)){
			foreach($dvalue as $v){ $okvalue .= ($okvalue=='' ? $v : ",{$v}"); }
		}
		return $okvalue;
	}
	else if($dtype=="textdata")
	{
		if($job=='edit')
		{
			$addvarDirs = explode('/',$addvar);
			$addvarDir = ereg_replace("/".$addvarDirs[count($addvarDirs)-1]."$","",$addvar);
			$mdir = $cfg_basedir.$addvarDir;
			if(!is_dir($mdir)){ MkdirAll($mdir); }
			$fp = fopen($cfg_basedir.$addvar,"w");
		  fwrite($fp,stripslashes($dvalue));
		  fclose($fp);
		  CloseFtp();
	    return $addvar;
	  }else{	
		  $ipath = $cfg_cmspath."/data/textdata";
		  $tpath = ceil($aid/5000);
		  if(!is_dir($cfg_basedir.$ipath)) MkdirAll($cfg_basedir.$ipath,$GLOBALS['cfg_dir_purview']);
		  if(!is_dir($cfg_basedir.$ipath.'/'.$tpath)) MkdirAll($cfg_basedir.$ipath.'/'.$tpath,$GLOBALS['cfg_dir_purview']);
		  $ipath = $ipath.'/'.$tpath;
		  $filename = "{$ipath}/{$aid}.txt";
		  
		  $fp = fopen($cfg_basedir.$filename,"w");
		  fwrite($fp,stripslashes($dvalue));
		  fclose($fp);
		  CloseFtp();
	    return $filename;
	  }
	}
	else if($dtype=="img"||$dtype=="imgfile")
	{
		$iurl = stripslashes($dvalue);
    if(trim($iurl)=="") return "";
    $iurl = trim(str_replace($GLOBALS['cfg_basehost'],"",$iurl));
    $imgurl = "{dede:img text='' width='' height=''} ".$iurl." {/dede:img}";
    if(eregi("^http://",$iurl) && $GLOBALS['cfg_isUrlOpen']) //远程图片
    {
       $reimgs = "";
       if($GLOBALS['cfg_isUrlOpen']){
	       $reimgs = GetRemoteImage($iurl,$adminid);
	       if(is_array($reimgs)){
		        if($dtype=="imgfile") $imgurl = $reimgs[1];
	          else $imgurl = "{dede:img text='' width='".$reimgs[1]."' height='".$reimgs[2]."'} ".$reimgs[0]." {/dede:img}";
	       }
	     }else{
	     	  if($dtype=="imgfile") $imgurl = $iurl;
	     	  else $imgurl = "{dede:img text='' width='' height=''} ".$iurl." {/dede:img}";
	     }
    }
    else if($iurl!=""){  //站内图片
	     $imgfile = $cfg_basedir.$iurl;
	     if(is_file($imgfile)){
		      $info = '';
		      $imginfos = GetImageSize($imgfile,$info);
		      if($dtype=="imgfile") $imgurl = $iurl;
		      else $imgurl = "{dede:img text='' width='".$imginfos[0]."' height='".$imginfos[1]."'} $iurl {/dede:img}";
	     }
    }
    return addslashes($imgurl);
	}else{
		return $dvalue;
	}
}
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:85,代码来源:inc_custom_fields.php

示例14: require_once

<?php 
require_once(dirname(__FILE__)."/config.php");
CheckPurview('plus_常用小技巧');
if(empty($ismake)) $dopost = "";
if($ismake=="1")
{
	 $dsql = new DedeSql(false);
	 $dtime = GetMkTime($sdate);
	 $query = "update #@__archives set ismake = $ismake";
	 $dsql->SetQuery($query);
	 $dsql->ExecuteNoneQuery();
	 $dsql->Close();
	 ShowMsg("批量替换文档生成状态为【静态页面】成功!","doohickey.php");
	 exit();
}
else if($ismake=="-1")
{
	 $dsql = new DedeSql(false);
	 $dtime = GetMkTime($sdate);
	 $query = "update #@__archives set ismake = $ismake";
	 $dsql->SetQuery($query);
	 $dsql->ExecuteNoneQuery();
	 $dsql->Close();
	 ShowMsg("批量替换文档生成状态为【动态页面】成功!","doohickey.php");
	 exit();
}

require_once(dirname(__FILE__)."/doohickey.html");

ClearAllLink();
?>
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:31,代码来源:doohickey.php

示例15: while

while ($arr = $dsql->GetArray()) {
    $starttime = $arr['starttime'];
    $endtime = $arr['endtime'];
    //跳过一次性运行,并且已经运行的任务
    if ($arr['lastrun'] > $starttime && $arr['runtype'] == 1) {
        continue;
    }
    //超过了设定的任务结束时间
    if ($endtime != 0 && $endtime < $ntime) {
        continue;
    }
    //未达到任务开始时间的任务
    if ($starttime != 0 && $ntime < $starttime) {
        continue;
    }
    $dotime = GetMkTime($ndate . ' ' . $arr['runtime'] . ':00');
    $limittime = $daylimit * $arr['freq'];
    $isplay = false;
    //判断符合执行条件的任务
    if ($arr['freq'] > 1 && $ntime - $arr['lastrun'] > $limittime) {
        $isplay = true;
    } else {
        $ndateInt = intval(str_replace('-', '', $ndate));
        $rdateInt = intval(str_replace('-', '', GetDateMk($arr['lastrun'])));
        list($th, $tm) = explode(':', $arr['runtime']);
        if ($ndateInt > $rdateInt && ($hh > $th || $hh == $th && $mm >= $tm)) {
            $isplay = true;
        }
    }
    //符合需执行条件的任务
    if ($isplay) {
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:task.php


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