mirror of
https://github.com/dyzulk/dyzulk-apps.git
synced 2026-01-26 05:15:31 +07:00
Update & Security
This commit is contained in:
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@@ -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
|
||||
32
.gitignore
vendored
Normal file
32
.gitignore
vendored
Normal file
@@ -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/
|
||||
4
.htaccess
Normal file
4
.htaccess
Normal file
@@ -0,0 +1,4 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php/$1 [L]
|
||||
29
application/controllers/Account.php
Normal file
29
application/controllers/Account.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Account extends CI_Controller {
|
||||
|
||||
|
||||
public function index()
|
||||
|
||||
{
|
||||
$data['title'] = 'My Account';
|
||||
$data['user'] = $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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'){
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
23
application/views/account.php
Normal file
23
application/views/account.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<main class="h-full pb-16 overflow-y-auto">
|
||||
<!-- Remove everything INSIDE this div to a really blank page -->
|
||||
<div class="container px-6 mx-auto grid">
|
||||
<h2
|
||||
class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"
|
||||
>
|
||||
<?= $title; ?>
|
||||
</h2>
|
||||
<div class="grid gap-6 mb-8 md:grid-cols-2">
|
||||
<div
|
||||
class="min-w-0 p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
|
||||
>
|
||||
<h4 class="mb-4 font-semibold text-gray-800 dark:text-gray-300">
|
||||
Your Profile
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -10,7 +10,7 @@
|
||||
<h2
|
||||
class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"
|
||||
>
|
||||
Dashboard
|
||||
<?= $title; ?>
|
||||
</h2>
|
||||
<!-- CTA -->
|
||||
<!-- Cards -->
|
||||
|
||||
@@ -344,46 +344,19 @@
|
||||
<li class="flex">
|
||||
<a
|
||||
class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
href="#"
|
||||
href="<?=base_url('account');?>"
|
||||
>
|
||||
<svg
|
||||
class="w-4 h-4 mr-3"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"
|
||||
></path>
|
||||
</svg>
|
||||
<i class="w-4 h-4 mr-3 far fa-user"></i>
|
||||
<span>Profile</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="flex">
|
||||
<a
|
||||
class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
href="#"
|
||||
href="<?=base_url('account/security');?>"
|
||||
>
|
||||
<svg
|
||||
class="w-4 h-4 mr-3"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"
|
||||
></path>
|
||||
<path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
|
||||
</svg>
|
||||
<span>Settings</span>
|
||||
<i class="w-4 h-4 mr-3 fas fa-lock-alt"></i>
|
||||
<span>Security</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="flex">
|
||||
|
||||
23
application/views/security.php
Normal file
23
application/views/security.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<main class="h-full pb-16 overflow-y-auto">
|
||||
<!-- Remove everything INSIDE this div to a really blank page -->
|
||||
<div class="container px-6 mx-auto grid">
|
||||
<h2
|
||||
class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"
|
||||
>
|
||||
<?= $title; ?>
|
||||
</h2>
|
||||
<div class="grid gap-6 mb-8 md:grid-cols-2">
|
||||
<div
|
||||
class="min-w-0 p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
|
||||
>
|
||||
<h4 class="mb-4 font-semibold text-gray-800 dark:text-gray-300">
|
||||
Update your Password
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,21 +1,8 @@
|
||||
<main class="h-full pb-16 overflow-y-auto">
|
||||
<div class="container grid px-6 mx-auto">
|
||||
<h2 class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200">
|
||||
Tables
|
||||
<?= $title; ?>
|
||||
</h2>
|
||||
<!-- CTA -->
|
||||
<a class="flex items-center justify-between p-4 mb-8 text-sm font-semibold text-purple-100 bg-purple-600 rounded-lg shadow-md focus:outline-none focus:shadow-outline-purple"
|
||||
href="<?=base_url('transaksi');?>">
|
||||
<div class="flex items-center">
|
||||
<svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 20 20">
|
||||
<path
|
||||
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z">
|
||||
</path>
|
||||
</svg>
|
||||
<span>Star this project on GitHub</span>
|
||||
</div>
|
||||
<span>View more →</span>
|
||||
</a>
|
||||
|
||||
<div class="mb-4">
|
||||
<button @click="openModal"
|
||||
|
||||
@@ -3,27 +3,8 @@
|
||||
<h2
|
||||
class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"
|
||||
>
|
||||
Tables
|
||||
<?= $title; ?>
|
||||
</h2>
|
||||
<!-- CTA -->
|
||||
<a
|
||||
class="flex items-center justify-between p-4 mb-8 text-sm font-semibold text-purple-100 bg-purple-600 rounded-lg shadow-md focus:outline-none focus:shadow-outline-purple"
|
||||
href="<?=base_url('transaksi/admin');?>"
|
||||
>
|
||||
<div class="flex items-center">
|
||||
<svg
|
||||
class="w-5 h-5 mr-2"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path
|
||||
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
|
||||
></path>
|
||||
</svg>
|
||||
<span>Star this project on GitHub</span>
|
||||
</div>
|
||||
<span>View more →</span>
|
||||
</a>
|
||||
|
||||
<!-- With avatar -->
|
||||
<h4
|
||||
|
||||
Reference in New Issue
Block a user