Esempio n. 1
0
 /**
  * @param string $extlist
  * @return bool
  */
 public function CheckExtName($extlist = '')
 {
     global $zbp;
     $e = GetFileExt($this->Name);
     $extlist = strtolower($extlist);
     if (trim($extlist) == '') {
         $extlist = $zbp->option['ZC_UPLOAD_FILETYPE'];
     }
     return HasNameInString($extlist, $e);
 }
Esempio n. 2
0
 function CheckExtName()
 {
     global $zbp;
     $e = GetFileExt($this->Name);
     if (HasNameInString($zbp->option['ZC_UPLOAD_FILETYPE'], $e)) {
         return true;
     } else {
         return false;
     }
 }
Esempio n. 3
0
function AutoPublisher_Response3()
{
    global $zbp;
    global $article;
    $s = $zbp->Config('AutoPublisher')->idstring;
    echo '<dl style="padding-left:10px;">';
    echo '<dt></dt>';
    echo '<dd><b>定时发布</b>&nbsp;<input type="text" name="AutoPublisher" id="edtAutoPublisher" value="' . (HasNameInString($s, (string) $article->ID) ? '1' : '0') . '" class="checkbox" />';
    echo '<br/>(如定时请设置为“on”,并保存为“草稿”,且将发布时间设为未来时间。如不定时请设置为“off”。)</dd>';
    echo '</dl>';
}
Esempio n. 4
0
 function CheckPlugin($name)
 {
     $s = $this->option['ZC_BLOG_THEME'] . '|' . $this->option['ZC_USING_PLUGIN_LIST'];
     return HasNameInString($s, $name);
 }