First commit aplikasi website_csirt
This commit is contained in:
commit
c0b920034e
15
.editorconfig
Executable file
15
.editorconfig
Executable 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
Executable file
32
.gitignore
vendored
Executable 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/
|
8
.htaccess
Executable file
8
.htaccess
Executable file
@ -0,0 +1,8 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php/$1 [L]
|
||||
</IfModule>
|
||||
|
6
application/.htaccess
Executable file
6
application/.htaccess
Executable file
@ -0,0 +1,6 @@
|
||||
<IfModule authz_core_module>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
11
application/cache/index.html
vendored
Executable file
11
application/cache/index.html
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
135
application/config/autoload.php
Executable file
135
application/config/autoload.php
Executable file
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| AUTO-LOADER
|
||||
| -------------------------------------------------------------------
|
||||
| This file specifies which systems should be loaded by default.
|
||||
|
|
||||
| In order to keep the framework as light-weight as possible only the
|
||||
| absolute minimal resources are loaded by default. For example,
|
||||
| the database is not connected to automatically since no assumption
|
||||
| is made regarding whether you intend to use it. This file lets
|
||||
| you globally define which systems you would like loaded with every
|
||||
| request.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| Instructions
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| These are the things you can load automatically:
|
||||
|
|
||||
| 1. Packages
|
||||
| 2. Libraries
|
||||
| 3. Drivers
|
||||
| 4. Helper files
|
||||
| 5. Custom config files
|
||||
| 6. Language files
|
||||
| 7. Models
|
||||
|
|
||||
*/
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Packages
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
||||
|
|
||||
*/
|
||||
$autoload['packages'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Libraries
|
||||
| -------------------------------------------------------------------
|
||||
| These are the classes located in system/libraries/ or your
|
||||
| application/libraries/ directory, with the addition of the
|
||||
| 'database' library, which is somewhat of a special case.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['libraries'] = array('database', 'email', 'session');
|
||||
|
|
||||
| You can also supply an alternative library name to be assigned
|
||||
| in the controller:
|
||||
|
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
$autoload['libraries'] = array('database','session','form_validation');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Drivers
|
||||
| -------------------------------------------------------------------
|
||||
| These classes are located in system/libraries/ or in your
|
||||
| application/libraries/ directory, but are also placed inside their
|
||||
| own subdirectory and they extend the CI_Driver_Library class. They
|
||||
| offer multiple interchangeable driver options.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache');
|
||||
|
|
||||
| You can also supply an alternative property name to be assigned in
|
||||
| the controller:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache' => 'cch');
|
||||
|
|
||||
*/
|
||||
$autoload['drivers'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Helper Files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['helper'] = array('url', 'file');
|
||||
*/
|
||||
$autoload['helper'] = array('url');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Config files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['config'] = array('config1', 'config2');
|
||||
|
|
||||
| NOTE: This item is intended for use ONLY if you have created custom
|
||||
| config files. Otherwise, leave it blank.
|
||||
|
|
||||
*/
|
||||
$autoload['config'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Language files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['language'] = array('lang1', 'lang2');
|
||||
|
|
||||
| NOTE: Do not include the "_lang" part of your file. For example
|
||||
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
||||
|
|
||||
*/
|
||||
$autoload['language'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Models
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['model'] = array('first_model', 'second_model');
|
||||
|
|
||||
| You can also supply an alternative model name to be assigned
|
||||
| in the controller:
|
||||
|
|
||||
| $autoload['model'] = array('first_model' => 'first');
|
||||
*/
|
||||
$autoload['model'] = array('Artikel_model');
|
532
application/config/config.php
Executable file
532
application/config/config.php
Executable file
@ -0,0 +1,532 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try to guess the protocol and
|
||||
| path to your installation, but due to security concerns the hostname will
|
||||
| be set to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'http://10.30.9.75/';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/userguide3/general/urls.html
|
||||
|
|
||||
| Note: This option is ignored for CLI requests.
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
$config['language'] = 'english';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/userguide3/general/core_classes.html
|
||||
| https://codeigniter.com/userguide3/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/userguide3/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = 'CMSwebsitecsirtRRI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_samesite'
|
||||
|
|
||||
| Session cookie SameSite attribute: Lax (default), Strict or None
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_samesite'] = 'Lax';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = '/var/www/website_csirt/chat';
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
| 'cookie_samesite' = Cookie's samesite attribute (Lax, Strict or None)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
$config['cookie_samesite'] = 'Lax';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = TRUE; // Aktifkan CSRF protection
|
||||
$config['csrf_token_name'] = 'csrf_test_name'; // Nama token CSRF
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name'; // Nama cookie untuk token CSRF
|
||||
$config['csrf_expire'] = 7200; // Waktu kedaluwarsa token CSRF dalam detik
|
||||
$config['csrf_regenerate'] = TRUE; // Regenerasi token CSRF setiap kali form dikirim
|
||||
$config['csrf_exclude_uris'] = array(); // URI yang tidak memerlukan CSRF protection
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
85
application/config/constants.php
Executable file
85
application/config/constants.php
Executable file
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Display Debug backtrace
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If set to TRUE, a backtrace will be displayed along with php errors. If
|
||||
| error_reporting is disabled, the backtrace will not display, regardless
|
||||
| of this setting
|
||||
|
|
||||
*/
|
||||
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File and Directory Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These prefs are used when checking and setting modes when working
|
||||
| with the file system. The defaults are fine on servers with proper
|
||||
| security, but you may wish (or even need) to change the values in
|
||||
| certain environments (Apache running a separate process for each
|
||||
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
|
||||
| always be used to set the mode correctly.
|
||||
|
|
||||
*/
|
||||
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
|
||||
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
|
||||
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
|
||||
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File Stream Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These modes are used when working with fopen()/popen()
|
||||
|
|
||||
*/
|
||||
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
|
||||
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
|
||||
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
|
||||
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
|
||||
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
|
||||
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
|
||||
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
|
||||
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exit Status Codes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Used to indicate the conditions under which the script is exit()ing.
|
||||
| While there is no universal standard for error codes, there are some
|
||||
| broad conventions. Three such conventions are mentioned below, for
|
||||
| those who wish to make use of them. The CodeIgniter defaults were
|
||||
| chosen for the least overlap with these conventions, while still
|
||||
| leaving room for others to be defined in future versions and user
|
||||
| applications.
|
||||
|
|
||||
| The three main conventions used for determining exit status codes
|
||||
| are as follows:
|
||||
|
|
||||
| Standard C/C++ Library (stdlibc):
|
||||
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
|
||||
| (This link also contains other GNU-specific conventions)
|
||||
| BSD sysexits.h:
|
||||
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
|
||||
| Bash scripting:
|
||||
| http://tldp.org/LDP/abs/html/exitcodes.html
|
||||
|
|
||||
*/
|
||||
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
|
||||
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
|
||||
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
|
||||
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
|
||||
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
||||
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
||||
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
|
||||
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
|
||||
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
96
application/config/database.php
Executable file
96
application/config/database.php
Executable file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'root',
|
||||
'password' => 'Lpprri_@1945',
|
||||
'database' => 'website_csirt',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'production'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
24
application/config/doctypes.php
Executable file
24
application/config/doctypes.php
Executable file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$_doctypes = array(
|
||||
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
|
||||
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
|
||||
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
|
||||
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
|
||||
'xhtml-basic11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
|
||||
'html5' => '<!DOCTYPE html>',
|
||||
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
|
||||
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
|
||||
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
|
||||
'mathml1' => '<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">',
|
||||
'mathml2' => '<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">',
|
||||
'svg10' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">',
|
||||
'svg11' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
|
||||
'svg11-basic' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">',
|
||||
'svg11-tiny' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">',
|
||||
'xhtml-math-svg-xh' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-math-svg-sh' => '<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
|
||||
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">'
|
||||
);
|
114
application/config/foreign_chars.php
Executable file
114
application/config/foreign_chars.php
Executable file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Foreign Characters
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of foreign characters for transliteration
|
||||
| conversion used by the Text helper
|
||||
|
|
||||
*/
|
||||
$foreign_characters = array(
|
||||
'/ä|æ|ǽ/' => 'ae',
|
||||
'/ö|œ/' => 'oe',
|
||||
'/ü/' => 'ue',
|
||||
'/Ä/' => 'Ae',
|
||||
'/Ü/' => 'Ue',
|
||||
'/Ö/' => 'Oe',
|
||||
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
|
||||
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
|
||||
'/Б/' => 'B',
|
||||
'/б/' => 'b',
|
||||
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
|
||||
'/ç|ć|ĉ|ċ|č/' => 'c',
|
||||
'/Д|Δ/' => 'D',
|
||||
'/д|δ/' => 'd',
|
||||
'/Ð|Ď|Đ/' => 'Dj',
|
||||
'/ð|ď|đ/' => 'dj',
|
||||
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
|
||||
'/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
|
||||
'/Ф/' => 'F',
|
||||
'/ф/' => 'f',
|
||||
'/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
|
||||
'/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
|
||||
'/Ĥ|Ħ/' => 'H',
|
||||
'/ĥ|ħ/' => 'h',
|
||||
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
|
||||
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
|
||||
'/Ĵ/' => 'J',
|
||||
'/ĵ/' => 'j',
|
||||
'/Θ/' => 'TH',
|
||||
'/θ/' => 'th',
|
||||
'/Ķ|Κ|К/' => 'K',
|
||||
'/ķ|κ|к/' => 'k',
|
||||
'/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
|
||||
'/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
|
||||
'/М/' => 'M',
|
||||
'/м/' => 'm',
|
||||
'/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
|
||||
'/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
|
||||
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
|
||||
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
|
||||
'/П/' => 'P',
|
||||
'/п/' => 'p',
|
||||
'/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
|
||||
'/ŕ|ŗ|ř|ρ|р/' => 'r',
|
||||
'/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
|
||||
'/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
|
||||
'/Ț|Ţ|Ť|Ŧ|Τ|Т/' => 'T',
|
||||
'/ț|ţ|ť|ŧ|τ|т/' => 't',
|
||||
'/Þ|þ/' => 'th',
|
||||
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
|
||||
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
|
||||
'/Ƴ|Ɏ|Ỵ|Ẏ|Ӳ|Ӯ|Ў|Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
|
||||
'/ẙ|ʏ|ƴ|ɏ|ỵ|ẏ|ӳ|ӯ|ў|ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
|
||||
'/В/' => 'V',
|
||||
'/в/' => 'v',
|
||||
'/Ŵ/' => 'W',
|
||||
'/ŵ/' => 'w',
|
||||
'/Φ/' => 'F',
|
||||
'/φ/' => 'f',
|
||||
'/Χ/' => 'CH',
|
||||
'/χ/' => 'ch',
|
||||
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
|
||||
'/ź|ż|ž|ζ|з/' => 'z',
|
||||
'/Æ|Ǽ/' => 'AE',
|
||||
'/ß/' => 'ss',
|
||||
'/IJ/' => 'IJ',
|
||||
'/ij/' => 'ij',
|
||||
'/Œ/' => 'OE',
|
||||
'/ƒ/' => 'f',
|
||||
'/Ξ/' => 'KS',
|
||||
'/ξ/' => 'ks',
|
||||
'/Π/' => 'P',
|
||||
'/π/' => 'p',
|
||||
'/Β/' => 'V',
|
||||
'/β/' => 'v',
|
||||
'/Μ/' => 'M',
|
||||
'/μ/' => 'm',
|
||||
'/Ψ/' => 'PS',
|
||||
'/ψ/' => 'ps',
|
||||
'/Ё/' => 'Yo',
|
||||
'/ё/' => 'yo',
|
||||
'/Є/' => 'Ye',
|
||||
'/є/' => 'ye',
|
||||
'/Ї/' => 'Yi',
|
||||
'/Ж/' => 'Zh',
|
||||
'/ж/' => 'zh',
|
||||
'/Х/' => 'Kh',
|
||||
'/х/' => 'kh',
|
||||
'/Ц/' => 'Ts',
|
||||
'/ц/' => 'ts',
|
||||
'/Ч/' => 'Ch',
|
||||
'/ч/' => 'ch',
|
||||
'/Ш/' => 'Sh',
|
||||
'/ш/' => 'sh',
|
||||
'/Щ/' => 'Shch',
|
||||
'/щ/' => 'shch',
|
||||
'/Ъ|ъ|Ь|ь/' => '',
|
||||
'/Ю/' => 'Yu',
|
||||
'/ю/' => 'yu',
|
||||
'/Я/' => 'Ya',
|
||||
'/я/' => 'ya'
|
||||
);
|
13
application/config/hooks.php
Executable file
13
application/config/hooks.php
Executable file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Hooks
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you define "hooks" to extend CI without hacking the core
|
||||
| files. Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/userguide3/general/hooks.html
|
||||
|
|
||||
*/
|
11
application/config/index.html
Executable file
11
application/config/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
19
application/config/memcached.php
Executable file
19
application/config/memcached.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Memcached settings
|
||||
| -------------------------------------------------------------------------
|
||||
| Your Memcached servers can be specified below.
|
||||
|
|
||||
| See: https://codeigniter.com/userguide3/libraries/caching.html#memcached
|
||||
|
|
||||
*/
|
||||
$config = array(
|
||||
'default' => array(
|
||||
'hostname' => '127.0.0.1',
|
||||
'port' => '11211',
|
||||
'weight' => '1',
|
||||
),
|
||||
);
|
84
application/config/migration.php
Executable file
84
application/config/migration.php
Executable file
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable Migrations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migrations are disabled by default for security reasons.
|
||||
| You should enable migrations whenever you intend to do a schema migration
|
||||
| and disable it back when you're done.
|
||||
|
|
||||
*/
|
||||
$config['migration_enabled'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migration Type
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migration file names may be based on a sequential identifier or on
|
||||
| a timestamp. Options are:
|
||||
|
|
||||
| 'sequential' = Sequential migration naming (001_add_blog.php)
|
||||
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
|
||||
| Use timestamp format YYYYMMDDHHIISS.
|
||||
|
|
||||
| Note: If this configuration value is missing the Migration library
|
||||
| defaults to 'sequential' for backward compatibility with CI2.
|
||||
|
|
||||
*/
|
||||
$config['migration_type'] = 'timestamp';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the name of the table that will store the current migrations state.
|
||||
| When migrations runs it will store in a database table which migration
|
||||
| level the system is at. It then compares the migration level in this
|
||||
| table to the $config['migration_version'] if they are not the same it
|
||||
| will migrate up. This must be set.
|
||||
|
|
||||
*/
|
||||
$config['migration_table'] = 'migrations';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto Migrate To Latest
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If this is set to TRUE when you load the migrations class and have
|
||||
| $config['migration_enabled'] set to TRUE the system will auto migrate
|
||||
| to your latest migration (whatever $config['migration_version'] is
|
||||
| set to). This way you do not have to call migrations anywhere else
|
||||
| in your code to have the latest migration.
|
||||
|
|
||||
*/
|
||||
$config['migration_auto_latest'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations version
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is used to set migration version that the file system should be on.
|
||||
| If you run $this->migration->current() this is the version that schema will
|
||||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Path to your migrations folder.
|
||||
| Typically, it will be within your application path.
|
||||
| Also, writing permission is required within the migrations path.
|
||||
|
|
||||
*/
|
||||
$config['migration_path'] = APPPATH.'migrations/';
|
186
application/config/mimes.php
Executable file
186
application/config/mimes.php
Executable file
@ -0,0 +1,186 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| MIME TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of mime types. It is used by the
|
||||
| Upload class to help identify allowed file types.
|
||||
|
|
||||
*/
|
||||
return array(
|
||||
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
|
||||
'cpt' => 'application/mac-compactpro',
|
||||
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'),
|
||||
'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
|
||||
'dms' => 'application/octet-stream',
|
||||
'lha' => 'application/octet-stream',
|
||||
'lzh' => 'application/octet-stream',
|
||||
'exe' => array('application/octet-stream', 'application/x-msdownload'),
|
||||
'class' => 'application/octet-stream',
|
||||
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
|
||||
'so' => 'application/octet-stream',
|
||||
'sea' => 'application/octet-stream',
|
||||
'dll' => 'application/octet-stream',
|
||||
'oda' => 'application/oda',
|
||||
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
|
||||
'ai' => array('application/pdf', 'application/postscript'),
|
||||
'eps' => 'application/postscript',
|
||||
'ps' => 'application/postscript',
|
||||
'smi' => 'application/smil',
|
||||
'smil' => 'application/smil',
|
||||
'mif' => 'application/vnd.mif',
|
||||
'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
|
||||
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
|
||||
'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
|
||||
'wbxml' => 'application/wbxml',
|
||||
'wmlc' => 'application/wmlc',
|
||||
'dcr' => 'application/x-director',
|
||||
'dir' => 'application/x-director',
|
||||
'dxr' => 'application/x-director',
|
||||
'dvi' => 'application/x-dvi',
|
||||
'gtar' => 'application/x-gtar',
|
||||
'gz' => 'application/x-gzip',
|
||||
'gzip' => 'application/x-gzip',
|
||||
'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
|
||||
'php4' => 'application/x-httpd-php',
|
||||
'php3' => 'application/x-httpd-php',
|
||||
'phtml' => 'application/x-httpd-php',
|
||||
'phps' => 'application/x-httpd-php-source',
|
||||
'js' => array('application/x-javascript', 'text/plain'),
|
||||
'swf' => 'application/x-shockwave-flash',
|
||||
'sit' => 'application/x-stuffit',
|
||||
'tar' => 'application/x-tar',
|
||||
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
|
||||
'z' => 'application/x-compress',
|
||||
'xhtml' => 'application/xhtml+xml',
|
||||
'xht' => 'application/xhtml+xml',
|
||||
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
|
||||
'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
|
||||
'mid' => 'audio/midi',
|
||||
'midi' => 'audio/midi',
|
||||
'mpga' => 'audio/mpeg',
|
||||
'mp2' => 'audio/mpeg',
|
||||
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
|
||||
'aif' => array('audio/x-aiff', 'audio/aiff'),
|
||||
'aiff' => array('audio/x-aiff', 'audio/aiff'),
|
||||
'aifc' => 'audio/x-aiff',
|
||||
'ram' => 'audio/x-pn-realaudio',
|
||||
'rm' => 'audio/x-pn-realaudio',
|
||||
'rpm' => 'audio/x-pn-realaudio-plugin',
|
||||
'ra' => 'audio/x-realaudio',
|
||||
'rv' => 'video/vnd.rn-realvideo',
|
||||
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
|
||||
'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
|
||||
'gif' => 'image/gif',
|
||||
'jpeg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpe' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'png' => array('image/png', 'image/x-png'),
|
||||
'tiff' => 'image/tiff',
|
||||
'tif' => 'image/tiff',
|
||||
'heic' => 'image/heic',
|
||||
'heif' => 'image/heif',
|
||||
'css' => array('text/css', 'text/plain'),
|
||||
'html' => array('text/html', 'text/plain'),
|
||||
'htm' => array('text/html', 'text/plain'),
|
||||
'shtml' => array('text/html', 'text/plain'),
|
||||
'txt' => 'text/plain',
|
||||
'text' => 'text/plain',
|
||||
'log' => array('text/plain', 'text/x-log'),
|
||||
'rtx' => 'text/richtext',
|
||||
'rtf' => 'text/rtf',
|
||||
'xml' => array('application/xml', 'text/xml', 'text/plain'),
|
||||
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
|
||||
'mpeg' => 'video/mpeg',
|
||||
'mpg' => 'video/mpeg',
|
||||
'mpe' => 'video/mpeg',
|
||||
'qt' => 'video/quicktime',
|
||||
'mov' => 'video/quicktime',
|
||||
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
|
||||
'movie' => 'video/x-sgi-movie',
|
||||
'doc' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
|
||||
'dot' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
|
||||
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
|
||||
'word' => array('application/msword', 'application/octet-stream'),
|
||||
'xl' => 'application/excel',
|
||||
'eml' => 'message/rfc822',
|
||||
'json' => array('application/json', 'text/json'),
|
||||
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
|
||||
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
|
||||
'p12' => 'application/x-pkcs12',
|
||||
'p7a' => 'application/x-pkcs7-signature',
|
||||
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7r' => 'application/x-pkcs7-certreqresp',
|
||||
'p7s' => 'application/pkcs7-signature',
|
||||
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
|
||||
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
|
||||
'der' => 'application/x-x509-ca-cert',
|
||||
'kdb' => 'application/octet-stream',
|
||||
'pgp' => 'application/pgp',
|
||||
'gpg' => 'application/gpg-keys',
|
||||
'sst' => 'application/octet-stream',
|
||||
'csr' => 'application/octet-stream',
|
||||
'rsa' => 'application/x-pkcs7',
|
||||
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
|
||||
'3g2' => 'video/3gpp2',
|
||||
'3gp' => array('video/3gp', 'video/3gpp'),
|
||||
'mp4' => 'video/mp4',
|
||||
'm4a' => 'audio/x-m4a',
|
||||
'f4v' => array('video/mp4', 'video/x-f4v'),
|
||||
'flv' => 'video/x-flv',
|
||||
'webm' => 'video/webm',
|
||||
'aac' => array('audio/x-aac', 'audio/aac'),
|
||||
'm4u' => 'application/vnd.mpegurl',
|
||||
'm3u' => 'text/plain',
|
||||
'xspf' => 'application/xspf+xml',
|
||||
'vlc' => 'application/videolan',
|
||||
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
|
||||
'au' => 'audio/x-au',
|
||||
'ac3' => 'audio/ac3',
|
||||
'flac' => 'audio/x-flac',
|
||||
'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'),
|
||||
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
|
||||
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
|
||||
'ics' => 'text/calendar',
|
||||
'ical' => 'text/calendar',
|
||||
'zsh' => 'text/x-scriptzsh',
|
||||
'7z' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'7zip' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
|
||||
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
|
||||
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
|
||||
'svg' => array('image/svg+xml', 'image/svg', 'application/xml', 'text/xml'),
|
||||
'vcf' => 'text/x-vcard',
|
||||
'srt' => array('text/srt', 'text/plain'),
|
||||
'vtt' => array('text/vtt', 'text/plain'),
|
||||
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'),
|
||||
'odc' => 'application/vnd.oasis.opendocument.chart',
|
||||
'otc' => 'application/vnd.oasis.opendocument.chart-template',
|
||||
'odf' => 'application/vnd.oasis.opendocument.formula',
|
||||
'otf' => 'application/vnd.oasis.opendocument.formula-template',
|
||||
'odg' => 'application/vnd.oasis.opendocument.graphics',
|
||||
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
|
||||
'odi' => 'application/vnd.oasis.opendocument.image',
|
||||
'oti' => 'application/vnd.oasis.opendocument.image-template',
|
||||
'odp' => 'application/vnd.oasis.opendocument.presentation',
|
||||
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
|
||||
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
||||
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
|
||||
'odt' => 'application/vnd.oasis.opendocument.text',
|
||||
'odm' => 'application/vnd.oasis.opendocument.text-master',
|
||||
'ott' => 'application/vnd.oasis.opendocument.text-template',
|
||||
'oth' => 'application/vnd.oasis.opendocument.text-web'
|
||||
);
|
14
application/config/profiler.php
Executable file
14
application/config/profiler.php
Executable file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Profiler Sections
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you determine whether or not various sections of Profiler
|
||||
| data are displayed when the Profiler is enabled.
|
||||
| Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/userguide3/general/profiling.html
|
||||
|
|
||||
*/
|
63
application/config/routes.php
Executable file
63
application/config/routes.php
Executable file
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| URI ROUTING
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you re-map URI requests to specific controller functions.
|
||||
|
|
||||
| Typically there is a one-to-one relationship between a URL string
|
||||
| and its corresponding controller class/method. The segments in a
|
||||
| URL normally follow this pattern:
|
||||
|
|
||||
| example.com/class/method/id/
|
||||
|
|
||||
| In some instances, however, you may want to remap this relationship
|
||||
| so that a different class/function is called than the one
|
||||
| corresponding to the URL.
|
||||
|
|
||||
| Please see the user guide for complete details:
|
||||
|
|
||||
| https://codeigniter.com/userguide3/general/routing.html
|
||||
|
|
||||
| -------------------------------------------------------------------------
|
||||
| RESERVED ROUTES
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
||||
| There are three reserved routes:
|
||||
|
|
||||
| $route['default_controller'] = 'welcome';
|
||||
|
|
||||
| This route indicates which controller class should be loaded if the
|
||||
| URI contains no data. In the above example, the "welcome" class
|
||||
| would be loaded.
|
||||
|
|
||||
| $route['404_override'] = 'errors/page_missing';
|
||||
|
|
||||
| This route will tell the Router which controller/method to use if those
|
||||
| provided in the URL cannot be matched to a valid route.
|
||||
|
|
||||
| $route['translate_uri_dashes'] = FALSE;
|
||||
|
|
||||
| This is not exactly a route, but allows you to automatically route
|
||||
| controller and method names that contain dashes. '-' isn't a valid
|
||||
| class or method name character, so it requires translation.
|
||||
| When you set this option to TRUE, it will replace ALL dashes in the
|
||||
| controller and method URI segments.
|
||||
|
|
||||
| Examples: my-controller/index -> my_controller/index
|
||||
| my-controller/my-method -> my_controller/my_method
|
||||
*/
|
||||
$route['default_controller'] = 'welcome';
|
||||
$route['404_override'] = '';
|
||||
$route['translate_uri_dashes'] = FALSE;
|
||||
// Rute untuk halaman profil
|
||||
$route['dashboard/profile'] = 'dashboard/profile';
|
||||
|
||||
// API untuk artikel, jika diperlukan untuk akses via API
|
||||
$route['api/artikel'] = 'api/artikel';
|
||||
|
||||
|
||||
// Rute untuk melihat detail artikel (opsional jika ada detail artikel)
|
||||
$route['artikel/detail/(:any)'] = 'artikel/detail/$1'; // Menampilkan detail artikel berdasarkan slug
|
64
application/config/smileys.php
Executable file
64
application/config/smileys.php
Executable file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| SMILEYS
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of smileys for use with the emoticon helper.
|
||||
| Individual images can be used to replace multiple smileys. For example:
|
||||
| :-) and :) use the same image replacement.
|
||||
|
|
||||
| Please see user guide for more info:
|
||||
| https://codeigniter.com/userguide3/helpers/smiley_helper.html
|
||||
|
|
||||
*/
|
||||
$smileys = array(
|
||||
|
||||
// smiley image name width height alt
|
||||
|
||||
':-)' => array('grin.gif', '19', '19', 'grin'),
|
||||
':lol:' => array('lol.gif', '19', '19', 'LOL'),
|
||||
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
|
||||
':)' => array('smile.gif', '19', '19', 'smile'),
|
||||
';-)' => array('wink.gif', '19', '19', 'wink'),
|
||||
';)' => array('wink.gif', '19', '19', 'wink'),
|
||||
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
|
||||
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
|
||||
':-S' => array('confused.gif', '19', '19', 'confused'),
|
||||
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
|
||||
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
|
||||
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
|
||||
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
|
||||
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
|
||||
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
|
||||
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
|
||||
':long:' => array('longface.gif', '19', '19', 'long face'),
|
||||
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
|
||||
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
|
||||
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
|
||||
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
|
||||
':down:' => array('downer.gif', '19', '19', 'downer'),
|
||||
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
|
||||
':sick:' => array('sick.gif', '19', '19', 'sick'),
|
||||
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
|
||||
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
|
||||
'>:(' => array('mad.gif', '19', '19', 'mad'),
|
||||
':mad:' => array('mad.gif', '19', '19', 'mad'),
|
||||
'>:-(' => array('angry.gif', '19', '19', 'angry'),
|
||||
':angry:' => array('angry.gif', '19', '19', 'angry'),
|
||||
':zip:' => array('zip.gif', '19', '19', 'zipper'),
|
||||
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
|
||||
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
|
||||
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
|
||||
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
|
||||
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
|
||||
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
|
||||
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
|
||||
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
|
||||
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
|
||||
':snake:' => array('snake.gif', '19', '19', 'snake'),
|
||||
':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'),
|
||||
':question:' => array('question.gif', '19', '19', 'question')
|
||||
|
||||
);
|
222
application/config/user_agents.php
Executable file
222
application/config/user_agents.php
Executable file
@ -0,0 +1,222 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| USER AGENT TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains four arrays of user agent data. It is used by the
|
||||
| User Agent Class to help identify browser, platform, robot, and
|
||||
| mobile device data. The array keys are used to identify the device
|
||||
| and the array values are used to set the actual name of the item.
|
||||
*/
|
||||
$platforms = array(
|
||||
'windows nt 10.0' => 'Windows 10',
|
||||
'windows nt 6.3' => 'Windows 8.1',
|
||||
'windows nt 6.2' => 'Windows 8',
|
||||
'windows nt 6.1' => 'Windows 7',
|
||||
'windows nt 6.0' => 'Windows Vista',
|
||||
'windows nt 5.2' => 'Windows 2003',
|
||||
'windows nt 5.1' => 'Windows XP',
|
||||
'windows nt 5.0' => 'Windows 2000',
|
||||
'windows nt 4.0' => 'Windows NT 4.0',
|
||||
'winnt4.0' => 'Windows NT 4.0',
|
||||
'winnt 4.0' => 'Windows NT',
|
||||
'winnt' => 'Windows NT',
|
||||
'windows 98' => 'Windows 98',
|
||||
'win98' => 'Windows 98',
|
||||
'windows 95' => 'Windows 95',
|
||||
'win95' => 'Windows 95',
|
||||
'windows phone' => 'Windows Phone',
|
||||
'windows' => 'Unknown Windows OS',
|
||||
'android' => 'Android',
|
||||
'blackberry' => 'BlackBerry',
|
||||
'iphone' => 'iOS',
|
||||
'ipad' => 'iOS',
|
||||
'ipod' => 'iOS',
|
||||
'os x' => 'Mac OS X',
|
||||
'ppc mac' => 'Power PC Mac',
|
||||
'freebsd' => 'FreeBSD',
|
||||
'ppc' => 'Macintosh',
|
||||
'linux' => 'Linux',
|
||||
'debian' => 'Debian',
|
||||
'sunos' => 'Sun Solaris',
|
||||
'beos' => 'BeOS',
|
||||
'apachebench' => 'ApacheBench',
|
||||
'aix' => 'AIX',
|
||||
'irix' => 'Irix',
|
||||
'osf' => 'DEC OSF',
|
||||
'hp-ux' => 'HP-UX',
|
||||
'netbsd' => 'NetBSD',
|
||||
'bsdi' => 'BSDi',
|
||||
'openbsd' => 'OpenBSD',
|
||||
'gnu' => 'GNU/Linux',
|
||||
'unix' => 'Unknown Unix OS',
|
||||
'symbian' => 'Symbian OS'
|
||||
);
|
||||
|
||||
|
||||
// The order of this array should NOT be changed. Many browsers return
|
||||
// multiple browser types so we want to identify the sub-type first.
|
||||
$browsers = array(
|
||||
'OPR' => 'Opera',
|
||||
'Flock' => 'Flock',
|
||||
'Edge' => 'Edge',
|
||||
'Chrome' => 'Chrome',
|
||||
// Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
|
||||
'Opera.*?Version' => 'Opera',
|
||||
'Opera' => 'Opera',
|
||||
'MSIE' => 'Internet Explorer',
|
||||
'Internet Explorer' => 'Internet Explorer',
|
||||
'Trident.* rv' => 'Internet Explorer',
|
||||
'Shiira' => 'Shiira',
|
||||
'Firefox' => 'Firefox',
|
||||
'Chimera' => 'Chimera',
|
||||
'Phoenix' => 'Phoenix',
|
||||
'Firebird' => 'Firebird',
|
||||
'Camino' => 'Camino',
|
||||
'Netscape' => 'Netscape',
|
||||
'OmniWeb' => 'OmniWeb',
|
||||
'Safari' => 'Safari',
|
||||
'Mozilla' => 'Mozilla',
|
||||
'Konqueror' => 'Konqueror',
|
||||
'icab' => 'iCab',
|
||||
'Lynx' => 'Lynx',
|
||||
'Links' => 'Links',
|
||||
'hotjava' => 'HotJava',
|
||||
'amaya' => 'Amaya',
|
||||
'IBrowse' => 'IBrowse',
|
||||
'Maxthon' => 'Maxthon',
|
||||
'Ubuntu' => 'Ubuntu Web Browser'
|
||||
);
|
||||
|
||||
$mobiles = array(
|
||||
// legacy array, old values commented out
|
||||
'mobileexplorer' => 'Mobile Explorer',
|
||||
// 'openwave' => 'Open Wave',
|
||||
// 'opera mini' => 'Opera Mini',
|
||||
// 'operamini' => 'Opera Mini',
|
||||
// 'elaine' => 'Palm',
|
||||
'palmsource' => 'Palm',
|
||||
// 'digital paths' => 'Palm',
|
||||
// 'avantgo' => 'Avantgo',
|
||||
// 'xiino' => 'Xiino',
|
||||
'palmscape' => 'Palmscape',
|
||||
// 'nokia' => 'Nokia',
|
||||
// 'ericsson' => 'Ericsson',
|
||||
// 'blackberry' => 'BlackBerry',
|
||||
// 'motorola' => 'Motorola'
|
||||
|
||||
// Phones and Manufacturers
|
||||
'motorola' => 'Motorola',
|
||||
'nokia' => 'Nokia',
|
||||
'nexus' => 'Nexus',
|
||||
'palm' => 'Palm',
|
||||
'iphone' => 'Apple iPhone',
|
||||
'ipad' => 'iPad',
|
||||
'ipod' => 'Apple iPod Touch',
|
||||
'sony' => 'Sony Ericsson',
|
||||
'ericsson' => 'Sony Ericsson',
|
||||
'blackberry' => 'BlackBerry',
|
||||
'cocoon' => 'O2 Cocoon',
|
||||
'blazer' => 'Treo',
|
||||
'lg' => 'LG',
|
||||
'amoi' => 'Amoi',
|
||||
'xda' => 'XDA',
|
||||
'mda' => 'MDA',
|
||||
'vario' => 'Vario',
|
||||
'htc' => 'HTC',
|
||||
'samsung' => 'Samsung',
|
||||
'sharp' => 'Sharp',
|
||||
'sie-' => 'Siemens',
|
||||
'alcatel' => 'Alcatel',
|
||||
'benq' => 'BenQ',
|
||||
'ipaq' => 'HP iPaq',
|
||||
'mot-' => 'Motorola',
|
||||
'playstation portable' => 'PlayStation Portable',
|
||||
'playstation 3' => 'PlayStation 3',
|
||||
'playstation vita' => 'PlayStation Vita',
|
||||
'hiptop' => 'Danger Hiptop',
|
||||
'nec-' => 'NEC',
|
||||
'panasonic' => 'Panasonic',
|
||||
'philips' => 'Philips',
|
||||
'sagem' => 'Sagem',
|
||||
'sanyo' => 'Sanyo',
|
||||
'spv' => 'SPV',
|
||||
'zte' => 'ZTE',
|
||||
'sendo' => 'Sendo',
|
||||
'nintendo dsi' => 'Nintendo DSi',
|
||||
'nintendo ds' => 'Nintendo DS',
|
||||
'nintendo 3ds' => 'Nintendo 3DS',
|
||||
'wii' => 'Nintendo Wii',
|
||||
'open web' => 'Open Web',
|
||||
'openweb' => 'OpenWeb',
|
||||
'meizu' => 'Meizu',
|
||||
'huawei' => 'Huawei',
|
||||
'xiaomi' => 'Xiaomi',
|
||||
'oppo' => 'Oppo',
|
||||
'vivo' => 'Vivo',
|
||||
'infinix' => 'Infinix',
|
||||
|
||||
// Operating Systems
|
||||
'android' => 'Android',
|
||||
'symbian' => 'Symbian',
|
||||
'SymbianOS' => 'SymbianOS',
|
||||
'elaine' => 'Palm',
|
||||
'series60' => 'Symbian S60',
|
||||
'windows ce' => 'Windows CE',
|
||||
|
||||
// Browsers
|
||||
'obigo' => 'Obigo',
|
||||
'netfront' => 'Netfront Browser',
|
||||
'openwave' => 'Openwave Browser',
|
||||
'mobilexplorer' => 'Mobile Explorer',
|
||||
'operamini' => 'Opera Mini',
|
||||
'opera mini' => 'Opera Mini',
|
||||
'opera mobi' => 'Opera Mobile',
|
||||
'fennec' => 'Firefox Mobile',
|
||||
|
||||
// Other
|
||||
'digital paths' => 'Digital Paths',
|
||||
'avantgo' => 'AvantGo',
|
||||
'xiino' => 'Xiino',
|
||||
'novarra' => 'Novarra Transcoder',
|
||||
'vodafone' => 'Vodafone',
|
||||
'docomo' => 'NTT DoCoMo',
|
||||
'o2' => 'O2',
|
||||
|
||||
// Fallback
|
||||
'mobile' => 'Generic Mobile',
|
||||
'wireless' => 'Generic Mobile',
|
||||
'j2me' => 'Generic Mobile',
|
||||
'midp' => 'Generic Mobile',
|
||||
'cldc' => 'Generic Mobile',
|
||||
'up.link' => 'Generic Mobile',
|
||||
'up.browser' => 'Generic Mobile',
|
||||
'smartphone' => 'Generic Mobile',
|
||||
'cellphone' => 'Generic Mobile'
|
||||
);
|
||||
|
||||
// There are hundreds of bots but these are the most common.
|
||||
$robots = array(
|
||||
'googlebot' => 'Googlebot',
|
||||
'msnbot' => 'MSNBot',
|
||||
'baiduspider' => 'Baiduspider',
|
||||
'bingbot' => 'Bing',
|
||||
'slurp' => 'Inktomi Slurp',
|
||||
'yahoo' => 'Yahoo',
|
||||
'ask jeeves' => 'Ask Jeeves',
|
||||
'fastcrawler' => 'FastCrawler',
|
||||
'infoseek' => 'InfoSeek Robot 1.0',
|
||||
'lycos' => 'Lycos',
|
||||
'yandex' => 'YandexBot',
|
||||
'mediapartners-google' => 'MediaPartners Google',
|
||||
'CRAZYWEBCRAWLER' => 'Crazy Webcrawler',
|
||||
'adsbot-google' => 'AdsBot Google',
|
||||
'feedfetcher-google' => 'Feedfetcher Google',
|
||||
'curious george' => 'Curious George',
|
||||
'ia_archiver' => 'Alexa Crawler',
|
||||
'MJ12bot' => 'Majestic-12',
|
||||
'Uptimebot' => 'Uptimebot',
|
||||
'UptimeRobot' => 'UptimeRobot'
|
||||
);
|
26
application/controllers/Api.php
Normal file
26
application/controllers/Api.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Api extends CI_Controller {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->load->model('Artikel_model');
|
||||
$this->load->helper('url');
|
||||
$this->load->database();
|
||||
}
|
||||
|
||||
public function artikel() {
|
||||
// Dapatkan artikel dari model
|
||||
$data = $this->Artikel_model->get_artikel();
|
||||
|
||||
// Debug log untuk memastikan data yang dikirim
|
||||
log_message('debug', 'Data Artikel: ' . print_r($data, true));
|
||||
|
||||
// Kirimkan sebagai JSON
|
||||
$this->output
|
||||
->set_content_type('application/json')
|
||||
->set_output(json_encode($data));
|
||||
}
|
||||
|
||||
}
|
2227
application/controllers/Dashboard.php
Executable file
2227
application/controllers/Dashboard.php
Executable file
File diff suppressed because it is too large
Load Diff
69
application/controllers/Login.php
Executable file
69
application/controllers/Login.php
Executable file
@ -0,0 +1,69 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Login extends CI_Controller {
|
||||
|
||||
public function index()
|
||||
{
|
||||
// Mencegah caching pada halaman login
|
||||
$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
||||
$this->output->set_header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
$this->output->set_header('Pragma: no-cache');
|
||||
|
||||
// Cek apakah pengguna sudah login
|
||||
if ($this->session->userdata('status') == "telah_login") {
|
||||
redirect(site_url('dashboard'));
|
||||
}
|
||||
|
||||
$this->load->view('v_login');
|
||||
}
|
||||
|
||||
public function aksi()
|
||||
{
|
||||
$this->form_validation->set_rules('username', 'Username', 'required');
|
||||
$this->form_validation->set_rules('password', 'Password', 'required');
|
||||
|
||||
if ($this->form_validation->run() != false) {
|
||||
// Menangkap data username dan password dari halaman login
|
||||
$username = $this->input->post('username');
|
||||
$password = $this->input->post('password');
|
||||
|
||||
// Hash password menggunakan md5
|
||||
$hashed_password = md5($password);
|
||||
|
||||
$where = array(
|
||||
'pengguna_username' => $username,
|
||||
'pengguna_password' => $hashed_password,
|
||||
'pengguna_status' => 1
|
||||
);
|
||||
|
||||
$this->load->model('M_data');
|
||||
|
||||
// Cek kesesuaian login pada tabel pengguna
|
||||
$cek = $this->M_data->cek_login('pengguna', $where)->num_rows();
|
||||
|
||||
// Cek jika login benar
|
||||
if ($cek > 0) {
|
||||
// Ambil data pengguna yang melakukan login
|
||||
$data = $this->M_data->cek_login('pengguna', $where)->row();
|
||||
|
||||
// Buat session untuk pengguna yang berhasil login
|
||||
$data_session = array(
|
||||
'id' => $data->pengguna_id,
|
||||
'username' => $data->pengguna_username,
|
||||
'level' => $data->pengguna_level,
|
||||
'sampul' => $data->pengguna_sampul, // Menyimpan nama file gambar pengguna
|
||||
'status' => 'telah_login'
|
||||
);
|
||||
$this->session->set_userdata($data_session);
|
||||
|
||||
// Alihkan halaman ke halaman dashboard pengguna
|
||||
redirect(base_url() . 'dashboard');
|
||||
} else {
|
||||
redirect(base_url() . 'login?alert=gagal');
|
||||
}
|
||||
} else {
|
||||
$this->load->view('v_login');
|
||||
}
|
||||
}
|
||||
}
|
25
application/controllers/Welcome.php
Executable file
25
application/controllers/Welcome.php
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Welcome extends CI_Controller {
|
||||
|
||||
/**
|
||||
* Index Page for this controller.
|
||||
*
|
||||
* Maps to the following URL
|
||||
* http://example.com/index.php/welcome
|
||||
* - or -
|
||||
* http://example.com/index.php/welcome/index
|
||||
* - or -
|
||||
* Since this controller is set as the default controller in
|
||||
* config/routes.php, it's displayed at http://example.com/
|
||||
*
|
||||
* So any other public methods not prefixed with an underscore will
|
||||
* map to /index.php/welcome/<method_name>
|
||||
* @see https://codeigniter.com/userguide3/general/urls.html
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('welcome_message');
|
||||
}
|
||||
}
|
11
application/controllers/index.html
Executable file
11
application/controllers/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/core/index.html
Executable file
11
application/core/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/helpers/index.html
Executable file
11
application/helpers/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/hooks/index.html
Executable file
11
application/hooks/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/index.html
Executable file
11
application/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/language/english/index.html
Executable file
11
application/language/english/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/language/index.html
Executable file
11
application/language/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/libraries/index.html
Executable file
11
application/libraries/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/logs/index.html
Executable file
11
application/logs/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
35
application/models/Artikel_model.php
Normal file
35
application/models/Artikel_model.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Artikel_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function get_artikel() {
|
||||
$this->db->where('artikel_status', 'publish'); // Hanya ambil artikel yang dipublikasikan
|
||||
$query = $this->db->get('artikel');
|
||||
return $query->result_array(); // Kembalikan hasil sebagai array
|
||||
}
|
||||
|
||||
public function get_artikel_with_satker() {
|
||||
$level = $this->session->userdata('level');
|
||||
$satker_id = $this->session->userdata('satker_id');
|
||||
|
||||
$this->db->select('artikel.*, pengguna.pengguna_nama, kategori.kategori_nama');
|
||||
$this->db->from('artikel');
|
||||
$this->db->join('pengguna', 'artikel.artikel_author = pengguna.pengguna_id');
|
||||
$this->db->join('kategori', 'artikel.artikel_kategori = kategori.kategori_id');
|
||||
|
||||
// Filter berdasarkan level dan satker_id
|
||||
if ($level != 'admin') {
|
||||
$this->db->where('artikel.satker_id', $satker_id);
|
||||
}
|
||||
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
}
|
28
application/models/Chat_model.php
Normal file
28
application/models/Chat_model.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Chat_model extends CI_Model {
|
||||
|
||||
public function get_messages() {
|
||||
// Ambil data pesan beserta data pengguna yang relevan melalui JOIN
|
||||
$this->db->select('chat.message, chat.created_at, pengguna.pengguna_nama as username, pengguna.pengguna_sampul as sampul, pengguna.pengguna_status as status');
|
||||
$this->db->from('chat');
|
||||
$this->db->join('pengguna', 'pengguna.pengguna_id = chat.user_id');
|
||||
$this->db->order_by('chat.created_at', 'ASC');
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
public function insert_message($user_id, $message) {
|
||||
$data = [
|
||||
'user_id' => $user_id,
|
||||
'message' => $message
|
||||
];
|
||||
if($this->db->insert('chat', $data)) {
|
||||
return true;
|
||||
} else {
|
||||
// Catat error database ke log
|
||||
log_message('error', 'DB Error: ' . $this->db->error()['message']);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
12
application/models/Footer_model.php
Normal file
12
application/models/Footer_model.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Footer_model extends CI_Model {
|
||||
|
||||
public function getFooterData()
|
||||
{
|
||||
// Ambil satu baris data profil footer
|
||||
return $this->db->get('profil_footer')->row_array();
|
||||
}
|
||||
|
||||
}
|
13
application/models/Kategori_model.php
Executable file
13
application/models/Kategori_model.php
Executable file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Kategori_model extends CI_Model {
|
||||
public function get_artikel_per_kategori() {
|
||||
$this->db->select('kategori.kategori_nama as nama_kategori, COUNT(artikel.artikel_id) as jumlah');
|
||||
$this->db->from('kategori');
|
||||
$this->db->join('artikel', 'artikel.artikel_kategori = kategori.kategori_id', 'left'); // Menggunakan kategori_id
|
||||
$this->db->group_by('kategori.kategori_nama');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
}
|
68
application/models/M_data.php
Executable file
68
application/models/M_data.php
Executable file
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
class M_data extends CI_Model {
|
||||
|
||||
// Function to check login credentials
|
||||
public function cek_login($table, $where) {
|
||||
return $this->db->get_where($table, $where);
|
||||
}
|
||||
|
||||
// Function to retrieve data from the database
|
||||
public function get_data($table) {
|
||||
return $this->db->get($table);
|
||||
}
|
||||
|
||||
// Function to insert data into the database
|
||||
public function insert_data($data, $table) {
|
||||
return $this->db->insert($table, $data);
|
||||
}
|
||||
|
||||
// Function to edit data
|
||||
public function edit_data($where, $table) {
|
||||
return $this->db->get_where($table, $where);
|
||||
}
|
||||
|
||||
// Function to update data in the database
|
||||
public function update_data($where, $data, $table) {
|
||||
$this->db->where($where);
|
||||
return $this->db->update($table, $data);
|
||||
}
|
||||
|
||||
// Function to delete data from the database
|
||||
public function delete_data($where, $table) {
|
||||
return $this->db->delete($table, $where);
|
||||
}
|
||||
|
||||
public function get_user($where) {
|
||||
// Ensure you are using the correct key from the $where array
|
||||
$this->db->where('pengguna_id', $where['pengguna_id']); // Adjust based on your actual column name
|
||||
$query = $this->db->get('pengguna'); // Ensure this table exists
|
||||
return $query->row(); // Return a single row of user data
|
||||
}
|
||||
|
||||
public function get_satkers()
|
||||
{
|
||||
return $this->db->get('satker')->result(); // Mengambil semua data satker
|
||||
}
|
||||
|
||||
// Fungsi untuk mendapatkan semua pengguna dengan nama satker
|
||||
public function get_all_pengguna_with_satker() {
|
||||
$this->db->select('pengguna.*, satker.nama_satker');
|
||||
$this->db->from('pengguna');
|
||||
$this->db->join('satker', 'satker.satker_id = pengguna.satker_id', 'left'); // pakai nama tabel di kedua sisi
|
||||
return $this->db->get()->result();
|
||||
}
|
||||
|
||||
public function get_pengguna_by_id($id)
|
||||
{
|
||||
$this->db->select('pengguna.*, satker.nama_satker');
|
||||
$this->db->from('pengguna');
|
||||
$this->db->join('satker', 'pengguna.satker_id = satker.satker_id', 'left');
|
||||
$this->db->where('pengguna_id', $id);
|
||||
return $this->db->get();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
16
application/models/Pengguna_model.php
Normal file
16
application/models/Pengguna_model.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Pengguna_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
// Fungsi untuk mendapatkan pengguna berdasarkan pengguna_id
|
||||
public function get_user($where) {
|
||||
$this->db->where('pengguna_id', $where['pengguna_id']);
|
||||
$query = $this->db->get('pengguna');
|
||||
return $query->row();
|
||||
}
|
||||
}
|
11
application/models/index.html
Executable file
11
application/models/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/third_party/index.html
vendored
Executable file
11
application/third_party/index.html
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
135
application/views/dashboard/v_artikel.php
Executable file
135
application/views/dashboard/v_artikel.php
Executable file
@ -0,0 +1,135 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Artikel
|
||||
<small>Manajemen Artikel</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo site_url('dashboard/tambah_artikel'); ?>" aria-label="Buat Artikel Baru" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Artikel Baru
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Menampilkan pesan flashdata -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Artikel</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-striped table-bordered nowrap" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>TANGGAL</th>
|
||||
<th>ARTIKEL</th>
|
||||
<th>AUTHOR</th>
|
||||
<th>KATEGORI</th>
|
||||
<th width="10%">GAMBAR</th>
|
||||
<th>STATUS</th>
|
||||
<th width="10%">OPTION</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($artikel as $k){
|
||||
// Filter jika level satker dan bukan milik satker yang login
|
||||
if($this->session->userdata('level') == "satker" && $this->session->userdata('satker_id') != $k->satker_id){
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo date('d/m/Y H:i', strtotime($k->artikel_tanggal)); ?></td>
|
||||
<td>
|
||||
<?php echo $k->artikel_judul; ?>
|
||||
<br/>
|
||||
<small class="text-muted">
|
||||
<?php echo base_url().$k->artikel_slug; ?>
|
||||
</small>
|
||||
</td>
|
||||
<td><?php echo $k->pengguna_nama; ?></td>
|
||||
<td><?php echo $k->kategori_nama; ?></td>
|
||||
<td><img width="100%" class="img-responsive" src="<?php echo base_url('gambar/artikel/'.$k->artikel_sampul); ?>"></td>
|
||||
<td>
|
||||
<?php
|
||||
if($k->artikel_status=="publish"){
|
||||
echo "<span class='label label-success'>Di Publish</span>";
|
||||
}else{
|
||||
echo "<span class='label label-danger'>Tidak di Publish</span>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<a target="_blank" href="<?php echo base_url($k->artikel_slug); ?>" class="btn btn-success btn-sm">
|
||||
<i class="fa fa-eye"></i>
|
||||
</a>
|
||||
|
||||
<?php
|
||||
// Hak akses untuk penulis
|
||||
if($this->session->userdata('level') == "penulis"){
|
||||
if($this->session->userdata('id') == $k->artikel_author){
|
||||
?>
|
||||
<a href="<?php echo base_url('dashboard/edit_artikel/'.$k->artikel_id); ?>" class="btn btn-warning btn-sm">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a href="<?php echo base_url('dashboard/artikel_hapus/'.$k->artikel_id); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Apakah Anda yakin ingin menghapus artikel ini?');">
|
||||
<i class="fa fa-trash"></i>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
// Hak akses untuk admin
|
||||
elseif($this->session->userdata('level') == "admin"){
|
||||
?>
|
||||
<a href="<?php echo base_url('dashboard/edit_artikel/'.$k->artikel_id); ?>" class="btn btn-warning btn-sm">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a href="<?php echo base_url('dashboard/artikel_hapus/'.$k->artikel_id); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Apakah Anda yakin ingin menghapus artikel ini?');">
|
||||
<i class="fa fa-trash"></i>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
// Hak akses untuk satker
|
||||
elseif($this->session->userdata('level') == "satker"){
|
||||
if($this->session->userdata('satker_id') == $k->satker_id){
|
||||
?>
|
||||
<a href="<?php echo base_url('dashboard/edit_artikel/'.$k->artikel_id); ?>" class="btn btn-warning btn-sm">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a href="<?php echo base_url('dashboard/artikel_hapus/'.$k->artikel_id); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Apakah Anda yakin ingin menghapus artikel ini?');">
|
||||
<i class="fa fa-trash"></i>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
84
application/views/dashboard/v_edit_artikel.php
Executable file
84
application/views/dashboard/v_edit_artikel.php
Executable file
@ -0,0 +1,84 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Artikel
|
||||
<small>Edit Artikel</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url('dashboard/artikel'); ?>" class="btn btn-sm btn-primary">Kembali</a>
|
||||
<br/><br/>
|
||||
|
||||
<!-- Pengecekan apakah artikel ada dan hak akses -->
|
||||
<?php if($artikel): ?>
|
||||
<!-- Validasi hak akses berdasarkan satker_id -->
|
||||
<?php if($this->session->userdata('level') == 'penulis' && $this->session->userdata('satker_id') != $artikel->satker_id): ?>
|
||||
<div class="alert alert-danger">Anda tidak memiliki hak akses untuk mengedit artikel ini.</div>
|
||||
<a href="<?php echo base_url('dashboard/artikel'); ?>" class="btn btn-sm btn-primary">Kembali</a>
|
||||
<?php else: ?>
|
||||
<!-- Formulir Edit Artikel -->
|
||||
<form method="post" action="<?php echo base_url('dashboard/artikel_update'); ?>" enctype="multipart/form-data" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $artikel->artikel_id; ?>">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="judul" id="judul" class="form-control" placeholder="Masukkan judul artikel .." required value="<?php echo set_value('judul', $artikel->artikel_judul); ?>">
|
||||
<?php echo form_error('judul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Konten</label>
|
||||
<textarea id="editor1" name="konten" rows="10" cols="80" required><?php echo set_value('konten', $artikel->artikel_konten); ?></textarea>
|
||||
<?php echo form_error('konten', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach($kategori as $k): ?>
|
||||
<option value="<?php echo $k->kategori_id; ?>" <?php echo set_select('kategori', $k->kategori_id, ($artikel->artikel_kategori == $k->kategori_id)); ?>>
|
||||
<?php echo $k->kategori_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php echo form_error('kategori', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Gambar Sampul</label>
|
||||
<input type="file" name="sampul">
|
||||
<p class="help-block">Silakan upload Gambar...!</p>
|
||||
<?php if(isset($gambar_error)): ?>
|
||||
<div class="text-danger"><?php echo $gambar_error; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php echo form_error('sampul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<input type="submit" name="status" value="Draft" class="btn btn-warning btn-block">
|
||||
<input type="submit" name="status" value="Publish" class="btn btn-success btn-block">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<p>Artikel tidak ditemukan.</p>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
</div>
|
48
application/views/dashboard/v_edit_halaman.php
Executable file
48
application/views/dashboard/v_edit_halaman.php
Executable file
@ -0,0 +1,48 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Halaman
|
||||
<small>Edit Halaman</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url().'dashboard/halaman'; ?>" class="btn btn-sm btn-primary">Kembali</a>
|
||||
<br/><br/>
|
||||
|
||||
<?php foreach($halaman as $h): ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/halaman_update'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $h->halaman_id; ?>">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<!-- Input Judul -->
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="judul" class="form-control" required
|
||||
placeholder="Masukkan judul halaman.."
|
||||
value="<?php echo set_value('judul', $h->halaman_judul); ?>">
|
||||
<?php echo form_error('judul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<!-- Input Konten -->
|
||||
<div class="form-group">
|
||||
<label>Konten</label>
|
||||
<textarea class="form-control" id="editor" name="konten" required><?php echo set_value('konten', $h->halaman_konten); ?></textarea>
|
||||
<?php echo form_error('konten', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<!-- Tombol Submit -->
|
||||
<input type="submit" value="Simpan Perubahan" class="btn btn-success btn-block">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php endforeach; ?>
|
||||
</section>
|
||||
</div>
|
50
application/views/dashboard/v_edit_kategori_layanan.php
Executable file
50
application/views/dashboard/v_edit_kategori_layanan.php
Executable file
@ -0,0 +1,50 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI LAYANAN
|
||||
<small>Edit</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori_layanan'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">Kembali</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Edit kategori Layanan</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<?php foreach($kategori_layanan as $k){ ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/update_kategori_layanan'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori_layanan">Nama kategori Layanan</label>
|
||||
<input type="hidden" name="id" value="<?php echo $k->kategori_layanan_id; ?>">
|
||||
<input type="text" name="kategori_layanan" id="kategori_layanan" class="form-control" placeholder="Masukkan nama kategori layanan .." value="<?php echo $k->kategori_layanan_nama; ?>">
|
||||
<?php echo form_error('kategori_layanan'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
50
application/views/dashboard/v_edit_kategori_panduan.php
Executable file
50
application/views/dashboard/v_edit_kategori_panduan.php
Executable file
@ -0,0 +1,50 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
kategori Panduan
|
||||
<small>Edit</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori_panduan'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">Kembali</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Edit kategori Panduan</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<?php foreach($kategori_panduan as $k){ ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/update_kategori_panduan'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori_panduan">Nama kategori Panduan</label>
|
||||
<input type="hidden" name="id" value="<?php echo $k->kategori_panduan_id; ?>">
|
||||
<input type="text" name="kategori_panduan" id="kategori_panduan" class="form-control" placeholder="Masukkan nama kategori_panduan .." value="<?php echo $k->kategori_panduan_nama; ?>">
|
||||
<?php echo form_error('kategori_panduan'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
50
application/views/dashboard/v_edit_kategori_profil.php
Executable file
50
application/views/dashboard/v_edit_kategori_profil.php
Executable file
@ -0,0 +1,50 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI profil
|
||||
<small>Edit</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori_profil'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">Kembali</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Edit kategori profil</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<?php foreach($kategori_profil as $k){ ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/update_kategori_profil'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori_profil">Nama kategori profil</label>
|
||||
<input type="hidden" name="id" value="<?php echo $k->kategori_profil_id; ?>">
|
||||
<input type="text" name="kategori_profil" id="kategori_profil" class="form-control" placeholder="Masukkan nama kategori profil .." value="<?php echo $k->kategori_profil_nama; ?>">
|
||||
<?php echo form_error('kategori_profil'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
50
application/views/dashboard/v_edit_kategori_rfc2350.php
Executable file
50
application/views/dashboard/v_edit_kategori_rfc2350.php
Executable file
@ -0,0 +1,50 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
kategori RFC2350
|
||||
<small>Edit</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori_rfc2350'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">Kembali</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Edit kategori RFC2350</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<?php foreach($kategori_rfc2350 as $k){ ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/update_kategori_rfc2350'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori_rfc2350">Nama kategori RFC2350</label>
|
||||
<input type="hidden" name="id" value="<?php echo $k->kategori_rfc2350_id; ?>">
|
||||
<input type="text" name="kategori_rfc2350" id="kategori_rfc2350" class="form-control" placeholder="Masukkan nama kategori_rfc2350 .." value="<?php echo $k->kategori_rfc2350_nama; ?>">
|
||||
<?php echo form_error('kategori_rfc2350'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
75
application/views/dashboard/v_edit_layanan.php
Executable file
75
application/views/dashboard/v_edit_layanan.php
Executable file
@ -0,0 +1,75 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Layanan
|
||||
<small>Edit Layanan</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url('dashboard/layanan'); ?>" class="btn btn-sm btn-primary">Kembali</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<?php foreach($layanan as $l): ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/layanan_update'); ?>" enctype="multipart/form-data" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $l->layanan_id; ?>">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="judul" id="judul" class="form-control" placeholder="Masukkan judul layanan .." required value="<?php echo set_value('judul', $l->layanan_judul); ?>">
|
||||
<?php echo form_error('judul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Deskripsi</label>
|
||||
<textarea id="editor1" name="konten" rows="10" cols="80" required><?php echo set_value('konten', $l->layanan_konten); ?></textarea>
|
||||
<?php echo form_error('konten', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach($kategori_layanan as $k): ?>
|
||||
<option value="<?php echo $k->kategori_layanan_id; ?>" <?php echo set_select('kategori_layanan', $k->kategori_layanan_id, ($l->layanan_kategori == $k->kategori_layanan_id)); ?>>
|
||||
<?php echo $k->kategori_layanan_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php echo form_error('kategori_layanan', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Gambar Sampul</label>
|
||||
<input type="file" name="sampul">
|
||||
<p class="help-block">Silakan upload Gambar...!</p>
|
||||
<?php if(isset($gambar_error)): ?>
|
||||
<div class="text-danger"><?php echo $gambar_error; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php echo form_error('sampul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<input type="submit" name="status" value="Draft" class="btn btn-warning btn-block">
|
||||
<input type="submit" name="status" value="Publish" class="btn btn-success btn-block">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php endforeach; ?>
|
||||
</section>
|
||||
</div>
|
69
application/views/dashboard/v_edit_panduan.php
Executable file
69
application/views/dashboard/v_edit_panduan.php
Executable file
@ -0,0 +1,69 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>PANDUAN CSIRT <small>Edit Panduan</small></h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?= site_url('dashboard/panduan'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<?php foreach($panduan as $p): ?>
|
||||
<form method="post" action="<?= site_url('dashboard/panduan_update'); ?>" enctype="multipart/form-data" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>" />
|
||||
<input type="hidden" name="id" value="<?= $p->panduan_id; ?>">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="nama" class="form-control" placeholder="Masukkan nama panduan .." required value="<?= set_value('nama', $p->panduan_nama); ?>">
|
||||
<?= form_error('nama', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach ($kategori_panduan as $k): ?>
|
||||
<option value="<?= $k->kategori_panduan_id; ?>" <?= set_select('kategori_panduan', $k->kategori_panduan_id, ($p->panduan_kategori == $k->kategori_panduan_id)); ?>>
|
||||
<?= $k->kategori_panduan_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?= form_error('kategori', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Upload Dokumen</label>
|
||||
<input type="file" name="dokumen">
|
||||
<p class="help-block">Format yang didukung: PDF, DOC, DOCX</p>
|
||||
<?php if(isset($dokumen_error)): ?>
|
||||
<div class="text-danger"> <?= $dokumen_error; ?> </div>
|
||||
<?php endif; ?>
|
||||
<?= form_error('dokumen', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="progress progress-sm active">
|
||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;" id="progressBar">
|
||||
<span class="sr-only">0% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="submit" name="masuk_bro" value="Draft" class="btn btn-warning btn-block">
|
||||
<input type="submit" name="masuk_bro" value="Publish" class="btn btn-success btn-block">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php endforeach; ?>
|
||||
</section>
|
||||
</div>
|
75
application/views/dashboard/v_edit_profil.php
Executable file
75
application/views/dashboard/v_edit_profil.php
Executable file
@ -0,0 +1,75 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
PROFIL
|
||||
<small>Edit Profil</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url('dashboard/profil'); ?>" class="btn btn-sm btn-primary">Kembali</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<?php foreach($profil as $l): ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/profil_update'); ?>" enctype="multipart/form-data" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $l->profil_id; ?>">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="judul" id="judul" class="form-control" placeholder="Masukkan judul profil .." required value="<?php echo set_value('judul', $l->profil_judul); ?>">
|
||||
<?php echo form_error('judul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Deskripsi</label>
|
||||
<textarea id="editor1" name="konten" rows="10" cols="80" required><?php echo set_value('konten', $l->profil_konten); ?></textarea>
|
||||
<?php echo form_error('konten', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach($kategori_profil as $k): ?>
|
||||
<option value="<?php echo $k->kategori_profil_id; ?>" <?php echo set_select('kategori_profil', $k->kategori_profil_id, ($l->profil_kategori == $k->kategori_profil_id)); ?>>
|
||||
<?php echo $k->kategori_profil_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php echo form_error('kategori_profil', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Gambar Sampul</label>
|
||||
<input type="file" name="sampul">
|
||||
<p class="help-block">Silakan upload Gambar...!</p>
|
||||
<?php if(isset($gambar_error)): ?>
|
||||
<div class="text-danger"><?php echo $gambar_error; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php echo form_error('sampul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<input type="submit" name="status" value="Draft" class="btn btn-warning btn-block">
|
||||
<input type="submit" name="status" value="Publish" class="btn btn-success btn-block">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php endforeach; ?>
|
||||
</section>
|
||||
</div>
|
69
application/views/dashboard/v_edit_rfc2350.php
Executable file
69
application/views/dashboard/v_edit_rfc2350.php
Executable file
@ -0,0 +1,69 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>rfc2350 CSIRT <small>Edit rfc2350</small></h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?= site_url('dashboard/rfc2350'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<?php foreach($rfc2350 as $p): ?>
|
||||
<form method="post" action="<?= site_url('dashboard/rfc2350_update'); ?>" enctype="multipart/form-data" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>" />
|
||||
<input type="hidden" name="id" value="<?= $p->rfc2350_id; ?>">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="nama" class="form-control" placeholder="Masukkan nama rfc2350 .." required value="<?= set_value('nama', $p->rfc2350_nama); ?>">
|
||||
<?= form_error('nama', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach ($kategori_rfc2350 as $k): ?>
|
||||
<option value="<?= $k->kategori_rfc2350_id; ?>" <?= set_select('kategori_rfc2350', $k->kategori_rfc2350_id, ($p->rfc2350_kategori == $k->kategori_rfc2350_id)); ?>>
|
||||
<?= $k->kategori_rfc2350_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?= form_error('kategori', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Upload Dokumen</label>
|
||||
<input type="file" name="dokumen">
|
||||
<p class="help-block">Format yang didukung: PDF, DOC, DOCX</p>
|
||||
<?php if(isset($dokumen_error)): ?>
|
||||
<div class="text-danger"> <?= $dokumen_error; ?> </div>
|
||||
<?php endif; ?>
|
||||
<?= form_error('dokumen', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="progress progress-sm active">
|
||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;" id="progressBar">
|
||||
<span class="sr-only">0% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="submit" name="masuk_bro" value="Draft" class="btn btn-warning btn-block">
|
||||
<input type="submit" name="masuk_bro" value="Publish" class="btn btn-success btn-block">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php endforeach; ?>
|
||||
</section>
|
||||
</div>
|
552
application/views/dashboard/v_footer.php
Executable file
552
application/views/dashboard/v_footer.php
Executable file
@ -0,0 +1,552 @@
|
||||
<!-- footer website -->
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Website</b> Manajemen CSIRT LPP RRI
|
||||
</div>
|
||||
<strong>Copyright © 2025 <a href="https://rri.co.id">Direktorat Teknologi dan Media Baru</a>.</strong> All rights reserved.
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<script src="<?php echo base_url('assets/bower_components/jquery/dist/jquery.min.js'); ?>"></script>
|
||||
<!-- Script AJAX untuk pengambilan & pengiriman pesan -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// Setup AJAX global untuk memasukkan token CSRF, jika perlu
|
||||
$.ajaxSetup({
|
||||
data: {
|
||||
'<?= $this->security->get_csrf_token_name(); ?>': '<?= $this->security->get_csrf_hash(); ?>'
|
||||
}
|
||||
});
|
||||
|
||||
function fetchMessages() {
|
||||
$.ajax({
|
||||
url: "<?php echo site_url('dashboard/fetch_messages'); ?>",
|
||||
method: "GET",
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
var chatBox = $('#chat-box');
|
||||
chatBox.html('');
|
||||
data.forEach(function(message) {
|
||||
chatBox.append(`
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url('gambar/pengguna/'); ?>${message.sampul}" alt="user image" class="${message.status}">
|
||||
<p class="message">
|
||||
<a href="#" class="name">
|
||||
<small class="text-muted pull-right">
|
||||
<i class="fa fa-clock-o"></i> ${message.created_at}
|
||||
</small>
|
||||
${message.username}
|
||||
</a>
|
||||
${message.message}
|
||||
</p>
|
||||
</div>
|
||||
`);
|
||||
});
|
||||
// Scroll ke pesan terbaru
|
||||
chatBox.scrollTop(chatBox[0].scrollHeight);
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.error('Error fetching messages:', error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#chat-form').on('submit', function(e) {
|
||||
e.preventDefault();
|
||||
var message = $('#message').val().trim();
|
||||
if (message === "") {
|
||||
alert("Pesan tidak boleh kosong!");
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
url: "<?php echo site_url('dashboard/send_message'); ?>",
|
||||
method: "POST",
|
||||
data: { message: message },
|
||||
dataType: "json",
|
||||
success: function(response) {
|
||||
if (response.status === 'success') {
|
||||
$('#message').val('');
|
||||
fetchMessages(); // Refresh segera setelah pesan berhasil dikirim
|
||||
} else {
|
||||
alert(response.message || "Gagal mengirim pesan.");
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.error('Error sending message:', error);
|
||||
alert("Gagal mengirim pesan.");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Panggil fetchMessages saat halaman selesai dimuat
|
||||
fetchMessages();
|
||||
|
||||
// Auto-refresh chatbox setiap 5 detik (5000 milidetik)
|
||||
setInterval(fetchMessages, 5000);
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="<?php echo base_url('assets/bower_components/raphael/raphael.min.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/morris.js/morris.min.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/jquery-ui/jquery-ui.min.js'); ?>"></script>
|
||||
|
||||
<!-- Untuk Progress Bar -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#uploadForm').on('submit', function(e) {
|
||||
e.preventDefault(); // Mencegah form dari pengiriman default
|
||||
|
||||
// Validasi file sebelum upload
|
||||
var fileInput = $('input[name="sampul"]')[0];
|
||||
if (fileInput.files.length === 0) {
|
||||
alert('Silakan pilih file untuk diupload.');
|
||||
return;
|
||||
}
|
||||
|
||||
// Mengambil data form
|
||||
var formData = new FormData(this);
|
||||
|
||||
// Menggunakan AJAX untuk mengupload file
|
||||
$.ajax({
|
||||
url: $(this).attr('action'), // URL untuk mengirim data
|
||||
type: 'POST',
|
||||
data: formData,
|
||||
contentType: false, // Jangan set content type
|
||||
processData: false, // Jangan proses data
|
||||
xhr: function() {
|
||||
var xhr = new window.XMLHttpRequest();
|
||||
// Mengupdate progress bar
|
||||
xhr.upload.addEventListener("progress", function(evt) {
|
||||
if (evt.lengthComputable) {
|
||||
var percentComplete = evt.loaded / evt.total;
|
||||
percentComplete = parseInt(percentComplete * 100);
|
||||
$('#progressBarArtikel').css('width', percentComplete + '%');
|
||||
$('#progressBarArtikel').attr('aria-valuenow', percentComplete);
|
||||
$('#progressBarArtikel span').text(percentComplete + '% Complete');
|
||||
}
|
||||
}, false);
|
||||
return xhr;
|
||||
},
|
||||
success: function(response) {
|
||||
// Reset progress bar
|
||||
$('#progressBarArtikel').css('width', '0%');
|
||||
$('#progressBarArtikel').attr('aria-valuenow', 0);
|
||||
$('#progressBarArtikel span').text('0% Complete');
|
||||
|
||||
// Pastikan respons adalah objek JSON
|
||||
try {
|
||||
response = JSON.parse(response);
|
||||
} catch (e) {
|
||||
alert('Terjadi kesalahan saat memproses respons dari server.');
|
||||
return;
|
||||
}
|
||||
|
||||
if (response.status === 'success') {
|
||||
// Redirect atau tampilkan pesan sukses
|
||||
window.location.href = "<?php echo base_url('dashboard/artikel'); ?>";
|
||||
} else {
|
||||
// Tampilkan pesan kesalahan
|
||||
alert(response.message);
|
||||
}
|
||||
},
|
||||
error: function() {
|
||||
// Tindakan jika terjadi kesalahan
|
||||
alert('Terjadi kesalahan saat mengupload file.');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#uploadDokumenForm').on('submit', function(e) {
|
||||
e.preventDefault(); // Mencegah form dari pengiriman default
|
||||
|
||||
// Validasi file sebelum upload
|
||||
var fileInput = $('input[name="dokumen_baru"]')[0];
|
||||
if (fileInput.files.length === 0) {
|
||||
alert('Silakan pilih file untuk diupload.');
|
||||
return;
|
||||
}
|
||||
|
||||
// Mengambil data form
|
||||
var formData = new FormData(this);
|
||||
|
||||
// Menggunakan AJAX untuk mengupload file
|
||||
$.ajax({
|
||||
url: $(this).attr('action'), // URL untuk mengirim data
|
||||
type: 'POST',
|
||||
data: formData,
|
||||
contentType: false, // Jangan set content type
|
||||
processData: false, // Jangan proses data
|
||||
xhr: function() {
|
||||
var xhr = new window.XMLHttpRequest();
|
||||
// Mengupdate progress bar
|
||||
xhr.upload.addEventListener("progress", function(evt) {
|
||||
if (evt.lengthComputable) {
|
||||
var percentComplete = evt.loaded / evt.total;
|
||||
percentComplete = parseInt(percentComplete * 100);
|
||||
$('#progressBarDokumen').css('width', percentComplete + '%');
|
||||
$('#progressBarDokumen').attr('aria-valuenow', percentComplete);
|
||||
$('#progressBarDokumen span').text(percentComplete + '% Complete');
|
||||
}
|
||||
}, false);
|
||||
return xhr;
|
||||
},
|
||||
success: function(response) {
|
||||
// Reset progress bar
|
||||
$('#progressBarDokumen').css('width', '0%');
|
||||
$('#progressBarDokumen').attr('aria-valuenow', 0);
|
||||
$('#progressBarDokumen span').text('0% Complete');
|
||||
|
||||
// Pastikan respons adalah objek JSON
|
||||
try {
|
||||
response = JSON.parse(response);
|
||||
} catch (e) {
|
||||
alert('Terjadi kesalahan saat memproses respons dari server.');
|
||||
return;
|
||||
}
|
||||
|
||||
if (response.status === 'success') {
|
||||
// Redirect ke dashboard/panduan
|
||||
window.location.href = "<?php echo base_url('dashboard/panduan'); ?>";
|
||||
} else {
|
||||
// Tampilkan pesan kesalahan
|
||||
alert(response.message);
|
||||
}
|
||||
},
|
||||
error: function() {
|
||||
// Tindakan jika terjadi kesalahan
|
||||
alert('Terjadi kesalahan saat mengupload file.');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Timer Logout Website Jika Tidak Ada Aktifitas -->
|
||||
<script>
|
||||
let timeout;
|
||||
const logoutUrl = "<?php echo base_url('dashboard/keluar'); ?>"; // URL logout yang dapat disesuaikan
|
||||
|
||||
// Fungsi untuk logout
|
||||
function logout() {
|
||||
window.location.href = logoutUrl;
|
||||
}
|
||||
|
||||
// Fungsi untuk reset timer
|
||||
function resetTimer() {
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(logout, 1800000); // 30 Menit
|
||||
}
|
||||
|
||||
// Menetapkan event listener untuk mendeteksi aktivitas
|
||||
window.onload = resetTimer;
|
||||
document.onmousemove = resetTimer;
|
||||
document.onkeypress = resetTimer;
|
||||
document.ontouchstart = resetTimer; // Untuk perangkat sentuh
|
||||
document.ontouchmove = resetTimer; // Untuk mendeteksi gerakan sentuh
|
||||
document.onclick = resetTimer; // Untuk mendeteksi klik
|
||||
document.onscroll = resetTimer; // Untuk mendeteksi scrolling
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$.widget.bridge('uibutton', $.ui.button);
|
||||
</script>
|
||||
|
||||
<script src="<?php echo base_url('assets/bower_components/bootstrap/dist/js/bootstrap.min.js'); ?>"></script>
|
||||
|
||||
<!-- Memanggil ChartJS dan adapter date untuk sumbu time -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns"></script>
|
||||
|
||||
<!-- bandwidthChart -->
|
||||
<script>
|
||||
/* === Chart 1: Real-Time TX/RX Bandwidth === */
|
||||
const ctx = document.getElementById('bandwidthChart').getContext('2d');
|
||||
const chart = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: [],
|
||||
datasets: [
|
||||
{
|
||||
label: 'TX (kbps)',
|
||||
borderColor: 'rgb(255, 99, 132)',
|
||||
backgroundColor: 'rgba(255, 99, 132, 0.1)',
|
||||
data: [],
|
||||
fill: true,
|
||||
tension: 0.3
|
||||
},
|
||||
{
|
||||
label: 'RX (kbps)',
|
||||
borderColor: 'rgb(54, 162, 235)',
|
||||
backgroundColor: 'rgba(54, 162, 235, 0.1)',
|
||||
data: [],
|
||||
fill: true,
|
||||
tension: 0.3
|
||||
}
|
||||
]
|
||||
},
|
||||
options: {
|
||||
responsive: true,
|
||||
scales: {
|
||||
x: {
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Waktu'
|
||||
}
|
||||
},
|
||||
y: {
|
||||
beginAtZero: true,
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Bandwidth (kbps)'
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: {
|
||||
legend: {
|
||||
display: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function fetchData() {
|
||||
fetch('<?= base_url('dashboard/get_bandwidth_data') ?>')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const now = new Date().toLocaleTimeString();
|
||||
chart.data.labels.push(now);
|
||||
chart.data.datasets[0].data.push(data.tx);
|
||||
chart.data.datasets[1].data.push(data.rx);
|
||||
|
||||
if (chart.data.labels.length > 20) {
|
||||
chart.data.labels.shift();
|
||||
chart.data.datasets[0].data.shift();
|
||||
chart.data.datasets[1].data.shift();
|
||||
}
|
||||
|
||||
chart.update();
|
||||
})
|
||||
.catch(error => console.error('Gagal ambil data:', error));
|
||||
}
|
||||
|
||||
setInterval(fetchData, 2000); // Update setiap 2 detik
|
||||
|
||||
function fetchData() {
|
||||
fetch('<?= base_url('dashboard/get_bandwidth_data') ?>')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const now = new Date().toLocaleTimeString();
|
||||
chart.data.labels.push(now);
|
||||
chart.data.datasets[0].data.push(data.tx);
|
||||
chart.data.datasets[1].data.push(data.rx);
|
||||
|
||||
if (chart.data.labels.length > 20) {
|
||||
chart.data.labels.shift();
|
||||
chart.data.datasets[0].data.shift();
|
||||
chart.data.datasets[1].data.shift();
|
||||
}
|
||||
|
||||
chart.update();
|
||||
})
|
||||
.catch(error => console.error('Gagal ambil data:', error));
|
||||
}
|
||||
|
||||
setInterval(fetchData, 2000); // Update setiap 2 detik
|
||||
|
||||
|
||||
/* === Chart 2: Trend Analysis Insiden (Bar Chart) === */
|
||||
// Data trend diambil dari variabel PHP (encoded ke JSON)
|
||||
const trendLabels = <?= $trend_labels; ?>;
|
||||
const trendCounts = <?= $trend_counts; ?>;
|
||||
|
||||
const ctxTrend = document.getElementById('trendChart').getContext('2d');
|
||||
const trendChart = new Chart(ctxTrend, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: trendLabels,
|
||||
datasets: [{
|
||||
label: 'Jumlah Insiden',
|
||||
data: trendCounts,
|
||||
backgroundColor: 'rgba(153,102,255,0.6)',
|
||||
borderColor: 'rgba(153,102,255,1)',
|
||||
borderWidth: 1
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
responsive: true,
|
||||
scales: {
|
||||
x: { title: { display: true, text: 'Hari' } },
|
||||
y: { beginAtZero: true, title: { display: true, text: 'Jumlah Insiden' } }
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script src="<?php echo base_url('assets/bower_components/datatables.net/js/jquery.dataTables.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/datatables.net-bs/js/dataTables.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/datatables.net-bs/js/dataTables.bootstrap.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/datatables.net-bs/js/dataTables.responsive.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/datatables.net-bs/js/responsive.bootstrap.js'); ?>"></script>
|
||||
|
||||
<!-- DataTables -->
|
||||
<!-- script>
|
||||
$(function () {
|
||||
// Inisialisasi DataTable untuk tabel dengan ID 'example1'
|
||||
$('#table45').DataTable({
|
||||
'pageLength': 6 // Menampilkan 6 baris per halaman
|
||||
});
|
||||
|
||||
// Inisialisasi DataTable untuk tabel dengan ID 'example2' dengan opsi konfigurasi
|
||||
$('#table84').DataTable({
|
||||
'paging': true, // Mengaktifkan pagination
|
||||
'lengthChange': false, // Menonaktifkan perubahan jumlah tampilan
|
||||
'searching': false, // Menonaktifkan fitur pencarian
|
||||
'ordering': true, // Mengaktifkan pengurutan kolom
|
||||
'info': true, // Menampilkan informasi tabel
|
||||
'autoWidth': false, // Menonaktifkan lebar otomatis kolom
|
||||
'pageLength': 5 // Menampilkan 5 baris per halaman
|
||||
});
|
||||
});
|
||||
</!-->
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$('#table45').DataTable({
|
||||
responsive: true
|
||||
});
|
||||
|
||||
$('#table84').DataTable({
|
||||
responsive: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Untuk menampilkan pop up jika ingin delete table -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.querySelectorAll('.delete-btn').forEach(function(button) {
|
||||
button.addEventListener('click', function(event) {
|
||||
if (!confirm('Apakah Anda yakin ingin menghapus kategori ini?')) {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Untuk Menampilkan Nama Satker Pada Level -->
|
||||
<script>
|
||||
// Fungsi untuk menampilkan atau menyembunyikan dropdown Satker berdasarkan level yang dipilih
|
||||
function toggleSatkerSelect() {
|
||||
var level = document.getElementById('level').value; // Ambil nilai level
|
||||
var satkerDiv = document.getElementById('satker-select'); // Ambil div untuk Nama Satker
|
||||
|
||||
// Jika level = satker, tampilkan dropdown Nama Satker
|
||||
if (level === 'satker') {
|
||||
satkerDiv.style.display = 'block';
|
||||
} else {
|
||||
satkerDiv.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// Event listener untuk menangani perubahan level
|
||||
document.getElementById('level').addEventListener('change', toggleSatkerSelect);
|
||||
|
||||
// Cek saat halaman diload untuk memastikan tampilan sesuai dengan nilai sebelumnya
|
||||
window.addEventListener('DOMContentLoaded', function() {
|
||||
toggleSatkerSelect(); // Panggil fungsi untuk memeriksa nilai level dan menampilkan dropdown Nama Satker jika perlu
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<!-- Untuk menampilkan Balok Chart Artikel -->
|
||||
<script>
|
||||
const ctx = document.getElementById('barChart').getContext('2d');
|
||||
|
||||
// Data kategori
|
||||
const labels = <?php echo json_encode(array_column($kategori, 'nama_kategori')); ?>;
|
||||
const data = <?php echo json_encode(array_column($kategori, 'jumlah')); ?>;
|
||||
|
||||
// Warna spesifik untuk 15 kategori
|
||||
const backgroundColors = [
|
||||
'rgba(255, 99, 132, 0.6)', // Kategori 1
|
||||
'rgba(54, 162, 235, 0.6)', // Kategori 2
|
||||
'rgba(255, 206, 86, 0.6)', // Kategori 3
|
||||
'rgba(75, 192, 192, 0.6)', // Kategori 4
|
||||
'rgba(153, 102, 255, 0.6)', // Kategori 5
|
||||
'rgba(255, 159, 64, 0.6)', // Kategori 6
|
||||
'rgba(199, 199, 199, 0.6)', // Kategori 7
|
||||
'rgba(255, 99, 71, 0.6)', // Kategori 8
|
||||
'rgba(173, 216, 230, 0.6)', // Kategori 9
|
||||
'rgba(50, 205, 50, 0.6)', // Kategori 10
|
||||
'rgba(147, 112, 219, 0.6)', // Kategori 11
|
||||
'rgba(255, 140, 0, 0.6)', // Kategori 12
|
||||
'rgba(70, 130, 180, 0.6)', // Kategori 13
|
||||
'rgba(240, 128, 128, 0.6)', // Kategori 14
|
||||
'rgba(46, 139, 87, 0.6)' // Kategori 15
|
||||
];
|
||||
|
||||
const borderColors = backgroundColors.map(color => color.replace('0.6', '1')); // Warna garis tepi tanpa transparansi
|
||||
|
||||
const kategoriData = {
|
||||
labels: labels,
|
||||
datasets: [{
|
||||
label: 'Jumlah Artikel per Kategori',
|
||||
data: data,
|
||||
backgroundColor: backgroundColors.slice(0, labels.length), // Ambil warna sebanyak jumlah kategori
|
||||
borderColor: borderColors.slice(0, labels.length), // Sinkronisasi warna garis tepi
|
||||
borderWidth: 1
|
||||
}]
|
||||
};
|
||||
|
||||
const barChart = new Chart(ctx, {
|
||||
type: 'bar',
|
||||
data: kategoriData,
|
||||
options: {
|
||||
scales: {
|
||||
y: {
|
||||
beginAtZero: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="<?php echo base_url('assets/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/plugins/jvectormap/jquery-jvectormap-world-mill-en.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/jquery-knob/dist/jquery.knob.min.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/moment/min/moment.min.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/bootstrap-daterangepicker/daterangepicker.js'); ?>">"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/ckeditor/ckeditor.js'); ?>"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
// Replace the <textarea id="editor1"> with a CKEditor
|
||||
// instance, using default configuration.
|
||||
CKEDITOR.replace('editor1')
|
||||
})
|
||||
</script>
|
||||
<script src="<?php echo base_url('assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js'); ?>"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
//bootstrap WYSIHTML5 - text editor
|
||||
$('.textarea').wysihtml5()
|
||||
})
|
||||
</script>
|
||||
<script src="<?php echo base_url('assets/bower_components/jquery-slimscroll/jquery.slimscroll.min.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/bower_components/fastclick/lib/fastclick.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/dist/js/adminlte.min.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/dist/js/pages/dashboard.js'); ?>"></script>
|
||||
<script src="<?php echo base_url('assets/dist/js/demo.js'); ?>"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
59
application/views/dashboard/v_ganti_password.php
Executable file
59
application/views/dashboard/v_ganti_password.php
Executable file
@ -0,0 +1,59 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
FORM
|
||||
<small>Ganti Password</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Mengganti Password</h3>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// Menampilkan pesan notifikasi menggunakan flashdata
|
||||
if ($this->session->flashdata('alert')) {
|
||||
echo "<div class='alert alert-success'>" . $this->session->flashdata('alert') . "</div>";
|
||||
} elseif ($this->session->flashdata('error')) {
|
||||
echo "<div class='alert alert-danger'>" . $this->session->flashdata('error') . "</div>";
|
||||
}
|
||||
?>
|
||||
|
||||
<form role="form" method="post" action="<?php echo base_url('dashboard/ganti_password_aksi'); ?>">
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="password_lama">Password Lama</label>
|
||||
<input type="password" class="form-control" id="password_lama" name="password_lama" placeholder="Masukkan Password Lama Anda...">
|
||||
<?php echo form_error('password_lama'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password_baru">Password Baru</label>
|
||||
<input type="password" class="form-control" id="password_baru" name="password_baru" placeholder="Masukkan Password Baru Anda...">
|
||||
<?php echo form_error('password_baru'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="konfirmasi_password">Konfirmasi Password Baru</label>
|
||||
<input type="password" class="form-control" id="konfirmasi_password" name="konfirmasi_password" placeholder="Masukkan Ulang Password Baru Anda...">
|
||||
<?php echo form_error('konfirmasi_password'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-primary">GANTI SAJA...!</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
71
application/views/dashboard/v_halaman.php
Executable file
71
application/views/dashboard/v_halaman.php
Executable file
@ -0,0 +1,71 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Pages
|
||||
<small>Manajemen Halaman Website</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url().'dashboard/tambah_halaman'; ?>" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Halaman Baru
|
||||
</a>
|
||||
<br/><br/>
|
||||
|
||||
<!-- Flash Messages -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<?= $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<?= $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Halaman</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-striped table-bordered nowrap" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>Judul Halaman</th>
|
||||
<th>URL Slug</th>
|
||||
<th width="15%">OPSI</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($halaman as $h){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo $h->halaman_judul; ?></td>
|
||||
<td><?php echo base_url()."halaman/".$h->halaman_slug; ?></td>
|
||||
<td>
|
||||
<a target="_blank" href="<?php echo base_url()."halaman/".$h->halaman_slug; ?>" class="btn btn-success btn-sm">
|
||||
<i class="fa fa-eye"></i>
|
||||
</a>
|
||||
<a href="<?php echo base_url().'dashboard/halaman_edit/'.$h->halaman_id; ?>" class="btn btn-warning btn-sm">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a href="<?php echo base_url().'dashboard/halaman_hapus/'.$h->halaman_id; ?>" class="btn btn-danger btn-sm" onclick="return confirm('Hapus halaman ini?');">
|
||||
<i class="fa fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
273
application/views/dashboard/v_header.php
Executable file
273
application/views/dashboard/v_header.php
Executable file
@ -0,0 +1,273 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<title>Dashboard CSIRT</title>
|
||||
<link rel="icon" href="<?php echo base_url('assets/img/favicon.ico'); ?>" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bower_components/bootstrap/dist/css/bootstrap.min.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bower_components/datatables.net-bs/css/dataTables.bootstrap.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bower_components/bootstrap/dist/css/responsive.bootstrap.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bower_components/font-awesome/css/font-awesome.min.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bower_components/Ionicons/css/ionicons.min.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/dist/css/AdminLTE.min.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/dist/css/skins/_all-skins.min.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bower_components/morris.js/morris.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bower_components/jvectormap/jquery-jvectormap.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bower_components/bootstrap-daterangepicker/daterangepicker.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css'); ?>">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
|
||||
<!-- Tambahkan CSS dan JS lainnya di sini -->
|
||||
|
||||
<script>
|
||||
// Fungsi untuk mencegah kembali ke halaman sebelumnya
|
||||
function preventBack() {
|
||||
window.history.pushState(null, '', window.location.href);
|
||||
window.onpopstate = function() {
|
||||
window.history.pushState(null, '', window.location.href);
|
||||
};
|
||||
}
|
||||
|
||||
// Panggil fungsi preventBack saat halaman dimuat
|
||||
window.onload = preventBack;
|
||||
</script>
|
||||
</head>
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<!-- content-wrapper -->
|
||||
<div class="wrapper">
|
||||
|
||||
<!--Menu Header Paling Atas-->
|
||||
<header class="main-header">
|
||||
<a href="<?php echo base_url(); ?>" class="logo">
|
||||
<span class="logo-mini"><b>CS</b>T</span>
|
||||
<span class="logo-lg"><b>CSI</b>RT</span>
|
||||
</a>
|
||||
<nav class="navbar navbar-static-top">
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="<?php echo base_url('gambar/pengguna/' . $this->session->userdata('sampul')); ?>" class="user-image" alt="User Image">
|
||||
<span class="hidden-xs">HAK AKSES : <b><?php echo $this->session->userdata('level') ?></b></span>
|
||||
</a>
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
<li class="user-header">
|
||||
<img src="<?php echo base_url('gambar/pengguna/' . $this->session->userdata('sampul')); ?>" class="img-circle" alt="User Image">
|
||||
<p>
|
||||
<?php echo $this->session->userdata('username') ?>
|
||||
<small>Hak akses : <?php echo $this->session->userdata('level') ?></small>
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="<?php echo base_url('dashboard/ganti_password'); ?>" class="btn btn-default btn-flat">Ganti Password</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="<?php echo base_url('dashboard/keluar'); ?>" class="btn btn-default btn-flat">Keluar</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!--Menu Sebelah Kiri-->
|
||||
<aside class="main-sidebar">
|
||||
<section class="sidebar">
|
||||
<!--Gambar Profil Sebelah Kiri -->
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="<?php echo base_url('gambar/pengguna/' . $this->session->userdata('sampul')); ?>" class="img-circle" alt="User Image">
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<?php
|
||||
$id_user = $this->session->userdata('id');
|
||||
$user = $this->db->get_where('pengguna', array('pengguna_id' => $id_user))->row();
|
||||
?>
|
||||
<p><?php echo $user ? $user->pengguna_nama : 'Pengguna tidak ditemukan'; ?></p>
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--Form Pencarian-->
|
||||
<form action="#" method="get" class="sidebar-form">
|
||||
<div class="input-group">
|
||||
<input type="text" name="q" class="form-control" placeholder="Cari...">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul class="sidebar-menu" data-widget="tree">
|
||||
<li class="header">MENU UTAMA</li>
|
||||
<li>
|
||||
<a href="<?php echo base_url('dashboard'); ?>" aria-label="Dashboard">
|
||||
<i class="fa fa-tachometer"></i> <span>Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
if($this->session->userdata('level') == "admin"){
|
||||
?>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url('dashboard/kategori'); ?>" aria-label="Kategori">
|
||||
<i class="fa fa-pencil-square"></i> <span>Kategori</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="<?php echo base_url('dashboard/kategori'); ?>" aria-label="Daftar Kategori"><i class="fa fa-circle-o"></i> Kategori Artikel</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/kategori_profil'); ?>" aria-label="Tambah Kategori"><i class="fa fa-circle-o"></i> Kategori Profil</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/kategori_RFC2350'); ?>" aria-label="Tambah Kategori"><i class="fa fa-circle-o"></i> Kategori RFC2350</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/kategori_panduan'); ?>" aria-label="Tambah Kategori"><i class="fa fa-circle-o"></i> Kategori Panduan</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/kategori_layanan'); ?>" aria-label="Tambah Kategori"><i class="fa fa-circle-o"></i> Kategori Layanan</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url('dashboard/artikel'); ?>" aria-label="Post Artikel">
|
||||
<i class="fa fa-newspaper-o"></i> <span>Post Artikel</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="<?php echo base_url('dashboard/artikel'); ?>" aria-label="Daftar Artikel"><i class="fa fa-circle-o"></i> Daftar Artikel</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/tambah_artikel'); ?>" aria-label="Tambah Artikel"><i class="fa fa-circle-o"></i> Tambah Artikel</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
if($this->session->userdata('level') == "admin"){
|
||||
?>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url('dashboard/profil'); ?>" aria-label="Profil">
|
||||
<i class="fa fa-microchip"></i> <span>Profil</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="<?php echo base_url('dashboard/profil'); ?>" aria-label="Daftar Profil"><i class="fa fa-circle-o"></i> Daftar Profil</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/tambah_profil'); ?>" aria-label="Tambah Profil"><i class="fa fa-circle-o"></i> Tambah Profil</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($this->session->userdata('level') == "admin"){
|
||||
?>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url('dashboard/rfc2350'); ?>" aria-label="RFC2350">
|
||||
<i class="fa fa-lock"></i> <span>RFC2350</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="<?php echo base_url('dashboard/rfc2350'); ?>" aria-label="Daftar RFC2350"><i class="fa fa-circle-o"></i> Daftar RFC2350</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/tambah_rfc2350'); ?>" aria-label="Tambah RFC2350"><i class="fa fa-circle-o"></i> Tambah RFC2350</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url('dashboard/panduan'); ?>" aria-label="Panduan">
|
||||
<i class="fa fa-glide"></i> <span>Panduan</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="<?php echo base_url('dashboard/panduan'); ?>" aria-label="Daftar Panduan"><i class="fa fa-circle-o"></i> Daftar Panduan</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/tambah_panduan'); ?>" aria-label="Tambah Panduan"><i class="fa fa-circle-o"></i> Tambah Panduan</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url('dashboard/layanan'); ?>" aria-label="Layanan">
|
||||
<i class="fa fa-handshake-o"></i> <span>Layanan</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="<?php echo base_url('dashboard/layanan'); ?>" aria-label="Daftar Layanan"><i class="fa fa-circle-o"></i> Daftar Layanan</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/tambah_layanan'); ?>" aria-label="Tambah Layanan"><i class="fa fa-circle-o"></i> Tambah Layanan</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>
|
||||
|
||||
<?php if ($this->session->userdata('level') == 'satker'): ?>
|
||||
<li>
|
||||
<a href="<?php echo base_url('dashboard/profile'); ?>" aria-label="Profile">
|
||||
<i class="fa fa-user"></i> <span>Profile</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php
|
||||
if($this->session->userdata('level') == "admin"){
|
||||
?>
|
||||
<li class="header">PENGATURAN</li>
|
||||
<li>
|
||||
<a href="<?php echo base_url('dashboard/pengaturan'); ?>" aria-label="Pengaturan Web">
|
||||
<i class="fa fa-tasks"></i> <span>Pengaturan Web</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url('dashboard/halaman'); ?>" aria-label="Halaman">
|
||||
<i class="fa fa-sliders"></i> <span>Halaman</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="<?php echo base_url('dashboard/halaman'); ?>" aria-label="Daftar Halaman"><i class="fa fa-circle-o"></i> Daftar Halaman</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/tambah_halaman'); ?>" aria-label="Tambah Halaman"><i class="fa fa-circle-o"></i> Tambah Halaman</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?php echo base_url('dashboard/kontak'); ?>" aria-label="Footer">
|
||||
<i class="fa fa-tasks"></i> <span>Footer</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url('dashboard/pengguna'); ?>" aria-label="Pengguna">
|
||||
<i class="fa fa-user"></i> <span>Pengguna</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="<?php echo base_url('dashboard/pengguna'); ?>" aria-label="Daftar Pengguna"><i class="fa fa-circle-o"></i> Daftar Pengguna</a></li>
|
||||
<li><a href="<?php echo base_url('dashboard/pengguna_tambah'); ?>" aria-label="Tambah Pengguna"><i class="fa fa-circle-o"></i> Tambah Pengguna</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
</aside>
|
112
application/views/dashboard/v_index.php
Executable file
112
application/views/dashboard/v_index.php
Executable file
@ -0,0 +1,112 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Dashboard
|
||||
<small>Control panel</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<div class="small-box bg-aqua">
|
||||
<div class="inner">
|
||||
<h3><?php echo $jumlah_artikel; ?></h3>
|
||||
<p>Jumlah Artikel</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-android-list"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<div class="small-box bg-green">
|
||||
<div class="inner">
|
||||
<h3><?php echo $jumlah_halaman; ?></h3>
|
||||
<p>Jumlah Halaman/Page</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-android-document"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<div class="small-box bg-red">
|
||||
<div class="inner">
|
||||
<h3><?php echo $jumlah_kategori; ?></h3>
|
||||
<p>Jumlah Kategori</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-pie-graph"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner">
|
||||
<h3><?php echo $jumlah_pengguna; ?></h3>
|
||||
<p>Jumlah User</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-person-add"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<!-- Chat Box -->
|
||||
<div class="box box-success">
|
||||
<div class="box-header">
|
||||
<i class="fa fa-comments-o"></i>
|
||||
<h3 class="box-title">Chat</h3>
|
||||
<div class="box-tools pull-right" data-toggle="tooltip" title="Status">
|
||||
<div class="btn-group" data-toggle="btn-toggle">
|
||||
<button type="button" class="btn btn-default btn-sm active"><i class="fa fa-square text-green"></i></button>
|
||||
<button type="button" class="btn btn-default btn-sm"><i class="fa fa-square text-red"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body chat" id="chat-box" style="height: 400px; overflow-y: scroll;">
|
||||
<!-- Pesan akan dimuat secara dinamis melalui AJAX -->
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<form id="chat-form">
|
||||
<!-- Pastikan input CSRF jika protection aktif -->
|
||||
<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>">
|
||||
<div class="input-group">
|
||||
<input id="message" name="message" class="form-control" placeholder="Type message..." required>
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" class="btn btn-success">
|
||||
<i class="fa fa-plus"></i> Send
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Chart Artikel CSIRT</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="chart">
|
||||
<canvas id="barChart" style="height:285px"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
68
application/views/dashboard/v_kategori.php
Executable file
68
application/views/dashboard/v_kategori.php
Executable file
@ -0,0 +1,68 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI
|
||||
<small>CSIRT</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo site_url('dashboard/tambah_kategori'); ?>" aria-label="Buat Kategori Baru" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Kategori Baru
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Menampilkan pesan flashdata -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Kategori</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-striped table-bordered nowrap" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>KATEGORI</th>
|
||||
<th>SLUG</th>
|
||||
<th width="10%">OPTION</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($kategori as $k){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_nama); ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_slug); ?></td>
|
||||
<td>
|
||||
<a href="<?php echo site_url('dashboard/kategori_edit/'.$k->kategori_id); ?>" class="btn btn-warning btn-sm edit-btn"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo site_url('dashboard/kategori_hapus/'.$k->kategori_id); ?>" class="btn btn-danger btn-sm delete-btn"> <i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
50
application/views/dashboard/v_kategori_edit.php
Executable file
50
application/views/dashboard/v_kategori_edit.php
Executable file
@ -0,0 +1,50 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI
|
||||
<small>Edit</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">Kembali</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Edit Kategori</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<?php foreach($kategori as $k){ ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/kategori_update'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori">Nama Kategori</label>
|
||||
<input type="hidden" name="id" value="<?php echo $k->kategori_id; ?>">
|
||||
<input type="text" name="kategori" id="kategori" class="form-control" placeholder="Masukkan nama kategori .." value="<?php echo $k->kategori_nama; ?>">
|
||||
<?php echo form_error('kategori'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
0
application/views/dashboard/v_kategori_hapus.php
Executable file
0
application/views/dashboard/v_kategori_hapus.php
Executable file
68
application/views/dashboard/v_kategori_layanan.php
Executable file
68
application/views/dashboard/v_kategori_layanan.php
Executable file
@ -0,0 +1,68 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI LAYANAN
|
||||
<small>CSIRT</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo site_url('dashboard/tambah_kategori_layanan'); ?>" aria-label="Buat Kategori Baru" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Kategori Layanan Baru
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Menampilkan pesan flashdata -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Kategori Layanan</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>KATEGORI Layanan</th>
|
||||
<th>SLUG</th>
|
||||
<th width="10%">OPTION</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($kategori_layanan as $k){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_layanan_nama); ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_layanan_slug); ?></td>
|
||||
<td>
|
||||
<a href="<?php echo site_url('dashboard/edit_kategori_layanan/'.$k->kategori_layanan_id); ?>" class="btn btn-warning btn-sm edit-btn"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo site_url('dashboard/hapus_kategori_layanan/'.$k->kategori_layanan_id); ?>" class="btn btn-danger btn-sm delete-btn"> <i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
68
application/views/dashboard/v_kategori_panduan.php
Executable file
68
application/views/dashboard/v_kategori_panduan.php
Executable file
@ -0,0 +1,68 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI
|
||||
<small>PANDUAN CSIRT</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo site_url('dashboard/tambah_kategori_panduan'); ?>" aria-label="Buat Kategori Baru" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Kategori Panduan Baru
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Menampilkan pesan flashdata -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Kategori Panduan</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>KATEGORI PANDUAN</th>
|
||||
<th>SLUG</th>
|
||||
<th width="10%">OPTION</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($kategori_panduan as $k){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_panduan_nama); ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_panduan_slug); ?></td>
|
||||
<td>
|
||||
<a href="<?php echo site_url('dashboard/edit_kategori_panduan/'.$k->kategori_panduan_id); ?>" class="btn btn-warning btn-sm edit-btn"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo site_url('dashboard/hapus_kategori_panduan/'.$k->kategori_panduan_id); ?>" class="btn btn-danger btn-sm delete-btn"> <i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
68
application/views/dashboard/v_kategori_profil.php
Executable file
68
application/views/dashboard/v_kategori_profil.php
Executable file
@ -0,0 +1,68 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI PROFIL
|
||||
<small>CSIRT</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo site_url('dashboard/tambah_kategori_profil'); ?>" aria-label="Buat Kategori Baru" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Kategori Profil Baru
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Menampilkan pesan flashdata -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Kategori profil</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>KATEGORI profil</th>
|
||||
<th>SLUG</th>
|
||||
<th width="10%">OPTION</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($kategori_profil as $k){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_profil_nama); ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_profil_slug); ?></td>
|
||||
<td>
|
||||
<a href="<?php echo site_url('dashboard/edit_kategori_profil/'.$k->kategori_profil_id); ?>" class="btn btn-warning btn-sm edit-btn"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo site_url('dashboard/hapus_kategori_profil/'.$k->kategori_profil_id); ?>" class="btn btn-danger btn-sm delete-btn"> <i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
68
application/views/dashboard/v_kategori_rfc2350.php
Executable file
68
application/views/dashboard/v_kategori_rfc2350.php
Executable file
@ -0,0 +1,68 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI rfc2350
|
||||
<small>CSIRT</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo site_url('dashboard/tambah_kategori_rfc2350'); ?>" aria-label="Buat Kategori Baru" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Kategori rfc2350 Baru
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Menampilkan pesan flashdata -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Kategori rfc2350</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>KATEGORI rfc2350</th>
|
||||
<th>SLUG</th>
|
||||
<th width="10%">OPTION</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($kategori_rfc2350 as $k){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_rfc2350_nama); ?></td>
|
||||
<td><?php echo htmlspecialchars($k->kategori_rfc2350_slug); ?></td>
|
||||
<td>
|
||||
<a href="<?php echo site_url('dashboard/edit_kategori_rfc2350/'.$k->kategori_rfc2350_id); ?>" class="btn btn-warning btn-sm edit-btn"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo site_url('dashboard/hapus_kategori_rfc2350/'.$k->kategori_rfc2350_id); ?>" class="btn btn-danger btn-sm delete-btn"> <i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
78
application/views/dashboard/v_kontak.php
Executable file
78
application/views/dashboard/v_kontak.php
Executable file
@ -0,0 +1,78 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>Footer <small>Update Footer</small></h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Pengaturan Footer</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<?php if (isset($_GET['alert']) && $_GET['alert'] == "sukses") { ?>
|
||||
<div class='alert alert-success'>kontak telah diupdate!</div>
|
||||
<?php } ?>
|
||||
<?php foreach ($kontak as $p) { ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/kontak_update') ?>" enctype="multipart/form-data">
|
||||
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Deskripsi Website</label>
|
||||
<input type="text" name="nama" class="form-control" placeholder="Masukkan deskripsi.." value="<?php echo $p->nama; ?>">
|
||||
<?php echo form_error('nama'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Alamat</label>
|
||||
<input type="text" name="alamat" class="form-control" placeholder="Masukkan Alamat.." value="<?php echo $p->alamat; ?>">
|
||||
<?php echo form_error('alamat'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="text" name="email" class="form-control" placeholder="Masukkan Email.." value="<?php echo $p->email; ?>">
|
||||
<?php echo form_error('email'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>No.Telp</label>
|
||||
<input type="text" name="no_telp" class="form-control" placeholder="Masukkan No.Telp.." value="<?php echo $p->no_telp; ?>">
|
||||
<?php echo form_error('no_telp'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Pesan</label>
|
||||
<input type="text" name="pesan" class="form-control" placeholder="Masukkan Pesan.." value="<?php echo $p->pesan; ?>">
|
||||
<?php echo form_error('pesan'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<h3 class="box-title">Lokasi</h3>
|
||||
<div class="form-group">
|
||||
<label>Alamat Lokasi</label>
|
||||
<input type="text" name="lokasi_alamat" class="form-control" placeholder="Masukkan Alamat Lokasi..">
|
||||
<?php echo form_error('lokasi_alamat'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Latitude</label>
|
||||
<input type="text" name="lokasi_latitude" class="form-control" placeholder="Masukkan Latitude..">
|
||||
<?php echo form_error('lokasi_latitude'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Longitude</label>
|
||||
<input type="text" name="lokasi_longtitude" class="form-control" placeholder="Masukkan Longtitude..">
|
||||
<?php echo form_error('lokasi_longtitude'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
107
application/views/dashboard/v_layanan.php
Executable file
107
application/views/dashboard/v_layanan.php
Executable file
@ -0,0 +1,107 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Layanan
|
||||
<small>Manajemen Layanan</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo site_url('dashboard/tambah_layanan'); ?>" aria-label="Buat Layanan Baru" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Layanan Baru
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Menampilkan pesan flashdata -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Layanan</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>TANGGAL</th>
|
||||
<th>LAYANAN</th>
|
||||
<th>AUTHOR</th>
|
||||
<th>KATEGORI</th>
|
||||
<th width="10%">GAMBAR</th>
|
||||
<th>STATUS</th>
|
||||
<th width="10%">OPTION</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($layanan as $k){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo date('d/m/Y H:i', strtotime($k->layanan_tanggal)); ?></td>
|
||||
<td>
|
||||
<?php echo $k->layanan_judul; ?>
|
||||
<br/>
|
||||
<small class="text-muted">
|
||||
<?php echo base_url()."".$k->layanan_slug; ?>
|
||||
</small>
|
||||
</td>
|
||||
<td><?php echo $k->pengguna_nama; ?></td>
|
||||
<td><?php echo $k->kategori_layanan_nama; ?></td>
|
||||
<td><img width="100%" class="img-responsive" src="<?php echo base_url().'/gambar/layanan/'.$k->layanan_sampul; ?>"></td>
|
||||
<td>
|
||||
<?php
|
||||
if($k->layanan_status=="publish"){
|
||||
echo "<span class='label label-success'>Di Publish</span>";
|
||||
}else{
|
||||
echo "<span class='label label-danger'>Tidak di Publish</span>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<a target="_blank" href="<?php echo base_url().$k->layanan_slug; ?>" class="btn btn-success btn-sm"> <i class="fa fa-eye"></i> </a>
|
||||
<?php
|
||||
// cek apakah pengguna yang login adalah penulis
|
||||
if($this->session->userdata('level') == "penulis"){
|
||||
// jika penulis, maka cek apakah penulis layanan ini adalah si pengguna atau bukan
|
||||
if($this->session->userdata('id') == $k->layanan_author){
|
||||
?>
|
||||
<a href="<?php echo base_url().'dashboard/edit_layanan/'.$k->layanan_id; ?>" class="btn btn-warning btn-sm"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo base_url().'dashboard/layanan_hapus/'.$k->layanan_id; ?>" class="btn btn-danger btn-sm" onclick="return confirm('Apakah Anda yakin ingin menghapus layanan ini?');"> <i class="fa fa-trash"></i> </a>
|
||||
<?php
|
||||
}
|
||||
}else{
|
||||
// jika yang login adalah admin
|
||||
?>
|
||||
<a href="<?php echo base_url().'dashboard/edit_layanan/'.$k->layanan_id; ?>" class="btn btn-warning btn-sm"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo base_url().'dashboard/layanan_hapus/'.$k->layanan_id; ?>" class="btn btn-danger btn-sm" onclick="return confirm('Apakah Anda yakin ingin menghapus layanan ini?');"> <i class="fa fa-trash"></i> </a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
79
application/views/dashboard/v_panduan.php
Executable file
79
application/views/dashboard/v_panduan.php
Executable file
@ -0,0 +1,79 @@
|
||||
<!-- Content Wrapper -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>PANDUAN CSIRT <small>Manajemen Panduan</small></h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?= site_url('dashboard/tambah_panduan'); ?>" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Panduan Baru
|
||||
</a>
|
||||
<br/><br/>
|
||||
|
||||
<!-- Flash Messages -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<?= $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<?= $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Daftar Panduan</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-striped table-bordered nowrap" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Judul Panduan</th>
|
||||
<th>Penulis</th>
|
||||
<th>Kategori</th>
|
||||
<th>File</th>
|
||||
<th>Status</th>
|
||||
<th>Opsi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $no = 1; foreach ($panduan as $p): ?>
|
||||
<tr>
|
||||
<td><?= $no++; ?></td>
|
||||
<td><?= date('d/m/Y H:i', strtotime($p->panduan_tanggal)); ?></td>
|
||||
<td>
|
||||
<a href="<?= base_url('dokumen/panduan/' . $p->panduan_doc); ?>" target="_blank">
|
||||
<?= $p->panduan_nama; ?>
|
||||
</a>
|
||||
</td>
|
||||
<td><?= $p->pengguna_nama; ?></td>
|
||||
<td><?= $p->kategori_panduan_nama; ?></td>
|
||||
<td>
|
||||
<a href="<?= base_url('dokumen/panduan/' . $p->panduan_doc); ?>" target="_blank" class="btn btn-info btn-sm">
|
||||
<i class="fa fa-download"></i> Unduh
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<span class='label <?= ($p->panduan_status == "publish") ? "label-success" : "label-danger"; ?>'>
|
||||
<?= ($p->panduan_status == "publish") ? "Dipublikasikan" : "Tidak Dipublikasikan"; ?>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= site_url('dashboard/edit_panduan/' . $p->panduan_id); ?>" class="btn btn-warning btn-sm"><i class="fa fa-pencil"></i> Edit</a>
|
||||
<a href="<?= site_url('dashboard/panduan_hapus/' . $p->panduan_id); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Hapus panduan ini?');"><i class="fa fa-trash"></i> Hapus</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
71
application/views/dashboard/v_pengaturan.php
Executable file
71
application/views/dashboard/v_pengaturan.php
Executable file
@ -0,0 +1,71 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>Pengaturan <small>Update Pengaturan Website</small></h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Pengaturan</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<?php if (isset($_GET['alert']) && $_GET['alert'] == "sukses") { ?>
|
||||
<div class='alert alert-success'>Pengaturan telah diupdate!</div>
|
||||
<?php } ?>
|
||||
<?php foreach ($pengaturan as $p) { ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/pengaturan_update') ?>"enctype="multipart/form-data">
|
||||
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Nama Website</label>
|
||||
<input type="text" name="nama" class="form-control" placeholder="Masukkan nama website.." value="<?php echo $p->nama; ?>">
|
||||
<?php echo form_error('nama'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Deskripsi Website</label>
|
||||
<input type="text" name="deskripsi" class="form-control" placeholder="Masukkan deskripsi.." value="<?php echo $p->deskripsi; ?>">
|
||||
<?php echo form_error('deskripsi'); ?>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label>Logo Website</label>
|
||||
<input type="file" name="logo">
|
||||
<small>Kosongkan jika tidak ingin mengubah logo</small>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label>Link Facebook</label>
|
||||
<input type="text" name="link_facebook" class="form-control" placeholder="Masukkan link Facebook.." value="<?php echo $p->link_facebook; ?>">
|
||||
<?php echo form_error('link_facebook'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Link Twitter</label>
|
||||
<input type="text" name="link_twitter" class="form-control" placeholder="Masukkan link Twitter.." value="<?php echo $p->link_twitter; ?>">
|
||||
<?php echo form_error('link_twitter'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Link Instagram</label>
|
||||
<input type="text" name="link_instagram" class="form-control" placeholder="Masukkan link Instagram.." value="<?php echo $p->link_instagram; ?>">
|
||||
<?php echo form_error('link_instagram'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Link Github</label>
|
||||
<input type="text" name="link_github" class="form-control" placeholder="Masukkan link Github.." value="<?php echo $p->link_github; ?>">
|
||||
<?php echo form_error('link_github'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
83
application/views/dashboard/v_pengguna.php
Executable file
83
application/views/dashboard/v_pengguna.php
Executable file
@ -0,0 +1,83 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Pengguna
|
||||
<small>Pengguna Website</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<a href="<?php echo site_url('dashboard/pengguna_tambah'); ?>" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat pengguna baru
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Menampilkan pesan flashdata -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Pengguna</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-striped table-bordered nowrap" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>Nama</th>
|
||||
<th>Foto Pengguna</th>
|
||||
<th>Email</th>
|
||||
<th>Nama Satker</th>
|
||||
<th>Level</th>
|
||||
<th>Status</th>
|
||||
<th width="10%">OPSI</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($pengguna as $p):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo htmlspecialchars($p->pengguna_nama); ?></td>
|
||||
<td style="text-align: center;">
|
||||
<img width="25%" class="img-responsive img-thumbnail" alt="Pengguna" src="<?php echo base_url().'/gambar/pengguna/'.$p->pengguna_sampul; ?>">
|
||||
</td>
|
||||
<td><?php echo htmlspecialchars($p->pengguna_email); ?></td>
|
||||
<td><?php echo htmlspecialchars($p->nama_satker); ?></td>
|
||||
<td><?php echo htmlspecialchars($p->pengguna_level); ?></td>
|
||||
<td>
|
||||
<?php
|
||||
echo $p->pengguna_status == 1 ?
|
||||
"<span class='label label-success'>Aktif</span>" :
|
||||
"<span class='label label-danger'>Non Aktif</span>";
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?php echo site_url('dashboard/pengguna_edit/'.$p->pengguna_id); ?>" class="btn btn-warning btn-sm"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo site_url('dashboard/pengguna_hapus/'.$p->pengguna_id); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Apakah Anda yakin ingin menghapus pengguna ini?');"> <i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
83
application/views/dashboard/v_pengguna_edit.php
Executable file
83
application/views/dashboard/v_pengguna_edit.php
Executable file
@ -0,0 +1,83 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Pengguna
|
||||
<small>Edit Pengguna</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<a href="<?php echo base_url().'dashboard/pengguna'; ?>" class="btn btn-sm btn-primary">Kembali</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Edit Pengguna</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
<?php foreach($pengguna as $p): ?>
|
||||
<form method="post" action="<?php echo base_url('dashboard/pengguna_update'); ?>">
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $p->pengguna_id; ?>">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Nama</label>
|
||||
<input type="text" name="nama" class="form-control" placeholder="Masukkan nama pengguna .." value="<?php echo set_value('nama', $p->pengguna_nama); ?>" required>
|
||||
<?php echo form_error('nama', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="email" name="email" class="form-control" placeholder="Masukkan email pengguna .." value="<?php echo set_value('email', $p->pengguna_email); ?>" required>
|
||||
<?php echo form_error('email', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Username</label>
|
||||
<input type="text" name="username" class="form-control" placeholder="Masukkan username pengguna.." value="<?php echo set_value('username', $p->pengguna_username); ?>" required>
|
||||
<?php echo form_error('username', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Password</label>
|
||||
<input type="password" name="password" class="form-control" placeholder="Masukkan password pengguna..">
|
||||
<small>Kosongkan jika tidak ingin mengubah password</small>
|
||||
<?php echo form_error('password', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Level</label>
|
||||
<select class="form-control" name="level" required>
|
||||
<option value="">- Pilih Level -</option>
|
||||
<option value="admin" <?php echo set_select('level', 'admin', ($p->pengguna_level == 'admin')); ?>>Admin</option>
|
||||
<option value="satker" <?php echo set_select('level', 'satker', ($p->pengguna_level == 'satker')); ?>>SATKER</option>
|
||||
</select>
|
||||
<?php echo form_error('level', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Status</label>
|
||||
<select class="form-control" name="status" required>
|
||||
<option value="">- Pilih Status -</option>
|
||||
<option value="1" <?php echo set_select('status', '1', ($p->pengguna_status == '1')); ?>>Aktif</option>
|
||||
<option value="0" <?php echo set_select('status', '0', ($p->pengguna_status == '0')); ?>>Non-Aktif</option>
|
||||
</select>
|
||||
<?php echo form_error('status', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
59
application/views/dashboard/v_pengguna_hapus.php
Executable file
59
application/views/dashboard/v_pengguna_hapus.php
Executable file
@ -0,0 +1,59 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Pengguna
|
||||
<small>Konfirmasi Hapus Pengguna</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<a href="<?= site_url('dashboard/pengguna'); ?>" class="btn btn-sm btn-primary">Kembali</a>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Konfirmasi Hapus</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
<p>
|
||||
<b><?= htmlspecialchars($pengguna_hapus->pengguna_nama, ENT_QUOTES, 'UTF-8'); ?></b> akan dihapus.
|
||||
Semua artikel yang ditulis oleh <b><?= htmlspecialchars($pengguna_hapus->pengguna_nama, ENT_QUOTES, 'UTF-8'); ?></b> akan dipindahkan ke pengguna lain.
|
||||
</p>
|
||||
|
||||
<?= form_open('dashboard/pengguna_hapus_aksi'); ?>
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Nama Pengguna Pengganti</label>
|
||||
<input type="hidden" name="pengguna_hapus" value="<?= $pengguna_hapus->pengguna_id; ?>">
|
||||
|
||||
<select class="form-control" name="pengguna_tujuan" required>
|
||||
<option value="">- Pilih Pengguna Tujuan -</option>
|
||||
<?php foreach ($pengguna_lain as $pl) { ?>
|
||||
<option value="<?= $pl->pengguna_id; ?>" <?= set_select('pengguna_tujuan', $pl->pengguna_id); ?>>
|
||||
<?= htmlspecialchars($pl->pengguna_nama, ENT_QUOTES, 'UTF-8'); ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?= form_error('pengguna_tujuan'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-danger">Hapus Pengguna & Pindahkan Artikel</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
102
application/views/dashboard/v_pengguna_tambah.php
Executable file
102
application/views/dashboard/v_pengguna_tambah.php
Executable file
@ -0,0 +1,102 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Pengguna
|
||||
<small>Tambah Pengguna</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<a href="<?php echo site_url('dashboard/pengguna'); ?>" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Tambah Pengguna</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<?php echo form_open('dashboard/pengguna_aksi', ['enctype' => 'multipart/form-data']); ?>
|
||||
<div class="box-body">
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="form-group">
|
||||
<label>Nama</label>
|
||||
<input type="text" name="nama" class="form-control" placeholder="Masukkan nama pengguna .." value="<?php echo set_value('nama'); ?>" required>
|
||||
<small class="text-danger"><?php echo form_error('nama'); ?></small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="email" name="email" class="form-control" placeholder="Masukkan email pengguna .." value="<?php echo set_value('email'); ?>" required>
|
||||
<small class="text-danger"><?php echo form_error('email'); ?></small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Username</label>
|
||||
<input type="text" name="username" class="form-control" placeholder="Masukkan username pengguna.." value="<?php echo set_value('username'); ?>" required>
|
||||
<small class="text-danger"><?php echo form_error('username'); ?></small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Password</label>
|
||||
<input type="password" name="password" class="form-control" placeholder="Masukkan password pengguna.." required>
|
||||
<small class="text-danger"><?php echo form_error('password'); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Gambar Sampul</label>
|
||||
<input type="file" name="sampul" required>
|
||||
<p class="help-block">Silakan upload Gambar...!</p>
|
||||
<?php if(isset($gambar_error)): ?>
|
||||
<div class="text-danger"><?php echo $gambar_error; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php echo form_error('sampul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="level">Level</label>
|
||||
<select id="level" class="form-control" name="level" required>
|
||||
<option value="">- Pilih Level -</option>
|
||||
<option value="admin" <?php echo set_select('level', 'admin'); ?>>Admin</option>
|
||||
<option value="satker" <?php echo set_select('level', 'satker'); ?>>SATKER</option>
|
||||
</select>
|
||||
<small class="text-danger"><?php echo form_error('level'); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="satker-select" style="display: none;">
|
||||
<label>Nama Satker</label>
|
||||
<select class="form-control" name="satker_id">
|
||||
<option value="">- Pilih Satker -</option>
|
||||
<?php if (!empty($satkers)): ?>
|
||||
<?php foreach ($satkers as $satker): ?>
|
||||
<option value="<?php echo $satker->satker_id; ?>" <?php echo set_select('satker_id', $satker->satker_id); ?>><?php echo $satker->nama_satker; ?></option>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</select>
|
||||
<small class="text-danger"><?php echo form_error('satker_id'); ?></small>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label>Status</label>
|
||||
<select class="form-control" name="status" required>
|
||||
<option value="">- Pilih Status -</option>
|
||||
<option value="1" <?php echo set_select('status', '1'); ?>>Aktif</option>
|
||||
<option value="0" <?php echo set_select('status', '0'); ?>>Non-Aktif</option>
|
||||
</select>
|
||||
<small class="text-danger"><?php echo form_error('status'); ?></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-success">Simpan</button>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
107
application/views/dashboard/v_profil.php
Executable file
107
application/views/dashboard/v_profil.php
Executable file
@ -0,0 +1,107 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
PROFIL
|
||||
<small>Manajemen Profil</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo site_url('dashboard/tambah_profil'); ?>" aria-label="Buat Profil Baru" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Buat Profil Baru
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Menampilkan pesan flashdata -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Profil</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-striped table-bordered nowrap" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">NO</th>
|
||||
<th>TANGGAL</th>
|
||||
<th>PROFIL</th>
|
||||
<th>AUTHOR</th>
|
||||
<th>KATEGORI</th>
|
||||
<th width="10%">GAMBAR</th>
|
||||
<th>STATUS</th>
|
||||
<th width="10%">OPTION</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach($profil as $k){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo date('d/m/Y H:i', strtotime($k->profil_tanggal)); ?></td>
|
||||
<td>
|
||||
<?php echo $k->profil_judul; ?>
|
||||
<br/>
|
||||
<small class="text-muted">
|
||||
<?php echo base_url()."".$k->profil_slug; ?>
|
||||
</small>
|
||||
</td>
|
||||
<td><?php echo $k->pengguna_nama; ?></td>
|
||||
<td><?php echo $k->kategori_profil_nama; ?></td>
|
||||
<td><img width="100%" class="img-responsive" src="<?php echo base_url().'/gambar/profil/'.$k->profil_sampul; ?>"></td>
|
||||
<td>
|
||||
<?php
|
||||
if($k->profil_status=="publish"){
|
||||
echo "<span class='label label-success'>Di Publish</span>";
|
||||
}else{
|
||||
echo "<span class='label label-danger'>Tidak di Publish</span>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<a target="_blank" href="<?php echo base_url().$k->profil_slug; ?>" class="btn btn-success btn-sm"> <i class="fa fa-eye"></i> </a>
|
||||
<?php
|
||||
// cek apakah pengguna yang login adalah penulis
|
||||
if($this->session->userdata('level') == "penulis"){
|
||||
// jika penulis, maka cek apakah penulis profil ini adalah si pengguna atau bukan
|
||||
if($this->session->userdata('id') == $k->profil_author){
|
||||
?>
|
||||
<a href="<?php echo base_url().'dashboard/edit_profil/'.$k->profil_id; ?>" class="btn btn-warning btn-sm"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo base_url().'dashboard/profil_hapus/'.$k->profil_id; ?>" class="btn btn-danger btn-sm" onclick="return confirm('Apakah Anda yakin ingin menghapus profil ini?');"> <i class="fa fa-trash"></i> </a>
|
||||
<?php
|
||||
}
|
||||
}else{
|
||||
// jika yang login adalah admin
|
||||
?>
|
||||
<a href="<?php echo base_url().'dashboard/edit_profil/'.$k->profil_id; ?>" class="btn btn-warning btn-sm"> <i class="fa fa-pencil"></i> </a>
|
||||
<a href="<?php echo base_url().'dashboard/profil_hapus/'.$k->profil_id; ?>" class="btn btn-danger btn-sm" onclick="return confirm('Apakah Anda yakin ingin menghapus profil ini?');"> <i class="fa fa-trash"></i> </a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
83
application/views/dashboard/v_profile.php
Normal file
83
application/views/dashboard/v_profile.php
Normal file
@ -0,0 +1,83 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>Profil Pengguna</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<!-- Form Edit Profil -->
|
||||
<div class="col-lg-6">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Edit Profil</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
<?php if ($this->session->flashdata('alert')): ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $this->session->flashdata('alert'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="post" action="<?php echo base_url('dashboard/profile_update'); ?>" enctype="multipart/form-data">
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<!-- Foto Profil -->
|
||||
<div class="form-group text-center">
|
||||
<label>Foto Profil</label><br>
|
||||
<?php if ($user->pengguna_sampul): ?>
|
||||
<img src="<?php echo base_url('gambar/pengguna/' . $user->pengguna_sampul); ?>" alt="Foto Profil" width="150">
|
||||
<?php else: ?>
|
||||
<img src="<?php echo base_url('gambar/pengguna/default.jpg'); ?>" alt="Foto Profil" width="150">
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="file" name="foto" class="form-control" />
|
||||
<small>Opsional, pilih file jika ingin mengganti foto profil.</small>
|
||||
<input type="hidden" name="foto_lama" value="<?php echo $user->pengguna_sampul; ?>">
|
||||
</div>
|
||||
|
||||
<!-- Username -->
|
||||
<div class="form-group">
|
||||
<label>Username</label>
|
||||
<input type="text" name="username" class="form-control" value="<?php echo $user->pengguna_username; ?>" readonly>
|
||||
</div>
|
||||
|
||||
<!-- Nama -->
|
||||
<div class="form-group">
|
||||
<label>Nama Lengkap</label>
|
||||
<input type="text" name="nama" class="form-control" value="<?php echo $user->pengguna_nama; ?>" required>
|
||||
</div>
|
||||
|
||||
<!-- Email -->
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="email" name="email" class="form-control" value="<?php echo $user->pengguna_email; ?>" required>
|
||||
</div>
|
||||
|
||||
<!-- Level -->
|
||||
<div class="form-group">
|
||||
<label>Level</label>
|
||||
<input type="text" class="form-control" value="<?php echo $user->pengguna_level; ?>" readonly>
|
||||
</div>
|
||||
|
||||
<!-- Nama Satker -->
|
||||
<div class="form-group">
|
||||
<label>Nama Satker</label>
|
||||
<input type="text" class="form-control" value="<?php echo $user->nama_satker; ?>" readonly>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<div class="form-group">
|
||||
<input type="submit" class="btn btn-success" value="Simpan Perubahan">
|
||||
<a href="<?php echo base_url('dashboard/ganti_password'); ?>" class="btn btn-danger">
|
||||
Ganti Password
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
79
application/views/dashboard/v_rfc2350.php
Executable file
79
application/views/dashboard/v_rfc2350.php
Executable file
@ -0,0 +1,79 @@
|
||||
<!-- Content Wrapper -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>RFC 2350 <small>Manajemen Dokumen</small></h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?= site_url('dashboard/tambah_rfc2350'); ?>" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-plus"></i> Tambah Dokumen RFC 2350
|
||||
</a>
|
||||
<br/><br/>
|
||||
|
||||
<!-- Flash Messages -->
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<?= $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<?= $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Daftar Dokumen RFC 2350</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="table45" class="table table-striped table-bordered nowrap" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Judul Dokumen</th>
|
||||
<th>Penulis</th>
|
||||
<th>Kategori</th>
|
||||
<th>File</th>
|
||||
<th>Status</th>
|
||||
<th>Opsi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $no = 1; foreach ($rfc2350 as $r): ?>
|
||||
<tr>
|
||||
<td><?php echo $no++; ?></td>
|
||||
<td><?php echo date('d/m/Y H:i', strtotime($r->rfc2350_tanggal)); ?></td>
|
||||
<td>
|
||||
<a href="<?php echo base_url('dokumen/rfc2350/' . $r->rfc2350_doc); ?>" target="_blank">
|
||||
<?= $r->rfc2350_nama; ?>
|
||||
</a>
|
||||
</td>
|
||||
<td><?php echo $r->pengguna_nama; ?></td>
|
||||
<td><?php echo $r->kategori_rfc2350_nama; ?></td>
|
||||
<td>
|
||||
<a href="<?php echo base_url('dokumen/rfc2350/' . $r->rfc2350_doc); ?>" target="_blank" class="btn btn-info btn-sm">
|
||||
<i class="fa fa-download"></i> Unduh
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<span class='label <?php echo ($r->rfc2350_status == "publish") ? "label-success" : "label-danger"; ?>'>
|
||||
<?php echo ($r->rfc2350_status == "publish") ? "Dipublikasikan" : "Tidak Dipublikasikan"; ?>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?php echo site_url('dashboard/edit_rfc2350/' . $r->rfc2350_id); ?>" class="btn btn-warning btn-sm"><i class="fa fa-pencil"></i> Edit</a>
|
||||
<a href="<?php echo site_url('dashboard/rfc2350_hapus/' . $r->rfc2350_id); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Hapus dokumen ini?');"><i class="fa fa-trash"></i> Hapus</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
87
application/views/dashboard/v_tambah_artikel.php
Executable file
87
application/views/dashboard/v_tambah_artikel.php
Executable file
@ -0,0 +1,87 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
ARTIKEL
|
||||
<small>Tulis Artikel Baru</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url('dashboard/artikel'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<form method="post" action="<?php echo base_url('dashboard/artikel_aksi'); ?>" enctype="multipart/form-data" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<!-- Simpan satker_id dari session -->
|
||||
<input type="hidden" name="satker_id" value="<?php echo $this->session->userdata('satker_id'); ?>">
|
||||
<!-- Debugging -->
|
||||
<p>Satker ID: <?php echo $this->session->userdata('satker_id'); ?></p>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="judul" id="judul" class="form-control" placeholder="Masukkan judul artikel .." required value="<?php echo set_value('judul'); ?>">
|
||||
<?php echo form_error('judul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Konten</label>
|
||||
<textarea id="editor1" name="konten" rows="10" cols="80" required><?php echo set_value('konten'); ?></textarea>
|
||||
<?php echo form_error('konten', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach($kategori as $k): ?>
|
||||
<option value="<?php echo $k->kategori_id; ?>" <?php echo set_select('kategori', $k->kategori_id); ?>>
|
||||
<?php echo $k->kategori_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php echo form_error('kategori', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Gambar Sampul</label>
|
||||
<input type="file" name="sampul" required>
|
||||
<p class="help-block">Silakan upload Gambar...!</p>
|
||||
<?php if(isset($gambar_error)): ?>
|
||||
<div class="text-danger"><?php echo $gambar_error; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php echo form_error('sampul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="progress progress-sm active">
|
||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;" id="progressBarArtikel">
|
||||
<span class="sr-only">0% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="submit" name="status" value="Draft" class="btn btn-warning btn-block">
|
||||
<input type="submit" name="status" value="Publish" class="btn btn-success btn-block">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
42
application/views/dashboard/v_tambah_halaman.php
Executable file
42
application/views/dashboard/v_tambah_halaman.php
Executable file
@ -0,0 +1,42 @@
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>Halaman <small>Tulis Halaman Baru</small></h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url().'dashboard/halaman'; ?>" class="btn btn-sm btn-primary">
|
||||
Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<form method="post" action="<?php echo base_url('dashboard/halaman_aksi'); ?>">
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
|
||||
<div class="form-group">
|
||||
<label>Judul Halaman</label>
|
||||
<input type="text" name="judul" class="form-control" placeholder="Masukkan judul halaman.." required value="<?php echo set_value('judul'); ?>">
|
||||
<?php echo form_error('judul'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Konten Halaman</label>
|
||||
<?php echo form_error('konten'); ?>
|
||||
<br/>
|
||||
<textarea class="form-control" id="editor1" name="konten" required> <?php echo set_value('konten'); ?> </textarea>
|
||||
</div>
|
||||
|
||||
<input type="submit" value="Publish" class="btn btn-success btn-block">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
45
application/views/dashboard/v_tambah_kategori.php
Executable file
45
application/views/dashboard/v_tambah_kategori.php
Executable file
@ -0,0 +1,45 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI
|
||||
<small>Membuat Kategori</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Menambah Kategori</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<form method="post" action="<?php echo base_url('dashboard/kategori_aksi'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori">Nama Kategori</label>
|
||||
<input type="text" name="kategori" id="kategori" class="form-control" placeholder="Masukkan nama kategori .." required>
|
||||
<?php echo form_error('kategori'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
45
application/views/dashboard/v_tambah_kategori_layanan.php
Executable file
45
application/views/dashboard/v_tambah_kategori_layanan.php
Executable file
@ -0,0 +1,45 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI rfc2350
|
||||
<small>Membuat Kategori rfc2350</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori_rfc2350'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Menambah Kategori</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<form method="post" action="<?php echo base_url('dashboard/kategori_rfc2350_aksi'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori_rfc2350">Nama Kategori</label>
|
||||
<input type="text" name="kategori_rfc2350" id="kategori_rfc2350" class="form-control" placeholder="Masukkan nama kategori .." required>
|
||||
<?php echo form_error('kategori_rfc2350'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
45
application/views/dashboard/v_tambah_kategori_panduan.php
Executable file
45
application/views/dashboard/v_tambah_kategori_panduan.php
Executable file
@ -0,0 +1,45 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI PANDUAN
|
||||
<small>Membuat Kategori Panduan</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori_panduan'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Menambah Kategori</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<form method="post" action="<?php echo base_url('dashboard/kategori_panduan_aksi'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori_panduan">Nama Kategori</label>
|
||||
<input type="text" name="kategori_panduan" id="kategori_panduan" class="form-control" placeholder="Masukkan nama kategori .." required>
|
||||
<?php echo form_error('kategori_panduan'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
45
application/views/dashboard/v_tambah_kategori_profil.php
Executable file
45
application/views/dashboard/v_tambah_kategori_profil.php
Executable file
@ -0,0 +1,45 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI PROFIL
|
||||
<small>Membuat Kategori Profil</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori_profil'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Menambah Kategori</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<form method="post" action="<?php echo base_url('dashboard/kategori_profil_aksi'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori_profil">Nama Kategori</label>
|
||||
<input type="text" name="kategori_profil" id="kategori_profil" class="form-control" placeholder="Masukkan nama kategori .." required>
|
||||
<?php echo form_error('kategori_profil'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
45
application/views/dashboard/v_tambah_kategori_rfc2350.php
Executable file
45
application/views/dashboard/v_tambah_kategori_rfc2350.php
Executable file
@ -0,0 +1,45 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
KATEGORI RFC2350
|
||||
<small>Membuat Kategori RFC2350</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="<?php echo base_url('dashboard/kategori_rfc2350'); ?>" aria-label="Kembali" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Menambah Kategori</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<form method="post" action="<?php echo base_url('dashboard/kategori_rfc2350_aksi'); ?>" novalidate>
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="kategori_rfc2350">Nama Kategori</label>
|
||||
<input type="text" name="kategori_rfc2350" id="kategori_rfc2350" class="form-control" placeholder="Masukkan nama kategori .." required>
|
||||
<?php echo form_error('kategori_rfc2350'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-success" value="Simpan">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
85
application/views/dashboard/v_tambah_layanan.php
Executable file
85
application/views/dashboard/v_tambah_layanan.php
Executable file
@ -0,0 +1,85 @@
|
||||
<!-- Content Wrapper -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>Layanan <small>Tulis Layanan Baru</small></h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url('dashboard/layanan'); ?>" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Tampilkan Error Jika Ada -->
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger"><?php echo $this->session->flashdata('error'); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo form_open_multipart('dashboard/layanan_aksi'); ?>
|
||||
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>"
|
||||
value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="judul" class="form-control" placeholder="Masukkan judul layanan..." required value="<?php echo set_value('judul'); ?>">
|
||||
<?php echo form_error('judul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Deskripsi</label>
|
||||
<textarea id="editor1" name="konten" rows="10" cols="80" class="form-control" required><?php echo set_value('konten'); ?></textarea>
|
||||
<?php echo form_error('konten', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach($kategori_layanan as $k): ?>
|
||||
<option value="<?php echo $k->kategori_layanan_id; ?>" <?php echo set_select('kategori_layanan', $k->kategori_layanan_id); ?>>
|
||||
<?php echo $k->kategori_layanan_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php echo form_error('kategori_layanan', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Gambar Sampul</label>
|
||||
<input type="file" name="layanan_sampul" class="form-control" required>
|
||||
<?php if(isset($image_error)): ?>
|
||||
<div class="text-danger"><?php echo $image_error; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="progress progress-sm active">
|
||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;" id="progressBar_layanan">
|
||||
<span class="sr-only">0% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tombol Submit -->
|
||||
<button type="submit" name="status" value="Draft" class="btn btn-warning btn-block">Simpan sebagai Draft</button>
|
||||
<button type="submit" name="status" value="Publish" class="btn btn-success btn-block">Publikasikan</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo form_close(); ?>
|
||||
</section>
|
||||
</div>
|
74
application/views/dashboard/v_tambah_panduan.php
Executable file
74
application/views/dashboard/v_tambah_panduan.php
Executable file
@ -0,0 +1,74 @@
|
||||
<!-- Content Wrapper -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>PANDUAN CSIRT <small>Tulis Panduan Baru</small></h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo site_url('dashboard/panduan'); ?>" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Tampilkan Error Jika Ada -->
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger"><?php echo $this->session->flashdata('error'); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo form_open_multipart('dashboard/panduan_aksi'); ?>
|
||||
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>"
|
||||
value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Nama</label>
|
||||
<input type="text" name="nama" class="form-control" placeholder="Masukkan nama panduan .." required value="<?php echo set_value('nama'); ?>">
|
||||
<?php echo form_error('nama', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach ($kategori_panduan as $k): ?>
|
||||
<option value="<?php echo $k->kategori_panduan_id; ?>" <?php echo set_select('kategori_panduan', $k->kategori_panduan_id); ?>>
|
||||
<?php echo $k->kategori_panduan_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php echo form_error('kategori_panduan', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Upload Dokumen</label>
|
||||
<input type="file" name="dokumen_baru" class="form-control" required>
|
||||
<?php if ($this->session->flashdata('dokumen_ok_error')): ?>
|
||||
<div class="text-danger"><?php echo $this->session->flashdata('dokumen_ok_error'); ?></div>
|
||||
<?php endif; ?>
|
||||
<?php echo form_error('dokumen_baru', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="progress progress-sm active">
|
||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;" id="progressBarDokumen">
|
||||
<span class="sr-only">0% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tombol Submit -->
|
||||
<button type="submit" name="masuk_bro" value="Draft" class="btn btn-warning btn-block">Simpan sebagai Draft</button>
|
||||
<button type="submit" name="masuk_bro" value="Publish" class="btn btn-success btn-block">Publikasikan</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo form_close(); ?>
|
||||
</section>
|
||||
</div>
|
85
application/views/dashboard/v_tambah_profil.php
Executable file
85
application/views/dashboard/v_tambah_profil.php
Executable file
@ -0,0 +1,85 @@
|
||||
<!-- Content Wrapper -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>PROFIL <small>Tulis Profil Baru</small></h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url('dashboard/profil'); ?>" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Tampilkan Error Jika Ada -->
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger"><?php echo $this->session->flashdata('error'); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo form_open_multipart('dashboard/profil_aksi'); ?>
|
||||
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>"
|
||||
value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="judul" class="form-control" placeholder="Masukkan judul profil..." required value="<?php echo set_value('judul'); ?>">
|
||||
<?php echo form_error('judul', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Deskripsi</label>
|
||||
<textarea id="editor1" name="konten" rows="10" cols="80" class="form-control" required><?php echo set_value('konten'); ?></textarea>
|
||||
<?php echo form_error('konten', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach($kategori_profil as $k): ?>
|
||||
<option value="<?php echo $k->kategori_profil_id; ?>" <?php echo set_select('kategori_profil', $k->kategori_profil_id); ?>>
|
||||
<?php echo $k->kategori_profil_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php echo form_error('kategori_profil', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Gambar Sampul</label>
|
||||
<input type="file" name="sampul" class="form-control" required>
|
||||
<?php if(isset($gambar_error)): ?>
|
||||
<div class="text-danger"><?php echo $gambar_error; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="progress progress-sm active">
|
||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;" id="progressBar_Profil">
|
||||
<span class="sr-only">0% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tombol Submit -->
|
||||
<button type="submit" name="status" value="Draft" class="btn btn-warning btn-block">Simpan sebagai Draft</button>
|
||||
<button type="submit" name="status" value="Publish" class="btn btn-success btn-block">Publikasikan</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo form_close(); ?>
|
||||
</section>
|
||||
</div>
|
72
application/views/dashboard/v_tambah_rfc2350.php
Executable file
72
application/views/dashboard/v_tambah_rfc2350.php
Executable file
@ -0,0 +1,72 @@
|
||||
<!-- Content Wrapper -->
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>RFC2350 <small>Tambah RFC2350</small></h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<a href="<?php echo base_url('dashboard/rfc2350'); ?>" class="btn btn-sm btn-primary">
|
||||
<i class="fa fa-arrow-left"></i> Kembali
|
||||
</a>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<!-- Tampilkan Error Jika Ada -->
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<div class="alert alert-danger"><?php echo $this->session->flashdata('error'); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo form_open_multipart('dashboard/rfc2350_aksi'); ?>
|
||||
|
||||
<!-- CSRF Protection -->
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>"
|
||||
value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Judul</label>
|
||||
<input type="text" name="judul" class="form-control" placeholder="Masukkan judul RFC2350..." required value="<?php echo set_value('judul'); ?>">
|
||||
<?php echo form_error('judul', '<div class="text-danger">', '</div>'); ?><br>
|
||||
|
||||
<label>Kategori</label>
|
||||
<select class="form-control" name="kategori" required>
|
||||
<option value="">- Pilih Kategori -</option>
|
||||
<?php foreach($kategori_rfc2350 as $k): ?>
|
||||
<option value="<?php echo $k->kategori_rfc2350_id; ?>" <?php echo set_select('kategori', $k->kategori_rfc2350_id); ?>>
|
||||
<?php echo $k->kategori_rfc2350_nama; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php echo form_error('kategori', '<div class="text-danger">', '</div>'); ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Upload Dokumen</label>
|
||||
<input type="file" name="dokumen_rfc" class="form-control" required>
|
||||
<?php if(isset($rfc_dokumen_error)): ?>
|
||||
<div class="text-danger"><?php echo $rfc_dokumen_error; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="progress progress-sm active">
|
||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;" id="progressBar_rfc2350">
|
||||
<span class="sr-only">0% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tombol Submit -->
|
||||
<button type="submit" name="status" value="Draft" class="btn btn-warning btn-block">Simpan sebagai Draft</button>
|
||||
<button type="submit" name="status" value="Publish" class="btn btn-success btn-block">Publikasikan</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php echo form_close(); ?>
|
||||
</section>
|
||||
</div>
|
8
application/views/errors/cli/error_404.php
Executable file
8
application/views/errors/cli/error_404.php
Executable file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
8
application/views/errors/cli/error_db.php
Executable file
8
application/views/errors/cli/error_db.php
Executable file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
21
application/views/errors/cli/error_exception.php
Executable file
21
application/views/errors/cli/error_exception.php
Executable file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
8
application/views/errors/cli/error_general.php
Executable file
8
application/views/errors/cli/error_general.php
Executable file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
21
application/views/errors/cli/error_php.php
Executable file
21
application/views/errors/cli/error_php.php
Executable file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
11
application/views/errors/cli/index.html
Executable file
11
application/views/errors/cli/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
64
application/views/errors/html/error_404.php
Executable file
64
application/views/errors/html/error_404.php
Executable file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
64
application/views/errors/html/error_db.php
Executable file
64
application/views/errors/html/error_db.php
Executable file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
32
application/views/errors/html/error_exception.php
Executable file
32
application/views/errors/html/error_exception.php
Executable file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
64
application/views/errors/html/error_general.php
Executable file
64
application/views/errors/html/error_general.php
Executable file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
33
application/views/errors/html/error_php.php
Executable file
33
application/views/errors/html/error_php.php
Executable file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
11
application/views/errors/html/index.html
Executable file
11
application/views/errors/html/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/views/errors/index.html
Executable file
11
application/views/errors/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/views/index.html
Executable file
11
application/views/index.html
Executable file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user