Skip to content
Browse files

tinggal 404

  • Loading branch information...
1 parent 5f2c4a0 commit f158defdf21a15414e9c359310aa4ae9ab05ebf7 @andyWie88 committed
View
29 app/Controller/AdsController.php 100644 → 100755
@@ -21,7 +21,7 @@ class AdsController extends AppController {
public function isAuthorized($user) {
parent::isAuthorized($user);
- if($this->request->params['action'] && $this->Auth->user('rule')!="admin"){
+ if($this->request->params['action'] == "confirm" && $this->Auth->user('rule')!="admin"){
return false;
}
return true;
@@ -158,6 +158,30 @@ public function showByUser(){
}
}
+ public function showActive(){
+ if($this->request->is("Ajax")){
+ $this->autoRender = false;
+ $this->autoLayout = false;
+ $id = $this->Auth->user('id');
+ $this->paginate = array("limit"=>5,'conditions'=>array('Ad.User_id'=>$id,'Ad.status'=>1));
+ $result = $this->paginate('Ad');
+ $this->set('ads',$result);
+ $this->render("showIklan");
+ }
+ }
+
+ public function showNonActive(){
+ if($this->request->is("Ajax")){
+ $this->autoRender = false;
+ $this->autoLayout = false;
+ $id = $this->Auth->user('id');
+ $this->paginate = array("limit"=>5,'conditions'=>array('Ad.User_id'=>$id,'Ad.status'=>0));
+ $result = $this->paginate('Ad');
+ $this->set('ads',$result);
+ $this->render("showIklan");
+ }
+ }
+
public function edit(){
if($this->request->isAjax()){
$this->autoLayout = False;
@@ -166,7 +190,8 @@ public function edit(){
$data = array(
"Ad.ads_title"=>"'".$this->request->data['Ad']['ads_title']."'",
"Ad.category_id"=>$this->request->data['Ad']['category_id'],
- "Ad.ads_body"=>"'".$this->request->data['Ad']['ads_body']."'"
+ "Ad.ads_body"=>"'".$this->request->data['Ad']['ads_body']."'",
+ "Ad.status"=>0
);
$filePath = WWW_ROOT.DS."files".DS.$this->request->data['Ad']['id'].".jpg";
if($this->request->data['Ad']['image']['tmp_name']!=""){
View
88 app/View/Ads/show_iklan.ctp
@@ -0,0 +1,88 @@
+<div id="content-inside">
+<?php foreach($ads as $ad):?>
+ <div class="Ads-box box-shadow">
+ <div class="Ads-image">
+ <?= $this->Html->image('../files/'.$ad['Ad']['image'],array('class'=>'Ads-image')) ?>
+ </div>
+ <div class="Ads-content">
+ <h2><?= $ad['Ad']['ads_title'] ?></h2>
+ <p><?= $ad['Ad']['ads_body'] ?></p>
+ </div>
+ <div class="Ads-contact">
+ <strong>C : <?= $ad['User']['first_name']." ".$ad['User']['last_name'] ?> <br/> +62<?= $ad['User']['handphone'] ?> </strong>
+ </div>
+ <?php if($loggedInUser['id'] == $ad['User']['id']): ?>
+ <div class="menu-ads">
+ <?= $this->Html->link('hapus',array("controller"=>"ads","action"=>"delete"),array('class'=>'delete-link','aid'=>hash("sha256",rand(1000000,1000000000000000000000000000000000)),'ad'=>$ad['Ad']['id'])); ?>
+ |
+ <?= $this->Html->link('edit',array("controller"=>"ads","action"=>"edit"),array('class'=>'edit-link','aid'=>hash("sha256",rand(1000000,1000000000000000000000000000000000)),'ad'=>$ad['Ad']['id'])); ?>
+ </div>
+ <?php endif; ?>
+ </div>
+<?php endforeach; ?>
+</div>
+<div id="page-nav" style="position: relative;display:none;">
+ <?php echo $this->paginator->numbers(); ?>
+</div>
+<?= $this->Html->script('jquery.ads-add'); ?>
+<?= $this->Html->script('jquery.edit.delete'); ?>
+<script>
+
+ $(document).ready(function(){$(".active-menu-item").removeClass("active-menu-item");$("#iklan").addClass("active-menu-item")});
+
+ $('#content-inside').masonry({
+ itemSelector: '.Ads-box'
+ });
+
+ $("#content-inside").infinitescroll({
+ navSelector : '#page-nav', // selector for the paged navigation
+ nextSelector : '#page-nav a', // selector for the NEXT link (to page 2)
+ itemSelector : '.Ads-box', // selector for all items you'll retrieve
+ loading: {
+ finishedMsg: 'No more pages to load.',
+ img: 'http://i.imgur.com/6RMhx.gif'
+ }
+ },
+ function( newElements ) {
+ $elem = $(newElements);
+ $elem.find('.delete-link').click(function(e){
+ e.preventDefault();
+ if(window.confirm("Apakah anda yakin ingin menghapus iklan ini?")){
+ $(this).parent().parent().addClass('delete-mark');
+ $.post($(this).attr("href"),{id:$(this).attr("ad")},handleDelete,"JSON");
+ }
+ });
+
+ function handleDelete(response){
+ if(response.status == 1){
+ $(".delete-mark").fadeOut("fast").remove();
+ $('#content-inside').masonry('reload');
+ }
+ else{
+ alert("Penghapusan Iklan gagal. Silahkan refresh halaman ini");
+ }
+ }
+ $elem.find(".edit-link").click(function(e){
+ e.preventDefault();
+ $(this).parent().parent().addClass('edit-mark');
+ $.post($(this).attr('href'),{id:$(this).attr('ad')},handleEdit,"HTML");
+ });
+
+ function handleEdit(response){
+ $("#container").after($(response));
+ }
+ $("#content-inside").masonry('appended',$elem,true);
+
+ }
+ );
+</script>
+<style>
+ #infscr-loading{
+ position:absolute;
+ bottom:10px;
+ left:50%;
+ margin-left:-100px;
+ width:200px;
+ text-align: center;
+ }
+</style>
View
11 app/View/Layouts/profil.ctp
@@ -105,7 +105,12 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework
<div id="content">
<div id="left-nav">
<ul id="nav-main">
- <li><a href="javascript:void(0)" class="nav-menu-item" hash="iklan" id="iklan" link="<?= Router::url(array("controller"=>"ads","action"=>"showByUser")) ?>">Iklan Saya</a></li>
+ <li><a href="javascript:void(0)" class="nav-menu-item" hash="iklan" id="iklan" link="<?= Router::url(array("controller"=>"ads","action"=>"showByUser")) ?>">Iklan Saya</a>
+ <ul>
+ <li><a href="javascript:void(0)" class="nav-menu-sub-item" hash="iklan-aktif" link="<?= Router::url(array("controller"=>"ads","action"=>"showActive")) ?>">Iklan Aktif</a></li>
+ <li><a href="javascript:void(0)" class="nav-menu-sub-item" hash="iklan-non-aktif" link="<?= Router::url(array("controller"=>"ads","action"=>"showNonActive")) ?>">Iklan Non Aktif</a></li>
+ </ul>
+ </li>
<li>
<a href="javascript:void(0)" class="nav-menu-item active-menu-item" id="profil-button">Profil</a>
<ul>
@@ -127,10 +132,6 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework
<li>Copyright &copy; 2013 Futura Creative Inc.</li>
<li>Contact Us</li>
</ul>
- <ul class="icons">
- <li><?= $this->Html->image('fb-icon.png') ?></li>
- <li><?= $this->Html->image('tw-icon.png') ?></li>
- </ul>
</div>
</div>
<?= $this->Html->script('jquery.user.menu'); ?>
View
2 app/tmp/cache/models/myapp_cake_model_default__addins_ads
@@ -1,2 +1,2 @@
-1362736999
+1362993244
a:11:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:10;s:3:"key";s:7:"primary";}s:9:"ads_title";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:40;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:8:"ads_body";a:6:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:11:"category_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:4;}s:7:"user_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:10;}s:7:"city_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:4;}s:8:"state_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:4;}s:10:"issue_date";a:4:{s:4:"type";s:4:"date";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:10:"issue_time";a:4:{s:4:"type";s:4:"time";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:5:"image";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:100;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:6:"status";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";s:1:"0";s:6:"length";i:1;}}
View
2 app/tmp/cache/models/myapp_cake_model_default__addins_categories
@@ -1,2 +1,2 @@
-1362736999
+1362993244
a:2:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:4;s:3:"key";s:7:"primary";}s:5:"cname";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:40;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}}
View
2 app/tmp/cache/models/myapp_cake_model_default__addins_cities
@@ -1,2 +1,2 @@
-1362736999
+1362993244
a:3:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:4;s:3:"key";s:7:"primary";}s:5:"cname";a:6:{s:4:"type";s:6:"string";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:100;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:5:"state";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:3;}}
View
2 app/tmp/cache/models/myapp_cake_model_default__addins_list
@@ -1,2 +1,2 @@
-1362736999
+1362993244
a:5:{i:0;s:3:"ads";i:1;s:10:"categories";i:2;s:6:"cities";i:3;s:6:"states";i:4;s:5:"users";}
View
2 app/tmp/cache/models/myapp_cake_model_default__addins_states
@@ -1,2 +1,2 @@
-1362736999
+1362993244
a:2:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:3;s:3:"key";s:7:"primary";}s:5:"sname";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:30;s:7:"collate";s:15:"utf8_general_ci";s:7:"charset";s:4:"utf8";}}
View
2 app/tmp/cache/models/myapp_cake_model_default__addins_users
@@ -1,2 +1,2 @@
-1362736999
+1362993244
a:15:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:10;s:3:"key";s:7:"primary";}s:10:"first_name";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:30;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:9:"last_name";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:30;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:8:"username";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:40;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:8:"password";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:40;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:13:"jenis_kelamin";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:1;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:9:"tgl_lahir";a:4:{s:4:"type";s:4:"date";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:6:"alamat";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:50;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:5:"state";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:4;}s:4:"city";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:4;}s:9:"handphone";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:12;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:17:"security_question";a:6:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:15:"security_answer";a:6:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:6:"status";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";s:1:"1";s:6:"length";i:1;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}s:4:"rule";a:6:{s:4:"type";s:23:"enum('regular','admin')";s:4:"null";b:0;s:7:"default";s:7:"regular";s:6:"length";i:7;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}}
View
2 app/tmp/cache/persistent/myapp_cake_core_cake_dev_en-us
@@ -1,2 +1,2 @@
-1362736999
+1362993244
a:1:{s:11:"LC_MESSAGES";a:0:{}}
View
2 app/tmp/cache/persistent/myapp_cake_core_cake_en-us
@@ -1,2 +1,2 @@
-1362736638
+1362993244
a:1:{s:11:"LC_MESSAGES";a:0:{}}
View
2 app/tmp/cache/persistent/myapp_cake_core_default_en-us
@@ -1,2 +1,2 @@
-1362736999
+1362993244
a:1:{s:11:"LC_MESSAGES";a:0:{}}
View
4 app/tmp/cache/persistent/myapp_cake_core_file_map
@@ -1,2 +1,2 @@
-1362737001
-a:64:{s:9:"Configure";s:43:"/var/www/Addins/lib/Cake/Core/Configure.php";s:4:"Hash";s:41:"/var/www/Addins/lib/Cake/Utility/Hash.php";s:5:"Cache";s:40:"/var/www/Addins/lib/Cake/Cache/Cache.php";s:10:"FileEngine";s:52:"/var/www/Addins/lib/Cake/Cache/Engine/FileEngine.php";s:11:"CacheEngine";s:46:"/var/www/Addins/lib/Cake/Cache/CacheEngine.php";s:9:"Inflector";s:46:"/var/www/Addins/lib/Cake/Utility/Inflector.php";s:12:"ErrorHandler";s:47:"/var/www/Addins/lib/Cake/Error/ErrorHandler.php";s:7:"CakeLog";s:40:"/var/www/Addins/lib/Cake/Log/CakeLog.php";s:19:"LogEngineCollection";s:52:"/var/www/Addins/lib/Cake/Log/LogEngineCollection.php";s:16:"ObjectCollection";s:53:"/var/www/Addins/lib/Cake/Utility/ObjectCollection.php";s:7:"FileLog";s:47:"/var/www/Addins/lib/Cake/Log/Engine/FileLog.php";s:7:"BaseLog";s:47:"/var/www/Addins/lib/Cake/Log/Engine/BaseLog.php";s:16:"CakeLogInterface";s:49:"/var/www/Addins/lib/Cake/Log/CakeLogInterface.php";s:8:"Debugger";s:45:"/var/www/Addins/lib/Cake/Utility/Debugger.php";s:6:"String";s:43:"/var/www/Addins/lib/Cake/Utility/String.php";s:10:"Dispatcher";s:47:"/var/www/Addins/lib/Cake/Routing/Dispatcher.php";s:17:"CakeEventListener";s:52:"/var/www/Addins/lib/Cake/Event/CakeEventListener.php";s:11:"CakeRequest";s:48:"/var/www/Addins/lib/Cake/Network/CakeRequest.php";s:12:"CakeResponse";s:49:"/var/www/Addins/lib/Cake/Network/CakeResponse.php";s:9:"CakeEvent";s:44:"/var/www/Addins/lib/Cake/Event/CakeEvent.php";s:16:"CakeEventManager";s:51:"/var/www/Addins/lib/Cake/Event/CakeEventManager.php";s:15:"AssetDispatcher";s:59:"/var/www/Addins/lib/Cake/Routing/Filter/AssetDispatcher.php";s:16:"DispatcherFilter";s:53:"/var/www/Addins/lib/Cake/Routing/DispatcherFilter.php";s:15:"CacheDispatcher";s:59:"/var/www/Addins/lib/Cake/Routing/Filter/CacheDispatcher.php";s:6:"Router";s:43:"/var/www/Addins/lib/Cake/Routing/Router.php";s:9:"CakeRoute";s:52:"/var/www/Addins/lib/Cake/Routing/Route/CakeRoute.php";s:10:"CakePlugin";s:44:"/var/www/Addins/lib/Cake/Core/CakePlugin.php";s:15:"UsersController";s:50:"/var/www/Addins/app/Controller/UsersController.php";s:13:"AppController";s:48:"/var/www/Addins/app/Controller/AppController.php";s:10:"Controller";s:50:"/var/www/Addins/lib/Cake/Controller/Controller.php";s:6:"Object";s:40:"/var/www/Addins/lib/Cake/Core/Object.php";s:19:"ComponentCollection";s:59:"/var/www/Addins/lib/Cake/Controller/ComponentCollection.php";s:16:"SessionComponent";s:66:"/var/www/Addins/lib/Cake/Controller/Component/SessionComponent.php";s:9:"Component";s:49:"/var/www/Addins/lib/Cake/Controller/Component.php";s:13:"AuthComponent";s:63:"/var/www/Addins/lib/Cake/Controller/Component/AuthComponent.php";s:14:"EmailComponent";s:64:"/var/www/Addins/lib/Cake/Controller/Component/EmailComponent.php";s:13:"ClassRegistry";s:50:"/var/www/Addins/lib/Cake/Utility/ClassRegistry.php";s:17:"ConnectionManager";s:52:"/var/www/Addins/lib/Cake/Model/ConnectionManager.php";s:8:"Category";s:38:"/var/www/Addins/app/Model/Category.php";s:8:"AppModel";s:38:"/var/www/Addins/app/Model/AppModel.php";s:5:"Model";s:40:"/var/www/Addins/lib/Cake/Model/Model.php";s:18:"BehaviorCollection";s:53:"/var/www/Addins/lib/Cake/Model/BehaviorCollection.php";s:5:"Mysql";s:60:"/var/www/Addins/lib/Cake/Model/Datasource/Database/Mysql.php";s:9:"DboSource";s:55:"/var/www/Addins/lib/Cake/Model/Datasource/DboSource.php";s:10:"DataSource";s:56:"/var/www/Addins/lib/Cake/Model/Datasource/DataSource.php";s:2:"Ad";s:32:"/var/www/Addins/app/Model/Ad.php";s:5:"State";s:35:"/var/www/Addins/app/Model/State.php";s:4:"City";s:34:"/var/www/Addins/app/Model/City.php";s:4:"User";s:34:"/var/www/Addins/app/Model/User.php";s:11:"CakeSession";s:57:"/var/www/Addins/lib/Cake/Model/Datasource/CakeSession.php";s:4:"I18n";s:38:"/var/www/Addins/lib/Cake/I18n/I18n.php";s:4:"L10n";s:38:"/var/www/Addins/lib/Cake/I18n/L10n.php";s:17:"ExceptionRenderer";s:52:"/var/www/Addins/lib/Cake/Error/ExceptionRenderer.php";s:19:"CakeErrorController";s:59:"/var/www/Addins/lib/Cake/Controller/CakeErrorController.php";s:4:"View";s:38:"/var/www/Addins/lib/Cake/View/View.php";s:16:"HelperCollection";s:50:"/var/www/Addins/lib/Cake/View/HelperCollection.php";s:9:"ViewBlock";s:43:"/var/www/Addins/lib/Cake/View/ViewBlock.php";s:10:"HtmlHelper";s:51:"/var/www/Addins/lib/Cake/View/Helper/HtmlHelper.php";s:9:"AppHelper";s:45:"/var/www/Addins/app/View/Helper/AppHelper.php";s:6:"Helper";s:40:"/var/www/Addins/lib/Cake/View/Helper.php";s:10:"FormHelper";s:51:"/var/www/Addins/lib/Cake/View/Helper/FormHelper.php";s:14:"ModelValidator";s:49:"/var/www/Addins/lib/Cake/Model/ModelValidator.php";s:17:"CakeValidationSet";s:62:"/var/www/Addins/lib/Cake/Model/Validator/CakeValidationSet.php";s:18:"CakeValidationRule";s:63:"/var/www/Addins/lib/Cake/Model/Validator/CakeValidationRule.php";}
+1362993254
+a:70:{s:9:"Configure";s:43:"/var/www/Addins/lib/Cake/Core/Configure.php";s:4:"Hash";s:41:"/var/www/Addins/lib/Cake/Utility/Hash.php";s:5:"Cache";s:40:"/var/www/Addins/lib/Cake/Cache/Cache.php";s:10:"FileEngine";s:52:"/var/www/Addins/lib/Cake/Cache/Engine/FileEngine.php";s:11:"CacheEngine";s:46:"/var/www/Addins/lib/Cake/Cache/CacheEngine.php";s:9:"Inflector";s:46:"/var/www/Addins/lib/Cake/Utility/Inflector.php";s:12:"ErrorHandler";s:47:"/var/www/Addins/lib/Cake/Error/ErrorHandler.php";s:7:"CakeLog";s:40:"/var/www/Addins/lib/Cake/Log/CakeLog.php";s:19:"LogEngineCollection";s:52:"/var/www/Addins/lib/Cake/Log/LogEngineCollection.php";s:16:"ObjectCollection";s:53:"/var/www/Addins/lib/Cake/Utility/ObjectCollection.php";s:7:"FileLog";s:47:"/var/www/Addins/lib/Cake/Log/Engine/FileLog.php";s:7:"BaseLog";s:47:"/var/www/Addins/lib/Cake/Log/Engine/BaseLog.php";s:16:"CakeLogInterface";s:49:"/var/www/Addins/lib/Cake/Log/CakeLogInterface.php";s:8:"Debugger";s:45:"/var/www/Addins/lib/Cake/Utility/Debugger.php";s:6:"String";s:43:"/var/www/Addins/lib/Cake/Utility/String.php";s:10:"Dispatcher";s:47:"/var/www/Addins/lib/Cake/Routing/Dispatcher.php";s:17:"CakeEventListener";s:52:"/var/www/Addins/lib/Cake/Event/CakeEventListener.php";s:11:"CakeRequest";s:48:"/var/www/Addins/lib/Cake/Network/CakeRequest.php";s:12:"CakeResponse";s:49:"/var/www/Addins/lib/Cake/Network/CakeResponse.php";s:9:"CakeEvent";s:44:"/var/www/Addins/lib/Cake/Event/CakeEvent.php";s:16:"CakeEventManager";s:51:"/var/www/Addins/lib/Cake/Event/CakeEventManager.php";s:15:"AssetDispatcher";s:59:"/var/www/Addins/lib/Cake/Routing/Filter/AssetDispatcher.php";s:16:"DispatcherFilter";s:53:"/var/www/Addins/lib/Cake/Routing/DispatcherFilter.php";s:15:"CacheDispatcher";s:59:"/var/www/Addins/lib/Cake/Routing/Filter/CacheDispatcher.php";s:6:"Router";s:43:"/var/www/Addins/lib/Cake/Routing/Router.php";s:9:"CakeRoute";s:52:"/var/www/Addins/lib/Cake/Routing/Route/CakeRoute.php";s:10:"CakePlugin";s:44:"/var/www/Addins/lib/Cake/Core/CakePlugin.php";s:13:"AdsController";s:48:"/var/www/Addins/app/Controller/AdsController.php";s:13:"AppController";s:48:"/var/www/Addins/app/Controller/AppController.php";s:10:"Controller";s:50:"/var/www/Addins/lib/Cake/Controller/Controller.php";s:6:"Object";s:40:"/var/www/Addins/lib/Cake/Core/Object.php";s:19:"ComponentCollection";s:59:"/var/www/Addins/lib/Cake/Controller/ComponentCollection.php";s:16:"SessionComponent";s:66:"/var/www/Addins/lib/Cake/Controller/Component/SessionComponent.php";s:9:"Component";s:49:"/var/www/Addins/lib/Cake/Controller/Component.php";s:13:"AuthComponent";s:63:"/var/www/Addins/lib/Cake/Controller/Component/AuthComponent.php";s:13:"ClassRegistry";s:50:"/var/www/Addins/lib/Cake/Utility/ClassRegistry.php";s:17:"ConnectionManager";s:52:"/var/www/Addins/lib/Cake/Model/ConnectionManager.php";s:8:"Category";s:38:"/var/www/Addins/app/Model/Category.php";s:8:"AppModel";s:38:"/var/www/Addins/app/Model/AppModel.php";s:5:"Model";s:40:"/var/www/Addins/lib/Cake/Model/Model.php";s:18:"BehaviorCollection";s:53:"/var/www/Addins/lib/Cake/Model/BehaviorCollection.php";s:5:"Mysql";s:60:"/var/www/Addins/lib/Cake/Model/Datasource/Database/Mysql.php";s:9:"DboSource";s:55:"/var/www/Addins/lib/Cake/Model/Datasource/DboSource.php";s:10:"DataSource";s:56:"/var/www/Addins/lib/Cake/Model/Datasource/DataSource.php";s:2:"Ad";s:32:"/var/www/Addins/app/Model/Ad.php";s:5:"State";s:35:"/var/www/Addins/app/Model/State.php";s:4:"City";s:34:"/var/www/Addins/app/Model/City.php";s:4:"User";s:34:"/var/www/Addins/app/Model/User.php";s:11:"CakeSession";s:57:"/var/www/Addins/lib/Cake/Model/Datasource/CakeSession.php";s:4:"I18n";s:38:"/var/www/Addins/lib/Cake/I18n/I18n.php";s:4:"L10n";s:38:"/var/www/Addins/lib/Cake/I18n/L10n.php";s:18:"PaginatorComponent";s:68:"/var/www/Addins/lib/Cake/Controller/Component/PaginatorComponent.php";s:4:"View";s:38:"/var/www/Addins/lib/Cake/View/View.php";s:16:"HelperCollection";s:50:"/var/www/Addins/lib/Cake/View/HelperCollection.php";s:9:"ViewBlock";s:43:"/var/www/Addins/lib/Cake/View/ViewBlock.php";s:10:"HtmlHelper";s:51:"/var/www/Addins/lib/Cake/View/Helper/HtmlHelper.php";s:9:"AppHelper";s:45:"/var/www/Addins/app/View/Helper/AppHelper.php";s:6:"Helper";s:40:"/var/www/Addins/lib/Cake/View/Helper.php";s:13:"SessionHelper";s:54:"/var/www/Addins/lib/Cake/View/Helper/SessionHelper.php";s:15:"PaginatorHelper";s:56:"/var/www/Addins/lib/Cake/View/Helper/PaginatorHelper.php";s:8:"JsHelper";s:49:"/var/www/Addins/lib/Cake/View/Helper/JsHelper.php";s:10:"FormHelper";s:51:"/var/www/Addins/lib/Cake/View/Helper/FormHelper.php";s:14:"ModelValidator";s:49:"/var/www/Addins/lib/Cake/Model/ModelValidator.php";s:17:"CakeValidationSet";s:62:"/var/www/Addins/lib/Cake/Model/Validator/CakeValidationSet.php";s:18:"CakeValidationRule";s:63:"/var/www/Addins/lib/Cake/Model/Validator/CakeValidationRule.php";s:15:"UsersController";s:50:"/var/www/Addins/app/Controller/UsersController.php";s:14:"EmailComponent";s:64:"/var/www/Addins/lib/Cake/Controller/Component/EmailComponent.php";s:19:"ControllerAuthorize";s:74:"/var/www/Addins/lib/Cake/Controller/Component/Auth/ControllerAuthorize.php";s:13:"BaseAuthorize";s:68:"/var/www/Addins/lib/Cake/Controller/Component/Auth/BaseAuthorize.php";s:16:"StatesController";s:51:"/var/www/Addins/app/Controller/StatesController.php";}
View
4 app/tmp/cache/persistent/myapp_cake_core_method_cache
@@ -1,2 +1,2 @@
-1362736999
-a:2:{s:4:"name";a:44:{s:32:"eb70110d19c376647f122ba6a9a6296b";s:15:"`Category`.`id`";s:32:"f658287ff27e1a2e891a6249cfd0122d";s:18:"`Category`.`cname`";s:32:"cc552b21b120235ea9917faf7be982c4";s:9:"`Ad`.`id`";s:32:"af339843df59e0cb3503f0b47d75592b";s:16:"`Ad`.`ads_title`";s:32:"074af4818993ebc5886213f43d06c99c";s:15:"`Ad`.`ads_body`";s:32:"0c802b0dbb31bbad6b3e93d0a72ec487";s:18:"`Ad`.`category_id`";s:32:"bb714c2473c56a92a9ec88b44cf22701";s:14:"`Ad`.`user_id`";s:32:"4aa22290cd48cd59ea0d81d83642cb9f";s:14:"`Ad`.`city_id`";s:32:"1edd68810706479cf27708f242679db4";s:15:"`Ad`.`state_id`";s:32:"6dcc480d811a42a336f1c1dccb5f1446";s:17:"`Ad`.`issue_date`";s:32:"6df51a3442928c9cd4ce1c3eb422702b";s:17:"`Ad`.`issue_time`";s:32:"13acc48ef1c50eb9025b7f8caadf1e23";s:12:"`Ad`.`image`";s:32:"f8505c5e484b835600a9062007687f12";s:13:"`Ad`.`status`";s:32:"24ca8045b3634ee3f146e188204d6aa7";s:8:"`Addins`";s:32:"a2c424ed9810bde62ffe8680a64a112b";s:5:"`ads`";s:32:"c3fc0249547957de0b5fccf90ce24cc5";s:4:"`Ad`";s:32:"469f0eca4934529a8ebe3db2dddf24e6";s:12:"`categories`";s:32:"895ec6f91cf00656056af226532e8e27";s:10:"`Category`";s:32:"a8dcdd107176e0bff6b2c0cf3a9ee017";s:12:"`State`.`id`";s:32:"edfe10b4e934001ccebfc8ff7c4fbc1e";s:15:"`State`.`sname`";s:32:"e87e3f6bf6da6e7a7603c45c226873d9";s:11:"`city`.`id`";s:32:"0cdfd9cffc57889f6654b1daeb160e79";s:14:"`city`.`cname`";s:32:"ad1fd3c698e6fad291f569f23276ceee";s:14:"`city`.`state`";s:32:"cb8e9149a3ea2470e6c83205a54301c2";s:8:"`cities`";s:32:"8875b7176dae20f4d36795197b12bfdb";s:6:"`city`";s:32:"84aed5ca7734df237971a8964bd0217a";s:11:"`User`.`id`";s:32:"f31b09fae7200dfc89ccc15231d19899";s:19:"`User`.`first_name`";s:32:"1f06cca51d67259108baa9a6977b3df6";s:18:"`User`.`last_name`";s:32:"441e6eaad1b5f34da125c63e3ecd7702";s:17:"`User`.`username`";s:32:"46bea0d8cb0ffa1c5c7f63ad1e39035b";s:17:"`User`.`password`";s:32:"26dc1b09b65762ed89eb69f61536ce1e";s:22:"`User`.`jenis_kelamin`";s:32:"be7a1da3dcd8ec616f213f01d24854e0";s:18:"`User`.`tgl_lahir`";s:32:"88b5b7848abcb6e9d5990a3860c92a83";s:15:"`User`.`alamat`";s:32:"c3500963b805f6d38a3f1127ff2b79f8";s:14:"`User`.`state`";s:32:"920a58a8c9ecb399dff4f23749d1735d";s:13:"`User`.`city`";s:32:"887cd713fae18e7cf393c54de93e5404";s:18:"`User`.`handphone`";s:32:"1d5d7b39e0ffcdb668a858bee280ebe2";s:26:"`User`.`security_question`";s:32:"b906cc5e5c81eecf1d1a2eb19433eec6";s:24:"`User`.`security_answer`";s:32:"c3166f52a27d4d42189834333694a26c";s:15:"`User`.`status`";s:32:"a072a99650a682d652dcd4450765289d";s:13:"`User`.`rule`";s:32:"f94a437fb7858e092079378f93ef2c71";s:7:"`users`";s:32:"eb9b37fa6fe3e5c49f921ddcd721b306";s:6:"`User`";s:32:"f898dee5e0ba525ecbaffaa21fd45ca6";s:8:"`states`";s:32:"1516ecedeaf5e9ac02379dd2c54554a3";s:7:"`State`";}s:6:"fields";a:11:{s:32:"6e36b031383131ff745f9393007215ac";a:2:{i:0;s:15:"`Category`.`id`";i:1;s:18:"`Category`.`cname`";}s:32:"bb4681ba7fdc0468c2a4d01937b47910";a:1:{i:0;s:15:"`Category`.`id`";}s:32:"705d4ebd99197ff68cbfcd10b4eccab7";a:11:{i:0;s:9:"`Ad`.`id`";i:1;s:16:"`Ad`.`ads_title`";i:2;s:15:"`Ad`.`ads_body`";i:3;s:18:"`Ad`.`category_id`";i:4;s:14:"`Ad`.`user_id`";i:5;s:14:"`Ad`.`city_id`";i:6;s:15:"`Ad`.`state_id`";i:7;s:17:"`Ad`.`issue_date`";i:8;s:17:"`Ad`.`issue_time`";i:9;s:12:"`Ad`.`image`";i:10;s:13:"`Ad`.`status`";}s:32:"d63a0bfb40f45cabb81828f901128c78";a:1:{i:0;s:18:"`Ad`.`category_id`";}s:32:"088bc8730b81d3fdc61eba3b20009485";a:2:{i:0;s:12:"`State`.`id`";i:1;s:15:"`State`.`sname`";}s:32:"3e8be79dd5e776051426982c78a773ba";a:1:{i:0;s:12:"`State`.`id`";}s:32:"3fb45186ddfa481b9eb5a8f3a3c6bdd9";a:3:{i:0;s:11:"`city`.`id`";i:1;s:14:"`city`.`cname`";i:2;s:14:"`city`.`state`";}s:32:"d85687292eed9d268d3b71da098e46d5";a:1:{i:0;s:14:"`city`.`state`";}s:32:"bb4606589a5e1b0548a0f21126eeb909";a:15:{i:0;s:11:"`User`.`id`";i:1;s:19:"`User`.`first_name`";i:2;s:18:"`User`.`last_name`";i:3;s:17:"`User`.`username`";i:4;s:17:"`User`.`password`";i:5;s:22:"`User`.`jenis_kelamin`";i:6;s:18:"`User`.`tgl_lahir`";i:7;s:15:"`User`.`alamat`";i:8;s:14:"`User`.`state`";i:9;s:13:"`User`.`city`";i:10;s:18:"`User`.`handphone`";i:11;s:26:"`User`.`security_question`";i:12;s:24:"`User`.`security_answer`";i:13;s:15:"`User`.`status`";i:14;s:13:"`User`.`rule`";}s:32:"70d1b21fe59c8aba7df3652586afd110";a:1:{i:0;s:14:"`User`.`state`";}s:32:"b10ac7348899262afb2f7f409d7394a6";a:1:{i:0;s:15:"`Ad`.`state_id`";}}}
+1362993254
+a:2:{s:4:"name";a:50:{s:32:"eb70110d19c376647f122ba6a9a6296b";s:15:"`Category`.`id`";s:32:"f658287ff27e1a2e891a6249cfd0122d";s:18:"`Category`.`cname`";s:32:"cc552b21b120235ea9917faf7be982c4";s:9:"`Ad`.`id`";s:32:"af339843df59e0cb3503f0b47d75592b";s:16:"`Ad`.`ads_title`";s:32:"074af4818993ebc5886213f43d06c99c";s:15:"`Ad`.`ads_body`";s:32:"0c802b0dbb31bbad6b3e93d0a72ec487";s:18:"`Ad`.`category_id`";s:32:"bb714c2473c56a92a9ec88b44cf22701";s:14:"`Ad`.`user_id`";s:32:"4aa22290cd48cd59ea0d81d83642cb9f";s:14:"`Ad`.`city_id`";s:32:"1edd68810706479cf27708f242679db4";s:15:"`Ad`.`state_id`";s:32:"6dcc480d811a42a336f1c1dccb5f1446";s:17:"`Ad`.`issue_date`";s:32:"6df51a3442928c9cd4ce1c3eb422702b";s:17:"`Ad`.`issue_time`";s:32:"13acc48ef1c50eb9025b7f8caadf1e23";s:12:"`Ad`.`image`";s:32:"f8505c5e484b835600a9062007687f12";s:13:"`Ad`.`status`";s:32:"24ca8045b3634ee3f146e188204d6aa7";s:8:"`Addins`";s:32:"a2c424ed9810bde62ffe8680a64a112b";s:5:"`ads`";s:32:"c3fc0249547957de0b5fccf90ce24cc5";s:4:"`Ad`";s:32:"469f0eca4934529a8ebe3db2dddf24e6";s:12:"`categories`";s:32:"895ec6f91cf00656056af226532e8e27";s:10:"`Category`";s:32:"a8dcdd107176e0bff6b2c0cf3a9ee017";s:12:"`State`.`id`";s:32:"edfe10b4e934001ccebfc8ff7c4fbc1e";s:15:"`State`.`sname`";s:32:"e87e3f6bf6da6e7a7603c45c226873d9";s:11:"`city`.`id`";s:32:"0cdfd9cffc57889f6654b1daeb160e79";s:14:"`city`.`cname`";s:32:"ad1fd3c698e6fad291f569f23276ceee";s:14:"`city`.`state`";s:32:"cb8e9149a3ea2470e6c83205a54301c2";s:8:"`cities`";s:32:"8875b7176dae20f4d36795197b12bfdb";s:6:"`city`";s:32:"84aed5ca7734df237971a8964bd0217a";s:11:"`User`.`id`";s:32:"f31b09fae7200dfc89ccc15231d19899";s:19:"`User`.`first_name`";s:32:"1f06cca51d67259108baa9a6977b3df6";s:18:"`User`.`last_name`";s:32:"441e6eaad1b5f34da125c63e3ecd7702";s:17:"`User`.`username`";s:32:"46bea0d8cb0ffa1c5c7f63ad1e39035b";s:17:"`User`.`password`";s:32:"26dc1b09b65762ed89eb69f61536ce1e";s:22:"`User`.`jenis_kelamin`";s:32:"be7a1da3dcd8ec616f213f01d24854e0";s:18:"`User`.`tgl_lahir`";s:32:"88b5b7848abcb6e9d5990a3860c92a83";s:15:"`User`.`alamat`";s:32:"c3500963b805f6d38a3f1127ff2b79f8";s:14:"`User`.`state`";s:32:"920a58a8c9ecb399dff4f23749d1735d";s:13:"`User`.`city`";s:32:"887cd713fae18e7cf393c54de93e5404";s:18:"`User`.`handphone`";s:32:"1d5d7b39e0ffcdb668a858bee280ebe2";s:26:"`User`.`security_question`";s:32:"b906cc5e5c81eecf1d1a2eb19433eec6";s:24:"`User`.`security_answer`";s:32:"c3166f52a27d4d42189834333694a26c";s:15:"`User`.`status`";s:32:"a072a99650a682d652dcd4450765289d";s:13:"`User`.`rule`";s:32:"f94a437fb7858e092079378f93ef2c71";s:7:"`users`";s:32:"eb9b37fa6fe3e5c49f921ddcd721b306";s:6:"`User`";s:32:"f898dee5e0ba525ecbaffaa21fd45ca6";s:8:"`states`";s:32:"1516ecedeaf5e9ac02379dd2c54554a3";s:7:"`State`";s:32:"e65dfdabcb8ecb35fa83c08d5e95cb12";s:11:"`City`.`id`";s:32:"196ac1e3908e8c254ca52c68215dd705";s:14:"`City`.`cname`";s:32:"3a781d1f730b40e4b9bd0334f383ac65";s:14:"`City`.`state`";s:32:"8bab32467ac128f081d25c8d46f77f0b";s:6:"`City`";s:32:"3ef31af12f2079aa46cb3fa0b07bdb40";s:14:"`Ad`.`User_id`";s:32:"47eb7bb09414c64f779510914712b6ee";s:7:"`count`";}s:6:"fields";a:16:{s:32:"6e36b031383131ff745f9393007215ac";a:2:{i:0;s:15:"`Category`.`id`";i:1;s:18:"`Category`.`cname`";}s:32:"bb4681ba7fdc0468c2a4d01937b47910";a:1:{i:0;s:15:"`Category`.`id`";}s:32:"705d4ebd99197ff68cbfcd10b4eccab7";a:11:{i:0;s:9:"`Ad`.`id`";i:1;s:16:"`Ad`.`ads_title`";i:2;s:15:"`Ad`.`ads_body`";i:3;s:18:"`Ad`.`category_id`";i:4;s:14:"`Ad`.`user_id`";i:5;s:14:"`Ad`.`city_id`";i:6;s:15:"`Ad`.`state_id`";i:7;s:17:"`Ad`.`issue_date`";i:8;s:17:"`Ad`.`issue_time`";i:9;s:12:"`Ad`.`image`";i:10;s:13:"`Ad`.`status`";}s:32:"d63a0bfb40f45cabb81828f901128c78";a:1:{i:0;s:18:"`Ad`.`category_id`";}s:32:"088bc8730b81d3fdc61eba3b20009485";a:2:{i:0;s:12:"`State`.`id`";i:1;s:15:"`State`.`sname`";}s:32:"3e8be79dd5e776051426982c78a773ba";a:1:{i:0;s:12:"`State`.`id`";}s:32:"3fb45186ddfa481b9eb5a8f3a3c6bdd9";a:3:{i:0;s:11:"`city`.`id`";i:1;s:14:"`city`.`cname`";i:2;s:14:"`city`.`state`";}s:32:"d85687292eed9d268d3b71da098e46d5";a:1:{i:0;s:14:"`city`.`state`";}s:32:"bb4606589a5e1b0548a0f21126eeb909";a:15:{i:0;s:11:"`User`.`id`";i:1;s:19:"`User`.`first_name`";i:2;s:18:"`User`.`last_name`";i:3;s:17:"`User`.`username`";i:4;s:17:"`User`.`password`";i:5;s:22:"`User`.`jenis_kelamin`";i:6;s:18:"`User`.`tgl_lahir`";i:7;s:15:"`User`.`alamat`";i:8;s:14:"`User`.`state`";i:9;s:13:"`User`.`city`";i:10;s:18:"`User`.`handphone`";i:11;s:26:"`User`.`security_question`";i:12;s:24:"`User`.`security_answer`";i:13;s:15:"`User`.`status`";i:14;s:13:"`User`.`rule`";}s:32:"70d1b21fe59c8aba7df3652586afd110";a:1:{i:0;s:14:"`User`.`state`";}s:32:"b10ac7348899262afb2f7f409d7394a6";a:1:{i:0;s:15:"`Ad`.`state_id`";}s:32:"c77b74729ada102d300de66dc91d94ea";a:11:{i:0;s:9:"`Ad`.`id`";i:1;s:16:"`Ad`.`ads_title`";i:2;s:15:"`Ad`.`ads_body`";i:3;s:18:"`Ad`.`category_id`";i:4;s:14:"`Ad`.`user_id`";i:5;s:14:"`Ad`.`city_id`";i:6;s:15:"`Ad`.`state_id`";i:7;s:17:"`Ad`.`issue_date`";i:8;s:17:"`Ad`.`issue_time`";i:9;s:12:"`Ad`.`image`";i:10;s:13:"`Ad`.`status`";}s:32:"ef5ccf2374f2c92366666eff569949d4";a:2:{i:0;s:12:"`State`.`id`";i:1;s:15:"`State`.`sname`";}s:32:"c2650fd5459426f23409f26f5b6df901";a:3:{i:0;s:11:"`City`.`id`";i:1;s:14:"`City`.`cname`";i:2;s:14:"`City`.`state`";}s:32:"0cf03b0ebbe8742a4ef680027b4001cd";a:2:{i:0;s:15:"`Category`.`id`";i:1;s:18:"`Category`.`cname`";}s:32:"ab8449ffaef8dae756acb8237d20188a";a:1:{i:0;s:19:"COUNT(*) AS `count`";}}}

0 comments on commit f158def

Please sign in to comment.
Something went wrong with that request. Please try again.