FreedomWall_Website COmmit

This commit is contained in:
Aliana Caballero 2023-02-09 18:29:05 +08:00
commit d82a0e6edd
326 changed files with 81718 additions and 0 deletions

15
.editorconfig Normal file
View 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

31
.gitignore vendored Normal file
View File

@ -0,0 +1,31 @@
.DS_Store
application/cache/*
!application/cache/index.html
application/logs/*
!application/logs/index.html
!application/*/.htaccess
composer.lock
user_guide_src/build/*
user_guide_src/cilexer/build/*
user_guide_src/cilexer/dist/*
user_guide_src/cilexer/pycilexer.egg-info/*
/vendor/
# IDE Files
#-------------------------
/nbproject/
.idea/*
## Sublime Text cache files
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
*.sublime-workspace
*.sublime-project
/tests/tests/
/tests/results/

4
.htaccess Normal file
View File

@ -0,0 +1,4 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

6
application/.htaccess Normal file
View 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 Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View 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('form_validation','database','session','email');
/*
| -------------------------------------------------------------------
| 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', 'form');
/*
| -------------------------------------------------------------------
| 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();

View File

@ -0,0 +1,535 @@
<?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 guess the protocol and path
| 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://localhost/cilogin/';
/*
|--------------------------------------------------------------------------
| 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/user_guide/general/urls.html
*/
$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/user_guide/general/core_classes.html
| https://codeigniter.com/user_guide/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/user_guide/libraries/encryption.html
|
*/
$config['encryption_key'] = 'xRUqKhsoZ5qV6y3kqARFJFdPqJvp7X2z';
/*
|--------------------------------------------------------------------------
| 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_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_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$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)
|
| 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;
/*
|--------------------------------------------------------------------------
| 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'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array();
/*
|--------------------------------------------------------------------------
| 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'] = '';
$config['email'] = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.gmail.com',
'smtp_port' => 465,
'smtp_user' => '',
'smtp_pass' => '',
'smtp_timeout' => '60',
'mailtype' => 'html',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);

View 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

View 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' => '',
'database' => 'ci_login',
'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
);

View 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">'
);

View 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'
);

View 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/user_guide/general/hooks.html
|
*/

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View 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/user_guide/libraries/caching.html#memcached
|
*/
$config = array(
'default' => array(
'hostname' => '127.0.0.1',
'port' => '11211',
'weight' => '1',
),
);

View 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/';

View File

@ -0,0 +1,184 @@
<?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',
'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', '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'
);

View 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/user_guide/general/profiling.html
|
*/

View File

@ -0,0 +1,54 @@
<?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/user_guide/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;

View 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/user_guide/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')
);

View File

@ -0,0 +1,216 @@
<?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',
// 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'
);

View File

@ -0,0 +1,199 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Admin extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->library('form_validation');
$this->load->library('encryption');
$this->load->model('user_model');
$this->load->database();
if(!$this->session->userdata('id'))
return redirect('welcome');
}
public function index(){
$id = $this->session->userdata('id');
/*To check if personal information is saved or not*/
$user['data'] = $this->user_model->allusers1();
$this->load->view('admin_dashboard', $user);
}
public function organization(){
$user['data'] = $this->user_model->allorgs();
$this->load->view('organization_dashboard', $user);
}
public function editprofileadmin(){
$this->load->view('editprofileadmin');
}
public function changeusername(){
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('username','Username','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE)
{
// TRANSFER INPUT NAME VALUE IN VARIABLES
$id = $this->session->userdata('id');
$username = $this->input->post('username');
$status = $this->user_model->cusername($username, $id);
if($status){
redirect(base_url('admin/validation'));
}else{
redirect(base_url('admin/validation1'));
}
}
}
}
public function changepass(){
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('password','Password','required');
$this->form_validation->set_rules('newpassword1','Password','required');
$this->form_validation->set_rules('newpassword2','Password','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE)
{
if($this->input->post('newpassword1') === $this->input->post('newpassword2')){
$id = $this->session->userdata('id');
$password = sha1($this->input->post('password'));
$newpassword2 = sha1($this->input->post('newpassword2'));
$status = $this->user_model->cpass($password, $newpassword2, $id);
if($status){
redirect(base_url('admin/valid'));
}else{
redirect(base_url('admin/error1'));
}
}else{
redirect(base_url('admin/error'));
}
}
}
}
public function insertimage(){
$config=[
'upload_path' =>'./upload/',
'allowed_types' =>'jpg|png|gif',
];
$this->load->library('upload', $config);
if($this->upload->do_upload('image')){
$img=$this->upload->data();
$image= $img['raw_name'].$img['file_ext'];
$id = $this->session->userdata('id');
if($this->user_model->insert_image($id, $image)){
redirect(base_url('admin/validimage'));
}else{
redirect(base_url('admin/notvalidimage'));
}
}
}
public function pending($user_id, $post_id){
if($this->user_model->pending($user_id, $post_id)){
return redirect("admin");
}
}
public function report($user_id, $post_id){
if($this->user_model->report($user_id, $post_id)){
redirect(base_url('admin'));
}
else{
}
}
function validation(){
$this->editprofileadmin();
}
function validimage(){
$this->editprofileadmin();
}
function notvalidimage(){
$this->editprofileadmin();
}
function validation1(){
$this->editprofileadmin();
}
function error(){
$this->editprofileadmin();
}
function error1(){
$this->editprofileadmin();
}
function valid(){
$this->editprofileadmin();
}
public function orgpending($org_id, $orgadmin_id){
if($this->user_model->orgpending($org_id, $orgadmin_id)){
return redirect("admin/organization");
}
}
public function orgreport($org_id, $orgadmin_id){
if($this->user_model->orgreport($org_id, $orgadmin_id)){
return redirect("admin/organization");
}
}
public function admincontrol(){
$orgsPosts['data'] = $this->user_model->getOrgsPosts();
$this->load->view('admin_control', $orgsPosts);
}
public function orgpost(){
$this->form_validation->set_rules('post','Post','required');
$this->form_validation->set_rules('status1','Status','required');
if($this->form_validation->run()==TRUE)
{
$orgpadmin_id = $this->session->userdata('id');
$org_post = $this->input->post('post');
$org_published_date = $this->input->post('published_date');
$org_status = $this->input->post('status1');
// PUT THE INPUT NAME VALUE IN A DATABASE VARIABLES
$data = array(
'orgpadmin_id' => $orgpadmin_id,
'org_post' => $org_post,
'org_published_date' => $org_published_date,
'org_status' => $org_status
);
if($this->user_model->saveorgsPosts($data)){
return redirect('admin/admincontrol');
}
}else{
$this->admincontrol();
}
}
}

View File

@ -0,0 +1,13 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends CI_Controller {
public function __construct(){
parent::__construct();
}
public function index(){
$this->load->view('home');
}
}

View File

@ -0,0 +1,232 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Orgs extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->library('form_validation');
$this->load->library('encryption');
$this->load->model('user_model');
$this->load->database();
if(!$this->session->userdata('id'))
return redirect('welcome');
if($this->session->userdata('status') == '1')
return redirect('admin');
}
public function index(){
$orgsreg['data'] = $this->user_model->getOrgs();
$this->load->view('orgsreg_dashboard', $orgsreg);
}
public function createorg(){
$this->load->view('createorg');
}
public function orgsprof(){
$orgsPosts['data'] = $this->user_model->getOrgsPosts();
$this->load->view('orgsprof', $orgsPosts);
}
function registerNow(){
if($_SERVER['REQUEST_METHOD']=='POST')
{
$org_verification_key = md5(rand());
$orgadmin_id = $this->session->userdata('id');
$org_representative = $this->input->post('org_representative');
$org_reptupid = $this->input->post('org_reptupid');
$org_name = $this->input->post('org_name');
$org_president = $this->input->post('org_president');
$org_contact = $this->input->post('org_contact');
$org_about = $this->input->post('org_about');
$data = array(
'orgadmin_id' =>$orgadmin_id,
'org_name' =>$org_name,
'org_president' =>$org_president,
'org_contact' =>$org_contact,
'org_about' =>$org_about,
'org_representative' =>$org_representative,
'org_reptupid' =>$org_reptupid,
'org_status' => '0',
'org_verification_key' =>$org_verification_key,
);
if($this->user_model->registerNow($data)){
redirect(base_url('user/success'));
}
else{
redirect(base_url('user/failed'));
}
}
}
public function orgsprofile($org_id, $orgadmin_id){
redirect(base_url('orgs/orgsprof/'.$org_id.'/'.$orgadmin_id));
}
public function orgjoined($org_id){
redirect(base_url('orgs/orgjoin/'.$org_id));
}
public function orgjoin(){
$orgsreg['data'] = $this->user_model->getOrgs();
$this->load->view('orgjoin', $orgsreg);
}
public function email_receivedcontact(){
$this->load->view('email_receivedcontact');
}
public function joinorgs($org_id){
$orgmember_fullname = $this->input->post('orgmember_fullname');
$orgmember_section = $this->input->post('orgmember_section');
$orgmember_college = $this->input->post('orgmember_college');
$orgmember_id = $this->session->userdata('id');
$orgm_id = $org_id;
// PUT THE INPUT NAME VALUE IN A DATABASE VARIABLES
$data = array(
'orgmember_fullname' =>$orgmember_fullname,
'orgmember_section' =>$orgmember_section,
'orgmember_college' =>$orgmember_college,
'orgmember_id' =>$orgmember_id,
'orgm_id' =>$orgm_id,
);
$member = $this->user_model->joinorgs($data);
if($member != ""){
$subject = "Join Organization";
$data1 = array(
'orgmember_fullname' =>$orgmember_fullname,
'orgmember_section' =>$orgmember_section,
'orgmember_college' =>$orgmember_college,
'orgmember_id' =>$orgmember_id,
'orgm_id' =>$orgm_id,
'org_name' => $this->input->post('org_name')
);
$message = $this->load->view('email_joinorg',$data1,true);
$this->email->initialize($this->config->item('email'));
$this->email->set_newline("\r\n");
$this->email->from('clikitstuff@gmail.com','Clikit Admin');
$this->email->to($this->input->post('org_contact'));
$this->email->subject($subject);
$this->email->message($message);
if($this->email->send()){
redirect(base_url('orgs/email'));
}
else{
redirect(base_url('orgs/failedemail'));
}
}
}
function email(){
$this->index();
}
function failedemail(){
$this->index();
}
function verify_joined(){
if($this->uri->segment(3)){
$orgmember_id = $this->uri->segment(3);
$orgm_id = $this->uri->segment(4);
if($this->user_model->verify_joined($orgmember_id, $orgm_id))
{
$data['message'] = '1';
}
else
{
$data['message'] = '0';
}
$this->load->view('verify_joined', $data);
}
}
public function contact(){
$orgsreg['data'] = $this->user_model->getOrgs();
$this->load->view('contact', $orgsreg);
}
function sendcontact(){
$subject = $this->input->post('subject');
$data1 = array(
'email' =>$this->input->post('email'),
'message' =>$this->input->post('message'),
'org_name' => $this->input->post('org_name')
);
$message = $this->load->view('email_contact',$data1,true);
$this->email->initialize($this->config->item('email'));
$this->email->set_newline("\r\n");
$this->email->from('clikitstuff@gmail.com','Clikit Admin');
$this->email->to($this->input->post('org_contact'));
$this->email->subject($subject);
$this->email->message($message);
if($this->email->send())
{
$subject = "Contact Us Update";
$data1 = array(
'subject' =>$this->input->post('subject'),
'message' =>$this->input->post('message'),
'org_name' => $this->input->post('org_name')
);
$message = $this->load->view('email_receivedcontact',$data1,true);
$this->email->initialize($this->config->item('email'));
$this->email->set_newline("\r\n");
$this->email->from('clikitstuff@gmail.com','Clikit Admin');
$this->email->to($this->input->post('email'));
$this->email->subject($subject);
$this->email->message($message);
if($this->email->send())
{
redirect(base_url('orgs/emailcontact'));
}
else{
redirect(base_url('orgs/failedemailcontact'));
}
} else{
redirect(base_url('orgs/failedemailcontact'));
}
}
function emailcontact(){
$this->index();
}
function failedemailcontact(){
$this->index();
}
public function aboutus(){
$this->load->view('aboutus');
}
}

View File

@ -0,0 +1,223 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('user_model');
// if(!$this->session->userdata('id'))
// return redirect('welcome');
if($this->session->userdata('status') == '1')
return redirect('admin');
}
public function index(){
$id = $this->session->userdata('id');
/*CHECK IF PERSONAL INFORMATION WAS SAVED*/
$personalData = $this->user_model->chkPersonalInfo($id);
$userPosts['data'] = $this->user_model->getUserPosts();
$this->load->view('user_dashboard', $userPosts);
}
public function editprofile(){
$id = $this->session->userdata('id');
/*CHECK IF PERSONAL INFORMATION WAS SAVED*/
//$data['image'] = $this->user_model->getimage($id);
$userPosts['data'] = $this->user_model->getUser();
$this->load->view('editprofile', $userPosts);
}
public function post(){
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('status1','Status','required');
$this->form_validation->set_rules('post','Post','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE)
{
// TRANSFER INPUT NAME VALUE IN VARIABLES
$id = $this->session->userdata('id');
$post = $this->input->post('post');
$published_date = $this->input->post('published_date');
$status1 = $this->input->post('status1');
// PUT THE INPUT NAME VALUE IN A DATABASE VARIABLES
$data = array(
'id' => $id,
'post' => $post,
'published_date' => $published_date,
'status_post' => 0,
'status1' => $status1,
);
$returndata = $this->user_model->savePosts($data);
if($returndata != false){
return redirect('index.php/user');
}
}
else{
$this->index();
}
}
}
public function insertimage(){
$config=[
'upload_path' =>'./upload/',
'allowed_types' =>'jpg|png|gif',
];
$this->load->library('upload', $config);
if($this->upload->do_upload('image')){
$img=$this->upload->data();
$image= $img['raw_name'].$img['file_ext'];
$id = $this->session->userdata('id');
if($this->user_model->insert_image($id, $image)){
redirect(base_url('user/validimage'));
}else{
redirect(base_url('user/notvalidimage'));
}
}
}
public function changeusername(){
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('username','Username','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE)
{
// TRANSFER INPUT NAME VALUE IN VARIABLES
$id = $this->session->userdata('id');
$username = $this->input->post('username');
$status = $this->user_model->cusername($username, $id);
if($status){
redirect(base_url('user/validation'));
}else{
redirect(base_url('user/validation1'));
}
}
}
}
public function changepass(){
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('password','Password','required');
$this->form_validation->set_rules('newpassword1','Password','required');
$this->form_validation->set_rules('newpassword2','Password','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE)
{
if($this->input->post('newpassword1') === $this->input->post('newpassword2')){
$id = $this->session->userdata('id');
$password = sha1($this->input->post('password'));
$newpassword2 = sha1($this->input->post('newpassword2'));
$status = $this->user_model->cpass($password, $newpassword2, $id);
if($status){
redirect(base_url('user/valid'));
}else{
redirect(base_url('user/error1'));
}
}else{
redirect(base_url('user/error'));
}
}
}
}
function validimage(){
$this->editprofile();
}
function notvalidimage(){
$this->editprofile();
}
function validation(){
$this->editprofile();
}
function validation1(){
$this->editprofile();
}
function error(){
$this->editprofile();
}
function error1(){
$this->editprofile();
}
function valid(){
$this->editprofile();
}
public function report($user_id, $post_id){
if($this->user_model->reports($user_id, $post_id)){
redirect(base_url('user/reports'));
}else{
redirect(base_url('user/reporterror'));
}
}
function reports(){
$this->index();
}
function reporterror(){
$this->index();
}
public function feedback($user_id, $post_id){
$this->form_validation->set_rules('post','Post','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE){
// TRANSFER INPUT NAME VALUE IN VARIABLES
$post = $this->input->post('post');
// PUT THE INPUT NAME VALUE IN A DATABASE VARIABLES
$data = array(
'feedback' => $post
);
if($this->user_model->feedback($user_id, $post_id, $data)){
redirect(base_url('user/feedbacks'));
}else{
redirect(base_url('user/feedbackerror'));
}
}
}
function feedbacks(){
$this->index();
}
function feedbackerror(){
$this->index();
}
function failed(){
$this->index();
}
function success(){
$this->index();
}
}

View File

