diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..39f48d9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# Matches multiple files with brace expansion notation +# Set default charset +[*] +charset = utf-8 + +# Tab indentation (no size specified) +indent_style = tab diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..323f064 --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +.DS_Store + +application/cache/* +!application/cache/index.html + +application/logs/* +!application/logs/index.html + +!application/*/.htaccess + +composer.lock +tests/mocks/database/ci_test.sqlite + +user_guide_src/build/* +user_guide_src/cilexer/build/* +user_guide_src/cilexer/dist/* +user_guide_src/cilexer/pycilexer.egg-info/* +/vendor/ + +# IDE Files +#------------------------- +/nbproject/ +.idea/* + +## Sublime Text cache files +*.tmlanguage.cache +*.tmPreferences.cache +*.stTheme.cache +*.sublime-workspace +*.sublime-project +/tests/tests/ +/tests/results/ diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..e90dff9 --- /dev/null +++ b/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ index.php/$1 [L] diff --git a/application/controllers/Account.php b/application/controllers/Account.php new file mode 100644 index 0000000..fbe60be --- /dev/null +++ b/application/controllers/Account.php @@ -0,0 +1,29 @@ +db->get_where('users_account', ['email' => $this->session->userdata('email')])->row_array(); + + $this->load->view('partials/01header', $data); + $this->load->view('account', $data); + } + + + public function security() + + { + $data['title'] = 'Security'; + $data['user'] = $this->db->get_where('users_account', ['email' => $this->session->userdata('email')])->row_array(); + + $this->load->view('partials/01header', $data); + $this->load->view('security', $data); + } + + +} diff --git a/application/controllers/Auth.php b/application/controllers/Auth.php index 8e07c73..75306eb 100644 --- a/application/controllers/Auth.php +++ b/application/controllers/Auth.php @@ -175,12 +175,10 @@ class Auth extends CI_Controller { $config = [ 'protocol' => 'smtp', - 'smtp_host' => 'ssl://smtp.googlemail.com', - // 'smtp_user' => 'aku@dyzulk.com', - // 'smtp_pass' => '@Synthesis1996', - 'smtp_user' => 'dyzulk04@gmail.com', - 'smtp_pass' => 'qhfiugstswaehokp', - 'smtp_port' => 465, + 'smtp_host' => 'mail.dyzulk.com', + 'smtp_user' => 'no-reply@app.dyzulk.com', + 'smtp_pass' => '@Synthesis1996', + 'smtp_port' => 587, 'smtp_timeout' => '7', 'mailtype' => 'html', 'charset' => 'utf-8', @@ -190,7 +188,7 @@ class Auth extends CI_Controller { $this->load->library('email', $config); $this->email->initialize($config); - $this->email->from('dyzulksolution@dyzulk.com', 'CI App'); + $this->email->from($config['smtp_user'], 'Dyz Panel'); if ($type == 'verify'){ diff --git a/application/controllers/Transaksi.php b/application/controllers/Transaksi.php index 7e72a6e..39152df 100644 --- a/application/controllers/Transaksi.php +++ b/application/controllers/Transaksi.php @@ -31,7 +31,7 @@ class Transaksi extends CI_Controller { public function index() { - $data['title'] = 'Transaksi'; + $data['title'] = 'Transaction'; $data['user'] = $this->db->get_where('users_account', ['email' => $this->session->userdata('email')])->row_array(); $data['total'] = $this->totalTransaction(); diff --git a/application/views/account.php b/application/views/account.php new file mode 100644 index 0000000..be23b6c --- /dev/null +++ b/application/views/account.php @@ -0,0 +1,23 @@ +
+ +
+

+ +

+
+
+

+ Your Profile +

+
+
+
+
+ + + + \ No newline at end of file diff --git a/application/views/dashboard.php b/application/views/dashboard.php index ecd7434..0f14f91 100644 --- a/application/views/dashboard.php +++ b/application/views/dashboard.php @@ -10,7 +10,7 @@

- Dashboard +

diff --git a/application/views/partials/01header.php b/application/views/partials/01header.php index 38ada4a..bf4987e 100644 --- a/application/views/partials/01header.php +++ b/application/views/partials/01header.php @@ -344,46 +344,19 @@
  • - + Profile
  • - - Settings + + Security
  • diff --git a/application/views/security.php b/application/views/security.php new file mode 100644 index 0000000..e4bf3ed --- /dev/null +++ b/application/views/security.php @@ -0,0 +1,23 @@ +
    + +
    +

    + +

    +
    +
    +

    + Update your Password +

    +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/application/views/transaction/admin.php b/application/views/transaction/admin.php index 97a3504..fc69951 100644 --- a/application/views/transaction/admin.php +++ b/application/views/transaction/admin.php @@ -1,21 +1,8 @@