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


PHP optionGet函数代码示例

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


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

示例1: __construct

 function __construct()
 {
     $this->CI =& get_instance();
     $datajson = optionGet('captcha_data');
     $site = jsonDataDecode($datajson, 'sitekey');
     $secret = jsonDataDecode($datajson, 'secretkey');
     $this->siteKey = $site;
     $this->secretKey = $secret;
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:9,代码来源:Recaptcha2_captcha.php

示例2: checkType

 function checkType()
 {
     $type = optionGet('captcha_type');
     if (empty($type)) {
         exit('Please configuration captcha first');
     } else {
         return $type;
     }
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:9,代码来源:Captcha.php

示例3: checkserv

 function checkserv()
 {
     $opt = optionGet('service_login_bruceforce');
     if (empty($opt)) {
         return false;
     } else {
         if ($opt == "1") {
             return true;
         } else {
             return false;
         }
     }
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:13,代码来源:Bruceforce.php

示例4: preview

 function preview()
 {
     $this->load->library('m_seo');
     $param = $this->m_seo->postPermalink("", "", "", "");
     $d['data'] = $param;
     $title = "";
     if ($param['route'] == "post") {
         $title = $this->m_database->FieldRow('posts', $param['data'], 'post_title');
     } else {
         $title = optionGet('site_title');
     }
     $d['title'] = $title;
     $this->load->view('frontend/templateloader', $d);
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:14,代码来源:Templates.php

示例5: tag

 function tag($s1 = '')
 {
     $d['data']['route'] = "tag";
     $d['data']['data'] = $s1;
     $title = "";
     $s = array('term_id' => $s1);
     $tagName = $this->m_database->FieldRow('terms', $s, 'name');
     if (!empty($tagName)) {
         $title = $tagName;
     } else {
         $title = optionGet('site_title');
     }
     $d['title'] = $title;
     $this->load->view('templateloader', $d);
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:15,代码来源:Homepage.php

示例6: generateDo

 function generateDo($view = FALSE)
 {
     $datajson = optionGet('captcha_data');
     $savepath = jsonDataDecode($datajson, 'folderci', 'captchafolder');
     $length = jsonDataDecode($datajson, 'lengthci', '5');
     $path = locationUpload('path') . $savepath;
     fileDirCreate($path);
     $this->CI->load->helper('captcha');
     $vals = array('img_path' => $path . '/', 'img_width' => 200, 'img_height' => 60, 'img_url' => locationUpload('url') . $savepath . '/', 'word_length' => $length, 'font_path' => './system/fonts/texb.ttf', 'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', 'img_id' => 'cicaptcha', 'font_size' => 16, 'colors' => array('background' => array(255, 255, 255), 'border' => array(135, 5, 0), 'text' => array(0, 0, 0), 'grid' => array(255, 255, 255)));
     $cap = create_captcha($vals);
     $data = array('captcha_time' => $cap['time'], 'ip_address' => $this->CI->input->ip_address(), 'word' => $cap['word']);
     $query = $this->CI->db->insert_string($this->tbl, $data);
     $this->CI->db->query($query);
     $urlCaptcha = locationUpload('path') . $savepath;
     return $urlCaptcha . '/' . $cap['time'] . '.jpg';
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:16,代码来源:Ci_captcha.php

示例7: setSession

 private function setSession()
 {
     $dbrole = optionGet('session_role');
     $dbuser = optionGet('session_user');
     if (empty($dbrole)) {
         optionSet('session_role', 'minang_role_session');
         $this->ses_role = 'minang_role_session';
     } else {
         $this->ses_role = $dbrole;
     }
     if (empty($dbuser)) {
         optionSet('session_user', 'minang_user_session');
         $this->ses_user = 'minang_user_session';
     } else {
         $this->ses_user = $dbuser;
     }
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:17,代码来源:M_auth.php

示例8: userInfo

 function userInfo($output)
 {
     $CI =& get_instance();
     $sesuserdb = optionGet('session_user');
     $username = $CI->session->userdata($sesuserdb);
     $s = array('username' => $username, 'status' => 'active');
     if ($CI->m_database->isBOF('userlogin', $s) == TRUE) {
         redirect(base_url(routeGet('logout')), 'refresh');
     } else {
         $item = $CI->m_database->fieldRow('userlogin', $s, $output);
         if (!empty($item)) {
             return $item;
         } else {
             redirect(base_url(routeGet('logout')), 'refresh');
         }
     }
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:17,代码来源:user_helper.php

示例9: getfeed

 function getfeed()
 {
     $feedUrl = optionGet('feed_minangcms');
     $feedContent = "";
     $output = "";
     $curl = curl_init();
     curl_setopt($curl, CURLOPT_URL, $feedUrl);
     curl_setopt($curl, CURLOPT_TIMEOUT, 30);
     curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
     curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
     curl_setopt($curl, CURLOPT_HEADER, false);
     curl_setopt($curl, CURL_HTTP_VERSION_1_1, true);
     curl_setopt($curl, CURLOPT_ENCODING, "gzip, deflate");
     curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3");
     $feedContent = curl_exec($curl);
     curl_close($curl);
     $limit = 10;
     if ($feedContent && !empty($feedContent)) {
         $feedXml = @simplexml_load_string($feedContent);
         if ($feedXml) {
             $output = '';
             $i = 0;
             if ($i <= $limit) {
                 $output .= '<ul>';
                 foreach ($feedXml->channel->item as $item) {
                     $i += 1;
                     $output .= '<li><a href="' . $item->link . '" target="_blank">' . $item->title . '</a></li>';
                 }
                 $output .= '</ul>';
             }
         }
     } else {
         $output .= 'Tidak dapat mengakses berita';
     }
     echo $output;
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:36,代码来源:Dashboard.php

示例10: optionGet

		},
		success:function(x){
			$("#config").html(x);
			$("#config").show();
			$("#loader").hide();
		},
	});
});

});
</script>
<?php 
$csv = '';
$service = optionGet('captcha_enable');
$optvis = '';
$type = optionGet('captcha_type');
if ($service == "0") {
    $csv = "";
    $optvis = 'display:none;';
} else {
    $csv = "checked";
    $optvis = '';
}
?>
<input type="hidden" name="lasttipe" id="lasttipe" value="<?php 
echo $type;
?>
"/>
<input type="hidden" name="laststate" id="laststate" value="<?php 
echo $service;
?>
开发者ID:urangawak,项目名称:minangcms,代码行数:31,代码来源:captchaconfig.php

示例11: base_url

        <li><a href="<?php 
echo base_url(roleURIUser() . 'style/logo');
?>
"><i class="fa fa-circle-o"></i> <?php 
echo langGet("menu", "menu_appearance_logo");
?>
</a></li>
        <li><a href="<?php 
echo base_url(roleURIUser() . 'style/templates');
?>
"><i class="fa fa-circle-o"></i> <?php 
echo langGet("menu", "menu_appearance_template");
?>
</a></li>
        <?php 
$themeActive = optionGet('theme_front');
if (themeHasOption($themeActive)) {
    ?>
			<li><a href="<?php 
    echo base_url(roleURIUser() . 'style/templates/konfigurasi');
    ?>
"><i class="fa fa-circle-o"></i> Konfigurasi Tema</a></li>
			<?php 
}
?>
        <li><a href="<?php 
echo base_url(roleURIUser() . 'style/widgets');
?>
"><i class="fa fa-circle-o"></i> <?php 
echo langGet("menu", "menu_appearance_widget");
?>
开发者ID:urangawak,项目名称:minangcms,代码行数:31,代码来源:navadmin.php

示例12: categoryContent

 function categoryContent($catID, $menuID, $menuTitle)
 {
     $p = '';
     $uriCat = optionGet('permalink_category');
     $slug = categoryInfo($catID, 'slug');
     $title = categoryInfo($catID, 'name');
     $urlPage = base_url() . $uriCat . '/' . $slug;
     $p .= '<i>Navigation Label</i><br>';
     $p .= '<input type="text" class="form-control" id="category_' . $menuID . '" value="' . $menuTitle . '"/>';
     $p .= '<small class="form-control">';
     $p .= '<i>Original</i> : ';
     $p .= '<a href="' . $urlPage . '" target="_blank">' . $title . '</a>';
     $p .= '</small>';
     return $p;
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:15,代码来源:Menu_model.php

示例13: optionGet

<?php

$b = optionGet('theme_backend');
include locationTheme('path') . 'backend/' . $b . '/footer.php';
开发者ID:urangawak,项目名称:minangcms,代码行数:4,代码来源:footer.php

示例14: permalinkCategory

 function permalinkCategory($catID)
 {
     $uriCat = optionGet('permalink_category');
     $slugCat = categoryInfo($catID, "slug");
     if (!empty($slugCat)) {
         return base_url() . $uriCat . "/" . $slugCat;
     } else {
         return base_url();
     }
 }
开发者ID:urangawak,项目名称:minangcms,代码行数:10,代码来源:posts_helper.php

示例15: optionGet

<?php

$logo = optionGet('site_logo');
$favicon = optionGet('site_favicon');
$att = array('class' => 'form-horizontal');
echo form_open(base_url(roleURIUser() . 'style/logo/updateapply'), $att);
?>
<div id="kcfinder_div"></div>
<div class="form-group">
	<label class="col-sm-2 control-label">Logo</label>
	<div class="col-md-3">
		<?php 
if (!empty($logo)) {
    ?>
			<img src="<?php 
    echo $logo;
    ?>
" id="imglogo" class="thumbnail img-responsive" style="height: 120px;"/>
		  	<a href="javascript:;" onclick="openKCFinder('logo')" class="form-control" id="addlogo" style="display: none;">Pilih Gambar</a>
		  	<a href="javascript:;" id="remlogo">Hapus Logo</a>
		  	<input type="hidden" name="logo" id="logo" value="<?php 
    echo $logo;
    ?>
"/>
			<?php 
} else {
    ?>
			<img src="" id="imglogo" class="thumbnail img-responsive" style="height: 120px;display: none;"/>
		  	<a href="javascript:;" onclick="openKCFinder('logo')" class="form-control" id="addlogo">Pilih Gambar</a>
		  	<a href="javascript:;" id="remlogo" style="display: none;">Hapus Logo</a>
		  	<input type="hidden" name="logo" id="logo" value="<?php 
开发者ID:urangawak,项目名称:minangcms,代码行数:31,代码来源:logoview.php


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