@ -0,0 +1,513 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Welcome extends CI_Controller {
// WILL EXECUTE THIS CODE WHEN NEW OBJECT OF THIS CLASS HAS BEEN CREATED
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->load->library('encryption');
$this->load->model('user_model');
$this->load->database();
// if($this->session->userdata('id') == '1')
// return redirect('admin');
// else if($this->session->userdata('id') >'1')
// return redirect('user');
}
// LOAD THE MAIN VIEW
public function index()
{
$this->load->view('home');
}
public function password_check($str)
{
if (!(preg_match('#[0-9]#', $str) && preg_match('#[a-zA-Z]#', $str))) {
redirect(base_url('welcome/password'));
}
}
// FORM VALIDATION
function registerNow()
{
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('fullname','Full Name','required');
$this->form_validation->set_rules('username','User Name','required');
$this->form_validation->set_rules('email','Email','required|valid_emails|is_unique[users.email]');
$this->form_validation->set_rules('password','Password','required');
$this->form_validation->set_rules('password1','Confirm Password','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE)
{
$re = '/[a-zA-Z](@tup.edu.ph)/';
$str = $this->input->post('email');
if ( !preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0)){
redirect(base_url('welcome/emailfailed'));
}
//CHECK IF THE ENTER PASSWORD IS THE SAME
if($this->input->post('password') === $this->input->post('password1')){
$this->form_validation->set_rules('password1', 'Password', 'required|min_length[8]|alpha_numeric');
if(
($this->form_validation->run()==TRUE) &&
(preg_match('#[0-9]#', $this->input->post('password1')) &&
preg_match('#[a-zA-Z]#', $this->input->post('password1')))
){
// USED FOR EMAIL VERIFICATION
$verification_key = md5(rand());
// TRANSFER INPUT NAME VALUE IN VARIABLES
$fullname = $this->input->post('fullname');
$username = $this->input->post('username');
$email = $this->input->post('email');
$password = $this->input->post('password');
// PUT THE INPUT NAME VALUE IN A DATABASE VARIABLES
$data = array(
'fullname' =>$fullname,
'username' =>$username,
'email' =>$email,
'password' =>sha1($password),
'verification_key' =>$verification_key,
'status' =>'0'
);
$id = $this->user_model->insertuser($data);
// SENT VERIFICATION
if($id > 0){
$subject = "Email Verification";
$data = array(
'email' => $this->input->post('email'),
'fullname' => $this->input->post('fullname'),
'verification_key' => $verification_key
);
$message = $this->load->view('email_registered',$data,true);
$this->email->initialize($this->config->item('email'));
$this->email->set_newline("\r\n");
$this->email->from('clikitstuff@gmail.com','Clikit Admin');
$this->email->to($this->input->post('email'));
$this->email->subject($subject);
$this->email->message($message);
if($this->email->send())
{
redirect(base_url('welcome/email'));
}
else{
redirect(base_url('welcome/failedemail'));
}
}
}
else{
redirect(base_url('welcome/password'));
}
}
// IF NOT THE SAME: MAKE AN ERROR MESSAGES
else{
redirect(base_url('welcome/failed'));
}
}
else{
$this->index();
}
}
}
// ALERT FOR NOT MATCH PASSWORD
public function failed(){
$this->index();
}
public function password(){
$this->index();
}
// ALERT FOR EMAIL
public function email(){
$this->index();
}
// ALERT FOR EMAIL
public function failedemail(){
$this->index();
}
public function emailfailed(){
$this->index();
}
// EMAIL VERIFICATION
function verify_email(){
if($this->uri->segment(3)){
$verification_key = $this->uri->segment(3);
if($this->user_model->verify_email($verification_key))
{
$data['message'] = '1';
}
else
{
$data['message'] = '0';
}
$this->load->view('email_verification', $data);
}
}
// CALL VIEW LOGIN
function login(){
$this->load->view('login');
}
// LOGIN VERIFICATION
function loginnow()
{
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('email','Email','required');
$this->form_validation->set_rules('password','Password','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE)
{
// TRANSFER INPUT NAME VALUE IN VARIABLES
$email = $this->input->post('email');
$password = $this->input->post('password');
$password = sha1($password);
// CALL FUNCTION TO CHECK THE EMAIL AND PASSWORD
// TRANSFER IN $status THE RETURN VALUE IN checkPassword
$status1 = $this->user_model->checkPassword($password,$email);
// GO TO DASHBOARD VIEW IF STATEMENT IS TRUE
if($status1!=false){
// TRANSFER THE DATABASE VALUE IN VARIABLES
$id = $status1->id;
$username = $status1->username;
$email = $status1->email;
$status = $status1->status;
$image = $status1->image;
$fullname = $status1->fullname;
// STORE AS AN ARRAY IN $session_data
$session_data = array(
'username' => $username,
'email' => $email,
'id' => $id,
'status' => $status,
'image' => $image,
'fullname' => $fullname,
);
// SET THE $session_data TO UserLoginSession
$this->session->set_userdata($session_data);
$status = $this->session->userdata('status');
if($status1->rules_regulations == '1'){
if($status == '1'){
redirect('admin');
}
else{
redirect('index.php/user');
}
}else{
redirect(base_url('welcome/rules_regulations'));
}
}
else {
// MAKE AN ALERT FOR NOT MATCHING PASSWORD AND EMAIL
redirect(base_url('welcome/validation'));
}
}
else{
// MAKE AN ALERT TO FILL UP THE FORM
redirect(base_url('welcome/validation1'));
}
}
}
function rules_regulations(){
$this->load->view('rules_regulations');
}
function rules(){
$id = $this->session->userdata('id');
if($this->user_model->rules($id)){
if($this->session->userdata('status') == '1'){
redirect('admin');
}
else{
redirect('index.php/user');
}
}
else {
// MAKE AN ALERT FOR NOT MATCHING PASSWORD AND EMAIL
redirect(base_url('welcome/validation'));
}
}
// ALERT FOR NOT MATCHING PASSWORD AND EMAIL
function validation(){
$this->login();
}
// ALERT TO FILL UP THE FORM
function validation1(){
$this->login();
}
// CALL VIEW FORGOT
function forgot(){
$this->load->view('forgot');
}
// FORGOT PASSWORD
function forgotpassword(){
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('email','Email','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE)
{
// TRANSFER INPUT NAME VALUE IN VARIABLES
$email = $this->input->post('email');
// CALL FUNCTION TO CHECK THE EMAIL
// TRANSFER IN $status THE RETURN VALUE IN checkemail
$status = $this->user_model->checkemail($email);
// SENT OTP CODE TO REST PASSWORD
if( $status!=false){
$generator = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$code = substr(str_shuffle($generator), 0, 8);
$status = $this->user_model->code_verification($email, $code);
$subject = "Forgot Password";
$data = array(
'code' => $code,
);
$message = $this->load->view('email_forgot',$data,true);
$this->email->initialize($this->config->item('email'));
$this->email->set_newline("\r\n");
$this->email->from('clikitstuff@gmail.com','Clikit Admin');
$this->email->to($email);
$this->email->subject($subject);
$this->email->message($message);
if($this->email->send())
{
redirect(base_url('welcome/otpsent'));
}
else{
redirect(base_url('welcome/otpnotsent'));
}
}
else {
// MAKE AN ALERT FOR NOT MATCHING EMAIL
redirect(base_url('welcome/notemail'));
}
}
else{
// MAKE AN ALERT TO FILL UP THE FORM
redirect(base_url('welcome/ferror'));
}
}
}
// ALERT FOR INCOMPELETE FORM
function ferror(){
$this->forgot();
}
// ALERT FOR NOT EMAIL NOT FOUND
function notemail(){
$this->forgot();
}
// ALERT WHEN SENT EMAIL
function otpsent(){
$this->load->view('otp');
}
// ALERT WHEN UNSENT EMAIL
function otpnotsent(){
$this->load->view('otp');
}
// CALL OTP VIEW
function otp(){
$this->load->view('otp');
}
function otpcode(){
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('code','Verification Code','required');
// VERIFY IF ERRORS ARE NOT OCCUR
if($this->form_validation->run()==TRUE)
{
// TRANSFER INPUT NAME VALUE IN VARIABLES
$code = $this->input->post('code');
$status = $this->user_model->find_code($code);
// GO TO DASHBOARD VIEW IF STATEMENT IS TRUE
if($status!=false){
// TRANSFER THE DATABASE VALUE IN VARIABLES
$username = $status->username;
$email = $status->email;
$id = $status->id;
$status = $status->status;
$this->user_model->reset_code($email);
// STORE AS AN ARRAY IN $session_data
$session_data = array(
'username' => $username,
'email' => $email,
'id' => $id,
'status' => $status,
);
// SET THE $session_data TO UserLoginSession
$this->session->set_userdata($session_data);
// LINK TO Welcome/Dashboard.php
redirect('welcome/changepass');
}
else {
// MAKE AN ALERT FOR NOT MATCHING CODE
redirect(base_url('welcome/fcode'));
}
}
else{
// MAKE AN ALERT TO FILL UP THE FORM
redirect(base_url('welcome/otperror'));
}
}
}
public function changepass()
{
$this->load->view('changepass');
}
public function changepassvalue()
{
if($_SERVER['REQUEST_METHOD']=='POST')
{
// MAKE AN ALERTS OR SET ERRORS FOR UNWANTED INPUT
$this->form_validation->set_rules('password1','Password','required');
$this->form_validation->set_rules('password2', 'Password', 'required|min_length[8]|alpha_numeric');
// VERIFY IF ERRORS ARE NOT OCCUR
if(($this->form_validation->run()==TRUE) &&
(preg_match('#[0-9]#', $this->input->post('password2')) &&
preg_match('#[a-zA-Z]#', $this->input->post('password2')))
)
{
if($this->input->post('password1') === $this->input->post('password2')){
$id = $this->session->userdata('id');
$password = sha1($this->input->post('password1'));
$status = $this->user_model->changepassvalue($password, $id);
if($status){
$this->session->unset_userdata('id');
redirect(base_url('welcome/accept'));
}else{
$this->session->unset_userdata('id');
redirect(base_url('welcome/notaccept'));
}
}else{
redirect(base_url('welcome/error'));
}
}else{
redirect(base_url('welcome/fferror'));
}
}
}
function error(){
$this->changepass();
}
function fferror(){
$this->changepass();
}
function accept(){
$this->login();
}
function notaccept(){
$this->login();
}
// ALERT FOR INCOMPELETE FORM
function fcode(){
$this->otp();
}
// ALERT FOR WRONG CODE FORM
function otperror(){
$this->otp();
}
// LOGOUT
function logout(){
$this->session->unset_userdata('id');
redirect(base_url('welcome/login'));
}
}

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View 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 Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,467 @@
<?php
class User_model extends CI_Model {
// PUT DATA IN DATABASE
function insertuser($data){
$this->db->insert('users',$data);
return $this->db->insert_id();
}
// VERIFICATION KEY
function verify_email($key){
$this->db->where('verification_key', $key);
$this->db->where('is_email_verified', 'no');
$query = $this->db->get('users');
if($query->num_rows () > 0){
$data = array(
'is_email_verified' => 'yes'
);
$this->db->where('verification_key', $key);
$this->db->update('users', $data);
return true;
}
else
{
return false;
}
}
function rules($id){
$this->db->where('id', $id);
$this->db->where('rules_regulations', '0');
$query = $this->db->get('users');
if($query->num_rows () > 0){
$data = array(
'rules_regulations' => '1'
);
$this->db->where('id', $id);
$this->db->update('users', $data);
return true;
}
else
{
return false;
}
}
// CHECK EMAIL AND PASSWORD
function checkPassword($password,$email){
// CHECK IF THE EMAIL AND PASSWORD ARE IN THE DATABASE
// PASS THE RESULT IN $query
$query = $this->db->query("SELECT * FROM users WHERE password='$password' AND email='$email' AND is_email_verified ='yes'");
// TRUE IF THE EMAIL AND PASSWORD ARE IN DATABASE
if($query->num_rows()==1){
// RETURN THE ROW OF EMAIL AND PASSWORD
return $query->row();
}
// FALSE IF NOT
else{
return false;
}
}
// FORGOT PASSWORD
function checkemail($email){
// CHECK IF THE EMAIL IS IN THE DATABASE
// PASS THE RESULT IN $query
$query = $this->db->query("SELECT * FROM users WHERE email='$email' AND is_email_verified ='yes' AND status='0'");
// TRUE IF THE EMAIL IS IN DATABASE
if($query->num_rows()==1){
// RETURN THE ROW OF EMAIL
return $query->row();
}
// FALSE IF NOT
else{
return false;
}
}
// CODE VERIFICATION
function code_verification($email, $code ){
$this->db->where('email', $email);
$query = $this->db->get('users');
if($query->num_rows() > 0){
$data = array(
'code_verification' => $code
);
$this->db->where('email', $email);
$this->db->update('users',$data);
return $query->row();
}
else
{
return false;
}
}
// FIND THE CODE VERIFICATION
function find_code($code){
// CHECK IF THE CODE IS IN THE DATABASE
// PASS THE RESULT IN $query
$query = $this->db->query("SELECT * FROM users WHERE code_verification='$code' AND is_email_verified ='yes' AND status='0'");
// TRUE IF THE CODE IS IN DATABASE
if($query->num_rows()==1){
return $query->row();
}
// FALSE IF NOT
else{
return false;
}
}
// RESET THE CODE_VERIFICATION
function reset_code($email){
$this->db->where('email', $email);
$this->db->where('is_email_verified', 'yes');
$query = $this->db->get('users');
if($query->num_rows() > 0){
$data = array(
'code_verification' => ""
);
$this->db->where('email', $email);
$this->db->update('users',$data);
}
return $query->row();
}
public function changepassvalue($password, $id){
$this->db->where('id', $id);
$query = $this->db->get('users');
if($query->num_rows() == 1){
$data = array(
'password'=> $password,
);
$this->db->where('id', $id);
$this->db->update('users',$data);
return true;
}else{
return false;
}
}
//EDIT PROFILE
public function allusers(){
$id = $this->session->userdata('id');
$this->db->select(['users.id', 'users.image', 'users.username', 'users.email', 'posts.post']);
$this->db->from("users");
$this->db->join("posts", "posts.id = users.id", "left");
$this->db->where("users.id !=", $id);
$this->db->order_by("users.id", "DESC");
$users = $this->db->get();
return $users->result();
}
public function allusers1(){
$id = $this->session->userdata('id');
$this->db->select(['users.id', 'users.image', 'users.username', 'users.email', 'posts.post', 'posts.status1', 'posts.status_post', 'posts.post_id', 'posts.report', 'posts.feedback']);
$this->db->from("users");
$this->db->join("posts", "posts.id = users.id");
$this->db->where("users.id !=", $id);
$this->db->order_by("posts.published_date", "DESC");
$users = $this->db->get();
return $users->result();
}
public function chkPersonalInfo($id){
$query = $this->db->query("SELECT * FROM users WHERE id='$id'");
// TRUE IF THE EMAIL AND PASSWORD ARE IN DATABASE
if($query->num_rows()==1){
// RETURN THE ROW OF EMAIL AND PASSWORD
return $query->row();
}
}
// SAVE POST TO DATABASE
public function savePosts($data){
return $this->db->insert('posts', $data);
}
// FETCH POST IN DATABASE
public function getUserPosts (){
$this->db->select('*');
$this->db->from("users");
$this->db->join("posts", "users.id = posts.id");
$this->db->order_by("posts.published_date", "DESC");
return $this->db->get();
}
public function insert_image($id, $image){
$this->db->where('id', $id);
$query = $this->db->get('users');
if($query->num_rows() > 0){
$data = array(
'image'=>$image,
);
$this->db->where('id', $id);
$this->db->update('users',$data);
return true;
}
}
public function getimage($id){
$query = $this->db->query("SELECT * FROM users WHERE id='$id'");
// TRUE IF THE EMAIL IS IN DATABASE
if($query->num_rows()==1){
// RETURN THE ROW OF EMAIL
return $query->row();
}
}
public function getUser(){
$this->db->select('*');
$this->db->from("posts");
$this->db->join("users", "users.id = posts.id");
$this->db->join("orgs", "orgs.orgadmin_id = users.id", "left");
$this->db->order_by("posts.published_date", "DESC");
return $this->db->get();
}
public function cusername($username, $id){
$this->db->where('id', $id);
$query = $this->db->get('users');
if($query->num_rows() > 0){
$data = array(
'username'=> $username,
);
$this->db->where('id', $id);
$this->db->update('users',$data);
return true;
}
}
public function cpass($password, $newpassword2, $id){
$this->db->where('id', $id);
$this->db->where('password', $password);
$query = $this->db->get('users');
if($query->num_rows() == 1){
$data = array(
'password'=> $newpassword2,
);
$this->db->where('id', $id);
$this->db->update('users',$data);
return true;
}else{
return false;
}
}
public function pending($user_id, $post_id){
$this->db->where('id', $user_id);
$this->db->where('post_id', $post_id);
$query = $this->db->get('posts');
if($query->num_rows () > 0){
$data = array(
'status_post' => '1'
);
$this->db->where('id', $user_id);
$this->db->where('post_id', $post_id);
$this->db->update('posts', $data);
return true;
}
else
{
return false;
}
}
public function report($user_id, $post_id){
if($this->db->delete('posts', array('id' => $user_id, 'post_id' => $post_id))){
return true;
}
else
{
return false;
}
}
public function reports($user_id, $post_id){
$this->db->where('id', $user_id);
$this->db->where('post_id', $post_id);
$query = $this->db->get('posts');
if($query->num_rows () > 0){
$data = array(
'report' => '1'
);
$this->db->where('id', $user_id);
$this->db->where('post_id', $post_id);
$this->db->update('posts', $data);
return true;
}
else
{
return false;
}
}
public function feedback($user_id, $post_id, $data){
$this->db->where('id', $user_id);
$this->db->where('post_id', $post_id);
$query = $this->db->get('posts');
if($query->num_rows () > 0){
$this->db->where('id', $user_id);
$this->db->where('post_id', $post_id);
$this->db->update('posts', $data);
return true;
}
else
{
return false;
}
}
// ORGANIZATION
function registerNow($data){
$this->db->insert('orgs',$data);
return $this->db->insert_id();
}
public function allorgs(){
$this->db->select('*');
$this->db->from("orgs");
$this->db->order_by("orgs.orgadmin_id", "DESC");
$users = $this->db->get();
return $users->result();
}
public function orgpending($org_id, $orgadmin_id){
$this->db->where('org_id', $org_id);
$this->db->where('orgadmin_id', $orgadmin_id);
$query = $this->db->get('orgs');
if($query->num_rows () > 0){
$data = array(
'org_status' => '1'
);
$this->db->where('org_id', $org_id);
$this->db->where('orgadmin_id', $orgadmin_id);
$this->db->update('orgs', $data);
return true;
}
else
{
return false;
}
}
public function orgreport($org_id, $orgadmin_id){
if($this->db->delete('orgs', array('org_id' => $org_id, 'orgadmin_id' => $orgadmin_id))){
return true;
}
else
{
return false;
}
}
// FETCH POST IN DATABASE
public function getOrgsPosts (){
$this->db->select('*');
$this->db->from("orgs");
$this->db->join("org_member", "org_member.orgm_id = orgs.org_id", "left");
$this->db->join("orgs_posts", "orgs_posts.orgpadmin_id = orgs.orgadmin_id", "left");
$this->db->order_by("orgs_posts.org_published_date", "DESC");
return $this->db->get();
}
public function saveorgsPosts($data){
return $this->db->insert('orgs_posts', $data);
}
public function getOrgs (){
$this->db->select('*');
$this->db->from("orgs");
$this->db->order_by("orgs.org_name", "DESC");
return $this->db->get();
}
function joinorgs($data){
$this->db->insert('org_member',$data);
return $this->db->insert_id();
}
function verify_joined($orgmember_id, $orgm_id){
$this->db->where('orgmember_id', $orgmember_id);
$this->db->where('orgm_id', $orgm_id);
$query = $this->db->get('org_member');
if($query->num_rows () > 0){
$data = array(
'orgmember_status' => '1',
);
$this->db->where('orgmember_id', $orgmember_id);
$this->db->where('orgm_id', $orgm_id);
$this->db->update('org_member', $data);
return true;
}
else
{
return false;
}
}
}

