本文整理汇总了PHP中roleURIUser函数的典型用法代码示例。如果您正苦于以下问题:PHP roleURIUser函数的具体用法?PHP roleURIUser怎么用?PHP roleURIUser使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了roleURIUser函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
function index()
{
$meta['judul'] = "Search Engine Optimization";
$this->load->view('public/header', $meta);
$this->load->view(roleURIUser() . 'config/seoview');
$this->load->view('public/footer');
}
示例2: updateconfig
function updateconfig()
{
$sitetitle = $this->input->post('sitetitle');
optionSet('site_title', $sitetitle, 0, "text");
$sitedesc = $this->input->post('sitedescription');
optionSet('site_description', $sitedesc, 0, "text");
$komen = valCheckbox($this->input->post('komen'));
optionSet('site_comment', $komen, 0, "option");
$komenmoderator = valCheckbox($this->input->post('komenmoderator'));
optionSet('site_comment_moderator', $komenmoderator, 0, "option");
$fpPost = $this->input->post('frontpagepost');
$state = "";
if ($fpPost) {
$state = "post";
} else {
$state = "page";
$pagefront = $this->input->post('pagefont');
optionSet('site_frontpage_page', $pagefront, 0, "text");
}
optionSet('site_frontpage', $state, 0, "text");
$searchengine = valCheckbox($this->input->post('searchengine'));
optionSet('site_searchengine', $searchengine, 0, "option");
$bruceforce = valCheckbox($this->input->post('bruceforce'));
optionSet('service_login_bruceforce', $bruceforce, 1, "text");
$bruceforcelimit = $this->input->post('bruceforcelimit');
optionSet('service_login_bruceforce_limit', $bruceforcelimit, 1, "text");
$bruceforcedirect = $this->input->post('bruceforcedirect');
optionSet('service_login_bruceforce_direct', $bruceforcedirect, 1, "text");
$this->savecaptcha();
redirect(base_url(roleURIUser() . 'config/konfigurasi'), 'refresh');
}
示例3: delete
function delete()
{
$id = $this->input->get('id');
$this->load->model('post_model', 'pm');
$proses = $this->pm->deleteComment($id);
redirect(base_url(roleURIUser() . 'comments'), 'refresh');
}
示例4: updateapply
function updateapply()
{
$logo = $this->input->post('logo');
$favicon = $this->input->post('favicon');
optionSet('site_logo', $logo, 0, "text");
optionSet('site_favicon', $favicon, 0, "text");
redirect(base_url(roleURIUser() . 'style/logo'), 'refresh');
}
示例5: delete
function delete()
{
$id = $this->input->get('id');
if ($id == "1") {
redirect(base_url(roleURIUser() . 'content/tags'), 'refresh');
} else {
deleteTerm($id);
redirect(base_url(roleURIUser() . 'content/tags'), 'refresh');
}
}
示例6: updateconfig
function updateconfig()
{
$common = $this->input->post('common');
optionSet('site_permalink', $common, 1, "text");
$catbase = $this->input->post('catbase');
optionSet('permalink_category', $catbase, 1, "text");
$tagbase = $this->input->post('tagbase');
optionSet('permalink_tags', $tagbase, 1, "text");
$format = '';
$module = '';
if ($common == "dayname") {
$format = "(:num)/(:num)/(:num)/(:any)";
$module = "\$1/\$2/\$3/\$4";
} elseif ($common == "monthname") {
$format = "(:num)/(:num)/(:any)";
$module = "\$1/\$2/\$3";
} elseif ($common == "title") {
$format = "(:any)";
$module = "\$1";
} else {
$format = "";
}
$s = array('route_name' => 'post');
$d = array();
if ($this->m_database->isBOF('route', $s) == TRUE) {
if (!empty($format)) {
$d = array('route_name' => 'post', 'route_key' => $format, 'route_val' => 'frontend/homepage/index/' . $module);
$this->m_database->addRow('route', $d);
} else {
$this->m_database->deleteRow('route', $s);
}
} else {
if (!empty($format)) {
$d = array('route_key' => $format, 'route_val' => 'frontend/homepage/index/' . $module);
$this->m_database->editRow('route', $d, $s);
} else {
$this->m_database->deleteRow('route', $s);
}
}
$this->catPermalink($catbase);
$this->tagPermalink($tagbase);
redirect(base_url(roleURIUser() . 'config/permalink'), 'refresh');
}
示例7: update
function update()
{
$this->m_security->filterPost('username', 'required');
$this->m_security->filterPost('nama', 'required');
$this->m_security->filterPost('email', 'required');
if ($this->m_security->startPost() == TRUE) {
$username = $this->input->post('username', TRUE);
$nama = $this->input->post('nama', TRUE);
$email = $this->input->post('email', TRUE);
$hp = $this->input->post('hp', TRUE);
$pwold = $this->input->post('pwold', TRUE);
$pwnew = $this->input->post('pwnew', TRUE);
$d = array();
$pesan = '';
if ($pwold != "" and $pwnew != "") {
$pwdb = userInfo('password');
if ($this->m_security->validationPassword($pwold, $pwdb) == TRUE) {
$d = array('nama' => $nama, 'email' => $email, 'hp' => $hp, 'password' => $this->m_security->createPassword($pwnew));
$pesan = "Update profil dan password berhasil";
} else {
redirect(base_url(roleURIUser() . 'profil'), 'refresh');
}
} else {
$d = array('nama' => $nama, 'email' => $email, 'hp' => $hp);
}
$sUser = array('user_id' => userInfo('user_id'));
$this->m_database->editRow('userlogin', $d, $sUser);
$img = $this->input->post('featureimage');
if (!empty($img)) {
$sT = array('user_id' => userInfo('user_id'), 'taxo_key' => 'avatar_user');
$dT = array('taxo_val' => $img);
if ($this->m_database->isBOF('usertaxonomy', $sT) == TRUE) {
$sT = array('user_id' => userInfo('user_id'), 'taxo_key' => 'avatar_user', 'taxo_val' => $img);
$this->m_database->addRow('usertaxonomy', $sT);
} else {
$this->m_database->editRow('usertaxonomy', $dT, $sT);
}
}
redirect(base_url(roleURIUser() . 'profil'), 'refresh');
} else {
redirect(base_url(roleURIUser() . 'profil'), 'refresh');
}
}
示例8: getCategory
?>
</td>
</tr>
<?php
$dChildView = getCategory($rParentView->term_id);
if (!empty($dChildView)) {
foreach ($dChildView as $rChildView) {
?>
<tr>
<td>
<a data-id="<?php
echo $rChildView->term_id;
?>
" href="javascript:;" class="btn btn-xs btn-info editbtn"><i class="fa fa-edit"></i></a>
<a href="<?php
echo base_url(roleURIUser());
?>
/content/category/delete?id=<?php
echo $rChildView->term_id;
?>
" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i></a>
</td>
<td>— <?php
echo $rChildView->name;
?>
</td>
<td><?php
echo getCategoryDescription($rChildView->term_id);
?>
</td>
<td><?php
示例9: langGet
echo langGet("menu", "menu_configuration");
?>
</span> <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li><a href="<?php
echo base_url(roleURIUser() . 'config/konfigurasi');
?>
"><i class="fa fa-circle-o"></i> <?php
echo langGet("menu", "menu_configuration_general");
?>
</a></li>
<li><a href="<?php
echo base_url(roleURIUser() . 'config/dbtools');
?>
"><i class="fa fa-circle-o"></i> <?php
echo langGet("menu", "menu_configuration_database");
?>
</a></li>
<li><a href="<?php
echo base_url(roleURIUser() . 'config/permalink');
?>
"><i class="fa fa-circle-o"></i> <?php
echo langGet("menu", "menu_configuration_permalink");
?>
</a></li>
<li><a href="<?php
echo base_url(roleURIUser() . 'config/searchengine');
?>
"><i class="fa fa-circle-o"></i> Search Engine</a></li>
</ul>
</li>
示例10: delete
function delete()
{
$id = $this->input->get('id');
$s = array('album_id' => $id);
if ($this->m_database->isBOF('album', $s) == TRUE) {
redirect(base_url(roleURIUser() . 'media/album'), 'refresh');
} else {
$this->load->model('media_model', 'mm');
if ($this->mm->deleteAlbum($id) == TRUE) {
redirect(base_url(roleURIUser() . 'media/album'), 'refresh');
} else {
redirect(base_url(roleURIUser() . 'media/album'), 'refresh');
}
}
}
示例11: base_url
if(state==true){
$("#laststate").val("1");
$("#option").show();
}else{
$("#laststate").val("0");
$("#option").hide();
}
});
$("#tipe").change(function(){
var id=$(this).val();
$.ajax({
type:'get',
dataType:'html',
url:'<?php
echo base_url(roleURIUser() . "/config/captcha/showconfig");
?>
',
data:'tipe='+id,
beforeSend:function(){
$("#config").hide();
$("#loader").show();
},
success:function(x){
$("#config").html(x);
$("#config").show();
$("#loader").hide();
},
});
});
示例12: base_url
echo base_url(roleURIUser() . 'content/events');
?>
"><i class="fa fa-circle-o"></i> Semua Event</a></li>
<li><a href="<?php
echo base_url(roleURIUser() . 'content/events/add');
?>
"><i class="fa fa-circle-o"></i> Tambah Event</a></li>
</ul>
</li>
<li class="treeview <?php
echo menuActive("content", "pages");
?>
">
<a href="#"><i class="fa fa-files-o"></i> <span>Halaman</span> <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li><a href="<?php
echo base_url(roleURIUser() . 'content/pages');
?>
"><i class="fa fa-circle-o"></i> <?php
echo langGet("menu", "menu_pages_all");
?>
</a></li>
<li><a href="<?php
echo base_url(roleURIUser() . 'content/pages/add');
?>
"><i class="fa fa-circle-o"></i> <?php
echo langGet("menu", "menu_pages_add");
?>
</a></li>
</ul>
</li>
示例13: foreach
$info = $this->session->flashdata('info');
if (!empty($info)) {
echo $info;
}
?>
<style>
#btnup{
margin-bottom: 30px;
}
</style>
<?php
foreach ($data as $row) {
}
$att = array('id' => 'formentri');
echo form_open(base_url(roleURIUser() . 'content/' . $uclass . '/editapply'), $att);
?>
<div class="col-sm-12" id="btnup">
<button type="submit" class="btn btn-default btn-flat pull-right" id="submitbtn">Publish</button>
</div>
<input type="hidden" name="postid" value="<?php
echo $row->post_id;
?>
"/>
<input type="hidden" name="tipepost" value="<?php
echo $tipe;
?>
"/>
<div class="row">
<div class="col-md-8">
<?php
示例14: deleteroleapply
function deleteroleapply()
{
$id = $this->input->get('id');
if ($id == "1") {
redirect(base_url(roleURIUser() . 'users/role'), 'refresh');
} else {
$s = array('role_id' => $id);
if ($this->m_database->deleteRow('userrole', $s) == TRUE) {
redirect(base_url(roleURIUser() . 'users/role'), 'refresh');
} else {
redirect(base_url(roleURIUser() . 'users/role'), 'refresh');
}
}
}
示例15: optionGet
<style>
.no-box{
display: list-item;
}
</style>
<?php
$permalink = optionGet('site_permalink');
$att = array('class' => 'form-horizontal');
echo form_open(base_url(roleURIUser() . 'config/permalink/updateconfig'), $att);
?>
<h3 class="heading-a">Common Setting</h3>
<div class="row">
<div class="col-md-3">
<div class="radio">
<label>
<input type="radio" name="common" value="default" <?php
echo checkState($permalink, 'default');
?>
>Default
</label>
</div>
</div>
<div class="col-md-9">
<p class="form-control-static"><?php
echo base_url();
?>
?p=123</p>
</div>
</div>
<div class="row">