Esempio n. 1
0
 function index()
 {
     $meta['judul'] = "Search Engine Optimization";
     $this->load->view('public/header', $meta);
     $this->load->view(roleURIUser() . 'config/seoview');
     $this->load->view('public/footer');
 }
Esempio n. 2
0
 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');
 }
Esempio n. 3
0
 function delete()
 {
     $id = $this->input->get('id');
     $this->load->model('post_model', 'pm');
     $proses = $this->pm->deleteComment($id);
     redirect(base_url(roleURIUser() . 'comments'), 'refresh');
 }
Esempio n. 4
0
 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');
 }
Esempio n. 5
0
 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');
     }
 }
Esempio n. 6
0
 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');
 }
Esempio n. 7
0
 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');
     }
 }
Esempio n. 8
0
        ?>
</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>&#8212; <?php 
                echo $rChildView->name;
                ?>
</td>
				<td><?php 
                echo getCategoryDescription($rChildView->term_id);
                ?>
</td>
				<td><?php 
Esempio n. 9
0
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>
Esempio n. 10
0
 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');
         }
     }
 }
Esempio n. 11
0
  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();
		},
	});
});
Esempio n. 12
0
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>
Esempio n. 13
0
$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 
Esempio n. 14
0
 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');
         }
     }
 }
Esempio n. 15
0
<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">
Esempio n. 16
0
<?php

$info = $this->session->flashdata('info');
if (!empty($info)) {
    echo $info;
}
?>
<div class="row">
<div class="col-md-4">
<?php 
echo form_open_multipart(base_url(roleURIUser() . 'style/templates/installtheme'));
?>
<div class="form-group">
	<label>Upload file</label>
	<input type="file" name="file" class="form-control"/>
</div>
<div class="form-group">	
	<button type="submit" class="btn btn-md btn-default">Upload & Install</button>
</div>
<?php 
echo form_close();
?>
</div>
</div>
Esempio n. 17
0
<?php

$att = array('class' => 'form-horizontal', 'id' => '');
echo form_open(base_url(roleURIUser() . 'users/addapply'), $att);
?>
    <div class="form-group">
    <label for="userName" class="col-sm-2 control-label"><?php 
echo langGet('user', 'form_name');
?>
</label>
    <div class="col-sm-4">
        <input type="text" class="form-control" id="nama" name="nama" placeholder="<?php 
echo langGet('user', 'form_name');
?>
" required="">
    </div>
    </div>
    <div class="form-group">
    <label for="username" class="col-sm-2 control-label"><?php 
echo langGet('user', 'form_username');
?>
</label>
    <div class="col-sm-4">
        <input type="text" class="form-control" id="username" name="username" placeholder="<?php 
echo langGet('user', 'form_username');
?>
" required="">
    </div>
    </div>
    <div class="form-group">
    <label for="password" class="col-sm-2 control-label"><?php 
Esempio n. 18
0
			success:function(x){
				$("#addslug").val(x);
			},
		});
	}else{
		$("#addslug").val("");
	}	
});

$("#forminput").submit(function(e){
	e.preventDefault();
	$.ajax({
		type:'post',
		dataType:'json',
		url:'<?php 
echo base_url(roleURIUser() . "content/tags/add");
?>
',
		data:$(this).serialize(),
		beforeSend:function(){
		},
		success:function(x){
			getContent();			
			$("#addname").val("");
			$("#addslug").val("");
			$("#adddescription").val("");
		},
	});
});

Esempio n. 19
0
              <img src="<?php 
echo userAvatar('64');
?>
" class="img-circle" alt="User Image" />
            </div>
            <div class="pull-left info">
              <p><?php 
echo userInfo('nama');
?>
</p>              
            </div>
          </div>
          
          <ul class="sidebar-menu">            
            <li><a href="<?php 
echo base_url(roleURIUser() . 'dashboard');
?>
"><i class="fa fa-dashboard"></i> <span><?php 
echo langGet("menu", "menu_dashboard");
?>
</span></a></li>
            <?php 
include MODPATH . "manage/views/nav/navcontainer.php";
?>
          </ul>
        </section>
      </aside>

      <div class="content-wrapper">
        <section class="content-header">
          <h1>
Esempio n. 20
0
<?php

$themeActive = optionGet('theme_front');
$optionFile = locationTheme('path') . 'frontend/' . $themeActive . '/includes/themeoption.php';
if (file_exists($optionFile)) {
    echo form_open(base_url(roleURIUser() . 'style/templates/updateconfig'));
    include $optionFile;
    echo form_close();
}
Esempio n. 21
0
 function mc_requestUpdateTheme()
 {
     return base_url(roleURIUser() . 'style/templates/updateconfig');
 }