View 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 Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,222 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | About Us</title>
<!-- CSS STYLE FOR SIGN UP -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
list-style: none;
font-family: 'Poppins', sans-serif;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
}
/* WRAPPER FOR LOGO AND FORM */
.wrapper{
display: flex;
width: 70rem;
height: 570px;
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/* SIZE OF BOX IN FORM */
.wrapper .right{
width: 65%;
height: 100%;
padding: 30px;
padding-left: 60px;
padding-right: 60px;
background: #632626;
background-repeat: no-repeat;
background-size: cover;
border-radius: 0 20px 20px 0;
}
/* SIZE OF BOX IN LOGO */
.wrapper .left{
width: 35%;
height: 100%;
padding: 30px;
background-image: url( <?= base_url() ?>assets/img/bg5.jpg );
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 0 0 20px ;
}
.wrapper .left img{
width: 100%;
transform: translate(1%,250%);
}
/* FORM GREETINGS */
.wrapper .right h3{
font-size: 2.5rem;
color: #fff3f2;
font-weight: 600;
line-height: 72px;
letter-spacing: 1px;
word-spacing: 2px;
text-align: center;
margin-bottom: 15px;
margin-top: 10px;
}
.wrapper .right .form{
margin-top: 0;
}
/* TITLE OF FORM QUESTIONS */
.wrapper .right .form label{
color: #fff3f2;
letter-spacing: 1px;
margin-top: 3px;
font-weight: 500;
font-size: 14px;
}
/* LOGIN QUESTION TEXT */
.wrapper .right h4{
color: #fff3f2;
font-size: small;
letter-spacing: 1px;
word-spacing: 1px;
text-align: center;
}
/* INPUT BOX */
.wrapper .right .input{
width: 100%;
padding: 3px;
border: 3px;
font-size: 13px;
background: #EFF0F2;
}
/* INPUT PLACEHOLDER */
input::placeholder{
color: #838383;
font-size: 13px;
font-weight: 100%;
font-weight: normal;
}
/* FORM ERROR MESSAGES*/
.wrapper .right .text-danger{
font-size: 13px;
padding-bottom:-1.25em;
margin-bottom:-1.25em;
}
/* PASSWORD OR EMAIL ERROR */
.wrapper .right .pass{
font-size: 16px;
margin-top:20px;
margin-bottom:none;
}
/* CREATE ACCOUNT BUTTON */
.wrapper .right .btn{
color: #fff;
text-align: center;
background: #8E5758;
width: 250px;
height: 35px;
transform: translate(0%,110%);
}
.wrapper .right .btn:hover{
background-color: #260200;
}
.officers{
margin-top: 40px;
margin-bottom: 50px;
color: white;
}
</style>
</head>
<body>
<div class="wrapper">
<!-- LOGO SECTION -->
<div class="left">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</div>
<!-- FORM SECTION -->
<div class="right">
<center>
<h3>About Us</h3>
<h4>This Organization is about college students who are good in coding </h4>
</center>
<div class="officers">
<h2>Officers</h2>
<div style="padding-top: 10px; margin-left: 50px;">
<table>
<tr>
<th>President</th>
<th style="padding-left: 60px;">Adviser</th>
</tr>
<tr >
<td>&emsp; Alfreds Futterkiste</td>
<td style="padding-left: 60px;">&emsp; Prof. May M. Garcia</td>
</tr>
<tr>
<th>Vice President</th>
<td style="padding-left: 60px;">&emsp; Prof. Jan Eilbert L. Lee</td>
</tr>
<tr>
<td>&emsp; Alexandra Loreinne Guzman</td>
</tr>
<tr>
<th>Secretary</th>
</tr>
<tr>
<td>&emsp; Irene Aubrey Floresca</td>
</tr>
<tr>
<th>Vice President for Finance</th>
</tr>
<tr>
<td>&emsp; Marc Rovic Baja</td>
</tr>
<tr>
<th>Vice President</th>
</tr>
<tr>
<td>&emsp; Alexandra Loreinne Guzman</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,679 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>C.L.I.K.I.T.</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
body{
background: url('../assets/img/bg10.jpg');
background-repeat: no-repeat;
background-size: cover;
}
ion-icon{
font-size: 1.5rem;
margin-right: 8px;
}
nav{
display: flex;
align-items: center;
justify-content: space-between;
background: #1E0E0E;
padding: 13px 7%;
position: sticky;
top: 0;
z-index: 100;
margin-bottom: 10px;
}
.nav-left p{
width: 160px;
margin-right: 45px;
color: #efefef;
font-size: 20px;
}
.nav-left, .nav-right{
display: flex;
align-items: center;
}
.nav-user-icon img{
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
}
.nav-user-icon{
margin-left: 30px;
}
.search-box{
background: #efefef;
width: 200px;
border-radius: 20px;
display: flex;
align-items: center;
padding: 0 15px;
margin-bottom: 10px;
height: 30px;
}
.search-box p{
width: 18px;
color: #626262;
}
.search-box input{
font-size: small;
width: 100%;
background: transparent;
padding: 10px;
outline: none;
border: 0;
}
.container{
display: flex;
justify-content: space-between;
padding-top: 15px;
}
.left-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
color: #800;
padding-right: 15px;
padding-top: 15px;
}
.right-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
background: url('../assets/img/bg1.jpg');
padding: 20px;
border-radius: 4px;
color: #2C1515;
letter-spacing: 0.5px;
margin-left:10px;
margin-top: 8px;
}
.main-content{
flex-basis: 47%;
}
.imp-links a{
text-decoration: none;
display: flex;
align-items: center;
color: #efefef;
width: fit-content;
}
.imp-links a img{
width: 25px;
height: 25px;
margin-right: 15px;
border-radius: 50%;
}
.imp-links{
background:#905152;
width: 80%;
padding: 10px;
border-radius: 10px;
margin-bottom: 30px;
}
.sidebar-title{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
}
.sidebar-title ion-icon{
transform: translate(100%, 20%);
}
.right-sidebar h4{
color: #59292B;
letter-spacing: 1px;
font-weight: 600;
font-size: 16px;
}
.right-sidebar h3{
color: #3B1C1C;
font-weight: 600;
}
.sidebar-title a{
text-decoration: none;
color: #1876f2;
font-size: 12px;
}
.event{
display: flex;
font-size: 14px;
margin-bottom: 20px;
}
.left-event{
background: white;
border-radius: 10px;
height: 65px;
width: 65px;
margin-right: 15px;
padding-top: 10px;
text-align: center;
position: relative;
overflow: hidden;
box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
}
.event p{
font-size: 12px;
}
.event a{
font-size: 12px;
text-decoration: none;
color: #1876f2;
}
.left-event span{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: #3B1C1C;
color: #F5F5F5;
font-size: 10px;
padding: 4px 0;
}
.sidebar-ads{
width: 100%;
margin-bottom: 20px;
border-radius: 4px;
}
.write-post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 20px;
color: #626262;
}
.user-profile{
display: flex;
align-items: center;
}
.user-profile img{
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 15px;
}
.user-profile p{
margin-bottom: -5px;
font-weight: 500;
color: #626262;
}
.user-profile small{
font-size: 12px;
}
.user-profile label{
padding-right:5px;
padding-bottom:2px;
font-size:13px;
}
.user-profile .status{
color: #626262;
font-size:13px;
border-radius: 5px;
cursor: pointer;
}
.user-profile .status:hover{
background-color:#905152;
}
.user-profile span{
font-size: 13px;
color: #626262;
}
.post-input-container{
padding-left: 55px;
padding-top: 20px;
}
.post-input-container textarea{
width: 95%;
border: 0;
outline: 0;
border-bottom: 1px solid #ccc;
background: transparent;
resize: none;
}
.add-post-links{
display: flex;
margin-top: 10px;
}
.add-post-links ion-icon{
text-decoration: none;
display: flex;
align-items: center;
color: #626262;
margin-right: 4px;
font-size: 18px;
}
.add-post-links p{
text-decoration: none;
display: flex;
align-items: center;
color: #626262;
margin-right: 30px;
font-size: 13px;
}
.add-post-links img{
width: 20px;
margin-right: 10px;
}
.post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 20px;
color: #626262;
margin: 20px 0;
}
.post-text{
color: #55504E;
margin: 15px 0;
font-size: 15px;
}
.post-text span{
color: #626262;
font-weight: 500;
}
.post-text a{
color: #1876f2;
text-decoration: none;
}
.post-img{
width: 100%;
border-radius: 4px;
margin-bottom: 5px;
}
.post-row{
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-icons div img{
width: 18px;
margin-right: 10px;
}
.activity-icons div{
display: inline;
align-items: center;
margin-right: 30px;
}
.post-profile-icon{
display: flex;
align-items: center;
}
.post-profile-icon img{
width: 20px;
border-radius: 50%;
margin-right: 5px;
}
.post-row a{
color: #9a9a9a;
}
.profile{
transform: translateX(-8px);
}
.btn1{
color: white;
background:none;
border-radius:5px 0px 0px 5px;
width: auto;
padding: 3px 10px 3px 10px;
border: none;
}
.btn1:hover{
color: white;
}
.btn2{
color: white;
background:none;
border-radius:0px 5px 5px 0px;
width: auto;
padding: 3px 8px 3px 8px;
border: none;
}
.btn1:hover{
color: white;
}
.dropdown-item:hover{
color:white;
background:#905152;
opacity: 1px;
}
.logo{
text-decoration: none;
}
.logo img{
width: 20%;
}
.btn{
color: #fff;
text-align: center;
background: #800000;
width: 450px;
height: 35px;
transform: translateX(-5.5%);
}
.btn:hover{
color: #fff;
background-color: #522020;
}
.btn-group ion-icon{
color: #55504E;
font-size: 20px;
position: absolute;
right: -180px;
top: -30px;
}
.btn-group1{
position: relative;
transform: translateX(900%);
}
.dropdown-menu1{
background-color: rgba(0,0,0,.7);
}
textarea{
font-size: 15px;
background-color: #905152;
border: none;
color: #55504E;
padding: 4px;
}
.posting::placeholder{
color: #9a9a9a;
}
.dropdown-menu1 .dropdown-item{
color:white;
}
.btnf{
color: #fff;
text-align: center;
text-decoration: none;
border: none;
background: transparent;
padding: 3px 10px;
}
.btnf:hover{
color:white;
background:#905152;
opacity: 1px;
}
.book{
color:#ff9e14;
position: absolute;
transform: translateX(1300%);
}
.book ion-icon{
color:#ff9e14;
}
.announcement-text{
background: #683032;
color: #EADADA;
padding: 10px;
border-radius: 10px;
margin-top: 30px;
}
.announcement-text .date{
font-size: 12px;
}
.announcement-text .date ion-icon{
transform: translateY(25%);
}
.announcement-text .post{
font-size: 15px;
text-align: center;
}
</style>
</head>
<body>
<!-- <?php
// if($this->session->userdata('UserLoginSession')){
// // TRANSFER THE DATA IN UserLoginSession TO $udata
// $udata = $this->session->userdata('UserLoginSession');
// ?>
// PRINT WELCOME WITH USER username
echo 'Welcome'.' '.$udata['username']; -->
<nav>
<div class="nav-left">
<a class="logo" href="<?=base_url('index.php/user')?>">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</a>
</div>
<div class="nav-right">
<div id="bs-example-navbar-collapse-2">
<div class="btn-group" style="float:right;">
<div class="profile">
<a href=<?php echo base_url('/user');?>>
<?php if($this->session->userdata('image') == ""){
?>
<img src=<?= base_url('assets/img/default_dp.png')?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}else{
?>
<img src=<?= base_url('upload/'.($this->session->userdata('image')))?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}
?>
</a>
</div>
<div class="btn-group">
<button type="button" class="btn1"><?php echo $this->session->userdata('username');?></button>
<button type="button" class="btn2 dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="<?=base_url('index.php/user')?>">Go to Freedom Wall</a></li>
<li><a class="dropdown-item" href="<?=base_url('orgs')?>">Go to Organization</a></li>
<li><a class="dropdown-item" href="<?=base_url('orgs/createorg')?>">Create Organization</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('user/editprofile')?>">View Profile</a></li>
<li><a class="dropdown-item" href="<?=base_url('user/editprofile#changepass')?>">Change Password</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('welcome/logout')?>">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="left-sidebar">
<div class="imp-links">
<a href="<?=base_url('orgs')?>"><ion-icon name="library"></ion-icon>Organizations</a>
</div>
</div>
<div class="main-content">
<div class="mt-2 mb-2">
</div>
<div class="write-post-container">
<form method="post" autocomplete="off" action="<?=base_url('admin/orgpost')?>">
<div class="user-profile">
<a href="<?=base_url('admin/admincontrol')?>">
<img src=<?= base_url('assets/img/orgs_logo.png')?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
</a>
<div>
<p>Organization Post</p>
<label><input class="status mt-2" type="radio" name="status1" value="1"> Announcement </input></label>
<label><input class="status" type="radio" name="status1" value="2"> Post</input></label>
</div>
</div>
<div class="post-input-container">
<textarea class="posting" rows="2" name="post" placeholder="What's on your mind ?" required></textarea>
<?php
date_default_timezone_set('Asia/Manila');
$datetime = date('Y/m/d H:i:s');
?>
<input type="hidden" name="published_date" value='<?php echo $datetime; ?>'>
<div class="rounded-0 text-center">
<button type="submit" class="btn">Post</button>
</div>
</div>
</form>
</div>
<?php
foreach($data->result() as $row)
{
if( ($this->session->userdata('id')) == $row->orgpadmin_id){
?>
<div class="post-container">
<div class="post-row">
<div class="user-profile">
<?php if($row->org_image == ""){
?>
<img src=<?= base_url('assets/img/orgs_logo.png')?>>
<?php
}else{
?>
<img src=<?= base_url('upload/'.$row->org_image)?>>
<?php
}
?>
<div>
<?php if($row->org_status == "1"){
?>
<span class="book"><ion-icon name="bookmarks"></ion-icon></span>
<?php
}
?>
<p><?php echo $row->org_name?></p>
<span><?php echo $row->org_published_date ?></span>
</div>
</div>
<a href="#"><i class="fas fa-ellipsis-v"></i></a>
</div>
<p class="post-text"><?php echo $row->org_post?></p>
</div>
<?php
}
}
?>
</div>
<div class="right-sidebar">
<div class="sidebar-title">
<h4>Events / Activities</h4>
</div>
<div class="event">
<div class="left-event">
<h3>18</h3>
<span>March</span>
</div>
<div class="right-event">
<h4>Org 1 Event</h4>
<p>Summarized words that fit in a few words</p>
</div>
</div>
<div class="event">
<div class="left-event">
<h3>22</h3>
<span>June</span>
</div>
<div class="right-event">
<h4>Org 2 Event</h4>
<p>Summarized words that fit in a few words</p>
</div>
</div>
<div class="sidebar-title">
<h4>Org Announcement <ion-icon name="bookmarks"></ion-icon></h4>
</div>
<div>
<?php
foreach($data->result() as $row)
{
if( ($this->session->userdata('id')) == $row->orgpadmin_id && $row->org_status == "1"){
?>
<?php if($row->org_status == "1"){
?>
<div class="announcement-text">
<p class="date"> <ion-icon name="time-outline"></ion-icon><?php echo $row->org_published_date ?></p>
<p class="post"><?php echo $row->org_post?></p>
</div>
<?php
}
?>
<?php
}
}
?>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,900 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>C.L.I.K.I.T.</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
body{
background: url('assets/img/bg10.jpg');
background-repeat: no-repeat;
background-size: cover;
}
ion-icon{
font-size: 1.5rem;
margin-right: 8px;
}
nav{
display: flex;
align-items: center;
justify-content: space-between;
background: #1E0E0E;
padding: 13px 7%;
position: sticky;
top: 0;
z-index: 100;
margin-bottom: 10px;
}
.nav-left p{
width: 160px;
margin-right: 45px;
color: #efefef;
font-size: 20px;
}
.nav-left, .nav-right{
display: flex;
align-items: center;
}
.nav-user-icon img{
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
}
.nav-user-icon{
margin-left: 30px;
}
.search-box{
background: #efefef;
width: 200px;
border-radius: 20px;
display: flex;
align-items: center;
padding: 0 15px;
margin-bottom: 10px;
height: 30px;
}
.search-box p{
width: 18px;
color: #626262;
}
.search-box input{
font-size: small;
width: 100%;
background: transparent;
padding: 10px;
outline: none;
border: 0;
}
.container{
display: flex;
justify-content: space-between;
padding-top: 15px;
}
.left-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
color: #800;
padding-bottom: 40px;
}
.imp-links a{
text-decoration: none;
display: flex;
align-items: center;
margin-bottom: 30px;
color: #efefef;
width: fit-content;
}
.imp-links a img{
width: 25px;
height: 25px;
margin-right: 15px;
border-radius: 50%;
}
.user-profile{
display: flex;
align-items: center;
}
.user-profile img{
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 15px;
}
.post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 10px 18px;
color: #626262;
margin: 20px 0;
}
.user-profile p{
font-size: 15px;
color: #626262;
margin-top: 15px;
transform: translateX(-120%);
}
.user-profile .date{
font-size: 12px;
color: #626262;
transform: translate(-50%,42%);
}
.user-profile .lock{
display: flex;
transform: translate(1330%,-60%);
}
.alert{
font-size: 17px;
}
.setting{
font-size: 20px;
margin-top: 30px;
color: white;
}
.setting1{
font-size: 20px;
color: white;
transform: translateY(-10%);
}
#logo {
width:200px;
font-family:'Lily Script One', cursive;
font-size: 20px;
font-weight:bold;
color:lightgray;
-webkit-transition:0.2s ease all;
-moz-transition:0.2s ease all;
-ms-transition:0.2s ease all;
-o-transition:0.2s ease all;
transition:0.2s ease all;
}
#logo:hover {
color: #C1A6A7;
}
.setting1 label {
font-size: 18px;
color: darkgray;
margin-left: 15px;
}
.setting1 label,
.setting1 input {
float:left;
clear:both;
}
.setting1 input {
margin:10px 0;
padding: 10px 10px;
width: 90%;
outline:none;
border: 2px solid black;
border-radius: 10px;
background: rgba(32,32,32,.4);
color: white;
display:inline-block;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
-webkit-transition:0.2s ease all;
-moz-transition:0.2s ease all;
-ms-transition:0.2s ease all;
-o-transition:0.2s ease all;
transition:0.2s ease all;
}
.setting1 input::placeholder {
font-size: 15px;
font-weight:thin;
color: white;
opacity: .6;
}
.setting1 input[type="password"]:focus {
border-color: #A1797C;
}
.button2{
background-color: rgba(204,153,153,.5);
color: white;
padding: 4px 180px;
text-align: center;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px;
letter-spacing: 2px;
transform: translate(-5%, 50%);
}
.form-label{
font-size: 15px;
}
.input {
position: relative;
z-index: 1;
display: inline-block;
margin: 1em;
max-width: 400px;
width: calc(100% - 2em);
vertical-align: top;
}
.input__field {
position: relative;
display: block;
float: right;
padding: 0.8em;
width: 60%;
border: none;
border-radius: 0;
background: #f0f0f0;
color: #aaa;
font-weight: bold;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-webkit-appearance: none; /* for box shadows to show on iOS */
}
.input__field:focus {
outline: none;
}
.input__label {
display: inline-block;
float: right;
padding: 0 1em;
width: 40%;
color: #6a7989;
font-weight: bold;
font-size: 70.25%;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.input__label-content {
position: relative;
display: block;
padding: 1.6em 0;
width: 100%;
}
.input--kuro {
max-width: 320px;
}
.input__field--kuro {
width: 100%;
background: transparent;
color: #9196A1;
opacity: 0;
text-align: center;
-webkit-transition: opacity 0.3s;
transition: opacity 0.3s;
font-size: 15px;
margin-top: 7px;
}
.input__label--kuro {
position: absolute;
left: 0;
width: 100%;
color: #CC9999;
pointer-events: none;
margin-left: 10px;
padding-left: 20px;
}
.input__label--kuro::before,
.input__label--kuro::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 90%;
border: 4px solid rgba(0,0,0,.7);
-webkit-transition: -webkit-transform 0.3s;
transition: transform 0.3s;
}
.input__label--kuro::before {
border-right: none;
}
.input__label--kuro::after {
left: 50%;
border-left: none;
}
.input__field--kuro:focus,
.input--filled .input__field--kuro {
opacity: 1;
-webkit-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.input__field--kuro:focus + .input__label--kuro::before,
.input--filled .input__label--kuro::before {
-webkit-transform: translate3d(-10%, 0, 0);
transform: translate3d(-10%, 0, 0);
}
.input__field--kuro:focus + .input__label--kuro::after,
.input--filled .input__label--kuro::after {
-webkit-transform: translate3d(10%, 0, 0);
transform: translate3d(10%, 0, 0);
}
.input__field--kuro:focus + .input__label--kuro .input__label-content--kuro,
.input--filled .input__label-content--kuro {
-webkit-animation: anim-2 0.3s forwards;
animation: anim-2 0.3s forwards;
}
@-webkit-keyframes anim-2 {
50% {
opacity: 0;
-webkit-transform: scale3d(0.3, 0.3, 1);
transform: scale3d(0.3, 0.3, 1);
}
51% {
opacity: 0;
-webkit-transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0, 3.7em, 0);
transform: translate3d(0, 3.7em, 0);
}
}
@keyframes anim-2 {
50% {
opacity: 0;
-webkit-transform: scale3d(0.3, 0.3, 1);
transform: scale3d(0.3, 0.3, 1);
}
51% {
opacity: 0;
-webkit-transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0, 3.7em, 0);
transform: translate3d(0, 3.7em, 0);
}
}
.button1{
background-color: rgba(204,153,153,.5);
color: white;
padding: 4px 32px;
text-align: center;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px;
transform: translate(155%, -180%);
}
.post-text{
color: #9a9a9a;
margin: 10px 0;
font-size: 15px;
}
.post-text span{
color: #626262;
font-weight: 500;
}
.post-text a{
color: #1876f2;
text-decoration: none;
}
.post-img{
width: 100%;
border-radius: 4px;
margin-bottom: 5px;
}
.post-row{
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-icons div img{
width: 18px;
margin-right: 10px;
}
.activity-icons div{
display: inline;
align-items: center;
margin-right: 30px;
}
.post-profile-icon{
display: flex;
align-items: center;
}
.post-profile-icon img{
width: 20px;
border-radius: 50%;
margin-right: 5px;
}
.post-row a{
color: #9a9a9a;
}
.profile-img .file {
position: absolute;
overflow: hidden;
width: 28%;
height: 60%;
border: none;
border-radius: 50%;
font-size: 30px;
background-color: rgba(0,0,0,.5);
transform: translate(790%, -190%);
}
.profile-img .file:hover{
background-color: rgba(56,56,56,.5);
}
.profile-img .file input {
position: absolute;
opacity: 5;
right: 0;
top: 0;
cursor: pointer;
}
.profile-img .file .icon{
font-size: 30px;
transform: translate(8%, 8%);
}
.button-upload1{
background-color: rgba(105,105,105,.5);
border: none;
color: white;
padding: 10px 70px;
border-radius: 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
transform: translate(151%, -75%);
}
.button-upload1:hover{
background-color: rgba(64,64,64,.5);
}
.row p{
display: absolute;
margin-left: 1000px;
margin-top: -22px;
}
.tab_triger ul{
margin: 0;
padding: 0;
list-style: none;
display: flex;
}
.tab_triger ul li label{
position: relative;
display: block;
padding: 8px 15px;
cursor: pointer;
min-width: 100px;
background: rgba(0,0,0,.8);
text-align: center;
font-weight: 700;
border-radius: 8px 8px 0 0;
color: white;
}
.tab_triger ul li:nth-child(1) label{
background: rgba(0,0,0,.6);
}
.tab_triger ul li:nth-child(2) label{
background: rgba(0,0,0,.4);
}
.tab_container_wrap input{
position: absolute;
width: 0;
height: 0;
margin: 0;
z-index: -100;
top: -10000px;
}
.tab_container_wrap input:checked + .tab_content_box{
display: block;
}
.tab_content_box{
background: rgba(0,0,0,.6);
padding: 20px;
display: none;
color: white;
border-radius: 0 10px 10px 10px;
}
.tab_content_box:nth-of-type(1){
background: rgba(0,0,0,.6);
}
.tab_content_box:nth-of-type(2){
background: rgba(0,0,0,.4);
}
.profile{
transform: translateX(-8px);
}
.btn1{
color: white;
background:none;
border-radius:5px 0px 0px 5px;
width: auto;
padding: 3px 10px 3px 10px;
border: none;
}
.btn1:hover{
color: white;
}
.btn2{
color: white;
background:none;
border-radius:0px 5px 5px 0px;
width: auto;
padding: 3px 8px 3px 8px;
border: none;
}
.btn1:hover{
color: white;
}
.dropdown-item:hover{
color:white;
background:#905152;
opacity: 1px;
}
.logo{
text-decoration: none;
}
.logo img{
width: 20%;
}
.btn{
color: #fff;
text-align: center;
background: #800000;
width: 450px;
height: 35px;
transform: translateX(-5.5%);
}
.btn:hover{
color: #fff;
background-color: #522020;
}
.img-display {
padding-top:5px;
transform: translateX(35%);
}
.img-display img{
border-radius: 50%;
width: 280px;
height: 280px;
}
.update-form{
position: absolute;
transform: translateX(-120%);
}
.mcontainer{
transform: translateX(5%);
}
.approved1 a{
border: 1px solid #AED67A;
background-color: #092509;
color: #fff;
text-decoration: none;
font-size: 14px;
padding: 10px 15px;
border-radius: 10px;
}
.approved a{
border: 1px solid #AED67A;
background-color: #576B3D;
color: #fff;
text-decoration: none;
font-size: 14px;
padding: 10px 15px;
border-radius: 10px;
}
.approved a:hover{
background-color: #263D2E;
border: 1px solid #AED67A;
}
.pending a{
border: 1px solid #360000;
background-color:#610500;
color: #fff;
text-decoration: none;
font-size: 14px;
padding: 10px 15px;
border-radius: 10px; margin-top: 100px;
}
.pending a:hover{
background-color: #893333;
border: 1px solid #360000;
}
.report ion-icon{
color: #ffa07a;
text-decoration: none;
font-size: 40px;
font-weight:bold;
}
.delete ion-icon{
font-size: 30px;
color: #DFC7C8;
}
.delete ion-icon:hover{
color: #CAA2A3;
}
.row-center td{
text-align: center;
}
.panel-body{
color: #F4ECED;
}
.panel-body h3 ion-icon{
font-size: 50px;
transform: translateY(23%);
}
.table{
background-image: url( <?= base_url() ?>assets/img/bg2.jpg );
background-repeat: no-repeat;
background-size: cover;
border-radius: 10px;
border: none;
margin: 20px 40px 20px 0;
color: #DFC7C8;
}
.table tbody td{
font-size: 14px;
}.red{
color: #ffa07a;
}
</style>
</head>
<body>
<!-- <?php
// if($this->session->userdata('UserLoginSession')){
// // TRANSFER THE DATA IN UserLoginSession TO $udata
// $udata = $this->session->userdata('UserLoginSession');
// ?>
// PRINT WELCOME WITH USER username
echo 'Welcome'.' '.$udata['username']; -->
<nav>
<div class="nav-left">
<a class="logo" href="<?=base_url('index.php/user')?>">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</a>
</div>
<div class="nav-right">
<!-- <div class="nav-user-icon">
<img src="images/profile-pic.png">
</div> -->
<div id="bs-example-navbar-collapse-2">
<div class="btn-group" style="float:right;">
<div class="profile">
<a href=<?php echo base_url('/user');?>>
<?php if($this->session->userdata('image') == ""){
?>
<img src=<?= base_url('assets/img/default_dp.png')?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}else{
?>
<img src=<?= base_url('upload/'.($this->session->userdata('image')))?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}
?>
</a>
</div>
<div class="btn-group">
<button type="button" class="btn1"><?php echo $this->session->userdata('username');?></button>
<button type="button" class="btn2 dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="<?=base_url('admin')?>">Post Controller</a></li>
<li><a class="dropdown-item" href="<?=base_url('admin/organization')?>">Organization Controller</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('admin/editprofileadmin')?>">View Profile</a></li>
<li><a class="dropdown-item" href="<?=base_url('admin/editprofileadmin#changepass')?>">Change Password</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('welcome/logout')?>">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="panel-body">
<h3><ion-icon name="construct-outline"></ion-icon> Admin Controller - User Post</h3>
<table class="table">
<thread>
<tr>
<th style="text-align: center;">Profile Picture</th>
<th style="text-align: center;">Username</th>
<th style="text-align: center;">Post</th>
<th style="text-align: center;">Post Status</th>
<th style="text-align: center;">Approved / Reject</th>
<th class="red" style="text-align: center;">Report</th>
<th class="red" style="text-align: center;">Bugs / Feedback</th>
<th style="text-align: center;">Actions</th>
</tr>
</thread>
<tbody>
<?php
if(count($data) > 0){
foreach($data as $row){
?>
<tr>
<td style="width: 15%;">
<?php if($row->image == "")
{
?>
<div class="img-display">
<img src=<?= base_url('assets/img/default_dp.png')?> class="profileImg" style="width: 50px; height: 50px;" alt="Profile Picture">
</div>
<?php
}else{
?>
<div class="img-display">
<img src=<?= base_url('upload/'.($row->image))?> class="profileImg" style="width: 50px; height: 50px;" alt="Profile Picture">
</div>
<?php
}
?>
</td>
<td style="text-align: center; padding: 22px 10px;">
<?php echo $row->username;?>
</td>
<td style="text-align: center; padding: 22px 10px;">
<?php echo $row->post;?>
</td>
<td style="text-align: center; padding: 22px 10px; ">
<?php echo $row->status1;?>
</td>
<td style="text-align: center; padding: 22px 30px; ">
<?php if($row->status_post == "1")
{
?>
<div class="row approved1">
<a class="4"href='#'>
Approved
</a>
</div>
<?php
}
?>
<?php if($row->status_post == "0")
{
?>
<div class="row">
<div class="approved col-6" style="padding-right: 80px">
<a href='<?=base_url('admin/pending/'.$row->id.'/'.$row->post_id) ?>'>
Approve
</a>
</div>
<div class="pending col-6" >
<a href="<?=base_url('admin/report/'.$row->id.'/'.$row->post_id) ?>">
Reject
</a>
</div>
</div>
<?php
}
?>
</td>
<td class="red">
<?php if($row->report == "1")
{
?>
<div class="report" style="padding: 16px 20px">
<a href='#'>
<ion-icon name="warning-outline"></ion-icon>
</a>
</div>
<?php
}
?>
</td>
<td class="red" style="text-align: center; padding: 22px 10px;">
<?php if($row->feedback != "")
{
?>
<?php echo $row->feedback;?>
<?php
}
?>
</td>
<td style="padding: 0px 10px;">
<div class="delete" style="padding: 30px 32px;">
<a href="<?=base_url('admin/report/'.$row->id.'/'.$row->post_id) ?>">
<ion-icon name="trash"></ion-icon>
</a>
</div>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,252 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | Change Password</title>
<!-- CSS STYLE FOR SIGN UP -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
list-style: none;
font-family: 'Poppins', sans-serif;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
}
/* WRAPPER FOR LOGO AND FORM */
.wrapper{
display: flex;
width: 70rem;
height: 570px;
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/* SIZE OF BOX IN FORM */
.wrapper .right{
width: 65%;
height: 100%;
padding: 30px;
padding-left: 60px;
padding-right: 60px;
background: url('../assets/img/bg2.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 0 20px 20px 0;
}
/* SIZE OF BOX IN LOGO */
.wrapper .left{
width: 35%;
height: 100%;
padding: 30px;
background: url('../assets/img/bg5.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 0 0 20px ;
}
.wrapper .left img{
width: 100%;
transform: translate(1%,250%);
}
/* FORM GREETINGS */
.wrapper .right h3{
font-size: 2.5rem;
color: #fff3f2;
font-weight: 600;
line-height: 72px;
letter-spacing: 1px;
word-spacing: 2px;
text-align: center;
margin-bottom: 30px;
margin-top: 10px;
}
.wrapper .right .form{
margin-top: 0;
}
/* TITLE OF FORM QUESTIONS */
.wrapper .right .form label{
color: #fff3f2;
letter-spacing: 1px;
margin-top: 3px;
font-weight: 500;
font-size: 14px;
}
/* LOGIN QUESTION TEXT */
.wrapper .right h4{
padding: 20px;
font-size: small;
letter-spacing: 1px;
word-spacing: 1px;
text-align: center;
}
/* INPUT BOX */
.wrapper .right .input{
width: 100%;
padding: 10px 15px;
border: 5px;
font-size: 13px;
background: #EFF0F2;
}
/* INPUT PLACEHOLDER */
input::placeholder{
color: #838383;
font-size: 13px;
font-weight: 100%;
font-weight: normal;
}
/* FORM ERROR MESSAGES*/
.wrapper .right .text-danger{
font-size: 13px;
padding-bottom:-1.25em;
margin-bottom:-1.25em;
}
/* PASSWORD OR EMAIL ERROR */
.wrapper .right .pass{
font-size: 16px;
margin-top:20px;
margin-bottom:none;
}
/* CREATE ACCOUNT BUTTON */
.wrapper .right .btn{
color: #fff;
text-align: center;
background: #4d0400;
width: 250px;
height: 35px;
transform: translate(70%,150%);
}
.wrapper .right .btn:hover{
background-color: #260200;
}
</style>
</head>
<body>
<div class="wrapper">
<!-- LOGO SECTION -->
<div class="left">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</div>
<!-- FORM SECTION -->
<div class="right">
<h3>Change Password</h3>
<div class="form">
<!-- ALERT WWHEN EMAIL IS NOT REGISTERED -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "error"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/notemail
// welcome = segment(1)
// notemail - segment(2)
echo '
<div class="alert alert-danger">
<span>Password does not match.</span>
</div>';
}
?>
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "fferror"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/notemail
// welcome = segment(1)
// notemail - segment(2)
echo '
<div class="alert alert-danger">
<span>Password must be at least 8 characters contain A-Z, a-z, and 0-9 </span>
</div>';
}
?>
<!-- MAIN FORM -->
<form method="post" autocomplete="off" action="<?=base_url('welcome/changepassvalue')?>">
<!-- Kung anong input name sa signup, ganun din dapat sa login -->
<div class="row">
<!-- GET EMAIL -->
<div class="mb-3 mt-4">
<label for="exampleInputEmail1" class="form-label">New Password</label>
<input
type="password"
placeholder="Enter your new password"
name="password1" class="form-control"
required
oninvalid="this.setCustomValidity('Enter New Password Here')"
oninput="this.setCustomValidity('')"
id="exampleInputEmail1"
aria-describedby="emailHelp">
</div>
<div class="mb-3 mt-4">
<label for="exampleInputEmail1" class="form-label">Confirm Password</label>
<input
type="password"
placeholder="Enter your confirm password"
name="password2"
required
oninvalid="this.setCustomValidity('Re-enter New Password Here')"
oninput="this.setCustomValidity('')"
class="form-control"
id="exampleInputEmail1"
aria-describedby="emailHelp">
</div>
<!-- LOGIN BUTTON -->
<div class="rounded-0 text-center mb-5 ">
<button type="submit" class="btn">Change Password</button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,249 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | Contact</title>
<!-- CSS STYLE FOR SIGN UP -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
list-style: none;
font-family: 'Poppins', sans-serif;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
}
/* WRAPPER FOR LOGO AND FORM */
.wrapper{
display: flex;
width: 70rem;
height: 570px;
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/* SIZE OF BOX IN FORM */
.wrapper .right{
width: 65%;
height: 100%;
padding: 30px;
padding-left: 60px;
padding-right: 60px;
background: #632626;
background-repeat: no-repeat;
background-size: cover;
border-radius: 0 20px 20px 0;
}
/* SIZE OF BOX IN LOGO */
.wrapper .left{
width: 35%;
height: 100%;
padding: 30px;
background-image: url( <?= base_url() ?>assets/img/bg5.jpg );
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 0 0 20px ;
}
.wrapper .left img{
width: 100%;
transform: translate(1%,250%);
}
/* FORM GREETINGS */
.wrapper .right h3{
font-size: 2.5rem;
color: #fff3f2;
font-weight: 600;
line-height: 72px;
letter-spacing: 1px;
word-spacing: 2px;
text-align: center;
margin-bottom: 15px;
margin-top: 10px;
}
.wrapper .right .form{
margin-top: 0;
}
/* TITLE OF FORM QUESTIONS */
.wrapper .right .form label{
color: #fff3f2;
letter-spacing: 1px;
margin-top: 3px;
font-weight: 500;
font-size: 14px;
}
/* LOGIN QUESTION TEXT */
.wrapper .right h4{
color: #fff3f2;
font-size: small;
letter-spacing: 1px;
word-spacing: 1px;
text-align: center;
}
/* INPUT BOX */
.wrapper .right .input{
width: 100%;
padding: 3px;
border: 3px;
font-size: 13px;
background: #EFF0F2;
}
/* INPUT PLACEHOLDER */
input::placeholder{
color: #838383;
font-size: 13px;
font-weight: 100%;
font-weight: normal;
}
/* FORM ERROR MESSAGES*/
.wrapper .right .text-danger{
font-size: 13px;
padding-bottom:-1.25em;
margin-bottom:-1.25em;
}
/* PASSWORD OR EMAIL ERROR */
.wrapper .right .pass{
font-size: 16px;
margin-top:20px;
margin-bottom:none;
}
/* CREATE ACCOUNT BUTTON */
.wrapper .right .btn{
color: #fff;
text-align: center;
background: #8E5758;
width: 250px;
height: 35px;
transform: translate(0%,110%);
}
.wrapper .right .btn:hover{
background-color: #260200;
}
</style>
</head>
<body>
<div class="wrapper">
<!-- LOGO SECTION -->
<div class="left">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</div>
<!-- FORM SECTION -->
<div class="right">
<center>
<h3>Contact Us</h3>
<h4>Feel free to contact us and we will get back to you as soon as we can. </h4>
</center>
<div class="form">
<!-- MAIN FORM -->
<?php
foreach($data->result() as $row)
{
if($row->org_id == $this->uri->segment(3))
{
?>
<form id="form" method="post" autocomplete="off" action="<?=base_url('orgs/sendcontact')?>">
<!-- Kung anong input name sa signup, ganun din dapat sa login -->
<div class="row">
<!-- Message -->
<div class="mt-4">
<label for="email">Email</label>
<input
type="text"
class="form-control"
id="email"
name="email"
placeholder="Enter your email"
required
oninvalid="this.setCustomValidity('Enter Email Here')"
oninput="this.setCustomValidity('')"
>
</div>
<div class="mt-3">
<label for="Subject">Subject</label>
<input
type="text"
class="form-control"
id="subject"
name="subject"
placeholder="Enter subject of the email"
required
oninvalid="this.setCustomValidity('Enter Subject Here')"
oninput="this.setCustomValidity('')"
>
</div>
<div class="mb-3 mt-3">
<label for="Message">Message</label>
<textarea
class="form-control"
name="message"
id="message"
required
oninvalid="this.setCustomValidity('Enter Messages Here')"
oninput="this.setCustomValidity('')"
>
</textarea>
</div>
<input type="hidden" id="1" name="org_contact" value=<?php echo $row->org_contact?>>
<input type="hidden" id="2" name="org_name" value=<?php echo $row->org_name?>>
<!-- SEND BUTTON -->
<div class="rounded-0 text-center mb-5 ">
<button type="submit" class="btn">Send</button>
</div>
</div>
</form>
<?php
break;
}
}
?>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,207 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content=
"width=device-width, initial-scale=1.0">
<title>
Clikit | Create Organization Form
</title>
<style type="text/css">
/* Styling the Body element i.e. Color,
Font, Alignment */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
list-style: none;
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
}
body {
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
}
.title-form{
background-image: url( <?= base_url() ?>assets/img/bg5.jpg );
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 20px 0 0 ;
max-width: 60%;
margin: 50px auto 0 auto;
padding: 30px 45px;
box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.5);
justify-content: center;
}
.title-form img{
margin-top: 10px;
width: 50%;
}
/* Styling the Form (Color, Padding, Shadow) */
form {
background: #632626;
border-radius: 0 0 20px 20px ;
max-width: 60%;
margin: 0 auto;
padding: 40px 45px;
box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.5);
color: white;
}
#form h2{
margin-bottom: 25px;
}
/* Styling form-control Class */
.form-control {
text-align: left;
margin-bottom: 25px;
}
/* Styling form-control Label */
.form-control label {
display: block;
margin-bottom: 10px;
}
/* Styling form-control input,
select, textarea */
.form-control input,
.form-control select,
.form-control textarea {
border: 1px solid #777;
border-radius: 2px;
font-family: inherit;
padding: 10px;
display: block;
width: 95%;
border-radius: 10px;
}
/* Styling form-control Radio
button and Checkbox */
.form-control input[type="radio"],
.form-control input[type="checkbox"] {
display: inline-block;
width: auto;
}
/* Styling Button */
.btn{
color: #fff;
text-align: center;
background: #4d0400;
height: 40px;
cursor: pointer;
border-radius: 10px;
font-family: inherit;
font-size: 18px;
display: block;
width: 50%;
margin-top: 50px;
margin-bottom: 20px;
border: none;
}
.btn:hover{
background-color: #260200;
}
</style>
</head>
<body>
<div class="title-form">
<h1 ><img src=<?= base_url('assets/img/DEN-LOGO.png')?>> </h1>
</div>
<!-- Create Form -->
<form id="form" method="post" autocomplete="off" action="<?=base_url('orgs/registerNow')?>">
<h2>Organization Form</h2>
<!-- Details -->
<div class="form-control">
<label for="name" id="label-name">
Full Name
</label>
<!-- Input Type Text -->
<input type="text"
id="name"
placeholder="Enter your full name"
name="org_representative" required />
</div>
<div class="form-control">
<label for="name" id="label-name">
Tup Id
</label>
<!-- Input Type Text -->
<input type="text"
id="name"
placeholder="Enter your tup id"
name="org_reptupid" required/>
</div>
<hr><br>
<div class="form-control">
<label for="name" id="label-name">
Name of Organization
</label>
<!-- Input Type Text -->
<input type="text"
id="name"
placeholder="Enter your organization name"
name="org_name" required/>
</div>
<div class="form-control">
<label for="presname" id="label-presname">
Organization President
</label>
<!-- Input Type Text -->
<input type="text"
id="presname"
placeholder="Who is your organization president"
name="org_president" required/>
</div>
<div class="form-control">
<label for="email" id="label-email">
Contact Email
</label>
<!-- Input Type Text -->
<input type="email"
id="email"
placeholder="Enter the organization contact email"
name="org_contact" required/>
</div>
<div class="form-control">
<label for="comment">
About the Organization
</label>
<textarea name="org_about" placeholder="Enter what is your organization all about?" required></textarea>
</div>
<!-- Multi-line Text Input Control -->
<div class="rounded-0 text-center mb-4">
<button type="submit" class="btn">Create Account</button>
</div>
</form>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,936 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Clikit | Profile</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
body{
background: url('../assets/img/bg10.jpg');
background-repeat: no-repeat;
background-size: cover;
}
ion-icon{
font-size: 1.5rem;
margin-right: 8px;
}
nav{
display: flex;
align-items: center;
justify-content: space-between;
background: #1E0E0E;
padding: 13px 7%;
position: sticky;
top: 0;
z-index: 100;
margin-bottom: 10px;
}
.nav-left p{
width: 160px;
margin-right: 45px;
color: #efefef;
font-size: 20px;
}
.nav-left, .nav-right{
display: flex;
align-items: center;
}
.nav-user-icon img{
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
}
.nav-user-icon{
margin-left: 30px;
}
.search-box{
background: #efefef;
width: 200px;
border-radius: 20px;
display: flex;
align-items: center;
padding: 0 15px;
margin-bottom: 10px;
height: 30px;
}
.search-box p{
width: 18px;
color: #626262;
}
.search-box input{
font-size: small;
width: 100%;
background: transparent;
padding: 10px;
outline: none;
border: 0;
}
.container{
display: flex;
justify-content: space-between;
padding-top: 15px;
}
.left-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
color: #800;
padding-bottom: 40px;
}
.imp-links a{
text-decoration: none;
display: flex;
align-items: center;
margin-bottom: 30px;
color: #efefef;
width: fit-content;
}
.imp-links a img{
width: 25px;
height: 25px;
margin-right: 15px;
border-radius: 50%;
}
.imp-links{
width: 115%;
border-bottom: 1px solid #ccc;
}
.user-profile{
display: flex;
align-items: center;
}
.user-profile img{
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 15px;
}
.post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 10px 18px;
color: #626262;
margin: 20px 0;
}
.user-profile p{
font-size: 15px;
color: #626262;
margin-top: 15px;
transform: translateX(-120%);
}
.user-profile .date{
font-size: 12px;
color: #626262;
transform: translate(-50%,42%);
}
.user-profile .lock{
display: flex;
transform: translate(1330%,-60%);
}
.alert{
font-size: 17px;
}
.setting{
font-size: 20px;
margin-top: 30px;
color: white;
}
.setting1{
font-size: 20px;
color: white;
transform: translateY(-10%);
}
#logo {
width:200px;
font-family:'Lily Script One', cursive;
font-size: 20px;
font-weight:bold;
color:lightgray;
-webkit-transition:0.2s ease all;
-moz-transition:0.2s ease all;
-ms-transition:0.2s ease all;
-o-transition:0.2s ease all;
transition:0.2s ease all;
}
#logo:hover {
color: #C1A6A7;
}
.setting1 label {
font-size: 18px;
color: darkgray;
margin-left: 15px;
}
.setting1 label,
.setting1 input {
float:left;
clear:both;
}
.setting1 input {
margin:10px 0;
padding: 10px 10px;
width: 90%;
outline:none;
border: 2px solid black;
border-radius: 10px;
background: rgba(32,32,32,.4);
color: white;
display:inline-block;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
-webkit-transition:0.2s ease all;
-moz-transition:0.2s ease all;
-ms-transition:0.2s ease all;
-o-transition:0.2s ease all;
transition:0.2s ease all;
}
.setting1 input::placeholder {
font-size: 15px;
font-weight:thin;
color: white;
opacity: .6;
}
.setting1 input[type="password"]:focus {
border-color: #A1797C;
}
.button2{
background-color: #905152;
color: white;
padding: 4px 180px;
text-align: center;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px;
letter-spacing: 2px;
transform: translate(-5%, 50%);
}
.button2:hover{
background-color: #763739;
}
.form-label{
font-size: 15px;
}
.input {
position: relative;
z-index: 1;
display: inline-block;
margin: 1em;
max-width: 400px;
width: calc(100% - 2em);
vertical-align: top;
}
.input__field {
position: relative;
display: block;
float: right;
padding: 0.8em;
width: 60%;
border: none;
border-radius: 0;
background: #f0f0f0;
color: #aaa;
font-weight: bold;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-webkit-appearance: none; /* for box shadows to show on iOS */
}
.input__field:focus {
outline: none;
}
.input__label {
display: inline-block;
float: right;
padding: 0 1em;
width: 40%;
color: #6a7989;
font-weight: bold;
font-size: 70.25%;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.input__label-content {
position: relative;
display: block;
padding: 1.6em 0;
width: 100%;
}
.input--kuro {
max-width: 320px;
}
.input__field--kuro {
width: 100%;
background: transparent;
color: #9196A1;
opacity: 0;
text-align: center;
-webkit-transition: opacity 0.3s;
transition: opacity 0.3s;
font-size: 15px;
margin-top: 7px;
}
.input__label--kuro {
position: absolute;
left: 0;
width: 100%;
color: #CC9999;
pointer-events: none;
margin-left: 10px;
padding-left: 20px;
}
.input__label--kuro::before,
.input__label--kuro::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 90%;
border: 4px solid rgba(0,0,0,.7);
-webkit-transition: -webkit-transform 0.3s;
transition: transform 0.3s;
}
.input__label--kuro::before {
border-right: none;
}
.input__label--kuro::after {
left: 50%;
border-left: none;
}
.input__field--kuro:focus,
.input--filled .input__field--kuro {
opacity: 1;
-webkit-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.input__field--kuro:focus + .input__label--kuro::before,
.input--filled .input__label--kuro::before {
-webkit-transform: translate3d(-10%, 0, 0);
transform: translate3d(-10%, 0, 0);
}
.input__field--kuro:focus + .input__label--kuro::after,
.input--filled .input__label--kuro::after {
-webkit-transform: translate3d(10%, 0, 0);
transform: translate3d(10%, 0, 0);
}
.input__field--kuro:focus + .input__label--kuro .input__label-content--kuro,
.input--filled .input__label-content--kuro {
-webkit-animation: anim-2 0.3s forwards;
animation: anim-2 0.3s forwards;
}
@-webkit-keyframes anim-2 {
50% {
opacity: 0;
-webkit-transform: scale3d(0.3, 0.3, 1);
transform: scale3d(0.3, 0.3, 1);
}
51% {
opacity: 0;
-webkit-transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0, 3.7em, 0);
transform: translate3d(0, 3.7em, 0);
}
}
@keyframes anim-2 {
50% {
opacity: 0;
-webkit-transform: scale3d(0.3, 0.3, 1);
transform: scale3d(0.3, 0.3, 1);
}
51% {
opacity: 0;
-webkit-transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0, 3.7em, 0);
transform: translate3d(0, 3.7em, 0);
}
}
.button1{
background-color: #905152;
color: white;
padding: 4px 32px;
text-align: center;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px;
transform: translate(155%, -180%);
}
.button1:hover{
background-color: #763739;
}
.post-text{
color: #9a9a9a;
margin: 10px 0;
font-size: 15px;
}
.post-text span{
color: #626262;
font-weight: 500;
}
.post-text a{
color: #1876f2;
text-decoration: none;
}
.post-img{
width: 100%;
border-radius: 4px;
margin-bottom: 5px;
}
.post-row{
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-icons div img{
width: 18px;
margin-right: 10px;
}
.activity-icons div{
display: inline;
align-items: center;
margin-right: 30px;
}
.post-profile-icon{
display: flex;
align-items: center;
}
.post-profile-icon img{
width: 20px;
border-radius: 50%;
margin-right: 5px;
}
.post-row a{
color: #9a9a9a;
}
.profile-img .file {
position: absolute;
overflow: hidden;
width: 28%;
height: 60%;
border: none;
border-radius: 50%;
font-size: 30px;
background-color: rgba(0,0,0,.5);
transform: translate(790%, -190%);
}
.profile-img .file:hover{
background-color: rgba(56,56,56,.5);
}
.profile-img .file input {
position: absolute;
opacity: 5;
right: 0;
top: 0;
cursor: pointer;
}
.profile-img .file .icon{
font-size: 30px;
transform: translate(8%, 8%);
}
.button-upload1{
background-color: rgba(105,105,105,.5);
border: none;
color: white;
padding: 10px 70px;
border-radius: 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
transform: translate(151%, -75%);
}
.button-upload1:hover{
background-color: rgba(64,64,64,.5);
}
.row p{
display: absolute;
margin-left: 1000px;
margin-top: -22px;
}
.tab_triger ul{
margin: 0;
padding: 0;
list-style: none;
display: flex;
}
.tab_triger ul li label{
position: relative;
display: block;
padding: 8px 15px;
cursor: pointer;
min-width: 100px;
background: rgba(0,0,0,.8);
text-align: center;
font-weight: 700;
border-radius: 8px 8px 0 0;
color: white;
}
.tab_triger ul li:nth-child(1) label{
background: rgba(0,0,0,.6);
}
.tab_triger ul li:nth-child(2) label{
background: rgba(0,0,0,.4);
}
.tab_container_wrap input{
position: absolute;
width: 0;
height: 0;
margin: 0;
z-index: -100;
top: -10000px;
}
.tab_container_wrap input:checked + .tab_content_box{
display: block;
}
.tab_content_box{
background: rgba(0,0,0,.6);
padding: 20px;
display: none;
color: white;
border-radius: 0 10px 10px 10px;
}
.tab_content_box:nth-of-type(1){
background: rgba(0,0,0,.6);
}
.tab_content_box:nth-of-type(2){
background: rgba(0,0,0,.4);
}
.profile{
transform: translateX(-8px);
}
.btn1{
color: white;
background:none;
border-radius:5px 0px 0px 5px;
width: auto;
padding: 3px 10px 3px 10px;
border: none;
}
.btn1:hover{
color: white;
}
.btn2{
color: white;
background:none;
border-radius:0px 5px 5px 0px;
width: auto;
padding: 3px 8px 3px 8px;
border: none;
}
.btn1:hover{
color: white;
}
.dropdown-item:hover{
color:white;
background:#905152;
opacity: 1px;
}
.logo{
text-decoration: none;
}
.logo img{
width: 20%;
}
.btn{
color: #fff;
text-align: center;
background: #800000;
width: 450px;
height: 35px;
transform: translateX(-5.5%);
}
.btn:hover{
color: #fff;
background-color: #522020;
}
.img-display {
padding-top:5px;
transform: translateX(20%);
}
.img-display img{
border-radius: 50%;
width: 280px;
height: 280px;
}
.update-form{
position: absolute;
transform: translateX(-120%);
}
.mcontainer{
transform: translateX(5%);
}
.main-content{
margin-right: 30px;
}
</style>
</head>
<body>
<!-- <?php
// if($this->session->userdata('UserLoginSession')){
// // TRANSFER THE DATA IN UserLoginSession TO $udata
// $udata = $this->session->userdata('UserLoginSession');
// ?>
// PRINT WELCOME WITH USER username
echo 'Welcome'.' '.$udata['username']; -->
<nav>
<div class="nav-left">
<a class="logo" href="<?=base_url('index.php/user')?>">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</a>
</div>
<div class="nav-right">
<!-- <div class="nav-user-icon">
<img src="images/profile-pic.png">
</div> -->
<div id="bs-example-navbar-collapse-2">
<div class="btn-group" style="float:right;">
<div class="profile">
<a href=<?php echo base_url('/admin');?>>
<?php if($this->session->userdata('image') == ""){
?>
<img src=<?= base_url('assets/img/default_dp.png')?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}else{
?>
<img src=<?= base_url('upload/'.($this->session->userdata('image')))?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}
?>
</a>
</div>
<div class="btn-group">
<button type="button" class="btn1"><?php echo $this->session->userdata('username');?></button>
<button type="button" class="btn2 dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="<?=base_url('admin')?>">Post Controller</a></li>
<li><a class="dropdown-item" href="<?=base_url('admin/organization')?>">Organization Controller</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('admin/editprofileadmin')?>">View Profile</a></li>
<li><a class="dropdown-item" href="<?=base_url('admin/editprofileadmin#changepass')?>">Change Password</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('welcome/logout')?>">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="left-sidebar">
<div class="imp-links mt-3">
<a href="<?=base_url('admin')?>"><ion-icon name="people-circle"></ion-icon>Freedomwall Post</a>
<a href="<?=base_url('admin/organization')?>"><ion-icon name="library"></ion-icon>Organization</a>
</div>
</div>
<div class="mcontainer container">
<div class="container-fluid">
<?php
if($this->uri->segment(2) == "validimage"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-success">
<span>Profile picture is changed.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "notvalidimage"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-danger">
<span>Profile picture is unchanged.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "validation"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validation
// user = segment(1)
// validation - segment(2)
echo '
<div class="alert alert-success">
<span>Username is changed.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "validation1"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validation1
// user = segment(1)
// validation1 - segment(2)
echo '
<div class="alert alert-danger">
<span>Username is unchanged.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "error"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/error
// user = segment(1)
// error - segment(2)
echo '
<div class="alert alert-danger">
<span>Password does not match.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "error1"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/error1
// user = segment(1)
// error1 - segment(2)
echo '
<div class="alert alert-danger">
<span>Password does not match.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "valid"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/error1
// user = segment(1)
// error1 - segment(2)
echo '
<div class="alert alert-success">
<span>Password is changed.</span>
</div>';
}
?>
<div class="setting">
<p id="logo">Change Username</p> <hr>
<form method="post" autocomplete="off" action="<?=base_url('admin/changeusername')?>">
<!-- Kung anong input name sa signup, ganun din dapat sa login -->
<div class="row">
<span class="input input--kuro">
<input class="input__field input__field--kuro" type="text" id="input-7" name="username" />
<label class="input__label input__label--kuro" for="input-7">
<span class="input__label-content input__label-content--kuro">Username</span>
</label>
</span>
<!-- LOGIN BUTTON -->
<div class="rounded-0 text-center mb-5">
<button type="submit" class="button1">Update</button>
</div>
</div>
</form>
</div>
<div id ="changepass" class="setting1">
<p id="logo">Change Password</p> <hr>
<form method="post" autocomplete="off" action="<?=base_url('admin/changepass')?>">
<!-- Kung anong input name sa signup, ganun din dapat sa login -->
<div class="row">
<div class="mb-3">
<input type="password" id="password" name="password" placeholder="Enter Your Current Password" autocomplete="off" required />
<label for="username">Current Password</label>
<span class="text-danger"><?php echo form_error("password")?></span>
</div>
<div class="mb-3">
<input type="password" id="password" name="newpassword1" placeholder="Enter Your New Password" autocomplete="off" required />
<label for="username">New Password</label>
<span class="text-danger"><?php echo form_error("password")?></span>
</div>
<div class="mb-3">
<input type="password" id="password" name="newpassword2" placeholder="Confrim Your New Password" autocomplete="off" required />
<label for="username">Confirm New Password</label>
<span class="text-danger"><?php echo form_error("password")?></span>
</div>
<!-- LOGIN BUTTON -->
<div class="rounded-0 text-center mb-5">
<button type="submit" class="button2">Change Password</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="main-content">
<?php if($this->session->userdata('image') == "")
{
?>
<div class="img-display">
<img src=<?= base_url('assets/img/default_dp.png')?>>
</div>
<?php
}else{
?>
<div class="img-display">
<img src=<?= base_url('upload/'.($this->session->userdata('image')))?>>
</div>
<?php
}
?>
<div class="update-form">
<form action="<?=base_url('admin/insertimage')?>" method="post" enctype="multipart/form-data">
<div class="mt-5">
<div class="profile-img">
<div class="file btn btn-lg btn-primary">
<ion-icon class="icon" name="camera-outline"></ion-icon>
<input type="file" name="image">
</div>
</div>
</div>
<div class="button-upload">
<input type="submit" value="Change Profile" class="button-upload1">
</div>
</form>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,148 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clikit | Email</title>
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
body{
color: #000;
font-size: 16px;
text-decoration: none;
font-family: 'Poppins', sans-serif;
justify-content: center;
background-color: #2C1515;
}
.row{
max-width: 600px;
margin: auto auto;
padding: 20px;
}
.row1{
text-align: center;
font-size: 14px;
padding: 25px;
background-color: #905152;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
}
.row1 .h1{
font-size: 34px;
}
.row1 .btn{
border: 1px solid #3B1C1C;
background: #59292B;
color: #fff;
text-decoration: none;
font-size: 16px;
padding: 10px 20px;
border-radius: 10px;
margin: 20px 0;
}
.row1 .btn:hover{
background-color: #3B1C1C;
}
.row2{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 0 0 10px 10px;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
padding-bottom: 17px;
}
.row3{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 10px 10px 0 0;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
}
.email{
width: 100%;
height: 100%;
}
.logo{
position: absolute;
width: 18%;
transform: translate(-115%,600%);
}
.welcome{
position: absolute;
font-size: 22px;
}
.text{
font-size: 15px;
padding: 0 15px;
text-decoration: none;
color: white;
text-align: justify;
text-justify: inter-word;
}
.stay{
text-align: center;
font-size: 35px;
color: whitesmoke;
font-family: 'Cedarville Cursive', cursive;
}
.stay1{
text-align: center;
font-size: 10px;
color: whitesmoke;
}
</style>
</head>
<body>
<div class="row">
<div class="row3">
<p class="stay"> Messages Request </p>
</div>
<div class="row1">
<div class="text">
<p>
Hi, <?php echo $org_name;?> <br><br>
<?php echo $message;?>
<br><br>
Looking forward to hearing from you. <br>
You can Email Me Here:</p>
</div>
<p class="messages">
<a class="btn" href="#">
<?php echo $email;?>
</a>
</p>
</div>
<div class="row2">
<p class="stay"> Stay in touch in Clikit</p>
<p class="stay1">Email sent by C.L.I.K.I.T <br>
Copyright &copy; 2022 C.L.I.K.I.T. All Rights Reserved
</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,148 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clikit | Email</title>
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
body{
color: #000;
font-size: 16px;
text-decoration: none;
font-family: 'Poppins', sans-serif;
justify-content: center;
background-color: #2C1515;
}
.row{
max-width: 600px;
margin: auto auto;
padding: 20px;
}
.row1{
text-align: center;
font-size: 14px;
padding: 25px;
background-color: #905152;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
}
.row1 .h1{
font-size: 34px;
}
.row1 .messages{
display: flex;
justify-content: center;
}
.row1 .btn{
border: 1px solid #3B1C1C;
background: #59292B;
color: #fff;
text-decoration: none;
font-size: 35px;
padding: 10px 20px;
border-radius: 10px;
margin: 20px 0;
}
.row1 .btn:hover{
background-color: #3B1C1C;
}
.row2{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 0 0 10px 10px;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
padding-bottom: 17px;
}
.row3{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 10px 10px 0 0;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
}
.email{
width: 100%;
height: 100%;
}
.logo{
position: absolute;
width: 18%;
transform: translate(-115%,600%);
}
.welcome{
position: absolute;
font-size: 22px;
}
.text{
font-size: 15px;
padding: 5px 15px;
text-decoration: none;
color: white;
}
.stay{
text-align: center;
font-size: 35px;
color: whitesmoke;
font-family: 'Cedarville Cursive', cursive;
}
.stay1{
text-align: center;
font-size: 10px;
color: whitesmoke;
}
</style>
</head>
<body>
<div class="row">
<div class="row3">
<p class="stay"> Verification Code</p>
</div>
<div class="row1">
<div class="text">
<p >Here is the confirmation code for your forgot password:</p>
</div>
<p class="messages">
<center>
<a class="btn" href="#">
<?php echo $code;?>
</a>
</center>
</p>
<div class="text">
<p >All you have to do is copy the confirmation code and paste it to your form to change your password</p>
</div>
</div>
<div class="row2">
<p class="stay"> Stay in touch in Clikit</p>
<p class="stay1">Email sent by C.L.I.K.I.T <br>
Copyright &copy; 2022 C.L.I.K.I.T. All Rights Reserved
</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,159 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clikit | Email</title>
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
body{
color: #000;
font-size: 16px;
text-decoration: none;
font-family: 'Poppins', sans-serif;
justify-content: center;
background-color: #2C1515;
}
.row{
max-width: 600px;
margin: auto auto;
padding: 20px;
}
.row1{
text-align: center;
font-size: 14px;
padding: 25px;
background-color: #905152;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
}
.row1 .h1{
font-size: 34px;
}
.row1 .messages{
display: flex;
justify-content: center;
margin-top: 10px;
}
.row1 .btn{
border: 1px solid #3B1C1C;
background: #59292B;
color: #fff;
text-decoration: none;
font-size: 16px;
padding: 10px 20px;
border-radius: 10px;
margin: 20px 0;
}
.row1 .btn:hover{
background-color: #3B1C1C;
}
.row2{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 0 0 10px 10px;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
padding-bottom: 17px;
}
.row3{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 10px 10px 0 0;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
}
.email{
width: 100%;
height: 100%;
}
.logo{
position: absolute;
width: 18%;
transform: translate(-115%,600%);
}
.welcome{
position: absolute;
font-size: 22px;
}
.text{
font-size: 15px;
padding: 0 15px;
text-decoration: none;
color: white;
text-align: justify;
text-justify: inter-word;
}
.stay{
text-align: center;
font-size: 35px;
color: whitesmoke;
font-family: 'Cedarville Cursive', cursive;
}
.stay1{
text-align: center;
font-size: 10px;
color: whitesmoke;
}
</style>
</head>
<body>
<div class="row">
<div class="row3">
<p class="stay"> Confirm New Member </p>
</div>
<div class="row1">
<div class="text">
<p>
Hi, <?php echo $org_name;?> <br><br>
Full Name: <?php echo $orgmember_fullname;?> <br>
Section: <?php echo $orgmember_section;?> <br>
College: <?php echo $orgmember_college;?> <br><br>
Wants to join your organization on C.L.I.K.I.T. Once you
allow <?php echo $orgmember_fullname;?> to join your organization,
he or she may being working on your organization <br><br>
Please click the button below to confirm the request</p>
</div>
<p class="messages">
<center>
<a class="btn" href="<?=base_url("orgs/verify_joined/". $orgmember_id.'/'.$orgm_id)?>">
Accept
</a>
</center>
</p>
</div>
<div class="row2">
<p class="stay"> Stay in touch in Clikit</p>
<p class="stay1">Email sent by C.L.I.K.I.T <br>
Copyright &copy; 2022 C.L.I.K.I.T. All Rights Reserved
</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,140 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clikit | Email</title>
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
body{
color: #000;
font-size: 16px;
text-decoration: none;
font-family: 'Poppins', sans-serif;
justify-content: center;
background-color: #2C1515;
}
.row{
max-width: 600px;
margin: auto auto;
padding: 20px;
}
.row1{
text-align: center;
font-size: 14px;
padding: 25px;
background-color: #905152;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
}
.row1 .h1{
font-size: 34px;
}
.row1 .btn{
border: 1px solid #3B1C1C;
background: #59292B;
color: #fff;
text-decoration: none;
font-size: 16px;
padding: 10px 20px;
border-radius: 10px;
margin: 20px 0;
}
.row1 .btn:hover{
background-color: #3B1C1C;
}
.row2{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 0 0 10px 10px;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
padding-bottom: 17px;
}
.row3{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 10px 10px 0 0;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
}
.email{
width: 100%;
height: 100%;
}
.logo{
position: absolute;
width: 18%;
transform: translate(-115%,600%);
}
.welcome{
position: absolute;
font-size: 22px;
}
.text{
font-size: 15px;
padding: 0 15px;
text-decoration: none;
color: white;
text-align: justify;
text-justify: inter-word;
}
.stay{
text-align: center;
font-size: 35px;
color: whitesmoke;
font-family: 'Cedarville Cursive', cursive;
}
.stay1{
text-align: center;
font-size: 10px;
color: whitesmoke;
}
</style>
</head>
<body>
<div class="row">
<div class="row3">
<p class="stay"> Messages Request Sent </p>
</div>
<div class="row1">
<div class="text">
<h1>Thank You!</h1>
<p><br>
The <?php echo $org_name;?> received your messages request.<br>
Someone from their team will contact you soon.
<br><br>
<b>Contact Us | Messages Content</b> <br>
<b>Subject:</b> <?php echo $subject;?><br>
<b>Messages:</b> <?php echo $message;?></p>
</div>
</div>
<div class="row2">
<p class="stay"> Stay in touch in Clikit</p>
<p class="stay1">Email sent by C.L.I.K.I.T <br>
Copyright &copy; 2022 C.L.I.K.I.T. All Rights Reserved
</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,149 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clikit | Email</title>
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
body{
color: #000;
font-size: 16px;
text-decoration: none;
font-family: 'Poppins', sans-serif;
justify-content: center;
background-color: #2C1515;
}
.row{
max-width: 600px;
margin: auto auto;
padding: 20px;
}
.row1{
text-align: center;
font-size: 14px;
padding: 25px;
background-color: #905152;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
}
.row1 .h1{
font-size: 34px;
}
.row1 .messages{
display: flex;
justify-content: center;
margin-top: 10px;
}
.row1 .btn{
border: 1px solid #3B1C1C;
background: #59292B;
color: #fff;
text-decoration: none;
font-size: 16px;
padding: 10px 20px;
border-radius: 10px;
margin: 20px 0;
}
.row1 .btn:hover{
background-color: #3B1C1C;
}
.row2{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 0 0 10px 10px;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
padding-bottom: 17px;
}
.row3{
text-align: center;
font-size: 14px;
background-color: #3B1C1C;
border-radius: 10px 10px 0 0;
border-color: #3B1C1C;
border-width: 4px 1px;
border-style: solid;
color: white;
}
.email{
width: 100%;
height: 100%;
}
.logo{
position: absolute;
width: 18%;
transform: translate(-115%,600%);
}
.welcome{
position: absolute;
font-size: 22px;
}
.text{
font-size: 15px;
padding: 0 15px;
text-decoration: none;
color: white;
}
.stay{
text-align: center;
font-size: 35px;
color: whitesmoke;
font-family: 'Cedarville Cursive', cursive;
}
.stay1{
text-align: center;
font-size: 10px;
color: whitesmoke;
}
</style>
</head>
<body>
<div class="row">
<div class="row3">
<p class="stay"> Email Verification</p>
</div>
<div class="row1">
<div class="text">
<p >Hey <?php echo $fullname;?>, you're almost ready to start enjoying C.L.I.K.I.T. <br>
Please verify that your email address is <?php echo $email;?>
<br> <br>
Simply click the button below to verify your email address.</p>
</div>
<p class="messages">
<center>
<a class="btn" href="<?=base_url('welcome/verify_email/'.$verification_key)?>">
Verify email address
</a>
</center>
</p>
</div>
<div class="row2">
<p class="stay"> Stay in touch in Clikit</p>
<p class="stay1">Email sent by C.L.I.K.I.T <br>
Copyright &copy; 2022 C.L.I.K.I.T. All Rights Reserved
</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,156 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | Email Verification</title>
<style>
body{
color: #efefef;
font-size: 16px;
text-decoration: none;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
}
#wrapper{
max-width: 600px;
margin: auto auto;
padding: 20px;
}
#content{
font-size: 16px;
padding: 25px;
background-color: #292731;
moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-khtml-border-radius: 10px;
border-color: #807575;
border-width: 4px 1px;
border-style: solid;
}
.icon{
padding-top: 15px
}
ion-icon{
font-size: 150px;
color: #AED67A;
}
.button{
display: flex;
justify-content: center;
margin-top: 10px;
padding-top: 15px;
}
.button2{
border: 1px solid #AED67A;
background-color: #344025;
color: #fff;
text-decoration: none;
font-size: 15px;
padding: 10px 20px;
width: 200px;
border-radius: 10px;
letter-spacing:2px;
word-spacing:2px;
}
.button2:hover{
color: #fff;
background-color: #576B3D;
}
/* ERROR */
.icon1 ion-icon{
font-size: 150px;
color: #893333;
}
.button{
display: flex;
justify-content: center;
margin-top: 10px;
padding-top: 15px;
}
.button1{
border: 1px solid #893333;
background-color: #360000;
color: #fff;
text-decoration: none;
font-size: 18px;
padding: 10px 20px;
width: 200px;
border-radius: 10px;
letter-spacing:2px;
word-spacing:2px;
}
.button1:hover{
color: #fff;
background-color: #893333;
}
</style>
</head>
<body>
<?php
if($message === '1'){
?>
<div id="wrapper">
<div id="content">
<center>
<h1 style="font-size: 25px;">Successfully Verified</h1>
<p class="icon"><ion-icon name="shield-checkmark-outline"></ion-icon></p>
<p>You successfully verify your C.L.I.K.I.T. account</p>
<p class="button">
<a class="button2" href="<?=base_url('welcome/login')?>">
Got it
</a>
</p>
</center>
</div>
</div>
<?php
}
?>
<?php
if($message === '0'){
?>
<div id="wrapper">
<div id="content">
<center>
<h1 style="font-size: 25px;">Invalid Link</h1>
<p class="icon1"><ion-icon name="alert-circle-outline"></ion-icon></p>
<p>Your verification email has passed its <br> expiration date.</p>
<p class="button">
<a class="button1" href="<?=base_url()?>">
Got it
</a>
</p>
</center>
</div>
</div>
<?php
}
?>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,3 @@
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>

