Skip to content
Browse files

edit password OK

  • Loading branch information...
1 parent 430d43c commit 36bd053a7f4437a9079a2bc7d7b24ccc77265aa6 futura-creative committed
View
23 app/Controller/UsersController.php
@@ -19,6 +19,29 @@ public function beforeFilter() {
$this->Auth->allow(array('register','validate_form'));
}
+ public function change(){
+ if($this->request->is("Ajax")){
+ $this->autoRender = False;
+ $this->autoLayout = False;
+ $this->User->set($this->request->data);
+ if($this->User->validates()){
+ $user = $this->User->findById($this->Auth->user('id'));
+ if($user['User']['password']==$this->Auth->password($this->request->data['User']['old_password'])){
+ if($this->User->updateAll(array('User.password'=>"'".$this->Auth->password($this->request->data['User']['password'])."'"),array("User.id"=>$this->Auth->user('id')))){
+ $message = array("status"=>1,"message"=>"Pengubahan password berhasil dilakukan");
+ }
+ }
+ else{
+ $message = array("status"=>0,"message"=>array("old_password"=>array("Password lama tidak sama dengan yang sudah ada.")));
+ }
+ }
+ else{
+ $message = array("status"=>0,"message"=>$this->User->validationErrors);
+ }
+ echo json_encode($message);
+ }
+ }
+
public function profil(){
$this->layout = "profil";
$this->autoRender = False;
View
6 app/Model/User.php
@@ -125,6 +125,12 @@ class User extends AppModel {
'rule' => 'notEmpty',
'message' => 'Jawaban Keamanan tidak boleh kosong'
)
+ ),
+ 'old_password' => array(
+ 'notEmpty' => array(
+ 'rule' => 'notEmpty',
+ 'message' => 'Password Lama tidak boleh kosong'
+ )
)
);
View
2 app/View/Ads/edit.ctp
@@ -74,7 +74,7 @@
$(".edit-mark").removeClass("edit-mark");
}
else{
- alert("Penghapusan iklan gagal. silahkan refresh halaman ini");
+ alert("Pengeditan iklan gagal. silahkan refresh halaman ini");
}
}
View
2 app/View/Users/edit.ctp
@@ -1,4 +1,4 @@
-<div id="content-inside" class="margin-10">
+<div id="content-inside" class="got-margin">
<div class="registration-header">
<h1>Update Profil</h1>
<h2>Update profil dengan data yang benar.</h2>
View
59 app/View/Users/password.ctp
@@ -1,3 +1,56 @@
-<div id="content-inside">
- Password
-</div>
+<div id="content-inside" class="got-margin">
+ <div id="password-header" class="registration-header">
+ <h1>Ubah Password</h1>
+ </div>
+ <?= $this->Form->create('User',array('action'=>'change',"id"=>"edit_password")); ?>
+ <div class="edit-content">
+ <div class="box-box field-wrapper">
+ <label>Password lama :</label>
+ <?= $this->Form->input('old_password',array('div'=>False,'label'=>False,'type'=>'password','class'=>'registration-input big-one got-border','placeholder'=>'password lama','id'=>'old_password')); ?>
+ </div>
+ <div class="box-box field-wrapper">
+ <label>Password Baru :</label>
+ <?= $this->Form->input('password',array('div'=>False,'label'=>False,'type'=>'password','class'=>'registration-input big-one got-border','placeholder'=>'password baru','id'=>'password')); ?>
+ </div>
+ <div class="box-box field-wrapper">
+ <label>Konfirmasi Password Baru :</label>
+ <?= $this->Form->input('konfirmasi_password',array('div'=>False,'label'=>False,'type'=>'password','class'=>'registration-input big-one got-border','placeholder'=>'komfirmasi password baru','id'=>'konfirmsi_password')); ?>
+ </div>
+ <div id="submit-wrapper" class="field-wrapper">
+ <div class="big-box">
+ <?= $this->Form->submit('Update Password',array('class'=>'small-one center-element','div'=>False,'id'=>'signup-button','label'=>False)); ?>
+ </div>
+ </div>
+ </div>
+</div>
+<?php $url = Router::url(array("controller"=>"users","action"=>"change")); ?>
+<script>
+ $(document).ready(function(e){
+ $(".active-menu-item").removeClass("active-menu-item");
+ $("#profil-button").addClass("active-menu-item");
+ });
+
+ $("#edit_password").submit(function(e){
+ e.preventDefault();
+ $.post('<?php echo $url; ?>',$(this).serializeArray(),handleChangePassword,"JSON");
+ });
+
+ function handleChangePassword(response){
+ if(response.status == 1){
+ $(".error-message").remove();
+ $("#submit-wrapper>.big-box").append("<div class='central-div' style='text-align:center'>\n\
+ Data berhasil di update.\n\
+ </div>");
+ }
+ else{
+ for(i in response.message){
+ if($("#"+i+"-error").length>=1)
+ $("#"+i+"-error").text(response.message[i]);
+ else{
+ $("#"+i).after($("<div id='"+i+"-error' class='error-message'>"+response.message[i]+"</div>").fadeIn("slow"));
+ $("#"+i).removeClass("success-validation loading-validation").addClass("fail-validation");
+ }
+ }
+ }
+ }
+</script>
View
2 app/tmp/cache/models/myapp_cake_model_default__addins_ads
@@ -1,2 +1,2 @@
-1361534650
+1361596872
a:10:{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";}}
View
2 app/tmp/cache/models/myapp_cake_model_default__addins_categories
@@ -1,2 +1,2 @@
-1361534650
+1361596872
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 @@
-1361534650
+1361596872
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 @@
-1361534650
+1361596872
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 @@
-1361534650
+1361596872
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 @@
-1361534650
+1361596872
a:14:{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";}}
View
2 app/tmp/cache/persistent/myapp_cake_core_cake_dev_en-us
@@ -1,2 +1,2 @@
-1361534650
+1361596872
a:1:{s:11:"LC_MESSAGES";a:0:{}}
View
2 app/tmp/cache/persistent/myapp_cake_core_cake_en-us
@@ -1,2 +1,2 @@
-1361534650
+1361596872
a:1:{s:11:"LC_MESSAGES";a:0:{}}
View
2 app/tmp/cache/persistent/myapp_cake_core_default_en-us
@@ -1,2 +1,2 @@
-1361534650
+1361596872
a:1:{s:11:"LC_MESSAGES";a:0:{}}
View
4 app/tmp/cache/persistent/myapp_cake_core_file_map
@@ -1,2 +1,2 @@
-1361534650
-a:64:{s:9:"Configure";s:52:"/opt/lampp/htdocs/Addins/lib/Cake/Core/Configure.php";s:4:"Hash";s:50:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/Hash.php";s:5:"Cache";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/Cache/Cache.php";s:10:"FileEngine";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Cache/Engine/FileEngine.php";s:11:"CacheEngine";s:55:"/opt/lampp/htdocs/Addins/lib/Cake/Cache/CacheEngine.php";s:9:"Inflector";s:55:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/Inflector.php";s:12:"ErrorHandler";s:56:"/opt/lampp/htdocs/Addins/lib/Cake/Error/ErrorHandler.php";s:7:"CakeLog";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/Log/CakeLog.php";s:19:"LogEngineCollection";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Log/LogEngineCollection.php";s:16:"ObjectCollection";s:62:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/ObjectCollection.php";s:7:"FileLog";s:56:"/opt/lampp/htdocs/Addins/lib/Cake/Log/Engine/FileLog.php";s:7:"BaseLog";s:56:"/opt/lampp/htdocs/Addins/lib/Cake/Log/Engine/BaseLog.php";s:16:"CakeLogInterface";s:58:"/opt/lampp/htdocs/Addins/lib/Cake/Log/CakeLogInterface.php";s:8:"Debugger";s:54:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/Debugger.php";s:6:"String";s:52:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/String.php";s:10:"Dispatcher";s:56:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Dispatcher.php";s:17:"CakeEventListener";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Event/CakeEventListener.php";s:11:"CakeRequest";s:57:"/opt/lampp/htdocs/Addins/lib/Cake/Network/CakeRequest.php";s:12:"CakeResponse";s:58:"/opt/lampp/htdocs/Addins/lib/Cake/Network/CakeResponse.php";s:9:"CakeEvent";s:53:"/opt/lampp/htdocs/Addins/lib/Cake/Event/CakeEvent.php";s:16:"CakeEventManager";s:60:"/opt/lampp/htdocs/Addins/lib/Cake/Event/CakeEventManager.php";s:15:"AssetDispatcher";s:68:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Filter/AssetDispatcher.php";s:16:"DispatcherFilter";s:62:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/DispatcherFilter.php";s:15:"CacheDispatcher";s:68:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Filter/CacheDispatcher.php";s:6:"Router";s:52:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Router.php";s:9:"CakeRoute";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Route/CakeRoute.php";s:10:"CakePlugin";s:53:"/opt/lampp/htdocs/Addins/lib/Cake/Core/CakePlugin.php";s:15:"UsersController";s:59:"/opt/lampp/htdocs/Addins/app/Controller/UsersController.php";s:13:"AppController";s:57:"/opt/lampp/htdocs/Addins/app/Controller/AppController.php";s:10:"Controller";s:59:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Controller.php";s:6:"Object";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/Core/Object.php";s:19:"ComponentCollection";s:68:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/ComponentCollection.php";s:16:"SessionComponent";s:75:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/SessionComponent.php";s:9:"Component";s:58:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component.php";s:13:"AuthComponent";s:72:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/AuthComponent.php";s:13:"ClassRegistry";s:59:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/ClassRegistry.php";s:17:"ConnectionManager";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Model/ConnectionManager.php";s:8:"Category";s:47:"/opt/lampp/htdocs/Addins/app/Model/Category.php";s:8:"AppModel";s:47:"/opt/lampp/htdocs/Addins/app/Model/AppModel.php";s:5:"Model";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Model.php";s:18:"BehaviorCollection";s:62:"/opt/lampp/htdocs/Addins/lib/Cake/Model/BehaviorCollection.php";s:5:"Mysql";s:69:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Datasource/Database/Mysql.php";s:9:"DboSource";s:64:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Datasource/DboSource.php";s:10:"DataSource";s:65:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Datasource/DataSource.php";s:2:"Ad";s:41:"/opt/lampp/htdocs/Addins/app/Model/Ad.php";s:5:"State";s:44:"/opt/lampp/htdocs/Addins/app/Model/State.php";s:4:"City";s:43:"/opt/lampp/htdocs/Addins/app/Model/City.php";s:4:"User";s:43:"/opt/lampp/htdocs/Addins/app/Model/User.php";s:11:"CakeSession";s:66:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Datasource/CakeSession.php";s:4:"I18n";s:47:"/opt/lampp/htdocs/Addins/lib/Cake/I18n/I18n.php";s:4:"L10n";s:47:"/opt/lampp/htdocs/Addins/lib/Cake/I18n/L10n.php";s:19:"ControllerAuthorize";s:83:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/Auth/ControllerAuthorize.php";s:13:"BaseAuthorize";s:77:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/Auth/BaseAuthorize.php";s:4:"View";s:47:"/opt/lampp/htdocs/Addins/lib/Cake/View/View.php";s:16:"HelperCollection";s:59:"/opt/lampp/htdocs/Addins/lib/Cake/View/HelperCollection.php";s:9:"ViewBlock";s:52:"/opt/lampp/htdocs/Addins/lib/Cake/View/ViewBlock.php";s:10:"FormHelper";s:60:"/opt/lampp/htdocs/Addins/lib/Cake/View/Helper/FormHelper.php";s:9:"AppHelper";s:54:"/opt/lampp/htdocs/Addins/app/View/Helper/AppHelper.php";s:6:"Helper";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/View/Helper.php";s:10:"HtmlHelper";s:60:"/opt/lampp/htdocs/Addins/lib/Cake/View/Helper/HtmlHelper.php";s:14:"ModelValidator";s:58:"/opt/lampp/htdocs/Addins/lib/Cake/Model/ModelValidator.php";s:17:"CakeValidationSet";s:71:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Validator/CakeValidationSet.php";s:18:"CakeValidationRule";s:72:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Validator/CakeValidationRule.php";s:16:"StatesController";s:60:"/opt/lampp/htdocs/Addins/app/Controller/StatesController.php";}
+1361596875
+a:73:{s:9:"Configure";s:52:"/opt/lampp/htdocs/Addins/lib/Cake/Core/Configure.php";s:4:"Hash";s:50:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/Hash.php";s:5:"Cache";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/Cache/Cache.php";s:10:"FileEngine";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Cache/Engine/FileEngine.php";s:11:"CacheEngine";s:55:"/opt/lampp/htdocs/Addins/lib/Cake/Cache/CacheEngine.php";s:9:"Inflector";s:55:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/Inflector.php";s:12:"ErrorHandler";s:56:"/opt/lampp/htdocs/Addins/lib/Cake/Error/ErrorHandler.php";s:7:"CakeLog";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/Log/CakeLog.php";s:19:"LogEngineCollection";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Log/LogEngineCollection.php";s:16:"ObjectCollection";s:62:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/ObjectCollection.php";s:7:"FileLog";s:56:"/opt/lampp/htdocs/Addins/lib/Cake/Log/Engine/FileLog.php";s:7:"BaseLog";s:56:"/opt/lampp/htdocs/Addins/lib/Cake/Log/Engine/BaseLog.php";s:16:"CakeLogInterface";s:58:"/opt/lampp/htdocs/Addins/lib/Cake/Log/CakeLogInterface.php";s:8:"Debugger";s:54:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/Debugger.php";s:6:"String";s:52:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/String.php";s:10:"Dispatcher";s:56:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Dispatcher.php";s:17:"CakeEventListener";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Event/CakeEventListener.php";s:11:"CakeRequest";s:57:"/opt/lampp/htdocs/Addins/lib/Cake/Network/CakeRequest.php";s:12:"CakeResponse";s:58:"/opt/lampp/htdocs/Addins/lib/Cake/Network/CakeResponse.php";s:9:"CakeEvent";s:53:"/opt/lampp/htdocs/Addins/lib/Cake/Event/CakeEvent.php";s:16:"CakeEventManager";s:60:"/opt/lampp/htdocs/Addins/lib/Cake/Event/CakeEventManager.php";s:15:"AssetDispatcher";s:68:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Filter/AssetDispatcher.php";s:16:"DispatcherFilter";s:62:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/DispatcherFilter.php";s:15:"CacheDispatcher";s:68:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Filter/CacheDispatcher.php";s:6:"Router";s:52:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Router.php";s:9:"CakeRoute";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Routing/Route/CakeRoute.php";s:10:"CakePlugin";s:53:"/opt/lampp/htdocs/Addins/lib/Cake/Core/CakePlugin.php";s:15:"UsersController";s:59:"/opt/lampp/htdocs/Addins/app/Controller/UsersController.php";s:13:"AppController";s:57:"/opt/lampp/htdocs/Addins/app/Controller/AppController.php";s:10:"Controller";s:59:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Controller.php";s:6:"Object";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/Core/Object.php";s:19:"ComponentCollection";s:68:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/ComponentCollection.php";s:16:"SessionComponent";s:75:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/SessionComponent.php";s:9:"Component";s:58:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component.php";s:13:"AuthComponent";s:72:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/AuthComponent.php";s:13:"ClassRegistry";s:59:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/ClassRegistry.php";s:17:"ConnectionManager";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Model/ConnectionManager.php";s:8:"Category";s:47:"/opt/lampp/htdocs/Addins/app/Model/Category.php";s:8:"AppModel";s:47:"/opt/lampp/htdocs/Addins/app/Model/AppModel.php";s:5:"Model";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Model.php";s:18:"BehaviorCollection";s:62:"/opt/lampp/htdocs/Addins/lib/Cake/Model/BehaviorCollection.php";s:5:"Mysql";s:69:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Datasource/Database/Mysql.php";s:9:"DboSource";s:64:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Datasource/DboSource.php";s:10:"DataSource";s:65:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Datasource/DataSource.php";s:2:"Ad";s:41:"/opt/lampp/htdocs/Addins/app/Model/Ad.php";s:5:"State";s:44:"/opt/lampp/htdocs/Addins/app/Model/State.php";s:4:"City";s:43:"/opt/lampp/htdocs/Addins/app/Model/City.php";s:4:"User";s:43:"/opt/lampp/htdocs/Addins/app/Model/User.php";s:11:"CakeSession";s:66:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Datasource/CakeSession.php";s:4:"I18n";s:47:"/opt/lampp/htdocs/Addins/lib/Cake/I18n/I18n.php";s:4:"L10n";s:47:"/opt/lampp/htdocs/Addins/lib/Cake/I18n/L10n.php";s:19:"ControllerAuthorize";s:83:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/Auth/ControllerAuthorize.php";s:13:"BaseAuthorize";s:77:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/Auth/BaseAuthorize.php";s:16:"FormAuthenticate";s:80:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/Auth/FormAuthenticate.php";s:16:"BaseAuthenticate";s:80:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php";s:4:"View";s:47:"/opt/lampp/htdocs/Addins/lib/Cake/View/View.php";s:16:"HelperCollection";s:59:"/opt/lampp/htdocs/Addins/lib/Cake/View/HelperCollection.php";s:9:"ViewBlock";s:52:"/opt/lampp/htdocs/Addins/lib/Cake/View/ViewBlock.php";s:13:"SessionHelper";s:63:"/opt/lampp/htdocs/Addins/lib/Cake/View/Helper/SessionHelper.php";s:9:"AppHelper";s:54:"/opt/lampp/htdocs/Addins/app/View/Helper/AppHelper.php";s:6:"Helper";s:49:"/opt/lampp/htdocs/Addins/lib/Cake/View/Helper.php";s:10:"FormHelper";s:60:"/opt/lampp/htdocs/Addins/lib/Cake/View/Helper/FormHelper.php";s:10:"HtmlHelper";s:60:"/opt/lampp/htdocs/Addins/lib/Cake/View/Helper/HtmlHelper.php";s:14:"ModelValidator";s:58:"/opt/lampp/htdocs/Addins/lib/Cake/Model/ModelValidator.php";s:17:"CakeValidationSet";s:71:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Validator/CakeValidationSet.php";s:18:"CakeValidationRule";s:72:"/opt/lampp/htdocs/Addins/lib/Cake/Model/Validator/CakeValidationRule.php";s:8:"Security";s:54:"/opt/lampp/htdocs/Addins/lib/Cake/Utility/Security.php";s:13:"AdsController";s:57:"/opt/lampp/htdocs/Addins/app/Controller/AdsController.php";s:18:"PaginatorComponent";s:77:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/Component/PaginatorComponent.php";s:15:"PaginatorHelper";s:65:"/opt/lampp/htdocs/Addins/lib/Cake/View/Helper/PaginatorHelper.php";s:8:"JsHelper";s:58:"/opt/lampp/htdocs/Addins/lib/Cake/View/Helper/JsHelper.php";s:17:"ExceptionRenderer";s:61:"/opt/lampp/htdocs/Addins/lib/Cake/Error/ExceptionRenderer.php";s:19:"CakeErrorController";s:68:"/opt/lampp/htdocs/Addins/lib/Cake/Controller/CakeErrorController.php";}
View
4 app/tmp/cache/persistent/myapp_cake_core_method_cache
@@ -1,2 +1,2 @@
-1361534650
-a:2:{s:4:"name";a:46:{s:32:"24ca8045b3634ee3f146e188204d6aa7";s:8:"`Addins`";s:32:"469f0eca4934529a8ebe3db2dddf24e6";s:12:"`categories`";s:32:"eb70110d19c376647f122ba6a9a6296b";s:15:"`Category`.`id`";s:32:"f658287ff27e1a2e891a6249cfd0122d";s:18:"`Category`.`cname`";s:32:"a2c424ed9810bde62ffe8680a64a112b";s:5:"`ads`";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:"c3fc0249547957de0b5fccf90ce24cc5";s:4:"`Ad`";s:32:"895ec6f91cf00656056af226532e8e27";s:10:"`Category`";s:32:"f898dee5e0ba525ecbaffaa21fd45ca6";s:8:"`states`";s:32:"a8dcdd107176e0bff6b2c0cf3a9ee017";s:12:"`State`.`id`";s:32:"edfe10b4e934001ccebfc8ff7c4fbc1e";s:15:"`State`.`sname`";s:32:"cb8e9149a3ea2470e6c83205a54301c2";s:8:"`cities`";s:32:"e87e3f6bf6da6e7a7603c45c226873d9";s:11:"`city`.`id`";s:32:"0cdfd9cffc57889f6654b1daeb160e79";s:14:"`city`.`cname`";s:32:"ad1fd3c698e6fad291f569f23276ceee";s:14:"`city`.`state`";s:32:"8875b7176dae20f4d36795197b12bfdb";s:6:"`city`";s:32:"f94a437fb7858e092079378f93ef2c71";s:7:"`users`";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:"eb9b37fa6fe3e5c49f921ddcd721b306";s:6:"`User`";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: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:10:{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`";}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:14:{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`";}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:"d27ef0c8fb69683dbee006b63763a1f7";a:14:{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`";}s:32:"d2c93d6419bc0a390e901874fbac02c1";a:1:{i:0;s:11:"`User`.`id`";}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:"61cb9a3c17caf3d4fcbbdb1cfc779504";a:1:{i:0;s:14:"`Ad`.`user_id`";}}}
+1361596872
+a:2:{s:4:"name";a:47:{s:32:"24ca8045b3634ee3f146e188204d6aa7";s:8:"`Addins`";s:32:"469f0eca4934529a8ebe3db2dddf24e6";s:12:"`categories`";s:32:"eb70110d19c376647f122ba6a9a6296b";s:15:"`Category`.`id`";s:32:"f658287ff27e1a2e891a6249cfd0122d";s:18:"`Category`.`cname`";s:32:"a2c424ed9810bde62ffe8680a64a112b";s:5:"`ads`";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:"c3fc0249547957de0b5fccf90ce24cc5";s:4:"`Ad`";s:32:"895ec6f91cf00656056af226532e8e27";s:10:"`Category`";s:32:"f898dee5e0ba525ecbaffaa21fd45ca6";s:8:"`states`";s:32:"a8dcdd107176e0bff6b2c0cf3a9ee017";s:12:"`State`.`id`";s:32:"edfe10b4e934001ccebfc8ff7c4fbc1e";s:15:"`State`.`sname`";s:32:"cb8e9149a3ea2470e6c83205a54301c2";s:8:"`cities`";s:32:"e87e3f6bf6da6e7a7603c45c226873d9";s:11:"`city`.`id`";s:32:"0cdfd9cffc57889f6654b1daeb160e79";s:14:"`city`.`cname`";s:32:"ad1fd3c698e6fad291f569f23276ceee";s:14:"`city`.`state`";s:32:"8875b7176dae20f4d36795197b12bfdb";s:6:"`city`";s:32:"f94a437fb7858e092079378f93ef2c71";s:7:"`users`";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:"eb9b37fa6fe3e5c49f921ddcd721b306";s:6:"`User`";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:"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:10:{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`";}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:14:{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`";}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:10:{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`";}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`";}}}
View
21 app/webroot/css/addins.main.layout.style.css
@@ -45,6 +45,14 @@ h1,h2,h3,h4{
margin-bottom:0.1em;
}
+h1{
+ font-size:24px;
+}
+
+h2{
+ font-size:18px;
+}
+
input[type="submit"]{
border:none;
height: 30px;
@@ -399,6 +407,14 @@ select option{
border-bottom: thin solid #555;
}
+ .registration-header *{
+ margin:0 5px
+ }
+
+ .registration-header>h2{
+ margin-bottom: 5px;
+ }
+
.registration-header>h1{
margin-bottom: 0px;
}
@@ -615,6 +631,7 @@ select option{
position: relative;
float:left;
width: 480px;
+ margin:0 5px;
margin-top:10px;
display: block;
}
@@ -729,8 +746,8 @@ select option{
margin:0px;
}
-.margin-10{
- margin:10px;
+.got-margin{
+ margin:10px 40px;
}
.margin-top-bottom{

0 comments on commit 36bd053

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