Esempio n. 22
0
$this->load->view('style/menu/sidebartool');
?>
</div>
<div class="col-md-8" id="menuloader" style="display: none;overflow: auto;height: 400px;">
	
</div>
</div>
<script>
function getMenu(){
	var m=$("#menu").val();
	if(m!=''){
		$.ajax({
			type:'get',
			dataType:'html',
			url:'<?php 
echo base_url(roleURIUser() . "style/menus/getmenu");
?>
',
			data:'menu='+m,
			beforeSend:function(){			
			},
			success:function(x){			
				$("#menuloader").html(x);
				$("#menuloader").show("fade");
				$(".globalpos").val(m);
			},
		});
	}else{
		$(".globalpos").val("");
		return false;
	}
Esempio n. 23
0
		url:'<?php 
echo base_url();
?>
plugins/render/kcfinderurl',
		data:'img='+url+"&baseurl=true",
		success:function(x){
			$("#featureimage").val(x.newurl);
			$("#imageuser").attr("src",x.newurl);
		},
	});
}
</script>

<?php 
$att = array('class' => 'form-horizontal');
echo form_open(base_url(roleURIUser() . 'profil/update'), $att);
?>
<div class="box box-info">
<div class="box-body">
<div id="kcfinder_div"></div>
<div class="col-md-9">
<div class="form-group">
	<label class="col-sm-2 control-label">Username</label>
	<div class="col-md-3">
		<input type="text" name="username" class="form-control" readonly="" required="" value="<?php 
echo userInfo('username');
?>
"/>
	</div>
</div>
<div class="form-group">
Esempio n. 24
0
    };
    div.innerHTML = '<iframe name="kcfinder_iframe" src="<?php 
echo locationPlugin("url") . "kcfinder";
?>
/browse.php?type=images&dir=assets/uploads/" ' +
        'frameborder="0" width="100%" height="100%" marginwidth="0" marginheight="0" scrolling="no" />';
    div.style.display = 'block';
}
</script>
<?php 
echo incCSS(locationPlugin() . 'bootstrapeditor/bootstrap3-wysihtml5.min');
echo incJS(locationPlugin() . 'bootstrapeditor/bootstrap3-wysihtml5.all.min');
foreach ($data as $row) {
}
$att = array('class' => 'form-horizontal');
echo form_open(base_url(roleURIUser() . 'media/album/editapply'), $att);
?>
<input type="hidden" name="albumid" value="<?php 
echo $row->album_id;
?>
"/>
<div class="col-sm-12" id="btnup">
	<button type="submit" class="btn btn-default btn-flat pull-right" id="submitbtn">Simpan</button>
</div>
<div id="kcfinder_div"></div>
<div class="form-group">
	<label class="col-sm-2 control-label">Nama Album</label>
	<div class="col-md-6">
		<input type="text" name="nama" class="form-control" required="" value="<?php 
echo $row->album_title;
?>
Esempio n. 25
0
<style>
.tab-pane{
	padding-top: 20px;
	padding-bottom: 20px;
}
</style>
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
  <li class="active"><a href="#tab_1" data-toggle="tab">General</a></li>
  <li><a href="#tab_2" data-toggle="tab">Publikasi</a></li>
  <li><a href="#tab_3" data-toggle="tab">Keamanan</a></li>  
</ul>
<?php 
$att = array('class' => 'form-horizontal');
echo form_open(base_url(roleURIUser() . 'config/konfigurasi/updateconfig'), $att);
?>
<div class="tab-content">

<div class="tab-pane active" id="tab_1">

<div class="form-group">
	<label class="col-sm-2 control-label">Judul Website</label>
	<div class="col-md-7">
		<input type="text" name="sitetitle" class="form-control" value="<?php 
echo optionGet('site_title');
?>
"/>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">Deskripsi Website</label>
Esempio n. 26
0
<div class="overlay" style="display: none;"><li class="fa fa-spinner fa-spin fa-5x"></li></div>
</div>
</div>
</div>
<script>
$(document).ready(function(){

setTimeout(function(){getFeed();},10)

});

function getFeed(){
	$.ajax({
		type:'get',
		dataType:'html',
		url:"<?php 
echo base_url(roleURIUser() . 'dashboard/getfeed');
?>
",
		data:'v=1',
		beforeSend:function(){
			$(".overlay").show();
		},
		success:function(x){
			$("#rssfeed").html(x);
			$(".overlay").hide();
		},
	});
}
</script>
Esempio n. 27
0
<?php