View File

@ -0,0 +1,8 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
echo "\nERROR: ",
$heading,
"\n\n",
$message,
"\n\n";

View File

@ -0,0 +1,8 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
echo "\nDatabase error: ",
$heading,
"\n\n",
$message,
"\n\n";

View 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 ?>

View File

@ -0,0 +1,8 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
echo "\nERROR: ",
$heading,
"\n\n",
$message,
"\n\n";

View 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 ?>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View 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>

View 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>

View 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>

View 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>

View 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>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,239 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | Forgot Password</title>
<!-- CSS STYLE FOR SIGN UP -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
list-style: none;
font-family: 'Poppins', sans-serif;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
}
/* WRAPPER FOR LOGO AND FORM */
.wrapper{
display: flex;
width: 70rem;
height: 570px;
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/* SIZE OF BOX IN FORM */
.wrapper .right{
width: 65%;
height: 100%;
padding: 30px;
padding-left: 60px;
padding-right: 60px;
background: url('../assets/img/bg2.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 0 20px 20px 0;
}
/* SIZE OF BOX IN LOGO */
.wrapper .left{
width: 35%;
height: 100%;
padding: 30px;
background: url('../assets/img/bg5.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 0 0 20px ;
}
.wrapper .left img{
width: 100%;
transform: translate(1%,250%);
}
/* FORM GREETINGS */
.wrapper .right h3{
font-size: 2.5rem;
color: #fff3f2;
font-weight: 600;
line-height: 72px;
letter-spacing: 1px;
word-spacing: 2px;
text-align: center;
margin-bottom: 30px;
margin-top: 10px;
}
.wrapper .right .form{
margin-top: 0;
}
/* TITLE OF FORM QUESTIONS */
.wrapper .right .form label{
color: #fff3f2;
letter-spacing: 1px;
margin-top: 3px;
font-weight: 500;
font-size: 14px;
}
/* LOGIN QUESTION TEXT */
.wrapper .right h4{
color: #fff3f2;
padding: 25px;
font-size: small;
letter-spacing: 1px;
word-spacing: 1px;
text-align: center;
}
/* INPUT BOX */
.wrapper .right .input{
width: 100%;
padding: 10px 15px;
border: 5px;
font-size: 13px;
background: #EFF0F2;
}
/* INPUT PLACEHOLDER */
input::placeholder{
color: #838383;
font-size: 13px;
font-weight: 100%;
font-weight: normal;
}
/* FORM ERROR MESSAGES*/
.wrapper .right .text-danger{
font-size: 13px;
padding-bottom:-1.25em;
margin-bottom:-1.25em;
}
/* PASSWORD OR EMAIL ERROR */
.wrapper .right .pass{
font-size: 16px;
margin-top:20px;
margin-bottom:none;
}
/* CREATE ACCOUNT BUTTON */
.wrapper .right .btn{
color: #fff;
text-align: center;
background: #4d0400;
width: 250px;
height: 35px;
transform: translate(70%,200%);
}
.wrapper .right .btn:hover{
background-color: #260200;
}
</style>
</head>
<body>
<div class="wrapper">
<!-- LOGO SECTION -->
<div class="left">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</div>
<!-- FORM SECTION -->
<div class="right">
<h3>Forgot Password</h3>
<div class="form">
<!-- ALERT FOR INCOMPLETE FORMS -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "ferror"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/ferror
// welcome = segment(1)
// ferror - segment(2)
echo '
<div class="alert alert-danger">
<span>Please fill in all the required fields</span>
</div>';
}
?>
<!-- ALERT WWHEN EMAIL IS NOT REGISTERED -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "notemail"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/notemail
// welcome = segment(1)
// notemail - segment(2)
echo '
<div class="alert alert-danger">
<span>Please verify your registered email first.</span>
</div>';
}
?>
<!-- MAIN FORM -->
<form method="post" autocomplete="off" action="<?=base_url('welcome/forgotpassword')?>">
<!-- Kung anong input name sa signup, ganun din dapat sa login -->
<div class="row">
<!-- GET EMAIL -->
<div class="mb-3 mt-4">
<label for="exampleInputEmail1" class="form-label">TUP Email</label>
<input
type="email"
placeholder="Enter your tup email"
required
oninvalid="this.setCustomValidity('Enter Email Here')"
oninput="this.setCustomValidity('')"
name="email" class="form-control"
id="exampleInputEmail1" aria-describedby="emailHelp">
</div>
<!-- LOGIN BUTTON -->
<div class="rounded-0 text-center mb-5 mt-5 pt-5">
<button type="submit" class="btn">Send Verification Link</button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

403
application/views/home.php Normal file
View File

@ -0,0 +1,403 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | Signup</title>
<!-- CSS STYLE FOR SIGN UP -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
list-style: none;
font-family: 'Poppins', sans-serif;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
}
/* WRAPPER FOR LOGO AND FORM */
.wrapper{
display: flex;
width: 70rem;
height: 570px;
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/* SIZE OF BOX IN FORM */
.wrapper .right{
width: 65%;
height: 100%;
padding: 30px;
padding-left: 60px;
padding-right: 60px;
background-image: url( <?= base_url() ?>assets/img/bg2.jpg );
background-repeat: no-repeat;
background-size: cover;
border-radius: 0 20px 20px 0;
}
/* SIZE OF BOX IN LOGO */
.wrapper .left{
width: 35%;
height: 100%;
padding: 30px;
background-image: url( <?= base_url() ?>assets/img/bg5.jpg );
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 0 0 20px ;
}
.wrapper .left img{
width: 100%;
transform: translate(1%,250%);
}
/* FORM GREETINGS */
.wrapper .right h3{
font-size: 2.5rem;
color: #fff3f2;
font-weight: 600;
line-height: 72px;
letter-spacing: 1px;
word-spacing: 2px;
text-align: center;
margin-bottom: 20px;
margin-top: 10px;
}
.wrapper .right .form{
margin-top: 0;
}
/* TITLE OF FORM QUESTIONS */
.wrapper .right .form label{
color: #fff3f2;
letter-spacing: 1px;
margin-top: 3px;
font-weight: 500;
font-size: 14px;
}
/* LOGIN QUESTION TEXT */
.wrapper .right h4{
color: #fff3f2;
padding: 25px;
font-size: small;
letter-spacing: 1px;
word-spacing: 1px;
text-align: center;
}
/* LINK OF LOGIN */
.wrapper .right .form h4 a{
color: #260200;
margin-top: 0;
font-weight: bold;
font-size: 14px;
text-align: center;
text-decoration: none;
}
/* INPUT BOX */
.wrapper .right .input{
width: 100%;
padding: 10px 15px;
border: 5px;
font-size: 13px;
background: #EFF0F2;
}
/* INPUT PLACEHOLDER */
input::placeholder{
color: #838383;
font-size: 13px;
font-weight: 100%;
font-weight: normal;
}
/* FORM ERROR MESSAGES*/
.wrapper .right .text-danger{
font-size: 13px;
}
/* PASSWORD ERROR */
.wrapper .right .pass{
font-size: 16px;
margin-top:20px;
margin-bottom:none;
}
/* CREATE ACCOUNT BUTTON */
.wrapper .right .btn{
color: #fff;
text-align: center;
background: #4d0400;
width: 250px;
height: 35px;
transform: translate(0%,70%);
margin-top: 20px;
}
.wrapper .right .btn:hover{
background-color: #260200;
}
.alert{
font-size: 15px;
height: 10%;
padding-bottom: 5px;
}
</style>
</head>
<body>
<div class="wrapper">
<!-- ALERT WHEN SUCCESSFULLY CREATED THE ACCOUNT -->
<?php
// CHECK THE URL IF THERE IS "INSERTED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "inserted"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/inserted
// welcome = segment(1)
// inserted - segment(2)
?>
<script> alert('Successfully Created');</script>
<?php
}
?>
<!-- LOGO SECTION -->
<div class="left">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</div>
<!-- FORM SECTION -->
<div class="right">
<h3>Welcome to C.L.I.K.I.T</h3>
<!-- ALERT MESSAGES FOR SENT EMAIL -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "email"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/email
// welcome = segment(1)
// email - segment(2)
echo '
<div class="alert alert-success">
<span>A verification link has been sent to your email account.</span>
</div>';
}
?>
<!-- ERROR MESSAGES FOR UNSENT EMAIL -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "failedemail"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/failedemail
// welcome = segment(1)
// failedemail - segment(2)
echo '
<div class="alert alert-danger">
<span>The email verification was not sent successfully.</span>
</div>';
}
?>
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "password"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/failedemail
// welcome = segment(1)
// failedemail - segment(2)
echo '
<div class="alert alert-danger">
<span>Password must be at least 8 characters contain A-Z, a-z, and 0-9 </span>
</div>';
}
?>
<!-- ERROR MESSAGES FOR UNSENT EMAIL -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "emailfailed"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/failedemail
// welcome = segment(1)
// failedemail - segment(2)
echo '
<div class="alert alert-danger">
<span>Only registered TUP Emails are accepted.</span>
</div>';
}
?>
<!-- ERROR MESSAGES FOR DOES NOT MATCH PASSWORD -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "failed"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/failed
// welcome = segment(1)
// failed - segment(2)
echo '
<div class="alert alert-danger">
<span>Password does not match.</span>
</div>';
}
?>
<div class="form">
<!-- MAIN FORM -->
<form method="post" autocomplete="off" action="<?=base_url('welcome/registerNow')?>">
<!-- Much Better na same ang input name and name sa database para mas madalian sa pagpasa ng data sa database
INPUT NAME:
name="fullname"
name="username"
name="email"
name="password"
-->
<!-- FULL NAME , USERNAME -->
<div class="row">
<div class="col-lg-6">
<label for="exampleInputEmail1" class="form-label">Full Name</label>
<input
type="text"
placeholder="Enter your full name"
name="fullname"
required
oninvalid="this.setCustomValidity('Enter Full Name Here')"
oninput="this.setCustomValidity('')"
class="form-control" id="fullname"
aria-describedby="name"
value="<?php echo set_value('fullname'); ?>"
>
<span class="text-danger"><?php echo form_error("fullname")?></span>
</div>
<div class="col-lg-6">
<label for="exampleInputEmail1" class="form-label">Username</label>
<input
type="text"
placeholder="Enter your username"
name="username"
required
oninvalid="this.setCustomValidity('Enter Username Here')"
oninput="this.setCustomValidity('')"
class="form-control"
id="name"
aria-describedby="name"
value="<?php echo set_value('username'); ?>">
<span class="text-danger"><?php echo form_error("username")?></span>
</div>
</div>
<!-- EMAIL ADDRESS -->
<div class="row pt-2">
<div class="col-lg-6">
<label for="exampleInputEmail1" class="form-label">TUP Email</label>
<input
type="email"
placeholder="Enter your tup email"
name="email"
required
oninvalid="this.setCustomValidity('Enter TUP Email Here')"
oninput="this.setCustomValidity('')"
class="form-control"
id="exampleInputEmail1"
aria-describedby="emailHelp"
value="<?php echo set_value('email'); ?>">
<span class="text-danger"><?php echo form_error("email")?></span>
</div>
</div>
<!-- PASSWORD, CONFIRM PASSWORD -->
<div class="row pt-4">
<div class="col-lg-6">
<label for="exampleInputPassword1" class="form-label">Password</label>
<input
type="password"
name="password"
required
oninvalid="this.setCustomValidity('Enter Password Here')"
oninput="this.setCustomValidity('')"
placeholder="Enter your password"
class="form-control"
id="exampleInputPassword1"
value="<?php echo set_value('password'); ?>">
<span class="text-danger"><?php echo form_error("password")?></span>
</div>
<div class="col-lg-6">
<label for="exampleInputPassword1" class="form-label">Confirm Password</label>
<input
type="password"
name="password1"
required
oninvalid="this.setCustomValidity('Enter Confirm Password Here')"
oninput="this.setCustomValidity('')"
placeholder="Confirm your password"
class="form-control"
id="exampleInputPassword2">
<span class="text-danger"><?php echo form_error("password1")?></span>
</div>
</div>
<!-- CREATE ACCOUNT BUTTON -->
<div class="rounded-0 text-center mb-1">
<button type="submit" class="btn">Create Account</button>
</div>
<!-- LINK TO LOGIN -->
<h4>Already have an Account?
<a class="" href="<?=base_url('welcome/login')?>">Login</a>
</h4>
</form>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