$att = array('class' => 'form-horizontal');
echo form_open(base_url(roleURIUser()) . '/config/searchengine', $att);
?>
<div class="form-group">
<label class="col-sm-2 control-label">Google Validate</label>
<div class="col-md-6">
	<input type="text" name="google" value="<?php 
echo optionGet('google');
?>
" class="form-control"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Bing Validate</label>
<div class="col-md-6">
	<input type="text" name="bing" value="<?php 
echo optionGet('bing');
?>
" class="form-control"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Alexa Validate</label>
<div class="col-md-6">
	<input type="text" name="alexa" value="<?php 
echo optionGet('alexa');
?>
" class="form-control"/>
</div>
Esempio n. 28
0
 function commentPostAction($commentID)
 {
     $p = '';
     $rolename = roleURIUser();
     $status = dbField('postcomment', 'post_comment_id', $commentID, 'comment_status');
     if ($status == "publish") {
         $p .= '<a class="btn btn-xs btn-warning" href="' . base_url($rolename . 'comments/spamthis') . '?id=' . $commentID . '&token=' . tokenGenerate() . '">Spam</a> ';
     } elseif ($status == "spam") {
         $p .= '<a class="btn btn-xs btn-info" href="' . base_url($rolename . 'comments/approve') . '?id=' . $commentID . '&token=' . tokenGenerate() . '">Publish</a> ';
     } elseif ($status == "pending") {
         $p .= '<a class="btn btn-xs btn-info" href="' . base_url($rolename . 'comments/approve') . '?id=' . $commentID . '&token=' . tokenGenerate() . '">Publish</a> ';
     }
     $p .= '<a onclick="return confirm(\'Yakin ingin menghapus komentar ini?\');" class="btn btn-xs btn-danger" href="' . base_url($rolename . 'comments/delete') . '?id=' . $commentID . '&token=' . tokenGenerate() . '">Delete</a>&nbsp;';
     return $p;
 }
Esempio n. 29
0
 function editapply()
 {
     $this->m_security->filterPost('postid', 'required');
     $this->m_security->filterPost('title', 'required');
     $this->m_security->filterPost('konten', 'required');
     $this->m_security->filterPost('tipepost', 'required');
     $this->m_security->filterPost('statpublish', 'required');
     $this->m_security->filterPost('tanggal', 'required');
     if ($this->m_security->startPost() == TRUE) {
         $postid = $this->input->post('postid');
         $judul = $this->input->post('title');
         $konten = $this->input->post('konten');
         $tipe = $this->input->post('tipepost');
         $status = $this->input->post('statpublish');
         $tags = json_decode($this->input->post('tagsdata'), TRUE);
         $tanggal = $this->input->post('tanggal');
         $datetime = $tanggal . " " . date("H:i:s");
         $keyword = $this->input->post('addkeyword');
         $tampilan = $this->input->post('tampilan');
         $komen = valCheckbox($this->input->post('komen'));
         $proses = FALSE;
         $this->load->model('post_model', 'pm');
         if ($tipe == "post") {
             $kategori = $this->input->post('kat');
             $featureimage = $this->input->post('featureimage');
             $proses = $this->pm->editPost($postid, $judul, $datetime, $konten, $status, $kategori, $tags, $keyword, $komen, $tampilan, $featureimage);
         } elseif ($tipe == "page") {
             $proses = $this->pm->editPage($postid, $judul, $datetime, $konten, $status, $tags, $keyword, $komen, $tampilan);
         }
         if ($proses['status'] == TRUE) {
             $this->session->set_flashdata('info', '<div class="alert alert-info">Berhasil mengubah halaman</div>');
             redirect(base_url(roleURIUser() . 'content/pages/edit') . '?id=' . $postid, 'refresh');
         } else {
             redirect(base_url(roleURIUser() . 'content/pages/add'), 'refresh');
         }
     } else {
         redirect(base_url(roleURIUser() . 'content/pages/add'), 'refresh');
     }
 }
Esempio n. 30
0
		data:'v=1',
		beforeSend:function(){
		},
		success:function(x){
			$("#categoryside").html(x);
			getCombo();
		},
	});
}

function getCombo(){
	$.ajax({
		type:'post',
		dataType:'html',
		url:'<?php 
echo base_url(roleURIUser() . "content/category/getcombocat");
?>
',
		data:'once=1',
		success:function(x){
			$("#addparent").html(x);
		},
	});
}

</script>
<style type="text/css">
#kcfinder_div {
    display: none;
    position: absolute;
    width: 670px;