305
application/views/login.php Normal file
View File

@ -0,0 +1,305 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | Login</title>
<!-- CSS STYLE FOR SIGN UP -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
list-style: none;
font-family: 'Poppins', sans-serif;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
}
/* WRAPPER FOR LOGO AND FORM */
.wrapper{
display: flex;
width: 70rem;
height: 570px;
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/* SIZE OF BOX IN FORM */
.wrapper .right{
width: 65%;
height: 100%;
padding: 30px;
padding-left: 60px;
padding-right: 60px;
background: url('../assets/img/bg2.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 0 20px 20px 0;
}
/* SIZE OF BOX IN LOGO */
.wrapper .left{
width: 35%;
height: 100%;
padding: 30px;
background: url('../assets/img/bg5.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 0 0 20px ;
}
.wrapper .left img{
width: 100%;
transform: translate(1%,250%);
}
/* FORM GREETINGS */
.wrapper .right h3{
font-size: 2.5rem;
color: #fff3f2;
font-weight: 600;
line-height: 72px;
letter-spacing: 1px;
word-spacing: 2px;
text-align: center;
margin-bottom: 30px;
margin-top: 10px;
}
.wrapper .right .form{
margin-top: 0;
}
/* TITLE OF FORM QUESTIONS */
.wrapper .right .form label{
color: #fff3f2;
letter-spacing: 1px;
margin-top: 3px;
font-weight: 500;
font-size: 14px;
}
/* LOGIN QUESTION TEXT */
.wrapper .right h4{
color: #fff3f2;
padding: 6px;
font-size: small;
letter-spacing: 1px;
word-spacing: 1px;
text-align: center;
}
/* LINK OF LOGIN AND FORGOT PASSWORD */
.wrapper .right .form h4 a{
color: #260200;
margin-top: 0;
font-weight: bold;
font-size: 14px;
text-align: center;
text-decoration: none;
}
/* INPUT BOX */
.wrapper .right .input{
width: 100%;
padding: 10px 15px;
border: 5px;
font-size: 13px;
background: #EFF0F2;
}
/* INPUT PLACEHOLDER */
input::placeholder{
color: #838383;
font-size: 13px;
font-weight: 100%;
font-weight: normal;
}
/* FORM ERROR MESSAGES*/
.wrapper .right .text-danger{
font-size: 13px;
padding-bottom:-1.25em;
margin-bottom:-1.25em;
}
/* PASSWORD OR EMAIL ERROR */
.wrapper .right .pass{
font-size: 16px;
margin-top:20px;
margin-bottom:none;
}
/* CREATE ACCOUNT BUTTON */
.wrapper .right .btn{
color: #fff;
text-align: center;
background: #4d0400;
width: 250px;
height: 35px;
transform: translate(0%,110%);
}
.wrapper .right .btn:hover{
background-color: #260200;
}
</style>
</head>
<body>
<div class="wrapper">
<!-- LOGO SECTION -->
<div class="left">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</div>
<!-- FORM SECTION -->
<div class="right">
<h3>Welcome to C.L.I.K.I.T</h3>
<div class="form">
<!-- ERROR MESSAGES FOR INCOMPLETE FORM -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "validation1"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/validation1
// welcome = segment(1)
// validation1 - segment(2)
echo '
<div class="alert alert-danger">
<span>Please fill in all the required fields</span>
</div>';
}
?>
<!-- ERROR MESSAGES FOR WRONG PASSWORD AND EMAIL -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "validation"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/validation
// welcome = segment(1)
// validation - segment(2)
echo '
<div class="alert alert-danger">
<span>Incorrect password or email.</span>
</div>';
}
?>
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "accept"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/validation
// welcome = segment(1)
// validation - segment(2)
echo '
<div class="alert alert-success">
<span>Password changed sucessfully.</span>
</div>';
}
?>
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "notaccept"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/validation
// welcome = segment(1)
// validation - segment(2)
echo '
<div class="alert alert-danger">
<span>Password changed unsucessfully.</span>
</div>';
}
?>
<!-- MAIN FORM -->
<form method="post" autocomplete="off" action="<?=base_url('welcome/loginnow')?>">
<!-- Kung anong input name sa signup, ganun din dapat sa login -->
<div class="row">
<!-- GET EMAIL -->
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label">TUP Email</label>
<input
type="email"
placeholder="Enter your tup email"
name="email" class="form-control"
required
oninvalid="this.setCustomValidity('Enter TUP Email Here')"
oninput="this.setCustomValidity('')"
id="exampleInputEmail1"
aria-describedby="emailHelp"
>
<span class="text-danger"><?php echo form_error("email")?></span>
</div>
<!-- GET PASSWORD -->
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label">Password</label>
<input
type="password"
name="password"
required
oninvalid="this.setCustomValidity('Enter Password Here')"
oninput="this.setCustomValidity('')"
placeholder="Enter your password"
class="form-control"
id="exampleInputPassword1"
>
<span class="text-danger"><?php echo form_error("password")?></span>
</div>
<!-- LOGIN BUTTON -->
<div class="rounded-0 text-center mb-5">
<button type="submit" class="btn">Login</button>
</div>
<!-- LINK TO LOGIN -->
<h4>Don't have an account?
<a class="" href="<?=base_url()?>">Signup</a> <br>
<div class="pt-2">
<a class="" href="<?=base_url('welcome/forgot')?>">Forgot Password?</a>
</div>
</h4>
</div>
</form>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,857 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>C.L.I.K.I.T.</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
body{
background: url('../assets/img/bg10.jpg');
background-repeat: no-repeat;
background-size: cover;
}
ion-icon{
font-size: 1.5rem;
margin-right: 8px;
}
nav{
display: flex;
align-items: center;
justify-content: space-between;
background: #1E0E0E;
padding: 13px 7%;
position: sticky;
top: 0;
z-index: 100;
margin-bottom: 10px;
}
.nav-left p{
width: 160px;
margin-right: 45px;
color: #efefef;
font-size: 20px;
}
.nav-left, .nav-right{
display: flex;
align-items: center;
}
.nav-user-icon img{
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
}
.nav-user-icon{
margin-left: 30px;
}
.search-box{
background: #efefef;
width: 200px;
border-radius: 20px;
display: flex;
align-items: center;
padding: 0 15px;
margin-bottom: 10px;
height: 30px;
}
.search-box p{
width: 18px;
color: #626262;
}
.search-box input{
font-size: small;
width: 100%;
background: transparent;
padding: 10px;
outline: none;
border: 0;
}
.container{
display: flex;
justify-content: space-between;
padding-top: 15px;
}
.left-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
color: #800;
padding-bottom: 40px;
}
.imp-links a{
text-decoration: none;
display: flex;
align-items: center;
margin-bottom: 30px;
color: #efefef;
width: fit-content;
}
.imp-links a img{
width: 25px;
height: 25px;
margin-right: 15px;
border-radius: 50%;
}
.user-profile{
display: flex;
align-items: center;
}
.user-profile img{
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 15px;
}
.post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 10px 18px;
color: #626262;
margin: 20px 0;
}
.user-profile p{
font-size: 15px;
color: #626262;
margin-top: 15px;
transform: translateX(-120%);
}
.user-profile .date{
font-size: 12px;
color: #626262;
transform: translate(-50%,42%);
}
.user-profile .lock{
display: flex;
transform: translate(1330%,-60%);
}
.alert{
font-size: 17px;
}
.setting{
font-size: 20px;
margin-top: 30px;
color: white;
}
.setting1{
font-size: 20px;
color: white;
transform: translateY(-10%);
}
#logo {
width:200px;
font-family:'Lily Script One', cursive;
font-size: 20px;
font-weight:bold;
color:lightgray;
-webkit-transition:0.2s ease all;
-moz-transition:0.2s ease all;
-ms-transition:0.2s ease all;
-o-transition:0.2s ease all;
transition:0.2s ease all;
}
#logo:hover {
color: #C1A6A7;
}
.setting1 label {
font-size: 18px;
color: darkgray;
margin-left: 15px;
}
.setting1 label,
.setting1 input {
float:left;
clear:both;
}
.setting1 input {
margin:10px 0;
padding: 10px 10px;
width: 90%;
outline:none;
border: 2px solid black;
border-radius: 10px;
background: rgba(32,32,32,.4);
color: white;
display:inline-block;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
-webkit-transition:0.2s ease all;
-moz-transition:0.2s ease all;
-ms-transition:0.2s ease all;
-o-transition:0.2s ease all;
transition:0.2s ease all;
}
.setting1 input::placeholder {
font-size: 15px;
font-weight:thin;
color: white;
opacity: .6;
}
.setting1 input[type="password"]:focus {
border-color: #A1797C;
}
.button2{
background-color: rgba(204,153,153,.5);
color: white;
padding: 4px 180px;
text-align: center;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px;
letter-spacing: 2px;
transform: translate(-5%, 50%);
}
.form-label{
font-size: 15px;
}
.input {
position: relative;
z-index: 1;
display: inline-block;
margin: 1em;
max-width: 400px;
width: calc(100% - 2em);
vertical-align: top;
}
.input__field {
position: relative;
display: block;
float: right;
padding: 0.8em;
width: 60%;
border: none;
border-radius: 0;
background: #f0f0f0;
color: #aaa;
font-weight: bold;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-webkit-appearance: none; /* for box shadows to show on iOS */
}
.input__field:focus {
outline: none;
}
.input__label {
display: inline-block;
float: right;
padding: 0 1em;
width: 40%;
color: #6a7989;
font-weight: bold;
font-size: 70.25%;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.input__label-content {
position: relative;
display: block;
padding: 1.6em 0;
width: 100%;
}
.input--kuro {
max-width: 320px;
}
.input__field--kuro {
width: 100%;
background: transparent;
color: #9196A1;
opacity: 0;
text-align: center;
-webkit-transition: opacity 0.3s;
transition: opacity 0.3s;
font-size: 15px;
margin-top: 7px;
}
.input__label--kuro {
position: absolute;
left: 0;
width: 100%;
color: #CC9999;
pointer-events: none;
margin-left: 10px;
padding-left: 20px;
}
.input__label--kuro::before,
.input__label--kuro::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 90%;
border: 4px solid rgba(0,0,0,.7);
-webkit-transition: -webkit-transform 0.3s;
transition: transform 0.3s;
}
.input__label--kuro::before {
border-right: none;
}
.input__label--kuro::after {
left: 50%;
border-left: none;
}
.input__field--kuro:focus,
.input--filled .input__field--kuro {
opacity: 1;
-webkit-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.input__field--kuro:focus + .input__label--kuro::before,
.input--filled .input__label--kuro::before {
-webkit-transform: translate3d(-10%, 0, 0);
transform: translate3d(-10%, 0, 0);
}
.input__field--kuro:focus + .input__label--kuro::after,
.input--filled .input__label--kuro::after {
-webkit-transform: translate3d(10%, 0, 0);
transform: translate3d(10%, 0, 0);
}
.input__field--kuro:focus + .input__label--kuro .input__label-content--kuro,
.input--filled .input__label-content--kuro {
-webkit-animation: anim-2 0.3s forwards;
animation: anim-2 0.3s forwards;
}
@-webkit-keyframes anim-2 {
50% {
opacity: 0;
-webkit-transform: scale3d(0.3, 0.3, 1);
transform: scale3d(0.3, 0.3, 1);
}
51% {
opacity: 0;
-webkit-transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0, 3.7em, 0);
transform: translate3d(0, 3.7em, 0);
}
}
@keyframes anim-2 {
50% {
opacity: 0;
-webkit-transform: scale3d(0.3, 0.3, 1);
transform: scale3d(0.3, 0.3, 1);
}
51% {
opacity: 0;
-webkit-transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
transform: translate3d(0, 3.7em, 0) scale3d(0.3, 0.3, 1);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0, 3.7em, 0);
transform: translate3d(0, 3.7em, 0);
}
}
.button1{
background-color: rgba(204,153,153,.5);
color: white;
padding: 4px 32px;
text-align: center;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px;
transform: translate(155%, -180%);
}
.post-text{
color: #9a9a9a;
margin: 10px 0;
font-size: 15px;
}
.post-text span{
color: #626262;
font-weight: 500;
}
.post-text a{
color: #1876f2;
text-decoration: none;
}
.post-img{
width: 100%;
border-radius: 4px;
margin-bottom: 5px;
}
.post-row{
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-icons div img{
width: 18px;
margin-right: 10px;
}
.activity-icons div{
display: inline;
align-items: center;
margin-right: 30px;
}
.post-profile-icon{
display: flex;
align-items: center;
}
.post-profile-icon img{
width: 20px;
border-radius: 50%;
margin-right: 5px;
}
.post-row a{
color: #9a9a9a;
}
.profile-img .file {
position: absolute;
overflow: hidden;
width: 28%;
height: 60%;
border: none;
border-radius: 50%;
font-size: 30px;
background-color: rgba(0,0,0,.5);
transform: translate(790%, -190%);
}
.profile-img .file:hover{
background-color: rgba(56,56,56,.5);
}
.profile-img .file input {
position: absolute;
opacity: 5;
right: 0;
top: 0;
cursor: pointer;
}
.profile-img .file .icon{
font-size: 30px;
transform: translate(8%, 8%);
}
.button-upload1{
background-color: rgba(105,105,105,.5);
border: none;
color: white;
padding: 10px 70px;
border-radius: 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
transform: translate(151%, -75%);
}
.button-upload1:hover{
background-color: rgba(64,64,64,.5);
}
.row p{
display: absolute;
margin-left: 1000px;
margin-top: -22px;
}
.tab_triger ul{
margin: 0;
padding: 0;
list-style: none;
display: flex;
}
.tab_triger ul li label{
position: relative;
display: block;
padding: 8px 15px;
cursor: pointer;
min-width: 100px;
background: rgba(0,0,0,.8);
text-align: center;
font-weight: 700;
border-radius: 8px 8px 0 0;
color: white;
}
.tab_triger ul li:nth-child(1) label{
background: rgba(0,0,0,.6);
}
.tab_triger ul li:nth-child(2) label{
background: rgba(0,0,0,.4);
}
.tab_container_wrap input{
position: absolute;
width: 0;
height: 0;
margin: 0;
z-index: -100;
top: -10000px;
}
.tab_container_wrap input:checked + .tab_content_box{
display: block;
}
.tab_content_box{
background: rgba(0,0,0,.6);
padding: 20px;
display: none;
color: white;
border-radius: 0 10px 10px 10px;
}
.tab_content_box:nth-of-type(1){
background: rgba(0,0,0,.6);
}
.tab_content_box:nth-of-type(2){
background: rgba(0,0,0,.4);
}
.profile{
transform: translateX(-8px);
}
.btn1{
color: white;
background:none;
border-radius:5px 0px 0px 5px;
width: auto;
padding: 3px 10px 3px 10px;
border: none;
}
.btn1:hover{
color: white;
}
.btn2{
color: white;
background:none;
border-radius:0px 5px 5px 0px;
width: auto;
padding: 3px 8px 3px 8px;
border: none;
}
.btn1:hover{
color: white;
}
.dropdown-item:hover{
color:white;
background:#905152;
opacity: 1px;
}
.logo{
text-decoration: none;
}
.logo img{
width: 20%;
}
.btn{
color: #fff;
text-align: center;
background: #800000;
width: 450px;
height: 35px;
transform: translateX(-5.5%);
}
.btn:hover{
color: #fff;
background-color: #522020;
}
.img-display {
padding-top:5px;
transform: translateX(35%);
}
.img-display img{
border-radius: 50%;
width: 280px;
height: 280px;
}
.update-form{
position: absolute;
transform: translateX(-120%);
}
.mcontainer{
transform: translateX(5%);
}
.approved1 a{
border: 1px solid #AED67A;
background-color: #092509;
color: #fff;
text-decoration: none;
font-size: 14px;
padding: 10px 15px;
border-radius: 10px;
}
.approved a{
border: 1px solid #AED67A;
background-color: #576B3D;
color: #fff;
text-decoration: none;
font-size: 14px;
padding: 10px 15px;
border-radius: 10px;
}
.approved a:hover{
background-color: #263D2E;
border: 1px solid #AED67A;
}
.pending a{
border: 1px solid #360000;
background-color:#610500;
color: #fff;
text-decoration: none;
font-size: 14px;
padding: 10px 15px;
border-radius: 10px; margin-top: 100px;
}
.pending a:hover{
background-color: #893333;
border: 1px solid #360000;
}
.report ion-icon{
color: #e06750;
text-decoration: none;
font-size: 40px;
font-weight:bold;
}
.delete ion-icon{
font-size: 30px;
color: #DFC7C8;
}
.delete ion-icon:hover{
color: #CAA2A3;
}
.row-center td{
text-align: center;
}
.panel-body{
color: #F4ECED;
}
.panel-body h3 ion-icon{
font-size: 50px;
transform: translateY(23%);
}
.table{
background-image: url( <?= base_url() ?>assets/img/bg2.jpg );
background-repeat: no-repeat;
background-size: cover;
border-radius: 10px;
border: none;
margin: 20px 40px 20px 0;
color: #DFC7C8;
}
.table tbody td{
font-size: 14px;
}.red{
color: #ff7070;
}
</style>
</head>
<body>
<!-- <?php
// if($this->session->userdata('UserLoginSession')){
// // TRANSFER THE DATA IN UserLoginSession TO $udata
// $udata = $this->session->userdata('UserLoginSession');
// ?>
// PRINT WELCOME WITH USER username
echo 'Welcome'.' '.$udata['username']; -->
<nav>
<div class="nav-left">
<a class="logo" href="<?=base_url('index.php/user')?>">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</a>
</div>
<div class="nav-right">
<!-- <div class="nav-user-icon">
<img src="images/profile-pic.png">
</div> -->
<div id="bs-example-navbar-collapse-2">
<div class="btn-group" style="float:right;">
<div class="profile">
<a href=<?php echo base_url('/user');?>>
<?php if($this->session->userdata('image') == ""){
?>
<img src=<?= base_url('assets/img/default_dp.png')?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}else{
?>
<img src=<?= base_url('upload/'.($this->session->userdata('image')))?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}
?>
</a>
</div>
<div class="btn-group">
<button type="button" class="btn1"><?php echo $this->session->userdata('username');?></button>
<button type="button" class="btn2 dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="<?=base_url('admin')?>">Post Controller</a></li>
<li><a class="dropdown-item" href="<?=base_url('admin/organization')?>">Organization Controller</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('admin/editprofileadmin')?>">View Profile</a></li>
<li><a class="dropdown-item" href="<?=base_url('admin/editprofileadmin#changepass')?>">Change Password</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('welcome/logout')?>">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="panel-body">
<h3><ion-icon name="construct-outline"></ion-icon> Admin Controller - User Post</h3>
<table class="table">
<thread>
<tr>
<th style="text-align: center;">Full Name</th>
<th style="text-align: center;">Tup Id</th>
<th style="text-align: center;">Name of Organization</th>
<th style="text-align: center;">Organization Presidents</th>
<th style="text-align: center;">Contact Email</th>
<th style="text-align: center;">About the Organization</th>
<th style="text-align: center;">Approved / Reject</th>
<th style="text-align: center;">Actions</th>
</tr>
</thread>
<tbody>
<?php
if(count($data) > 0){
foreach($data as $row){
?>
<tr class="row-center">
<td>
<?php echo $row->org_representative;?>
</td>
<td>
<?php echo $row->org_reptupid;?>
</td>
<td>
<?php echo $row->org_name;?>
</td>
<td>
<?php echo $row->org_president;?>
</td>
<td>
<?php echo $row->org_contact;?>
</td>
<td>
<?php echo $row->org_about;?>
</td>
<td style="text-align: center; padding: 22px 40px; ">
<?php if($row->org_status == "1")
{
?>
<div class="row approved1">
<a class="4"href='#'>
Approved
</a>
</div>
<?php
}
?>
<?php if($row->org_status == "0")
{
?>
<div class="row">
<div class="approved col-6" style="padding-right: 80px">
<a href='<?=base_url('admin/orgpending/'.$row->org_id.'/'.$row->orgadmin_id) ?>'>
Approve
</a>
</div>
<div class="pending col-6" >
<a href="<?=base_url('admin/orgreport/'.$row->org_id.'/'.$row->orgadmin_id) ?>">
Reject
</a>
</div>
</div>
<?php
}
?>
</td>
<td>
<div class="delete" style="padding: 10px 30px;">
<a href="<?=base_url('admin/orgreport/'.$row->org_id.'/'.$row->orgadmin_id) ?>">
<ion-icon name="trash"></ion-icon>
</a>
</div>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,179 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content=
"width=device-width, initial-scale=1.0">
<title>
Create Organization Form
</title>
<style type="text/css">
/* Styling the Body element i.e. Color,
Font, Alignment */
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
body {
background: #4A2324;
text-align: center;
}
.title-form{
font-size: 3rem;
padding-top: 50px;
color: white;
}
/* Styling the Form (Color, Padding, Shadow) */
form {
background-color: #fff;
max-width: 50%;
margin: 50px auto;
padding: 40px 45px;
box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.5);
}
/* Styling form-control Class */
.form-control {
text-align: left;
margin-bottom: 25px;
}
/* Styling form-control Label */
.form-control label {
display: block;
margin-bottom: 10px;
}
/* Styling form-control input,
select, textarea */
.form-control input,
.form-control select,
.form-control textarea {
border: 1px solid #777;
border-radius: 2px;
font-family: inherit;
padding: 10px;
display: block;
width: 95%;
}
/* Styling form-control Radio
button and Checkbox */
.form-control input[type="radio"],
.form-control input[type="checkbox"] {
display: inline-block;
width: auto;
}
/* Styling Button */
.btn{
color: #fff;
text-align: center;
background: #800000;
width: 250px;
height: 35px;
cursor: pointer;
border-radius: 2px;
font-family: inherit;
font-size: 21px;
display: block;
width: 100%;
margin-top: 50px;
margin-bottom: 20px;
border: none;
}
.btn:hover{
background-color: #522020;
}
</style>
</head>
<body>
<h1 class="title-form">Join Organization Form</h1>
<?php
foreach($data->result() as $row)
{
if($row->org_id == $this->uri->segment(3))
{
?>
<!-- Create Form -->
<form id="form" method="post" autocomplete="off" action="<?=base_url('orgs/joinorgs/'.$this->uri->segment(3))?>">
<!-- Details -->
<div class="form-control">
<label for="name" id="label-name">
Full Name
</label>
<!-- Input Type Text -->
<input type="text"
id="name"
placeholder="Santos, John Paul S."
name="orgmember_fullname"
required
oninvalid="this.setCustomValidity('Enter Full Name Here')"
oninput="this.setCustomValidity('')"
/>
</div>
<div class="form-control">
<label for="name" id="label-name">
Years & Section
</label>
<!-- Input Type Text -->
<input type="text"
id="name"
placeholder="BSCS-3D"
name="orgmember_section"
required
oninvalid="this.setCustomValidity('Enter Section Here')"
oninput="this.setCustomValidity('')"
/>
</div>
<div class="form-control">
<label for="role" id="label-role">
College
</label>
<!-- Dropdown options -->
<select name="orgmember_college" id="role" required>
<option value="COLLEGE OF INDUSTRIAL TECHNOLOGY">COLLEGE OF INDUSTRIAL TECHNOLOGY</option>
<option value="COLLEGE OF ENGINEERING">COLLEGE OF ENGINEERING</option>
<option value="COLLEGE OF SCIENCE">COLLEGE OF SCIENCE</option>
<option value="COLLEGE OF ARCHITECTURE AND FINE ARTS">COLLEGE OF ARCHITECTURE AND FINE ARTS</option>
<option value="COLLEGE OF INDUSTRIAL EDUCATION">COLLEGE OF INDUSTRIAL EDUCATION</option>
<option value="COLLEGE OF LIBERAL ARTS">COLLEGE OF LIBERAL ARTS</option>
</select>
</div>
<input type="hidden" id="1" name="org_contact" value=<?php echo $row->org_contact?>>
<input type="hidden" id="2" name="org_name" value=<?php echo $row->org_name?>>
<!-- Multi-line Text Input Control -->
<div class="rounded-0 text-center mb-4">
<button type="submit" class="btn">Join Organization</button>
</div>
</form>
<?php
break;
}
}
?>
</body>
</html>

View File

@ -0,0 +1,262 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | Join Organization</title>
<!-- CSS STYLE FOR SIGN UP -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
list-style: none;
font-family: 'Poppins', sans-serif;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
}
/* WRAPPER FOR LOGO AND FORM */
.wrapper{
display: flex;
width: 70rem;
height: 570px;
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/* SIZE OF BOX IN FORM */
.wrapper .right{
width: 65%;
height: 100%;
padding: 30px;
padding-left: 60px;
padding-right: 60px;
background: #632626;
background-repeat: no-repeat;
background-size: cover;
border-radius: 0 20px 20px 0;
}
/* SIZE OF BOX IN LOGO */
.wrapper .left{
width: 35%;
height: 100%;
padding: 30px;
background-image: url( <?= base_url() ?>assets/img/bg5.jpg );
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 0 0 20px ;
}
.wrapper .left img{
width: 100%;
transform: translate(1%,250%);
}
/* FORM GREETINGS */
.wrapper .right h3{
font-size: 2.5rem;
color: #fff3f2;
font-weight: 600;
line-height: 72px;
letter-spacing: 1px;
word-spacing: 2px;
text-align: center;
margin-bottom: 15px;
margin-top: 10px;
}
.wrapper .right .form{
margin-top: 0;
}
/* TITLE OF FORM QUESTIONS */
.wrapper .right .form label{
color: #fff3f2;
letter-spacing: 1px;
margin-top: 3px;
font-weight: 500;
font-size: 14px;
}
/* LOGIN QUESTION TEXT */
.wrapper .right h4{
color: #fff3f2;
font-size: small;
letter-spacing: 1px;
word-spacing: 1px;
text-align: center;
}
/* INPUT BOX */
.wrapper .right .input{
width: 100%;
padding: 3px;
border: 3px;
font-size: 13px;
background: #EFF0F2;
}
/* INPUT PLACEHOLDER */
input::placeholder{
color: #838383;
font-size: 13px;
font-weight: 100%;
font-weight: normal;
}
/* FORM ERROR MESSAGES*/
.wrapper .right .text-danger{
font-size: 13px;
padding-bottom:-1.25em;
margin-bottom:-1.25em;
}
/* PASSWORD OR EMAIL ERROR */
.wrapper .right .pass{
font-size: 16px;
margin-top:20px;
margin-bottom:none;
}
/* CREATE ACCOUNT BUTTON */
.wrapper .right .btn{
color: #fff;
text-align: center;
background: #8E5758;
width: 250px;
height: 35px;
transform: translate(0%,110%);
margin-top: 15px;
}
.wrapper .right .btn:hover{
background-color: #260200;
}
select:focus > option:checked {
cursor: pointer;
color: white;
background: #8E5758 !important;
}
</style>
</head>
<body>
<div class="wrapper">
<!-- LOGO SECTION -->
<div class="left">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</div>
<!-- FORM SECTION -->
<div class="right">
<center>
<h3>Join Organization</h3>
<h4>Please fill-up the necessary details in joining the organization.</h4>
</center>
<div class="form">
<!-- MAIN FORM -->
<?php
foreach($data->result() as $row)
{
if($row->org_id == $this->uri->segment(3))
{
?>
<!-- Create Form -->
<form id="form" method="post" autocomplete="off" action="<?=base_url('orgs/joinorgs/'.$this->uri->segment(3))?>">
<!-- Details -->
<div class="row">
<div class="mt-4">
<label for="name">Full Name</label>
<input
type="text"
class="form-control"
id="name"
placeholder="Santos, John Paul S."
name="orgmember_fullname"
required
oninvalid="this.setCustomValidity('Enter Email Here')"
oninput="this.setCustomValidity('')"
>
</div>
<div class="mt-4">
<label for="name" id="label-name">
Years & Section
</label>
<!-- Input Type Text -->
<input type="text"
id="name"
placeholder="BSCS-3D"
name="orgmember_section"
class="form-control"
required
oninvalid="this.setCustomValidity('Enter Section Here')"
oninput="this.setCustomValidity('')"
/>
</div>
<div class="mt-4">
<label for="role" id="label-role">
College
</label>
<!-- Dropdown options -->
<select name="orgmember_college" id="role" class="form-control" required>
<option value="COLLEGE OF INDUSTRIAL TECHNOLOGY">COLLEGE OF INDUSTRIAL TECHNOLOGY</option>
<option value="COLLEGE OF ENGINEERING">COLLEGE OF ENGINEERING</option>
<option value="COLLEGE OF SCIENCE">COLLEGE OF SCIENCE</option>
<option value="COLLEGE OF ARCHITECTURE AND FINE ARTS">COLLEGE OF ARCHITECTURE AND FINE ARTS</option>
<option value="COLLEGE OF INDUSTRIAL EDUCATION">COLLEGE OF INDUSTRIAL EDUCATION</option>
<option value="COLLEGE OF LIBERAL ARTS">COLLEGE OF LIBERAL ARTS</option>
</select>
</div>
<input type="hidden" id="1" name="org_contact" value=<?php echo $row->org_contact?>>
<input type="hidden" id="2" name="org_name" value=<?php echo $row->org_name?>>
<!-- Multi-line Text Input Control -->
<div class="rounded-0 text-center mb-4">
<button type="submit" class="btn">Join Organization</button>
</div>
</div>
</form>
<?php
break;
}
}
?>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,695 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Clikit | Organization</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
}
.background{
position: absolute;
height: 100%;
width: 100%;
}
ion-icon{
font-size: 1.5rem;
margin-right: 8px;
}
nav{
display: flex;
align-items: center;
justify-content: space-between;
background: #1E0E0E;
padding: 13px 7%;
position: sticky;
top: 0;
z-index: 100;
margin-bottom: 10px;
}
.nav-left p{
width: 160px;
margin-right: 45px;
color: #efefef;
font-size: 20px;
}
.nav-left, .nav-right{
display: flex;
align-items: center;
}
.nav-user-icon img{
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
}
.nav-user-icon{
margin-left: 30px;
}
.search-box{
background: #efefef;
width: 200px;
border-radius: 20px;
display: flex;
align-items: center;
padding: 0 15px;
margin-bottom: 10px;
height: 30px;
}
.search-box p{
width: 18px;
color: #626262;
}
.search-box input{
font-size: small;
width: 100%;
background: transparent;
padding: 10px;
outline: none;
border: 0;
}
.container{
display: flex;
justify-content: space-between;
padding-top: 15px;
}
.left-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
color: #800;
padding-right: 15px;
}
.right-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
background-image: url( <?= base_url() ?>assets/img/bg1.jpg );
padding: 20px;
border-radius: 4px;
color: #2C1515;
letter-spacing: 0.5px;
margin-left:10px;
margin-top: 8px;
}
.main-content{
flex-basis: 47%;
}
.imp-links a{
text-decoration: none;
display: flex;
align-items: center;
margin-bottom: 30px;
color: #efefef;
width: fit-content;
}
.imp-links a img, .imp-linkss a img{
width: 25px;
height: 25px;
margin-right: 15px;
border-radius: 50%;
}
.imp-links{
border-bottom: 1px solid #ccc;
}
.imp-linkss a{
text-decoration: none;
display: flex;
align-items: center;
color: #efefef;
width: fit-content;
}
.imp-linkss{
background:#905152;
width: 80%;
padding: 10px;
border-radius: 10px;
}
.imp-linkss:hover{
background:#683032;
width: 80%;
border-radius: 10px;
}
.sidebar-title{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
}
.right-sidebar h4{
color: #59292B;
letter-spacing: 1px;
font-weight: 600;
font-size: 16px;
}
.right-sidebar h3{
color: #3B1C1C;
font-weight: 600;
}
.sidebar-title a{
color: #3B1C1C;
font-weight: 600;
}
.event{
display: flex;
font-size: 14px;
margin-bottom: 20px;
}
.left-event{
background: white;
border-radius: 10px;
height: 65px;
width: 65px;
margin-right: 15px;
padding-top: 10px;
text-align: center;
position: relative;
overflow: hidden;
box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
}
.event p{
font-size: 12px;
}
.event a{
font-size: 12px;
text-decoration: none;
color: #1876f2;
}
.left-event span{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: #3B1C1C;
color: #F5F5F5;
font-size: 10px;
padding: 4px 0;
}
.sidebar-ads{
width: 100%;
margin-bottom: 20px;
border-radius: 4px;
}
.write-post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 20px;
color: #626262;
}
.user-profile{
display: flex;
align-items: center;
}
.user-profile img{
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 15px;
}
.user-profile p{
margin-bottom: -5px;
font-weight: 500;
color: #626262;
}
.user-profile small{
font-size: 12px;
}
.user-profile label{
padding-right:5px;
padding-bottom:2px;
font-size:13px;
}
.user-profile .status{
color: #626262;
font-size:13px;
border-radius: 5px;
cursor: pointer;
}
.user-profile .status:hover{
background-color:#905152;
}
.user-profile span{
font-size: 13px;
color: #626262;
}
.post-input-container{
padding-left: 55px;
padding-top: 20px;
}
.post-input-container textarea{
width: 95%;
border: 0;
outline: 0;
border-bottom: 1px solid #ccc;
background: transparent;
resize: none;
}
.add-post-links{
display: flex;
margin-top: 10px;
}
.add-post-links ion-icon{
text-decoration: none;
display: flex;
align-items: center;
color: #626262;
margin-right: 4px;
font-size: 18px;
}
.add-post-links p{
text-decoration: none;
display: flex;
align-items: center;
color: #626262;
margin-right: 30px;
font-size: 13px;
}
.add-post-links img{
width: 20px;
margin-right: 10px;
}
.post-container{
position: relative;
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 20px;
color: #626262;
margin: 20px 0;
}
.post-text{
color: #606162;
margin: 15px 0;
font-size: 15px;
}
.post-text span{
color: #626262;
font-weight: 500;
}
.post-text a{
color: #1876f2;
text-decoration: none;
}
.post-img{
width: 100%;
border-radius: 4px;
margin-bottom: 5px;
}
.post-row{
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-icons div img{
width: 18px;
margin-right: 10px;
}
.activity-icons div{
display: inline;
align-items: center;
margin-right: 30px;
}
.post-profile-icon{
display: flex;
align-items: center;
}
.post-profile-icon img{
width: 20px;
border-radius: 50%;
margin-right: 5px;
}
.post-row a{
color: #9a9a9a;
}
.profile{
transform: translateX(-8px);
}
.btn1{
color: white;
background:none;
border-radius:5px 0px 0px 5px;
width: auto;
padding: 3px 10px 3px 10px;
border: none;
}
.btn1:hover{
color: white;
}
.btn2{
color: white;
background:none;
border-radius:0px 5px 5px 0px;
width: auto;
padding: 3px 8px 3px 8px;
border: none;
}
.btn1:hover{
color: white;
}
.dropdown-item:hover{
color:white;
background:#905152;
opacity: 1px;
}
.logo{
text-decoration: none;
}
.logo img{
width: 20%;
}
.btn{
color: #fff;
text-align: center;
background: #800000;
width: 450px;
height: 35px;
transform: translateX(-5.5%);
}
.btn:hover{
color: #fff;
background-color: #522020;
}
.btn-group ion-icon{
color: #55504E;
font-size: 20px;
position: absolute;
right: -180px;
top: -30px;
}
.btn-group1{
position: relative;
transform: translateX(900%);
}
.dropdown-menu1{
background-color: rgba(0,0,0,.7);
}
textarea{
font-size: 15px;
background-color: #905152;
border: none;
color: white;
padding: 4px;
}
textarea::placeholder{
color: white;
}
.posting::placeholder{
color: #9a9a9a;
}
.dropdown-menu1 .dropdown-item{
color:white;
}
.btnf{
color: #fff;
text-align: center;
text-decoration: none;
border: none;
background: transparent;
padding: 3px 10px;
}
.btnf:hover{
color:white;
background:#905152;
opacity: 1px;
}
.book{
color:#ff9e14;
position: absolute;
transform: translateX(1270%);
}
.book ion-icon{
color:#ff9e14;
}
.orgpic{
position: relative;
width: 60px;
height: 60px;
border-radius: 50%;
margin-right: 15px;
margin-bottom: 13px;
}
.orgname{
position: relative;
color: white;
font-size: 35px;
}
.join{
text-decoration: none;
color: white;
float: right;
margin: 20px 10px;
}
.join:hover{
color: white;
}
.join1{
background-color: #52D452;
color: white;
border-radius: 5px;
border: none;
padding: 7px;
float: right;
margin: 20px 10px;
}
</style>
</head>
<body>
<!-- <?php
// if($this->session->userdata('UserLoginSession')){
// // TRANSFER THE DATA IN UserLoginSession TO $udata
// $udata = $this->session->userdata('UserLoginSession');
// ?>
// PRINT WELCOME WITH USER username
echo 'Welcome'.' '.$udata['username']; -->
<nav>
<div class="nav-left">
<a class="logo" href="<?=base_url('index.php/user')?>">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</a>
</div>
<div class="nav-right">
<div id="bs-example-navbar-collapse-2">
<div class="btn-group" style="float:right;">
<div class="profile">
<a href=<?php echo base_url('/user');?>>
<?php if($this->session->userdata('image') == ""){
?>
<img src=<?= base_url('assets/img/default_dp.png')?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}else{
?>
<img src=<?= base_url('upload/'.($this->session->userdata('image')))?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}
?>
</a>
</div>
<div class="btn-group">
<button type="button" class="btn1"><?php echo $this->session->userdata('username');?></button>
<button type="button" class="btn2 dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="<?=base_url('index.php/user')?>">Go to Freedom Wall</a></li>
<li><a class="dropdown-item" href="<?=base_url('orgs')?>">Go to Organization</a></li>
<li><a class="dropdown-item" href="<?=base_url('orgs/createorg')?>">Create Organization</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('user/editprofile')?>">View Profile</a></li>
<li><a class="dropdown-item" href="<?=base_url('user/editprofile#changepass')?>">Change Password</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('welcome/logout')?>">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="left-sidebar">
<div class="imp-links mt-3">
<a href="<?=base_url('index.php/user')?>"><ion-icon name="people-circle"></ion-icon>Freedom Wall</a>
<a href="<?=base_url('orgs')?>"><ion-icon name="library"></ion-icon>Organizations</a>
</div>
<div class="imp-linkss mt-5">
<a href="<?=base_url('orgs/contact/'.$this->uri->segment(3))?>"><ion-icon name="call"></ion-icon>Contact Us</a>
</div>
<div class="imp-linkss mt-3">
<a href="<?=base_url('orgs/aboutus')?>"><ion-icon name="call"></ion-icon>About</a>
</div>
</div>
<div class="main-content">
<div class="mt-2 mb-2">
</div>
<?php
foreach($data->result() as $row)
{
if($this->uri->segment(3) == $row->org_id){
?>
<?php if($row->org_image == ""){
?>
<img class="orgpic" src=<?= base_url('assets/img/orgs_logo.png')?>>
<?php
}else{
?>
<img class="orgpic" src=<?= base_url('upload/'.$row->org_image)?>>
<?php
}
?>
<span class="orgname"><?php echo $row->org_name?></span>
<?php if(($row->orgadmin_id == $this->session->userdata('id')) ||
($row->orgmember_id == $this->session->userdata('id') && $row->orgmember_status == '1' && $this->uri->segment(3) == $row->orgm_id)){
?>
<button style="position: relative;" type="submit" class="join1">Joined</button>
<?php
}else{
?>
<a style="position: relative;" class="join" href="<?=base_url('orgs/orgjoined/'.$row->org_id)?>">Join / Register</a>
<?php
}
?>
<?php
break;
}
}
?>
<?php
foreach($data->result() as $row)
{
if($this->uri->segment(3) == $row-> org_id){
?>
<div class="post-container">
<div class="post-row">
<div class="user-profile">
<?php if($row->org_image == ""){
?>
<img src=<?= base_url('assets/img/orgs_logo.png')?>>
<?php
}else{
?>
<img src=<?= base_url('upload/'.$row->org_image)?>>
<?php
}
?>
<div>
<?php if($row->org_status == "1"){
?>
<span class="book"><ion-icon name="bookmarks"></ion-icon></span>
<?php
}
?>
<p><?php echo $row->org_name?></p>
<span><?php echo $row->org_published_date ?></span>
</div>
</div>
<a href="#"><i class="fas fa-ellipsis-v"></i></a>
</div>
<p class="post-text"><?php echo $row->org_post?></p>
</div>
<?php
}
}
?>
</div>
<div class="right-sidebar">
<div class="sidebar-title">
<h4>Events / Activities</h4>
</div>
<div class="event">
<div class="left-event">
<h3>18</h3>
<span>March</span>
</div>
<div class="right-event">
<h4>Org 1 Event</h4>
<p>Summarized words that fit in a few words</p>
</div>
</div>
<div class="event">
<div class="left-event">
<h3>22</h3>
<span>June</span>
</div>
<div class="right-event">
<h4>Org 2 Event</h4>
<p>Summarized words that fit in a few words</p>
</div>
</div>
<div class="sidebar-title">
<h4>Org Advertisements</h4>
</div>
<img src="images/advertisement.png" class="sidebar-ads">
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,625 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Clikit | Organization</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
}
ion-icon{
font-size: 1.5rem;
margin-right: 8px;
}
nav{
display: flex;
align-items: center;
justify-content: space-between;
background: #1E0E0E;
padding: 13px 7%;
position: sticky;
top: 0;
z-index: 100;
margin-bottom: 10px;
}
.nav-left p{
width: 160px;
margin-right: 45px;
color: #efefef;
font-size: 20px;
}
.nav-left, .nav-right{
display: flex;
align-items: center;
}
.nav-user-icon img{
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
}
.nav-user-icon{
margin-left: 30px;
}
.search-box{
background: #efefef;
width: 200px;
border-radius: 20px;
display: flex;
align-items: center;
padding: 0 15px;
margin-bottom: 10px;
height: 30px;
}
.search-box p{
width: 18px;
color: #626262;
}
.search-box input{
font-size: small;
width: 100%;
background: transparent;
padding: 10px;
outline: none;
border: 0;
}
.container{
display: flex;
justify-content: space-between;
padding-top: 15px;
}
.left-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
color: #800;
padding-right: 15px;
padding-top: 15px;
}
.right-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
background: #F5F5F5;
padding: 20px;
border-radius: 4px;
color: #626262;
}
.main-content{
flex-basis: 47%;
}
.imp-links a{
text-decoration: none;
display: flex;
align-items: center;
margin-bottom: 30px;
color: #efefef;
width: fit-content;
}
.imp-links a img{
width: 25px;
height: 25px;
margin-right: 15px;
border-radius: 50%;
}
.imp-links{
border-bottom: 1px solid #ccc;
}
.sidebar-title{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
}
.right-sidebar h4{
font-weight: 600;
font-size: 16px;
}
.sidebar-title a{
text-decoration: none;
color: #1876f2;
font-size: 12px;
}
.event{
display: flex;
font-size: 14px;
margin-bottom: 20px;
}
.left-event{
border-radius: 10px;
height: 65px;
width: 65px;
margin-right: 15px;
padding-top: 10px;
text-align: center;
position: relative;
overflow: hidden;
box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
}
.event p{
font-size: 12px;
}
.event a{
font-size: 12px;
text-decoration: none;
color: #1876f2;
}
.left-event span{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: #1876f2;
color: #F5F5F5;
font-size: 10px;
padding: 4px 0;
}
.sidebar-ads{
width: 100%;
margin-bottom: 20px;
border-radius: 4px;
}
.write-post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 20px;
color: #626262;
}
.user-profile{
display: flex;
align-items: center;
}
.user-profile img{
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 15px;
}
.user-profile p{
margin-bottom: -5px;
font-weight: 500;
color: #626262;
}
.user-profile small{
font-size: 12px;
}
.user-profile label{
padding-right:5px;
padding-bottom:2px;
font-size:13px;
}
.user-profile .status{
color: #626262;
font-size:13px;
border-radius: 5px;
cursor: pointer;
}
.user-profile .status:hover{
background-color:#905152;
}
.user-profile span{
font-size: 13px;
color: #626262;
}
.post-input-container{
padding-left: 55px;
padding-top: 20px;
}
.post-input-container textarea{
width: 95%;
border: 0;
outline: 0;
border-bottom: 1px solid #ccc;
background: transparent;
resize: none;
}
.add-post-links{
display: flex;
margin-top: 10px;
}
.add-post-links ion-icon{
text-decoration: none;
display: flex;
align-items: center;
color: #626262;
margin-right: 4px;
font-size: 18px;
}
.add-post-links p{
text-decoration: none;
display: flex;
align-items: center;
color: #626262;
margin-right: 30px;
font-size: 13px;
}
.add-post-links img{
width: 20px;
margin-right: 10px;
}
.post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 20px;
color: #626262;
margin: 20px 0;
}
.post-text{
color: #55504E;
margin: 15px 0;
font-size: 15px;
}
.post-text span{
color: #626262;
font-weight: 500;
}
.post-text a{
color: #1876f2;
text-decoration: none;
}
.post-img{
width: 100%;
border-radius: 4px;
margin-bottom: 5px;
}
.post-row{
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-icons div img{
width: 18px;
margin-right: 10px;
}
.activity-icons div{
display: inline;
align-items: center;
margin-right: 30px;
}
.post-profile-icon{
display: flex;
align-items: center;
}
.post-profile-icon img{
width: 20px;
border-radius: 50%;
margin-right: 5px;
}
.post-row a{
color: #9a9a9a;
}
.profile{
transform: translateX(-8px);
}
.btn1{
color: white;
background:none;
border-radius:5px 0px 0px 5px;
width: auto;
padding: 3px 10px 3px 10px;
border: none;
}
.btn1:hover{
color: white;
}
.btn2{
color: white;
background:none;
border-radius:0px 5px 5px 0px;
width: auto;
padding: 3px 8px 3px 8px;
border: none;
}
.btn1:hover{
color: white;
}
.dropdown-item:hover{
color:white;
background:#905152;
opacity: 1px;
}
.logo{
text-decoration: none;
}
.logo img{
width: 20%;
}
.btn{
color: #fff;
text-align: center;
background: #800000;
width: 450px;
height: 35px;
transform: translateX(-5.5%);
}
.btn:hover{
color: #fff;
background-color: #522020;
}
.btn-group ion-icon{
color: #55504E;
font-size: 20px;
position: absolute;
right: -180px;
top: -30px;
}
.btn-group1{
position: relative;
transform: translateX(900%);
}
.dropdown-menu1{
background-color: rgba(0,0,0,.7);
}
textarea{
font-size: 15px;
background-color: #905152;
border: none;
color: #55504E;
padding: 4px;
}
.posting::placeholder{
color: #9a9a9a;
}
.dropdown-menu1 .dropdown-item{
color:white;
}
.btnf{
color: #fff;
text-align: center;
text-decoration: none;
border: none;
background: transparent;
padding: 3px 10px;
}
.btnf:hover{
color:white;
background:#905152;
opacity: 1px;
}
.orgreg{
text-decoration: none;
color: white;
}
.orgreg:hover{
text-decoration: none;
color: white;
}
.flex-container {
display: flex;
flex-wrap: nowrap;
}
.orgcontainer{
background-image: url( <?= base_url() ?>assets/img/bg1.jpg );
background-repeat: no-repeat;
background-size: cover;
padding: 40px;
border-radius: 4px;
color: #2C1515;
letter-spacing: 0.5px;
margin-left:30px;
margin-top: 10px;
height: 20rem;
text-align: center;
}
.orgcontainer .orgreg img{
margin-top: 30px;
height: 50%;
}
.orgcontainer .orgreg p{
font-size: 20px;
color: #2C1515;
letter-spacing: 1px;
margin-top: 20px;
font-weight: bold;
}
.alert{
margin-left: 65%;
padding: 20px 70px 20px 70px;
}
</style>
</head>
<body>
<!-- <?php
// if($this->session->userdata('UserLoginSession')){
// // TRANSFER THE DATA IN UserLoginSession TO $udata
// $udata = $this->session->userdata('UserLoginSession');
// ?>
// PRINT WELCOME WITH USER username
echo 'Welcome'.' '.$udata['username']; -->
<nav>
<div class="nav-left">
<a class="logo" href="<?=base_url('index.php/user')?>">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</a>
</div>
<div class="nav-right">
<div id="bs-example-navbar-collapse-2">
<div class="btn-group" style="float:right;">
<div class="profile">
<a href=<?php echo base_url('/user');?>>
<?php if($this->session->userdata('image') == ""){
?>
<img src=<?= base_url('assets/img/default_dp.png')?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}else{
?>
<img src=<?= base_url('upload/'.($this->session->userdata('image')))?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}
?>
</a>
</div>
<div class="btn-group">
<button type="button" class="btn1"><?php echo $this->session->userdata('username');?></button>
<button type="button" class="btn2 dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="<?=base_url('index.php/user')?>">Go to Freedom Wall</a></li>
<li><a class="dropdown-item" href="<?=base_url('orgs')?>">Go to Organization</a></li>
<li><a class="dropdown-item" href="<?=base_url('orgs/createorg')?>">Create Organization</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('user/editprofile')?>">View Profile</a></li>
<li><a class="dropdown-item" href="<?=base_url('user/editprofile#changepass')?>">Change Password</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('welcome/logout')?>">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="container">
<?php
if($this->uri->segment(2) == "email"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-success">
<span>Join request sent successfully.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "failedemail"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-danger">
<span>Join request unsuccessful.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "emailcontact"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-success">
<span>Contact sent successfully.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "failedemailcontact"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-danger">
<span>Contact sent unsuccessfully.</span>
</div>';
}
?>
</div>
<div class="container">
<div class="flex-container" style="margin-right: 10px;">
<?php
foreach($data->result() as $row)
{
if($row->org_status == '1')
{
if($row->org_image == ""){
?>
<div class="orgcontainer" >
<a class="orgreg" href="<?=base_url('orgs/orgsprofile/'.$row->org_id.'/'.$row->orgadmin_id)?>">
<img src=<?= base_url('assets/img/orgs_logo.png')?>
style="
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image"> <br>
<p > <?php echo $row->org_name?> </p>
</a>
</div>
<?php
}else{
?>
<div class="orgcontainer" >
<a class="orgreg" href="<?=base_url('orgs/orgsprofile/'.$row->org_id.'/'.$row->orgadmin_id)?>">
<img src=<?= base_url('upload/'.$row->org_image)?>
style="
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image"> <br>
<p > <?php echo $row->org_name?> </p>
</a>
</div>
<?php
}
?>
<?php
}
}
?>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

276
application/views/otp.php Normal file
View File

@ -0,0 +1,276 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | Otp Code</title>
<!-- CSS STYLE FOR SIGN UP -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
list-style: none;
font-family: 'Poppins', sans-serif;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
}
/* WRAPPER FOR LOGO AND FORM */
.wrapper{
display: flex;
width: 70rem;
height: 570px;
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/* SIZE OF BOX IN FORM */
.wrapper .right{
width: 65%;
height: 100%;
padding: 30px;
padding-left: 60px;
padding-right: 60px;
background: url('../assets/img/bg2.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 0 20px 20px 0;
}
/* SIZE OF BOX IN LOGO */
.wrapper .left{
width: 35%;
height: 100%;
padding: 30px;
background: url('../assets/img/bg5.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 0 0 20px ;
}
.wrapper .left img{
width: 100%;
transform: translate(1%,250%);
}
/* FORM GREETINGS */
.wrapper .right h3{
font-size: 2.5rem;
color: #fff3f2;
font-weight: 600;
line-height: 72px;
letter-spacing: 1px;
word-spacing: 2px;
text-align: center;
margin-bottom: 30px;
margin-top: 10px;
}
.wrapper .right .form{
margin-top: 0;
}
/* TITLE OF FORM QUESTIONS */
.wrapper .right .form label{
color: #fff3f2;
letter-spacing: 1px;
margin-top: 3px;
font-weight: 500;
font-size: 14px;
}
/* LOGIN QUESTION TEXT */
.wrapper .right h4{
color: #fff3f2;
padding: 25px;
font-size: small;
letter-spacing: 1px;
word-spacing: 1px;
text-align: center;
}
/* INPUT BOX */
.wrapper .right .input{
width: 100%;
padding: 10px 15px;
border: 5px;
font-size: 13px;
background: #EFF0F2;
}
/* INPUT PLACEHOLDER */
input::placeholder{
color: #838383;
font-size: 13px;
font-weight: 100%;
font-weight: normal;
}
/* FORM ERROR MESSAGES*/
.wrapper .right .text-danger{
font-size: 13px;
padding-bottom:-1.25em;
margin-bottom:-1.25em;
}
/* PASSWORD OR EMAIL ERROR */
.wrapper .right .pass{
font-size: 16px;
margin-top:20px;
margin-bottom:none;
}
/* CREATE ACCOUNT BUTTON */
.wrapper .right .btn{
color: #fff;
text-align: center;
background: #4d0400;
width: 200px;
height: 35px;
letter-spacing:2px;
transform: translate(100%,200%);
}
.wrapper .right .btn:hover{
background-color: #260200;
}
</style>
</head>
<body>
<div class="wrapper">
<!-- LOGO SECTION -->
<div class="left">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</div>
<!-- FORM SECTION -->
<div class="right">
<h3>Verification Code</h3>
<div class="form">
<!-- ALERT MESSAGES FOR SENT EMAIL -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "otpsent"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/otpsent
// welcome = segment(1)
// otpsent - segment(2)
echo '
<div class="alert alert-success">
<span>Kindly check the verification code sent to your email.</span>
</div>';
}
?>
<!-- ERROR MESSAGES FOR UNSENT EMAIL -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "otpnotsent"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/otpnotsent
// welcome = segment(1)
// otpnotsent - segment(2)
echo '
<div class="alert alert-danger">
<span>Verification email was unsuccessfully sent.</span>
</div>';
}
?>
<!-- ALERT FOR INCOMPLETE FORMS -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "otperror"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/otperror
// welcome = segment(1)
// otperror - segment(2)
echo '
<div class="alert alert-danger">
<span>Please fill in all the required fields</span>
</div>';
}
?>
<!-- ALERT FOR WRONG FORMS -->
<?php
// CHECK THE URL IF THERE IS "FAILED FUNCTION" FOUND IN URL : 'Yung Function nasa Controllers/Welcome.php
// HELP RETRIEVE INFORMATION FROM "uri" STRINGS
if($this->uri->segment(2) == "fcode"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/welcome/fcode
// welcome = segment(1)
// fcode - segment(2)
echo '
<div class="alert alert-danger">
<span>Invalid verification code.</span>
</div>';
}
?>
<!-- MAIN FORM -->
<form method="post" autocomplete="off" action="<?=base_url('welcome/otpcode')?>">
<!-- Kung anong input name sa signup, ganun din dapat sa login -->
<div class="row">
<!-- GET EMAIL -->
<div class="mb-3 mt-4">
<label for="exampleInputEmail1" class="form-label">Verification Code</label>
<input
type="password"
placeholder="Enter your verification code"
name="code"
required
oninvalid="this.setCustomValidity('Enter Verification Code Here')"
oninput="this.setCustomValidity('')"
class="form-control"
id="exampleInputEmail1" aria-describedby="emailHelp">
</div>
<!-- LOGIN BUTTON -->
<div class="rounded-0 text-center mb-5 mt-5 pt-5">
<button type="submit" class="btn">Enter</button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,212 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Clikit | Rules and Regulations</title>
<!-- CSS STYLE FOR SIGN UP -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,500;0,600;0,700;1,400&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
list-style: none;
font-family: 'Poppins', sans-serif;
}
body{
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
color: #fff3f2;
}
/* WRAPPER FOR LOGO AND FORM */
.wrapper{
display: flex;
width: 70rem;
height: 570px;
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/* SIZE OF BOX IN FORM */
.wrapper .right{
text-align: justify;
width: 65%;
height: 100%;
padding: 30px;
padding-left: 60px;
padding-right: 60px;
background: url('../assets/img/bg2.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 0 20px 20px 0;
}
/* SIZE OF BOX IN LOGO */
.wrapper .left{
width: 35%;
height: 100%;
padding: 30px;
background: url('../assets/img/bg5.jpg');
background-repeat: no-repeat;
background-size: cover;
border-radius: 20px 0 0 20px ;
}
.wrapper .left img{
width: 100%;
transform: translate(1%,250%);
}
/* FORM GREETINGS */
.wrapper .right h3{
font-size: 2.5rem;
color: #fff3f2;
font-weight: 600;
line-height: 72px;
letter-spacing: 1px;
word-spacing: 2px;
text-align: center;
margin-bottom: 30px;
margin-top: 10px;
}
.wrapper .right .form{
margin-top: 0;
}
/* TITLE OF FORM QUESTIONS */
.wrapper .right .form label{
color: #fff3f2;
letter-spacing: 1px;
margin-top: 3px;
font-weight: 500;
font-size: 14px;
}
/* LOGIN QUESTION TEXT */
.wrapper .right h4{
color: #fff3f2;
padding: 6px;
font-size: small;
letter-spacing: 1px;
word-spacing: 1px;
text-align: center;
}
/* LINK OF LOGIN AND FORGOT PASSWORD */
.wrapper .right .form h4 a{
color: #260200;
margin-top: 0;
font-weight: bold;
font-size: 14px;
text-align: center;
text-decoration: none;
}
/* INPUT BOX */
.wrapper .right .input{
width: 100%;
padding: 10px 15px;
border: 5px;
font-size: 13px;
background: #EFF0F2;
}
/* INPUT PLACEHOLDER */
input::placeholder{
color: #838383;
font-size: 13px;
font-weight: 100%;
font-weight: normal;
}
/* FORM ERROR MESSAGES*/
.wrapper .right .text-danger{
font-size: 13px;
padding-bottom:-1.25em;
margin-bottom:-1.25em;
}
/* PASSWORD OR EMAIL ERROR */
.wrapper .right .pass{
font-size: 16px;
margin-top:20px;
margin-bottom:none;
}
/* CREATE ACCOUNT BUTTON */
.wrapper .right .btn{
color: #fff;
text-align: center;
background: #38cd38;
width: 160px;
height: 35px;
transform: translate(130%,65%);
}
.wrapper .right .btn:hover{
background-color: #0d340d;
}
</style>
</head>
<body>
<div class="wrapper">
<!-- LOGO SECTION -->
<div class="left">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</div>
<!-- FORM SECTION -->
<div class="right">
<h3>Rules and Regulations</h3>
<div class="form">
<!-- MAIN FORM -->
<form method="post" autocomplete="off" action="<?=base_url('welcome/rules')?>">
<!-- Kung anong input name sa signup, ganun din dapat sa login -->
<div class="row">
<div>
<ul>
<li class="mb-1">A. Only Students of Technological University of the Philippines are allowed to use this website. </li>
<li class="mb-1">B. Admin will remove post if: has foul Language, has illicit pictures, suspicious links, has 5 reports or more, it is a spam, & hate speech/bullying.</li>
<li class="mb-1">C. CLIKIT will maintain the confidentiality of all user communications which contain personal user information.</li>
<li class="mb-1">D. Users of CLIKIT pages submit to the jurisdiction of the Philippine courts and the website is governed by Philippine law.</li>
<li class="mb-1">E. When changing your profile picture, kindly log-out then log-in again to observe the corresponding changes.</li>
</ul>
</div>
<div>
<input type="checkbox" id="vehicle1" name="vehicle1" value="Bike" required>
<label for="vehicle1"> I have read and accepted the presented Rules and Regulations.</label>
</div>
<!-- LOGIN BUTTON -->
<div class="rounded-0 text-center mb-5">
<button type="submit" class="btn">Accept</button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,749 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Clikit | Freedom Wall</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
body{
background: url('../assets/img/bg10.jpg');
background-repeat: no-repeat;
background-size: cover;
}
ion-icon{
font-size: 1.5rem;
margin-right: 8px;
}
nav{
display: flex;
align-items: center;
justify-content: space-between;
background: #1E0E0E;
padding: 13px 7%;
position: sticky;
top: 0;
z-index: 100;
margin-bottom: 10px;
}
.nav-left p{
width: 160px;
margin-right: 45px;
color: #efefef;
font-size: 20px;
}
.nav-left, .nav-right{
display: flex;
align-items: center;
}
.nav-user-icon img{
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
}
.nav-user-icon{
margin-left: 30px;
}
.search-box{
background: #efefef;
width: 200px;
border-radius: 20px;
display: flex;
align-items: center;
padding: 0 15px;
margin-bottom: 10px;
height: 30px;
}
.search-box p{
width: 18px;
color: #626262;
}
.search-box input{
font-size: small;
width: 100%;
background: transparent;
padding: 10px;
outline: none;
border: 0;
}
.container{
display: flex;
justify-content: space-between;
padding-top: 15px;
}
.left-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
color: #800;
padding-right: 15px;
}
.right-sidebar{
flex-basis: 25%;
position: sticky;
top: 70px;
align-self: flex-start;
background: url('../assets/img/bg1.jpg');
padding: 20px;
border-radius: 4px;
color: #2C1515;
letter-spacing: 0.5px;
margin-left:10px;
margin-top: 8px;
}
.main-content{
flex-basis: 47%;
}
.imp-links a{
text-decoration: none;
display: flex;
align-items: center;
margin-bottom: 30px;
color: #efefef;
width: fit-content;
}
.imp-links a img{
width: 25px;
height: 25px;
margin-right: 15px;
border-radius: 50%;
}
.imp-links{
border-bottom: 1px solid #ccc;
}
.sidebar-title{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
}
.right-sidebar h4{
color: #59292B;
letter-spacing: 1px;
font-weight: 600;
font-size: 16px;
}
.right-sidebar h3{
color: #3B1C1C;
font-weight: 600;
}
.sidebar-title a{
text-decoration: none;
color: #1876f2;
font-size: 12px;
}
.event{
display: flex;
font-size: 14px;
margin-bottom: 20px;
}
.left-event{
background: white;
border-radius: 10px;
height: 65px;
width: 65px;
margin-right: 15px;
padding-top: 10px;
text-align: center;
position: relative;
overflow: hidden;
box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
}
.event p{
font-size: 12px;
}
.event a{
font-size: 12px;
text-decoration: none;
color: #1876f2;
}
.left-event span{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: #3B1C1C;
color: #F5F5F5;
font-size: 10px;
padding: 4px 0;
}
.sidebar-ads{
width: 100%;
margin-bottom: 20px;
border-radius: 4px;
}
.write-post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 20px;
color: #626262;
}
.user-profile{
display: flex;
align-items: center;
}
.user-profile img{
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 15px;
}
.user-profile p{
margin-bottom: -5px;
font-weight: 500;
color: #626262;
}
.user-profile small{
font-size: 12px;
}
.user-profile label{
padding-right:5px;
padding-bottom:2px;
font-size:13px;
}
.user-profile .status{
color: #626262;
font-size:13px;
border-radius: 5px;
cursor: pointer;
}
.user-profile .status:hover{
background-color:#905152;
}
.user-profile span{
font-size: 13px;
color: #626262;
}
.post-input-container{
padding-left: 55px;
padding-top: 20px;
}
.post-input-container textarea{
width: 95%;
border: 0;
outline: 0;
border-bottom: 1px solid #ccc;
background: transparent;
resize: none;
}
.add-post-links{
display: flex;
margin-top: 10px;
}
.add-post-links ion-icon{
text-decoration: none;
display: flex;
align-items: center;
color: #626262;
margin-right: 4px;
font-size: 18px;
}
.add-post-links p{
text-decoration: none;
display: flex;
align-items: center;
color: #626262;
margin-right: 30px;
font-size: 13px;
}
.add-post-links img{
width: 20px;
margin-right: 10px;
}
.post-container{
width: 100%;
background: #F5F5F5;
border-radius: 6px;
padding: 20px;
color: #626262;
margin: 20px 0;
}
.post-text{
color: #606162;
margin: 15px 0;
font-size: 15px;
}
.post-text span{
color: #626262;
font-weight: 500;
}
.post-text a{
color: #1876f2;
text-decoration: none;
}
.post-img{
width: 100%;
border-radius: 4px;
margin-bottom: 5px;
}
.post-row{
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-icons div img{
width: 18px;
margin-right: 10px;
}
.activity-icons div{
display: inline;
align-items: center;
margin-right: 30px;
}
.post-profile-icon{
display: flex;
align-items: center;
}
.post-profile-icon img{
width: 20px;
border-radius: 50%;
margin-right: 5px;
}
.post-row a{
color: #9a9a9a;
}
.profile{
transform: translateX(-8px);
}
.btn1{
color: white;
background:none;
border-radius:5px 0px 0px 5px;
width: auto;
padding: 3px 10px 3px 10px;
border: none;
}
.btn1:hover{
color: white;
}
.btn2{
color: white;
background:none;
border-radius:0px 5px 5px 0px;
width: auto;
padding: 3px 8px 3px 8px;
border: none;
}
.btn1:hover{
color: white;
}
.dropdown-item:hover{
color:white;
background:#905152;
opacity: 1px;
}
.logo{
text-decoration: none;
}
.logo img{
width: 20%;
}
.btn{
color: #fff;
text-align: center;
background: #4d0400;
width: 450px;
height: 35px;
transform: translateX(-5.5%);
}
.btn:hover{
color: #fff;
background-color: #260200;
}
.btn-group ion-icon{
color: #55504E;
font-size: 20px;
position: absolute;
right: -180px;
top: -30px;
}
.btn-group1{
position: relative;
transform: translateX(900%);
}
.dropdown-menu1{
background-color: rgba(0,0,0,.7);
}
.report-feedback{
font-size: 15px;
background-color: #905152;
border: none;
color: white;
padding: 4px;
}
.report-feedback::placeholder{
color: white;
}
.posting::placeholder{
color: #9a9a9a;
}
.dropdown-menu1 .dropdown-item{
color:white;
}
.btnf{
color: #fff;
text-align: center;
text-decoration: none;
border: none;
background: transparent;
padding: 3px 10px;
}
.btnf:hover{
color:white;
background:#905152;
opacity: 1px;
}
</style>
</head>
<body>
<!-- <?php
// if($this->session->userdata('UserLoginSession')){
// // TRANSFER THE DATA IN UserLoginSession TO $udata
// $udata = $this->session->userdata('UserLoginSession');
// ?>
// PRINT WELCOME WITH USER username
echo 'Welcome'.' '.$udata['username']; -->
<nav>
<div class="nav-left">
<a class="logo" href="<?=base_url('index.php/user')?>">
<img src=<?= base_url('assets/img/DEN-LOGO.png')?>>
</a>
</div>
<div class="nav-right">
<div id="bs-example-navbar-collapse-2">
<div class="btn-group" style="float:right;">
<div class="profile">
<a href=<?php echo base_url('/user');?>>
<?php if($this->session->userdata('image') == ""){
?>
<img src=<?= base_url('assets/img/default_dp.png')?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}else{
?>
<img src=<?= base_url('upload/'.($this->session->userdata('image')))?>
style="height: 35px;
width: 35px;
border-radius: 50%; I
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}
?>
</a>
</div>
<div class="btn-group">
<button type="button" class="btn1"><?php echo $this->session->userdata('username');?></button>
<button type="button" class="btn2 dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="<?=base_url('index.php/user')?>">Go to Freedom Wall</a></li>
<li><a class="dropdown-item" href="<?=base_url('orgs')?>">Go to Organization</a></li>
<li><a class="dropdown-item" href="<?=base_url('orgs/createorg')?>">Create Organization</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('user/editprofile')?>">View Profile</a></li>
<li><a class="dropdown-item" href="<?=base_url('user/editprofile#changepass')?>">Change Password</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="<?=base_url('welcome/logout')?>">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="left-sidebar">
<div class="imp-links mt-3">
<a href="<?=base_url('index.php/user')?>"><ion-icon name="people-circle"></ion-icon>Freedom Wall</a>
<a href="<?=base_url('orgs')?>"><ion-icon name="library"></ion-icon>Organizations</a>
</div>
</div>
<div class="main-content">
<div class="mt-2 mb-2">
<?php
if($this->uri->segment(2) == "reports"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-success">
<span>Report has been delivered.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "reporterror"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-danger">
<span>Report was not delivered.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "feedbacks"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-success">
<span>Bugs / Feedback has been delivered.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "feedbackerror"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-danger">
<span>Bugs / Feedback was not delivered.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "success"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-success">
<span>Organization Form has been delivered.</span>
</div>';
}
?>
<?php
if($this->uri->segment(2) == "failed"){
// base url - http://localhost/cilogin/
// redirect url - http://localhost/cilogin/user/validimage
// user = segment(1)
// validavalidimagetion1 - segment(2)
echo '
<div class="alert alert-danger">
<span>Organization Form was not delivered.</span>
</div>';
}
?>
</div>
<div class="write-post-container">
<form method="post" autocomplete="off" action="<?=base_url('user/post')?>">
<div class="user-profile">
<?php if($this->session->userdata('image') == ""){
?>
<img src=<?= base_url('assets/img/default_dp.png')?>
style="height: 35px;
width: 35px;
border-radius: 50%;
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}else{
?>
<img src=<?= base_url('upload/'.($this->session->userdata('image')))?>
style="height: 35px;
width: 35px;
border-radius: 50%;
display: table-cell;margin: e auto;" alt="Profile image">
<?php
}
?>
<div>
<p><?php echo $this->session->userdata('username');?></p>
<label><input class="status mt-2" type="radio" name="status1" value="public"> Public </input></label>
<label><input class="status" type="radio" name="status1" value="anonymous"> Anonymous</input></label>
</div>
</div>
<div class="post-input-container">
<textarea class="posting" rows="2" name="post" placeholder="What's on your mind, <?php echo $this->session->userdata('username');?>?"></textarea>
<?php
date_default_timezone_set('Asia/Manila');
$datetime = date('Y/m/d H:i:s');
?>
<input type="hidden" name="published_date" value='<?php echo $datetime; ?>'>
<div class="rounded-0 text-center">
<button type="submit" class="btn">Post</button>
</div>
</div>
</form>
</div>
<?php
foreach($data->result() as $row)
{
if($row->status_post == '1'){
?>
<div class="post-container">
<div class="post-row">
<div class="user-profile">
<?php if($row->status1 == 'public')
{
?>
<?php if($row->image == ""){
?>
<img src=<?= base_url('assets/img/default_dp.png')?>>
<?php
}else{
?>
<img src=<?= base_url('upload/'.$row->image)?>>
<?php
}
?>
<?php
}else{
?>
<img src=<?php echo base_url('/assets/img/dp.png');?>>
<?php
}
?>
<div>
<?php if($row->status1 == 'public'){
?>
<p><?php echo $row->username?></p>
<span><?php echo $row->published_date ?></span>
<?php
}else{
?>
<p>anonymous</p>
<span><?php echo $row->published_date ?></span>
<?php
}
?>
<div class="btn-group1 btn-group" >
<button type="button" class="btn2 dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<ion-icon name="ellipsis-vertical"></ion-icon>
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu1 dropdown-menu">
<li><a class="dropdown-item" href="<?=base_url('user/report/'.$row->id.'/'.$row->post_id)?>">Report</a></li>
<li><hr class="dropdown-divider"></li>
<form method="post" autocomplete="off" action="<?=base_url('user/feedback/'.$row->id.'/'.$row->post_id)?>">
<textarea class="report-feedback" rows="2" name="post" placeholder="What's your bugs / feedback about the post, <?php echo $this->session->userdata('username');?>?" required></textarea>
<div class="rounded-0 text-center">
<button type="submit" class="btnf">Send Bugs / Feedback</button>
</div>
</form>
</ul>
</div>
</div>
</div>
<a href="#"><i class="fas fa-ellipsis-v"></i></a>
</div>
<p class="post-text"><?php echo $row->post?></p>
</div>
<?php
}
}
?>
</div>
<div class="right-sidebar">
<div class="sidebar-title">
<h4>Events / Activities</h4>
</div>
<div class="event">
<div class="left-event">
<h3>18</h3>
<span>March</span>
</div>
<div class="right-event">
<h4>Org 1 Event</h4>
<p>Summarized words that fit in a few words</p>
</div>
</div>
<div class="event">
<div class="left-event">
<h3>22</h3>
<span>June</span>
</div>
<div class="right-event">
<h4>Org 2 Event</h4>
<p>Summarized words that fit in a few words</p>
</div>
</div>
<div class="sidebar-title">
<h4>Org Advertisements</h4>
</div>
<img src="images/advertisement.png" class="sidebar-ads">
</div>
</div>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,141 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>C.L.I.K.I.T</title>
<style>
body{
color: #efefef;
font-size: 16px;
text-decoration: none;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background-image: url( <?= base_url() ?>assets/img/bg10.jpg );
background-repeat: no-repeat;
background-size: cover;
}
#wrapper{
max-width: 600px;
margin: auto auto;
padding: 20px;
}
#content{
font-size: 16px;
padding: 25px;
background-color: #292731;
moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-khtml-border-radius: 10px;
border-color: #807575;
border-width: 4px 1px;
border-style: solid;
}
.icon{
padding-top: 15px
}
ion-icon{
font-size: 150px;
color: #AED67A;
}
.button{
display: flex;
justify-content: center;
margin-top: 10px;
padding-top: 15px;
}
.button2{
border: 1px solid #AED67A;
background-color: #344025;
color: #fff;
text-decoration: none;
font-size: 15px;
padding: 10px 20px;
width: 200px;
border-radius: 10px;
letter-spacing:2px;
word-spacing:2px;
}
.button2:hover{
color: #fff;
background-color: #576B3D;
}
/* ERROR */
.icon1 ion-icon{
font-size: 150px;
color: #893333;
}
.button{
display: flex;
justify-content: center;
margin-top: 10px;
padding-top: 15px;
}
.button1{
border: 1px solid #893333;
background-color: #360000;
color: #fff;
text-decoration: none;
font-size: 18px;
padding: 10px 20px;
width: 200px;
border-radius: 10px;
letter-spacing:2px;
word-spacing:2px;
}
.button1:hover{
color: #fff;
background-color: #893333;
}
</style>
</head>
<body>
<?php
if($message === '1'){
?>
<div id="wrapper">
<div id="content">
<center>
<h1 style="font-size: 25px;">Successfully Verified</h1>
<p class="icon"><ion-icon name="shield-checkmark-outline"></ion-icon></p>
<p>You successfully joined your new member</p>
</center>
</div>
</div>
<?php
}
?>
<?php
if($message === '0'){
?>
<div id="wrapper">
<div id="content">
<center>
<h1 style="font-size: 25px;">Invalid Link</h1>
<p class="icon1"><ion-icon name="alert-circle-outline"></ion-icon></p>
<p>You unsuccessfully joined your new member</p>
</center>
</div>
</div>
<?php
}
?>
<?php $this->load->view('endline');?>
</body>
</html>

View File

@ -0,0 +1,89 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome to CodeIgniter</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;
}
#body {
margin: 0 15px 0 15px;
}
p.footer {
text-align: right;
font-size: 11px;
border-top: 1px solid #D0D0D0;
line-height: 32px;
padding: 0 10px 0 10px;
margin: 20px 0 0 0;
}
#container {
margin: 10px;
border: 1px solid #D0D0D0;
box-shadow: 0 0 8px #D0D0D0;
}
</style>
</head>
<body>
<div id="container">
<h1>Welcome to CodeIgniter!</h1>
<div id="body">
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
<p>If you would like to edit this page you'll find it located at:</p>
<code>application/views/welcome_message.php</code>
<p>The corresponding controller for this page is found at:</p>
<code>application/controllers/Welcome.php</code>
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
</div>
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
</div>
</body>
</html>

BIN
assets/img/DEN-LOGO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
assets/img/DEN-LOGO2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
assets/img/bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
assets/img/bg1-logo1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
assets/img/bg1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
assets/img/bg10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
assets/img/bg2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
assets/img/bg3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
assets/img/bg4-logo1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
assets/img/bg4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
assets/img/bg5-logo1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
assets/img/bg5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
assets/img/bg6.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
assets/img/bg8.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
assets/img/bg9.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
assets/img/default_dp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
assets/img/dp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
assets/img/orgs_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

221
ci_login.sql Normal file
View File

@ -0,0 +1,221 @@
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 11, 2022 at 10:43 AM
-- Server version: 10.4.21-MariaDB
-- PHP Version: 8.0.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `ci_login`
--
-- --------------------------------------------------------
--
-- Table structure for table `orgs`
--
CREATE TABLE `orgs` (
`org_id` int(255) NOT NULL,
`orgadmin_id` int(100) NOT NULL,
`org_name` varchar(255) NOT NULL,
`org_president` varchar(255) NOT NULL,
`org_contact` varchar(255) NOT NULL,
`org_about` text NOT NULL,
`org_representative` varchar(255) NOT NULL,
`org_reptupid` varchar(255) NOT NULL,
`org_status` int(1) NOT NULL,
`org_verification_key` varchar(255) NOT NULL,
`org_image` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `orgs`
--
INSERT INTO `orgs` (`org_id`, `orgadmin_id`, `org_name`, `org_president`, `org_contact`, `org_about`, `org_representative`, `org_reptupid`, `org_status`, `org_verification_key`, `org_image`) VALUES
(6, 83, 'Dance Triumph', 'Jersey M. Sodela', 'caballero.aliana@gmail.com', 'This organization is a sample organization for the project', 'Aliana M. Caballero', 'TUPM-18-1234', 1, 'a39262f8e7d8420d459a73ec8878d96a', ''),
(7, 84, 'Youth Discipleship', 'who called I AM', 'jerseymadrenian19@gmail.com', 'This other organization is a sample org', 'Jersey M. Sodela', 'TUPM-14-1234', 1, '220921f588100016a6665cb1402582b0', '');
-- --------------------------------------------------------
--
-- Table structure for table `orgs_posts`
--
CREATE TABLE `orgs_posts` (
`orgpost_id` int(255) NOT NULL,
`orgpadmin_id` int(255) NOT NULL,
`org_post` text NOT NULL,
`org_published_date` datetime NOT NULL,
`org_postimage` varchar(255) NOT NULL,
`org_status` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `orgs_posts`
--
INSERT INTO `orgs_posts` (`orgpost_id`, `orgpadmin_id`, `org_post`, `org_published_date`, `org_postimage`, `org_status`) VALUES
(12, 83, 'This Announcement is for sample test only', '2022-01-21 14:02:28', '', 1),
(13, 83, 'This Post is for sample test only\r\n', '2022-01-21 14:02:59', '', 2),
(15, 84, 'This post is for sample test only\r\n', '2022-01-21 14:18:55', '', 2),
(16, 84, 'This announcement is for sample test only\r\n', '2022-01-21 14:19:14', '', 1),
(17, 83, 'This Second Announcement is for sample test only', '2022-01-27 13:51:27', '', 1),
(20, 83, 'Another sample post for the test', '2022-01-27 13:58:00', '', 2);
-- --------------------------------------------------------
--
-- Table structure for table `org_member`
--
CREATE TABLE `org_member` (
`id` int(11) NOT NULL,
`orgm_id` int(255) NOT NULL,
`orgmember_id` int(255) NOT NULL,
`orgmember_fullname` varchar(5000) NOT NULL,
`orgmember_section` varchar(100) NOT NULL,
`orgmember_college` varchar(255) NOT NULL,
`orgmember_status` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE `posts` (
`post_id` int(100) NOT NULL,
`id` int(100) NOT NULL,
`post` text NOT NULL,
`published_date` datetime NOT NULL,
`status_post` int(1) NOT NULL,
`status1` varchar(255) NOT NULL,
`report` int(1) NOT NULL,
`feedback` longtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `posts`
--
INSERT INTO `posts` (`post_id`, `id`, `post`, `published_date`, `status_post`, `status1`, `report`, `feedback`) VALUES
(24, 83, 'Be sure the content you\'re writing for your post is valuable and will connect with your audience.', '2022-01-21 13:28:28', 1, 'public', 0, ''),
(26, 83, 'Sample post from no one', '2022-01-27 14:11:03', 0, 'anonymous', 0, ''),
(27, 83, 'Literally No one', '2022-01-27 14:12:45', 1, 'anonymous', 0, '');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`fullname` varchar(250) NOT NULL,
`username` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`status` varchar(50) NOT NULL,
`verification_key` varchar(250) NOT NULL,
`is_email_verified` enum('no','yes') NOT NULL,
`rules_regulations` int(1) NOT NULL,
`code_verification` varchar(10) NOT NULL,
`image` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `fullname`, `username`, `email`, `password`, `status`, `verification_key`, `is_email_verified`, `rules_regulations`, `code_verification`, `image`) VALUES
(79, 'admin', 'ADMIN01', 'clikitstuff@gmail.com', 'afe3ffbfccb0470513dbf3411f7002e6dac1f378', '1', '9db7798fa3adcbebe2e88d7d82537dcf', 'yes', 1, '', 'logo.jpg'),
(83, 'Aliana M. Caballero', 'ooo', 'aliana.caballero@gmail.com', '679da235956418c84f0bd9966ff40fd84bd535ba', '0', '8ae142b0b05ccd2d9ec0c0428c5f3e37', 'yes', 1, '', 'aliana_-_square3.jpg'),
(84, 'Jersey M. Sodela', 'Aye', 'jerseymadrenian19@gmail.com', 'cea1ade0db5049af570ae297422c14e9e688281b', '0', 'c4f54cdbc096360f1d8c94e9485a859c', 'yes', 1, '', 'aliana.jpg');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `orgs`
--
ALTER TABLE `orgs`
ADD PRIMARY KEY (`org_id`);
--
-- Indexes for table `orgs_posts`
--
ALTER TABLE `orgs_posts`
ADD PRIMARY KEY (`orgpost_id`);
--
-- Indexes for table `org_member`
--
ALTER TABLE `org_member`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`post_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `orgs`
--
ALTER TABLE `orgs`
MODIFY `org_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `orgs_posts`
--
ALTER TABLE `orgs_posts`
MODIFY `orgpost_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `org_member`
--
ALTER TABLE `org_member`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
MODIFY `post_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=110;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Some files were not shown because too many files have changed in this diff Show More