Commit f78020df by Jansa Jose

initial commit

parent 3ce6fc3d

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
\ No newline at end of file
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>
\ No newline at end of file
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the framework as light-weight as possible only the
| absolute minimal resources are loaded by default. For example,
| the database is not connected to automatically since no assumption
| is made regarding whether you intend to use it. This file lets
| you globally define which systems you would like loaded with every
| request.
|
| -------------------------------------------------------------------
| Instructions
| -------------------------------------------------------------------
|
| These are the things you can load automatically:
|
| 1. Packages
| 2. Libraries
| 3. Drivers
| 4. Helper files
| 5. Custom config files
| 6. Language files
| 7. Models
|
*/
/*
| -------------------------------------------------------------------
| Auto-load Packages
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/
$autoload['packages'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in system/libraries/ or your
| application/libraries/ directory, with the addition of the
| 'database' library, which is somewhat of a special case.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'email', 'session');
|
| You can also supply an alternative library name to be assigned
| in the controller:
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/
$autoload['libraries'] = array('database', 'session');
/*
| -------------------------------------------------------------------
| 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');
*/
$autoload['drivers'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
*/
$autoload['helper'] = array('url','pis','bookmydoc','general_helper','access');
/*
| -------------------------------------------------------------------
| 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();
<?php defined("BASEPATH") OR exit("No direct script access allowed");
$config["base_url"] = "http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["SCRIPT_NAME"]);
$config["index_page"] = "index.php";
$config["uri_protocol"] = "REQUEST_URI";
$config["url_suffix"] = " ";
$config["language"] = "english";
$config["charset"] = "UTF-8";
$config["enable_hooks"] = FALSE;
$config["subclass_prefix"] = "MY_";
$config["composer_autoload"] = FALSE;
$config["permitted_uri_chars"] = "a-z 0-9~%.:_\-";
$config["allow_get_array"] = TRUE;
$config["enable_query_strings"] = FALSE;
$config["controller_trigger"] = "c";
$config["function_trigger"] = "m";
$config["directory_trigger"] = "d";
$config["log_threshold"] = 0;
$config["log_path"] = "";
$config["log_file_extension"] = "";
$config["log_file_permissions"] = 0644;
$config["log_date_format"] = "Y-m-d H:i:s";
$config["error_views_path"] = "";
$config["cache_path"] = "";
$config["cache_query_string"] = FALSE;
$config["encryption_key"] = "";
$config["sess_driver"] = "files";
$config["sess_cookie_name"] = "ci_session";
$config["sess_expiration"] = 7200;
$config['sess_save_path'] = sys_get_temp_dir();
$config["sess_match_ip"] = FALSE;
$config["sess_time_to_update"] = 300;
$config["sess_regenerate_destroy"] = FALSE;
$config["cookie_prefix"] = "";
$config["cookie_domain"] = "";
$config["cookie_path"] = "/";
$config["cookie_secure"] = FALSE;
$config["cookie_httponly"] = FALSE;
$config["standardize_newlines"] = FALSE;
$config["global_xss_filtering"] = FALSE;
$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();
$config["compress_output"] = FALSE;
$config["time_reference"] = "local";
$config["rewrite_short_tags"] = FALSE;
$config["proxy_ips"] = "";
$config["theme_color"] = "skin-blue";
<?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_DESCTRUCTIVE') 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
<?php defined("BASEPATH") OR exit("No direct script access allowed");$active_group = "default";
$query_builder = TRUE;
$db["default"] = array("dsn" => "",
"hostname" => "192.168.140.123",
"username" => "root" ,
"password" => "Golden_123",
"database" => "jensa_joyride",
"dbdriver" => "mysqli",
"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);
\ No newline at end of file
<?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">'
);
<?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',
'/Ķ|Κ|К/' => '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',
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
'/ź|ż|ž|ζ|з/' => 'z',
'/Æ|Ǽ/' => 'AE',
'/ß/' => 'ss',
'/IJ/' => 'IJ',
'/ij/' => 'ij',
'/Œ/' => 'OE',
'/ƒ/' => 'f',
'/ξ/' => 'ks',
'/π/' => 'p',
'/β/' => 'v',
'/μ/' => 'm',
'/ψ/' => 'ps',
'/Ё/' => 'Yo',
'/ё/' => 'yo',
'/Є/' => 'Ye',
'/є/' => 'ye',
'/Ї/' => 'Yi',
'/Ж/' => 'Zh',
'/ж/' => 'zh',
'/Х/' => 'Kh',
'/х/' => 'kh',
'/Ц/' => 'Ts',
'/ц/' => 'ts',
'/Ч/' => 'Ch',
'/ч/' => 'ch',
'/Ш/' => 'Sh',
'/ш/' => 'sh',
'/Щ/' => 'Shch',
'/щ/' => 'shch',
'/Ъ|ъ|Ь|ь/' => '',
'/Ю/' => 'Yu',
'/ю/' => 'yu',
'/Я/' => 'Ya',
'/я/' => 'ya'
);
<?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:
|
| http://codeigniter.com/user_guide/general/hooks.html
|
*/
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Memcached settings
| -------------------------------------------------------------------------
| Your Memcached servers can be specified below.
|
| See: http://codeigniter.com/user_guide/libraries/caching.html#memcached
|
*/
$config = array(
'default' => array(
'hostname' => '127.0.0.1',
'port' => '11211',
'weight' => '1',
),
);
<?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/';
<?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'),
'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' => 'video/mp4',
'webm' => 'video/webm',
'aac' => 'audio/x-acc',
'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' => 'audio/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',
'7zip' => array('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')
);
<?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:
|
| http://codeigniter.com/user_guide/general/profiling.html
|
*/
<?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:
|
| http://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'] = 'login';
$route['404_override'] = 'Welcome/error_404';
$route['translate_uri_dashes'] = FALSE;
<?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:
| http://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')
);
<?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' => 'Spartan',
'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',
'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',
// 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'
);
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Admin_detailsview extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Admin_model');
$this->load->helper('access');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function Admin_change_password(){
$template['page'] = 'Viewadmindetails/View-admin-profile';
$template['page_title'] = "View Admin profile";
$id = $this->session->userdata('logged_in')['id'];
if(isset($_POST) and !empty($_POST)) {
if(isset($_POST['reset_pwd'])) {
$data = $_POST;
if($data['n_password'] !== $data['c_password']) {
$this->session->set_flashdata('message', array('message' => 'Password doesn\'t match', 'title' => 'Error !', 'class' => 'danger'));
redirect(base_url().'Admin_detailsview/Admin_profile_view');
}
else {
unset($data['c_password']);
$result = $this->Admin_model->update_admin_passwords($data, $id);
if($result) {
if($result === "notexist") {
$this->session->set_flashdata('message', array('message' => 'Invalid Password', 'title' => 'Warning !', 'class' => 'warning'));
redirect(base_url().'Admin_detailsview/Admin_profile_view');
}
else {
$this->session->set_flashdata('message', array('message' => 'Password updated successfully', 'title' => 'Success !', 'class' => 'success'));
redirect(base_url().'Admin_detailsview/Admin_profile_view');
}
}
else {
$this->session->set_flashdata('message', array('message' => 'Sorry, Error Occurred', 'title' => 'Error !', 'class' => 'danger'));
redirect(base_url().'Admin_detailsview/Admin_profile_view');
}
}
}
}
$this->load->view('template', $template);
}
public function Admin_profile_view() {
$template['page'] = 'Viewadmindetails/View-admin-profile';
$template['page_title'] = "View Admin profile";
$id = $this->session->userdata('logged_in')['id'];
if(isset($_POST['picturechecker']) && !empty($_POST['picturechecker'])){
if(isset($_FILES['profile_picture'])) {
$config = set_upload_profilepic('assets/uploads/profile_pic/admin');
$this->load->library('upload');
$new_name = time()."_".$_FILES["profile_picture"]['name'];
$config['file_name'] = $new_name;
$this->upload->initialize($config);
if ( ! $this->upload->do_upload('profile_picture')) {
unset($data['profile_picture']);
}
else{
$upload_data = $this->upload->data();
$data['username'] = $this->session->userdata('logged_in')['username'];
$data['profile_picture'] =$config['upload_path']."/".$upload_data['file_name'];
if($id == $this->session->userdata('logged_in')['id']) {
$this->session->set_userdata('profile_picture',$data['profile_picture']);
}
}
$result = $this->Admin_model->update_admin_profile($data, $id);
}
}
$template['data'] = $this->Admin_model->get_admin_profile_details($id);
$this->load->view('template', $template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Adminuser extends CI_Controller
{
public function __construct()
{
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Adminuser_model');
$this->load->model('Role_model');
$this->load->helper('access');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function index(){
$template['page'] = 'Adminusers/viewuser';
$template['page_title'] = "Create Users";
$template['data'] = $this->Adminuser_model->get_allusers();
$this->load->view('template', $template);
}
public function create_user()
{
if(isset($_POST) && !empty($_POST)){
$data = $_POST;
if(!empty($_FILES)) {
//$data=$_POST;die;
$fileName =$_FILES['file']['name'];
$fileName = str_replace('%','a',$fileName);
$fileName = 'joyride'.'_'.time().".".$fileName;
$config = set_upload_options('./assets/uploads/profile_pic/');
$config['file_name'] = $fileName;
$this->load->library('upload', $config);
if (!$this->upload->do_upload('file')) {
$error = array('error' => $this->upload->display_errors('', ''));
$res = array(
"status"=> "error",
"error"=> "Upload Error",
"message"=> "Sorry! Promocode Image not uploaded".$error['error']
);
}
else {
$imagedata = $this->upload->data();
$data['profile_picture']= '/assets/uploads/profile_pic/'.$imagedata['file_name'];
}
}
$result = $this->Adminuser_model->insert_user($data);
if($result){
$this->session->set_flashdata('message', array('message' => 'Adminuser added successfully','class' => 'success'));
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry, Not Added','class' => 'danger'));
}
}
$template['page'] = 'Adminusers/adduser';
$template['page_title'] = "Create Users";
$template['data'] = $this->Role_model->get_allroles();
$template['data1'] = $this->Adminuser_model->get_allusers();
$this->load->view('template', $template);
}
public function edit_user($id){
$template['data1'] = $this->Adminuser_model->get_users_by_id($id);
if(isset($_POST) && !empty($_POST)){
$data = $_POST;
if(!empty($_FILES)) {
$fileName =$_FILES['file']['name'];
$fileName = str_replace('%','a',$fileName);
$fileName = 'joyride'.'_'.time().".".$fileName;
$config = set_upload_options('./assets/uploads/profile_pic/');
$config['file_name'] = $fileName;
$this->load->library('upload', $config);
if (!$this->upload->do_upload('file')) {
$error = array('error' => $this->upload->display_errors('', ''));
$res = array(
"status"=> "error",
"error"=> "Upload Error",
"message"=> "Sorry! Promocode Image not uploaded".$error['error']
);
}
else {
$imagedata = $this->upload->data();
$data['profile_picture']= '/assets/uploads/profile_pic/'.$imagedata['file_name'];
}
}else{
$data['profile_picture'] = $template['data1']->profile_picture;
}
$result = $this->Adminuser_model->edit_user($data,$id);
if($result){
$this->session->set_flashdata('message', array('message' => 'Adminuser Edited successfully','class' => 'success'));
redirect(base_url() . 'Adminuser/create_user');
}else{
$this->session->set_flashdata('message', array('message' => 'Adminuser is not Edited successfully','class' => 'danger'));
redirect(base_url() . 'Adminuser/create_user');
}
}
$template['page'] = 'Adminusers/edituser';
$template['page_title'] = "Edit Users";
$template['data'] = $this->Role_model->get_allroles();
$this->load->view('template', $template);
}
public function delete_user($id){
$result = $this->Adminuser_model->delete_user($id);
if($result){
$this->session->set_flashdata('message', array('message' => 'User Deleted successfully','class' => 'success'));
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry Users Not Deleted','class' => 'danger'));
}
redirect(base_url() . 'Adminuser/create_user');
}
public function role_manage($id){
// echo "dfgd";exit();
// $this->session->userdata('admin'));exit();
if($this->session->userdata('admin') == 1){
$template['page'] = "Adminusers/role_management";
$template['page_title'] = "Add role";
$newarray = array();
$template['access'] = $this->Adminuser_model->get_access($id);
$rs = $this->Adminuser_model->get_details();
foreach ($rs as $row) {
$result = $this->Adminuser_model->get_functions($row->id);
$row->functions = $result;
$newarray[] = $row;
}
$template['newarray'] = $newarray;
$this->load->view('template', $template);
}
}
public function update_role(){
$data = $_POST;
$id = $data['id'];
unset($data['id']);
$new =array();
$newarray = array();
foreach ($data as $rs) {
$var = implode(',',$rs);
$new[] = $var;
}
foreach ($new as $value) {
$neww = implode(',',$new);
$newarray = $neww;
}
if(empty($newarray)):
$newarray = NULL;
endif;
// $newarray);
$role = $this->Adminuser_model->update_role($newarray,$id);
echo $role;
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Booking extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Booking_model');
$this->load->helper('access');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function view_allbooking(){
$template['page'] = "Booking/view-allbooking";
$template['page_title'] = "Booking Details";
$template['data'] = $this->Booking_model->get_allbooking();
$this->load->view('template',$template);
}
public function all_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Booking_model->view_popup_all($id);
$this->load->view('Booking/allbooking-view-popup',$template);
}
// public function view_completedbooking(){
// $template['page'] = "Booking/view-completedbooking";
// $template['page_title'] = "Booking Details";
// $template['data'] = $this->Booking_model->get_completedbooking();
// $this->load->view('template',$template);
// }
// public function completed_viewpopup() {
// $id=$_POST['patientdetailsval'];
// $template['data'] = $this->Booking_model->view_popup_completed($id);
// $this->load->view('Booking/completedbooking-view-popup',$template);
// }
public function view_completedbooking(){
$template['page'] = "Booking/view-completedbooking";
$template['page_title'] = "Booking Details";
$template['data'] = $this->Booking_model->get_completedbooking();
$this->load->view('template',$template);
}
public function completed_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Booking_model->view_popup_completed($id);
$this->load->view('Booking/completedbooking-view-popup',$template);
}
public function view_cancelledbooking(){
$template['page'] = "Booking/view-cancelledbooking";
$template['page_title'] = "Booking Details";
$template['data'] = $this->Booking_model->get_cancelleddbooking();
$this->load->view('template',$template);
}
public function cancelled_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Booking_model->view_popup_cancelled($id);
$this->load->view('Booking/cancelledbooking-view-popup',$template);
}
public function view_onprocessbooking(){
$template['page'] = "Booking/view-onprocessbooking";
$template['page_title'] = "Booking Details";
$template['data'] = $this->Booking_model->get_onprocessdbooking();
$this->load->view('template',$template);
}
public function onprocess_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Booking_model->view_popup_onprocess($id);
$this->load->view('Booking/onprocessbooking-view-popup',$template);
}
public function view_approvedbooking(){
$template['page'] = "Booking/view-approvedbooking";
$template['page_title'] = "Booking Details";
$template['data'] = $this->Booking_model->get_approveddbooking();
$this->load->view('template',$template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Cars extends CI_Controller
{
public function __construct()
{
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Cars_model');
$this->load->helper('access');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function save_carmake()
{
$template['page'] = 'Cars/add-cars';
$template['page_title'] = "Create Cars";
if ($_POST) {
$data = $_POST;
unset($data['submit']);
$result = $this->Cars_model->save_carmake($data);
if ($result == "Exist") {
$this->session->set_flashdata('message', array(
'message' => 'Car already Exist',
'class' => 'danger'
));
} else {
$this->session->set_flashdata('message', array(
'message' => 'Car added successfully',
'class' => 'success'
));
}
redirect(base_url() . 'Cars/save_carmake');
} else {
$template['data'] = $this->Cars_model->get_allcars();
$this->load->view('template', $template);
}
}
public function delete_car()
{
$id = $this->uri->segment(3);
$result = $this->Cars_model->car_delete($id);
$this->session->set_flashdata('message', array(
'message' => 'Requested Car Deleted Successfully',
'class' => 'success'
));
redirect(base_url() . 'Cars/save_carmake');
}
public function edit_carmake($id){
if($id != ''){
$template['datas'] = $this->Cars_model->get_carmake_byid($id);
if(isset($_POST) && !empty($_POST)){
$data = $_POST;
$result = $this->Cars_model->edit_carmake($data,$id);
if($result){
$this->session->set_flashdata('message', array('message' => 'Requested Car Edited Successfully','class' => 'success'));
redirect(base_url() . 'Cars/save_carmake');
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry Requested Car is not deleted','class' => 'danger'));
redirect(base_url() . 'Cars/save_carmake');
}
}
}
$template['page'] = 'Cars/add-cars';
$template['page_title'] = "Edit Cars";
$template['data'] = $this->Cars_model->get_allcars();
$this->load->view('template', $template);
}
public function save_carcolor()
{
$template['page'] = 'Cars/add-color';
$template['page_title'] = "Create CarColor";
if ($_POST) {
$data = $_POST;
unset($data['submit']);
$result = $this->Cars_model->save_carcolor($data);
if ($result == "Exist") {
$this->session->set_flashdata('message', array(
'message' => 'CarColor already Exist',
'class' => 'danger'
));
} else {
$this->session->set_flashdata('message', array(
'message' => 'CarColor added successfully',
'class' => 'success'
));
}
redirect(base_url() . 'Cars/save_carcolor');
} else {
$template['data'] = $this->Cars_model->get_allcarcolor();
$this->load->view('template', $template);
}
}
public function edit_carcolor($id){
if($id != ''){
$template['datas'] = $this->Cars_model->get_carcolor_byid($id);
if(isset($_POST) && !empty($_POST)){
$data = $_POST;
$result = $this->Cars_model->edit_carcolor($data,$id);
if($result){
$this->session->set_flashdata('message', array( 'message' => 'Requested CarColor Edited Successfully','class' => 'success'));
redirect(base_url() . 'Cars/save_carcolor');
}else{
$this->session->set_flashdata('message', array( 'message' => 'Requested CarColor not Edited','class' => 'danger'));
redirect(base_url() . 'Cars/save_carcolor');
}
}
}
$template['page'] = 'Cars/add-color';
$template['page_title'] = "Edit CarColor";
$template['data'] = $this->Cars_model->get_allcarcolor();
$this->load->view('template', $template);
}
public function save_cartype()
{
$template['page'] = 'Cars/add-type';
$template['page_title'] = "Create CarType";
if ($_POST) {
$data = $_POST;
unset($data['submit']);
$result = $this->Cars_model->save_cartype($data);
if ($result == "Exist") {
$this->session->set_flashdata('message', array(
'message' => 'CarType already Exist',
'class' => 'danger'
));
} else {
$this->session->set_flashdata('message', array(
'message' => 'CarType added successfully',
'class' => 'success'
));
}
redirect(base_url() . 'Cars/save_cartype');
} else {
$template['data'] = $this->Cars_model->get_allcartype();
$this->load->view('template', $template);
}
}
public function edit_cartype($id){
if($id != ''){
$template['datas'] = $this->Cars_model->get_cartype_byid($id);
if(isset($_POST) && !empty($_POST)){
$data = $_POST;
$result = $this->Cars_model->edit_cartype($data,$id);
if($result){
$this->session->set_flashdata('message', array('message' => 'Requested CarType Edited successfully','class' => 'success'));
redirect(base_url() . 'Cars/save_cartype');
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry, Requested Cartype is not Edited','class' => 'danger'));
redirect(base_url() . 'Cars/save_cartype');
}
}
}
$template['page'] = 'Cars/add-type';
$template['page_title'] = "Edit CarType";
$template['data'] = $this->Cars_model->get_allcartype();
$this->load->view('template', $template);
}
public function delete_cartype()
{
$id = $this->uri->segment(3);
$result = $this->Cars_model->cartype_delete($id);
$this->session->set_flashdata('message', array(
'message' => 'Requested CarType Deleted Successfully',
'class' => 'success'
));
redirect(base_url() . 'Cars/save_cartype');
}
public function delete_carcolor()
{
$id = $this->uri->segment(3);
$result = $this->Cars_model->carcolor_delete($id);
$this->session->set_flashdata('message', array(
'message' => 'Requested CarColor Deleted Successfully',
'class' => 'success'
));
redirect(base_url() . 'Cars/save_carcolor');
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Cms extends CI_Controller
{
public function __construct()
{
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Cms_model');
$this->load->helper('access');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function save_help()
{
$template['page'] = 'Cms/add-help';
$template['page_title'] = "Create Help";
if ($_POST) {
$data = $_POST;
// $data);
unset($data['submit']);
$result = $this->Cms_model->save_help($data);
//redirect(base_url().'cms/view_promocode');
} else {
$this->load->view('template', $template);
}
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Cmspage extends CI_Controller
{
public function __construct()
{
parent::__construct();
$userdata = $this->session->userdata('userdata');
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Cmspage_model');
$this->load->helper('access');
$this->load->library('image_lib');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
//Add Settings
public function index()
{
$template['page'] = 'Cmspage/add-help';
$template['page_title'] = 'Add Settings';
if ($_POST) {
$data = $_POST;
unset($data['submit']);
$result = $this->Cmspage_model->update_help($data);
if ($result) {
/* Set success message */
$this->session->set_flashdata('message', array(
'message' => 'Add Hep Details Updated successfully',
'class' => 'success'
));
}
else {
/* Set error message */
$this->session->set_flashdata('message', array(
'message' => 'Error',
'class' => 'error'
));
}
}
$resulttitles = $this->Cmspage_model->help_viewing();
$sessing_arrays = array(
'help' => $resulttitles->help
);
$this->session->set_userdata('help', $sessing_arrays);
$template['result'] = $this->Cmspage_model->help_viewing();
$this->load->view('template', $template);
}
public function terms()
{
$template['page'] = 'Cmspage/add-terms';
$template['page_title'] = 'Add Terms';
if ($_POST) {
$data = $_POST;
unset($data['submit']);
/* Save category details */
//$template['data'] = $this->Cmspage_model->terms_viewing();
$result = $this->Cmspage_model->update_terms($data);
if ($result) {
/* Set success message */
$this->session->set_flashdata('message', array(
'message' => 'Add Terms Details Updated successfully',
'class' => 'success'
));
}
else {
/* Set error message */
$this->session->set_flashdata('message', array(
'message' => 'Error',
'class' => 'error'
));
}
}
$resulttitles = $this->Cmspage_model->terms_viewing();
$sessing_arrays = array(
'terms' => $resulttitles->conditions
);
$this->session->set_userdata('terms', $sessing_arrays);
$template['result'] = $this->Cmspage_model->terms_viewing();
$this->load->view('template', $template);
}
public function privacy()
{
$template['page'] = 'Cmspage/add-privacy';
$template['page_title'] = 'Add Privacy';
if ($_POST) {
$data = $_POST;
unset($data['submit']);
/* Save category details */
$result = $this->Cmspage_model->update_privacy($data);
if ($result) {
/* Set success message */
$this->session->set_flashdata('message', array(
'message' => 'Add privacy Details Updated successfully',
'class' => 'success'
));
}
else {
/* Set error message */
$this->session->set_flashdata('message', array(
'message' => 'Error',
'class' => 'error'
));
}
}
$resulttitles = $this->Cmspage_model->privacy_viewing();
$sessing_arrays = array(
'privacy' => $resulttitles->privacy
);
$this->session->set_userdata('privacy', $sessing_arrays);
$template['result'] = $this->Cmspage_model->privacy_viewing();
$this->load->view('template', $template);
}
public function license()
{
$template['page'] = 'Cmspage/add-license';
$template['page_title'] = 'Add License';
if ($_POST) {
$data = $_POST;
unset($data['submit']);
/* Save category details */
$result = $this->Cmspage_model->update_license($data);
if ($result) {
/* Set success message */
$this->session->set_flashdata('message', array(
'message' => 'License Details Updated successfully',
'class' => 'success'
));
}
else {
/* Set error message */
$this->session->set_flashdata('message', array(
'message' => 'Error',
'class' => 'error'
));
}
}
$resulttitles = $this->Cmspage_model->license_viewing();
// $sessing_arrays = array(
// 'license' => $resulttitles->license
// );
//$this->session->set_userdata('license', $sessing_arrays);
$template['result'] = $this->Cmspage_model->license_viewing();
$this->load->view('template', $template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Cms extends CI_Controller {
public function __construct(){
parent:: __construct();
$userdata = $this->session->userdata('userdata');
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Settings_model');
$this->load->library('image_lib');
$this->load->helper('access');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
//Add Settings
public function index()
{
$template['page'] = 'Settings/add-settings';
$template['page_title'] = 'Add Settings';
// $template['perm'] = $this->perm;
//$template['main'] = $this->info->menu_name;
// $template['sub'] = $this->info->fun_menu;
// $id = $this->session->userdata('logged_in')['id'];
if($_POST){
$data = $_POST;
//array_walk($data, "remove_html");
unset($data['submit']);
if(isset($_FILES['logo'])) {
//$config = set_upload_logo('assets/uploads/logo');
$this->load->library('upload');
$new_name = time()."_".$_FILES["logo"]['name'];
$config['file_name'] = $new_name;
$this->upload->initialize($config);
if ( ! $this->upload->do_upload('logo')) {
unset($data['logo']);
}
else {
$upload_data = $this->upload->data();
//$data['logo'] = $config['upload_path']."/".$upload_data['file_name'];
$data['logo'] = base_url().$config['upload_path']."/".$upload_data['file_name'];
}
}
/* Save category details */
$result = $this->Settings_model->update_settings($data);
if($result) {
/* Set success message */
$this->session->set_flashdata('message',array('message' => 'Add Settings Details Updated successfully','class' => 'success'));
}
else {
/* Set error message */
$this->session->set_flashdata('message', array('message' => 'Error','class' => 'error'));
}
}
$resulttitles = $this->Settings_model->settings_viewing();
$sessing_arrays = array(
'title' => $resulttitles->title
);
$this->session->set_userdata('title', $sessing_arrays);
//redirect(base_url().'Business_information/add_Businessinformation');
$template['result'] = $this->Settings_model->settings_viewing();
$this->load->view('template',$template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
// For Amazon Simple Email Service
// Begin
/*use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'C:/Workspace/phpmailer/vendor/autoload.php';
echo "sdfs";exit();*/
// end
class Customer extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Customer_model');
$this->load->helper('access');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function test2(){
$data = '{"name":"Anju","email":"anju.techware@gmail.com","message" :"Hi Team"}';
$this->load->library('email');
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://in-v3.mailjet.com',
'smtp_port' => 465,
'smtp_user' => '5e7ae616f1b582180ca64a4d23c159eb', // change it to yours
'smtp_pass' => '0961ab46deb93945831967ca63ba0438', // change it to yours
'smtp_timeout'=>30,
'mailtype' => 'html',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE,
'newline' => '\r\n'
);
$this->email->initialize($config);// add this line
$subject = 'New Mail';
$name= $data->name;
$mailTemplate=$data->message;
$name = 'sadasdasd';
$to = 'anju.techware@gmail.com';
$subject = 'asdsadasd';
$mailTemplate = 'test message';
//$this->email->set_newline("\r\n");
$this->email->from('mail@mailjet.com', $name);
$this->email->to($to);
$this->email->subject($subject);
$this->email->message($mailTemplate);
echo $this->email->send();
// $this->email->_response_code); //200 success
$this->email->print_debugger());
}
public function mytest(){
$mail = new PHPMailer(true);
try {
//Server settings
$mail->SMTPDebug = 2;
$mail->isSMTP();
$mail->Host = 'email-smtp.eu-west-1.amazonaws.com';
$mail->SMTPAuth = true;
$mail->Username = 'AKIAJSARUYNQ6JILLDEA';
$mail->Password = 'AlGnHXKNoQRCrIqZzXUzdRPR94ENkLO3TXfSqIKBlpSA';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
//Recipients
$mail->setFrom('nyhasinas@gmail.com', 'Ipakkie Mailer');
// $mail->addAddress('rilakely@yahoo.com', 'Rila User'); // Add a recipient
$mail->addAddress('anju.techware@gmail.com', 'Anju User');
//Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject11';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$mail->send();
//echo 'Message has been sent';
//echo $mail->send();
$mail->print_debugger());
} catch (Exception $e) {
echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;
}
}
public function view_customer(){
$template['page'] = "Customer/view-customers";
$template['page_title'] = "Customer Details";
$template['data'] = $this->Customer_model->get_customer();
//$template['verification']= $this->Customer_model->get_verification();
$this->load->view('template',$template);
}
public function edit_customer() {
$template['page'] = 'Customer/edit-customer';
$template['page_title'] = "Edit Customer";
$id = $this->uri->segment(3);
$template['data'] = $this->Customer_model->get_single_customer($id);
if(!empty($template['data'])) {
if($_POST) {
$data = $_POST;
unset($data['submit']);
// if(isset($_FILES['image'])) {
// $config = $this->set_upload_options();
// $this->load->library('upload');
// $this->upload->initialize($config);
// if ( ! $this->upload->do_upload('image')) {
// unset($data['image']);
// }
// else {
// //$data['image'] = base_url().$config['upload_path']."/".$_FILES['image']['name'];
// $upload_data = $this->upload->data();
// $data['image'] = base_url().$config['upload_path']."/".$upload_data['file_name'];
// }
// }
//$data['created_user'] = $this->session->userdata('logged_in')['id'];
$result = $this->Customer_model->update_customer($data, $id);
// array_walk($data, "remove_html");
$this->session->set_flashdata('message', array('message' => 'Customer Updated Successfully','class' => 'success'));
redirect(base_url().'customer/view_customer');
}
else {
$this->load->view('template', $template);
}
}
}
public function delete_customer(){
$id = $this->uri->segment(3);
$result= $this->Customer_model->customer_delete($id);
$this->session->set_flashdata('message', array('message' => 'Requested Customer Deleted Successfully','class' => 'success'));
redirect(base_url().'Customer/view_customer');
}
public function customer_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Customer_model->view_popup_customer($id);
$this->load->view('Customer/customer-view-popup',$template);
}
public function upload_goverment(){
$id = $this->uri->segment(3);
$template['page'] = 'Customer/upload_govt_id';
$template['page_title'] = "view offers";
if(isset($_POST)){
if(!empty($_POST)){
$data = $_POST;
// $data);exit();
if(!empty($_FILES)) {
//$data=$_POST;die;
$fileName =$_FILES['file']['name'];
$fileName = str_replace('%','a',$fileName);
$fileName = 'joyride'.'_'.time().".".$fileName;
$config = set_upload_options('./assets/uploads/profile_pic/');
$config['file_name'] = $fileName;
$this->load->library('upload', $config);
if (!$this->upload->do_upload('file')) {
$error = array('error' => $this->upload->display_errors('', ''));
$res = array(
"status"=> "error",
"error"=> "Upload Error",
"message"=> "Sorry! Promocode Image not uploaded".$error['error']
);
}
else {
$imagedata = $this->upload->data();
$data['image']= base_url().'/assets/uploads/profile_pic/'.$imagedata['file_name'];
// $data['image']);
}
$data['user_id']=$id;
$result=$this->Customer_model->goverment_id_upload($data);
if($result){
$this->session->set_flashdata('message', array('message' => 'Uploaded Goverment Id Successfully','class' => 'success'));
redirect(base_url().'customer/view_customer');
}
// $data);exit();
}
}
}
$this->load->view('template', $template);
}
function set_upload_options($path) {
//upload an image options
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'jpg|jpeg|png|gif';
$config['max_size'] = 0;
$config['max_width'] = 0;
$config['max_height'] = 0;
return $config;
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Document extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Document_model');
$this->load->helper('access');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function view_document(){
$template['page'] = "Document/view-document";
$template['page_title'] = "Document Details";
$template['data'] = $this->Document_model->get_document();
$this->load->view('template',$template);
}
public function document_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Document_model->view_popup_document($id);
$this->load->view('Document/document-view-popup',$template);
}
// public function view_single_verified() {
// $id = $_POST['id'];
// $template['data'] = $this->Document_model->get_single_verified($id);
// $this->load->view('Document/view-verified-popup',$template);
// }
public function update_doc_status(){
$id = $_POST['id'];
// $id);
// die();
$status = $_POST['status'];
$rs = $this->db->where('id',$id)->update('verification',array('status'=>$status));
if($rs){
echo 'success';
} else {
echo 'error';
}
}
// public function update_doc_status(){
// $id = $_POST['id'];
// $status = $_POST['status'];
// $rs = $this->db->where('id',$id)->update('verification',array('status'=>$status));
// if($rs){
// echo 'success';
// } else {
// echo 'error';
// }
// }
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Driver extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Driver_model');
$this->load->helper('access');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function view_driver (){
$template['page'] = "Driver/view-driver";
$template['page_title'] = "Driver Details";
$template['data'] = $this->Driver_model->get_driver();
$this->load->view('template',$template);
}
public function edit_customer() {
$template['page'] = 'Customer/edit-customer';
$template['page_title'] = "Edit Customer";
$id = $this->uri->segment(3);
$template['data'] = $this->Customer_model->get_single_customer($id);
if(!empty($template['data'])) {
if($_POST) {
$data = $_POST;
unset($data['submit']);
// if(isset($_FILES['image'])) {
// $config = $this->set_upload_options();
// $this->load->library('upload');
// $this->upload->initialize($config);
// if ( ! $this->upload->do_upload('image')) {
// unset($data['image']);
// }
// else {
// //$data['image'] = base_url().$config['upload_path']."/".$_FILES['image']['name'];
// $upload_data = $this->upload->data();
// $data['image'] = base_url().$config['upload_path']."/".$upload_data['file_name'];
// }
// }
//$data['created_user'] = $this->session->userdata('logged_in')['id'];
$result = $this->Customer_model->update_customer($data, $id);
// array_walk($data, "remove_html");
$this->session->set_flashdata('message', array('message' => 'Customer Updated Successfully','class' => 'success'));
redirect(base_url().'customer/view_customer');
}
else {
$this->load->view('template', $template);
}
}
}
public function delete_driver(){
$id = $this->uri->segment(3);
$result= $this->Driver_model->driver_delete($id);
$this->session->set_flashdata('message', array('message' => 'Requested Driver Deleeted Successfully','class' => 'success'));
redirect(base_url().'Driver/view_driver');
}
public function driver_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Driver_model->view_popup_driver($id);
$this->load->view('Driver/driver-view-popup',$template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Img_ctrl extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Img_model');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
}
public function add_imgdetails(){
$template['page'] = "Imguploading/img-upload";
$template['page_title'] = "img upload";
$sessid=$this->session->userdata('logged_in');
if($_POST){
$data = $_POST;
$config = set_hospital_image('assets/uploads/hospital');
$this->load->library('upload');
$new_name = time()."_".$_FILES["image"]['name'];
$config['file_name'] = $new_name;
$this->upload->initialize($config);
if ( ! $this->upload->do_upload('image')) {
$this->session->set_flashdata('message', array('message' => "Display Picture : ".$this->upload->display_errors(), 'title' => 'Error !', 'class' => 'danger'));
}
else {
$upload_data = $this->upload->data();
$data['image'] = $config['upload_path']."/".$upload_data['file_name'];
$result = $this->Img_model->imgdetails_add($data);
if($result) {
$this->session->set_flashdata('message',array('message' => 'Add Hospital Information Details successfully','class' => 'success'));
redirect(base_url().'Hospital_ctrl/view_hospitals');
}
else {
$this->session->set_flashdata('message', array('message' => 'Error','class' => 'error'));
redirect(base_url().'Hospital_ctrl/view_hospitals');
}
}
}
$this->load->view('template',$template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->helper(array('form'));
$this->load->model('login_model');
$this->load->model('Settings_model');
if($this->session->userdata('logged_in')) {
redirect(base_url().'welcome');
}
}
public function index(){
$template['page_title'] = "Login";
if(isset($_POST)) {
$this->load->library('form_validation');
$this->form_validation->set_rules('username', 'Username', 'trim|required');
$this->form_validation->set_rules('password', 'Password', 'trim|required|callback_check_database');
if($this->form_validation->run() == TRUE) {
redirect(base_url().'welcome');
}
}
$this->load->view('login-form');
}
function check_database($password) {
$username = $this->input->post('username');
$result = $this->login_model->login($username, md5($password));
if($result) {
$user=$result->id;
if($result->user_type == 1){
$user="admin";
}
$sess_array = array();
$sess_array = array(
'id' => $result->id,
'username' => $result->username,
'user_type' => $result->user_type,
'created_user' =>$user,
);
$resulttitles = $this->Settings_model->settings_viewing();
$sessing_arrays = array(
'title' => $resulttitles->title
);
$this->session->set_userdata('title', $sessing_arrays);
$this->session->set_userdata('logged_in',$sess_array);
$this->session->set_userdata('admin',$result->user_type);
$this->session->set_userdata('id',$result->id);
$this->session->set_userdata('profile_pic',$result->profile_picture);
$role = $this->login_model->role();
if($role){
return TRUE;
}
return TRUE;
}
else {
$this->form_validation->set_message('check_database', 'Invalid username or password');
return false;
}
}
}
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login_Translation extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('LoginTranslation_model');
$this->load->helper('directory');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
}
public function add_login()
{
$template['page'] = "Translation/Login/add_login";
$template['page_title'] = "Add Language Translation";
$this->load->view('template',$template);
}
public function insert_login()
{
$data= json_decode(file_get_contents("php://input"));
$data =(array) $data;
$role=$this->LoginTranslation_model->inserthome($data);
echo $role;
}
public function view_login()
{
$textFile ='login_lang.php';
$textFile = str_replace(" ", "_", $textFile);
$textFile = strtolower($textFile);
$trimmed_lang = array();
$location = '../application/language/'.'';
$lang_directory = directory_map($location, TRUE);
foreach($lang_directory as $key => $value):
$trimmed_lang[] = trim($value , " \.");
endforeach;
$avoid_final_lang=array(); $template['final_lang']=array();
foreach($trimmed_lang as $single_lang):
$locationfiles = '../application/language/'.$single_lang.'/'.'';
if(!file_exists($locationfiles.$textFile) && !is_dir($locationfiles.$textFile)):
$avoid_final_lang[] = $single_lang;
else:
$template['final_lang'][] = trim($single_lang , "\/");
endif;
endforeach;
$template['final_lang'];
$template['page'] = "Translation/Login/view_login";
$template['page_title'] = "View Language Translation";
$this->load->view('template',$template);
}
public function edit_login()
{
$template['language_name'] = $this->uri->segment(3);
$template['page'] = "Translation/Login/edit_login";
$template['page_title'] = "edit Language Translation";
$this->load->view('template',$template);
}
public function login_delete()
{
$textFile ='login_lang.php';
$language_name = $this->uri->segment(3);
$locationfiles = '../application/language/'.$language_name.'/'.$textFile;
$language_location = '../application/language/'.$language_name.'';
if(unlink($locationfiles)):
$lang_directory = directory_map($language_location, TRUE);
if(is_bool($lang_directory ) === false):
rmdir($language_location);
$result = $this->LoginTranslation_model->delete_language($language_name);
if($result):
$this->session->set_flashdata('message', array('message' => 'Deleted Successfully','class' => 'success'));
redirect(base_url().'Login_Translation/view_login');
endif;
else:
$this->session->set_flashdata('message', array('message' => 'Deleted Successfully','class' => 'success'));
redirect(base_url().'Login_Translation/view_login');
endif;
else:
$this->session->set_flashdata('message', array('message' => 'Request went wrong.Contact Administrator.','class' => 'danger'));
redirect(base_url().'Login_Translation/view_login');
endif;
}
}
?>
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Logout extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
}
function index() {
$this->session->unset_userdata('logged_in');
session_destroy();
redirect(base_url());
}
}
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Manage_banner extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model('Profile_model');
$this->load->helper('access');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function index(){
if(!empty($_FILES)){
$fileName =$_FILES['file']['name'];
$fileName = str_replace('%','a',$fileName);
$fileName = 'joyride'.'_'.time().".".$fileName;
$config = set_upload_options('./assets/uploads/banners/');
$config['file_name'] = $fileName;
$this->load->library('upload', $config);
if (!$this->upload->do_upload('file')) {
$error = array('error' => $this->upload->display_errors('', ''));
$res = array(
"status"=> "error",
"error"=> "Upload Error",
"message"=> "Sorry! Promocode Image not uploaded".$error['error']
);
}
else {
$imagedata = $this->upload->data();
$data['image']= '/assets/uploads/banners/'.$imagedata['file_name'];
}
$result = $this->Profile_model->insert_image($data);
if($result){
$this->session->set_flashdata('message', array('message' => 'Banner added successfully','class' => 'success'));
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry, Not Added','class' => 'danger'));
}
}
$template['page'] = 'Managebanner/addbanner';
$template['page_title'] = "Create Banners";
$template['data'] = $this->Profile_model->get_banners();
$this->load->view('template', $template);
}
public function edit_image($id){
if($id != ''){
$template['datas'] = $this->Profile_model->get_banner_by_id($id);
$template['page'] = 'Managebanner/addbanner';
$template['page_title'] = "Edit Banner";
if(!empty($_FILES)){
$fileName =$_FILES['file']['name'];
$fileName = str_replace('%','a',$fileName);
$fileName = 'joyride'.'_'.time().".".$fileName;
$config = set_upload_options('./assets/uploads/banners/');
$config['file_name'] = $fileName;
$this->load->library('upload', $config);
if (!$this->upload->do_upload('file')) {
$error = array('error' => $this->upload->display_errors('', ''));
$res = array(
"status"=> "error",
"error"=> "Upload Error",
"message"=> "Sorry! Promocode Image not uploaded".$error['error']
);
}
else {
$imagedata = $this->upload->data();
$data['image']= '/assets/uploads/banners/'.$imagedata['file_name'];
}
$result = $this->Profile_model->update_image($data,$id);
if($result){
$this->session->set_flashdata('message', array('message' => 'Banner Updated successfully','class' => 'success'));
redirect(base_url() . 'Manage_banner');
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry, Not Updated','class' => 'danger'));
redirect(base_url() . 'Manage_banner');
}
}
}
$template['data'] = $this->Profile_model->get_banners();
$this->load->view('template', $template);
}
public function delete_image($id){
if($id != ''){
$result = $this->Profile_model->delete_image($id);
if($result){
$this->session->set_flashdata('message', array('message' => 'Image Deleted successfully','class' => 'success'));
redirect(base_url() . 'Manage_banner');
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry, Not Deleted','class' => 'danger'));
redirect(base_url() . 'Manage_banner');
}
}
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Manage_currency extends CI_Controller
{
public function __construct()
{
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Role_model');
$this->load->helper('access');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function index()
{
$template['page'] = 'ManageCurrency/viewcurrency';
$template['page_title'] = "View Country Currency";
$template['data'] = $this->Role_model->get_allcountry_currency();
$this->load->view('template', $template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Offerrides extends CI_Controller
{
public function __construct()
{
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Offer_model');
$this->load->helper('access');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function add_offer_rides(){
$template['page'] = 'Offerrides/add_offerrides';
$template['page_title'] = "Create offers";
$template['data'] = $this->Offer_model->get_allusers();
$this->load->view('template', $template);
if ($_POST) {
$request = $_POST;
// $request);die;
/////////////////////////duration and time calculation//////////////////////////
$from = $request['source'];
$remFrom = str_replace(',', '', $from); //Remove Commas
$from = urlencode($remFrom);
$to = $request['destination'];
$remTo = str_replace(',', '', $to); //Remove Commas
$to = urlencode($remTo);
$data = file_get_contents("http://maps.googleapis.com/maps/api/distancematrix/json?origins=$from&destinations=$to&language=en-EN&sensor=false");
$data = json_decode($data, true);
if($data['rows'][0]['elements'][0]['status']=='ZERO_RESULTS'){
$response=array('status' => 'error','message'=>'No Routes Found!!!');
}else{
$time = $data['rows'][0]['elements'][0]['duration']['text']; //Text for String and Value for INT
$distance = $data['rows'][0]['elements'][0]['distance']['text'];//Text for String and Value for INT
$date=date("H:i:s ",strtotime($request['detour_time']));
$request['detour_time'] =$date;
$totaltime=date("H:i:s ", strtotime("$date + $time"));
$request['reached_time']=$totaltime;
}
$carexist= $this->Offer_model->car_exist($request);
if($carexist){
$this->session->set_flashdata('message', array(
'message' => 'Car Not available for this day!!',
'class' => 'danger'
));
}else{
$result = $this->Offer_model->offer_departure($request);
unset($data['submit']);
if ($result) {
$this->session->set_flashdata('message', array(
'message' => 'offer ride successfully',
'class' => 'success'
));
} else {
$this->session->set_flashdata('message', array(
'message' => 'Something Went wrong.Try Again!!',
'class' => 'danger'
));
}
}
redirect(base_url() . 'Offerrides/view_offer_rides');
}
}
public function get_user_car_details(){
if ($_POST) {
$data = $_POST;
$result=$this->Offer_model->get_allusers_car($data);
print json_encode($result);
}
}
public function view_offer_rides(){
$template['page'] = 'Offerrides/view_offerrides';
$template['page_title'] = "view offers";
$template['data'] = $this->Offer_model->get_offer_details();
$this->load->view('template', $template);
}
public function driver_viewpopup() {
$id=$_POST['ride_id'];
$template['data'] = $this->Offer_model->view_offer_details_pop($id);
$this->load->view('Offerrides/view_offer_popup',$template);
}
public function delete_Offerrides(){
$id = $this->uri->segment(3);
$result= $this->Offer_model->offer_delete($id);
$this->session->set_flashdata('message', array('message' => 'Requested Ride Deleeted Successfully','class' => 'success'));
redirect(base_url() . 'Offerrides/view_offer_rides');
//echo "tinu";die;
}
public function Edit_Offerrides(){
$id = $this->uri->segment(3);
$template['page'] = 'Offerrides/edit_offerrides';
$template['page_title'] = "view offers";
$template['data'] = $this->Offer_model->get_allusers();
$template['edit_data'] = $this->Offer_model->edit_offer_details($id);
$template['car_details'] = $this->Offer_model->get_car_name($template['edit_data']->car_id);
// $template['edit_data']);die;
if ($_POST) {
$request = $_POST;
// $request);die;
/////////////////////////duration and time calculation//////////////////////////
$from = $request['source'];
$remFrom = str_replace(',', '', $from); //Remove Commas
$from = urlencode($remFrom);
$to = $request['destination'];
$remTo = str_replace(',', '', $to); //Remove Commas
$to = urlencode($remTo);
$data = file_get_contents("http://maps.googleapis.com/maps/api/distancematrix/json?origins=$from&destinations=$to&language=en-EN&sensor=false");
$data = json_decode($data, true);
if($data['rows'][0]['elements'][0]['status']=='ZERO_RESULTS'){
$response=array('status' => 'error','message'=>'No Routes Found!!!');
}else{
$time = $data['rows'][0]['elements'][0]['duration']['text']; //Text for String and Value for INT
$distance = $data['rows'][0]['elements'][0]['distance']['text'];//Text for String and Value for INT
$date=date("H:i:s ",strtotime($request['detour_time']));
$request['detour_time'] =$date;
$totaltime=date("H:i:s ", strtotime("$date + $time"));
$request['reached_time']=$totaltime;
}
$carexist= $this->Offer_model->car_exist_edit($request,$id);
//echo $this->db->last_query();die;
if($carexist){
$this->session->set_flashdata('message', array(
'message' => 'Car Not available for this day!!',
'class' => 'danger'
));
}else{
$result = $this->Offer_model->offer_departure_update($request,$id);
unset($data['submit']);
if ($result) {
$this->session->set_flashdata('message', array(
'message' => 'offer ride updated successfully',
'class' => 'success'
));
} else {
$this->session->set_flashdata('message', array(
'message' => 'Something Went wrong.Try Again!!',
'class' => 'danger'
));
}
}
redirect(base_url() . 'Offerrides/view_offer_rides');
}
$this->load->view('template', $template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Payment extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Payment_model');
$this->load->helper('access');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function view_ride(){
$template['page'] = "Payment/view-ride";
$template['page_title'] = "Ride Details";
$template['data'] = $this->Payment_model->get_rides();
$this->load->view('template',$template);
}
public function all_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Booking_model->view_popup_all($id);
$this->load->view('Booking/allbooking-view-popup',$template);
}
public function view_completedbooking(){
$template['page'] = "Booking/view-completedbooking";
$template['page_title'] = "Booking Details";
$template['data'] = $this->Booking_model->get_completedbooking();
$this->load->view('template',$template);
}
public function completed_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Booking_model->view_popup_completed($id);
$this->load->view('Booking/completedbooking-view-popup',$template);
}
public function view_cancelledbooking(){
$template['page'] = "Booking/view-cancelledbooking";
$template['page_title'] = "Booking Details";
$template['data'] = $this->Booking_model->get_cancelleddbooking();
$this->load->view('template',$template);
}
public function cancelled_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Booking_model->view_popup_cancelled($id);
$this->load->view('Booking/cancelledbooking-view-popup',$template);
}
public function view_onprocessbooking(){
$template['page'] = "Booking/view-onprocessbooking";
$template['page_title'] = "Booking Details";
$template['data'] = $this->Booking_model->get_onprocessdbooking();
$this->load->view('template',$template);
}
public function onprocess_viewpopup() {
$id=$_POST['patientdetailsval'];
$template['data'] = $this->Booking_model->view_popup_onprocess($id);
$this->load->view('Booking/onprocessbooking-view-popup',$template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Settings_ctrl extends CI_Controller {
public function __construct(){
parent:: __construct();
$userdata = $this->session->userdata('userdata');
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Settings_model');
$this->load->library('image_lib');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
}
//Add Settings
public function index()
{
$template['page'] = 'Settings/add-settings';
$template['page_title'] = 'Add Settings';
// $template['perm'] = $this->perm;
//$template['main'] = $this->info->menu_name;
// $template['sub'] = $this->info->fun_menu;
// $id = $this->session->userdata('logged_in')['id'];
if($_POST){
$data = $_POST;
//array_walk($data, "remove_html");
unset($data['submit']);
if(isset($_FILES['logo'])) {
//$config = set_upload_logo('assets/uploads/logo');
$this->load->library('upload');
$new_name = time()."_".$_FILES["logo"]['name'];
$config['file_name'] = $new_name;
$this->upload->initialize($config);
if ( ! $this->upload->do_upload('logo')) {
unset($data['logo']);
}
else {
$upload_data = $this->upload->data();
//$data['logo'] = $config['upload_path']."/".$upload_data['file_name'];
$data['logo'] = base_url().$config['upload_path']."/".$upload_data['file_name'];
}
}
/* Save category details */
$result = $this->Settings_model->update_settings($data);
if($result) {
/* Set success message */
$this->session->set_flashdata('message',array('message' => 'Add Settings Details Updated successfully','class' => 'success'));
}
else {
/* Set error message */
$this->session->set_flashdata('message', array('message' => 'Error','class' => 'error'));
}
}
$resulttitles = $this->Settings_model->settings_viewing();
$sessing_arrays = array(
'title' => $resulttitles->title
);
$this->session->set_userdata('title', $sessing_arrays);
//redirect(base_url().'Business_information/add_Businessinformation');
$template['result'] = $this->Settings_model->settings_viewing();
$this->load->view('template',$template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Role extends CI_Controller
{
public function __construct()
{
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Role_model');
$this->load->model('Adminuser_model');
$this->load->helper('access');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function index()
{
if(isset($_POST) && !empty($_POST)){
$data = $_POST;
$result = $this->Role_model->insert_role($data);
if($result){
$this->session->set_flashdata('message', array('message' => 'Role added successfully','class' => 'success'));
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry Role not Added','class' => 'danger'));
}
}
$template['page'] = 'Roles/addrole';
$template['page_title'] = "Add Role";
$template['data'] = $this->Role_model->get_allroles();
$this->load->view('template', $template);
}
public function delete_role($id){
$result = $this->Role_model->delete_role($id);
if($result){
$this->session->set_flashdata('message', array('message' => 'Role Deleted successfully','class' => 'success'));
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry Roles Not Deleted','class' => 'danger'));
}
redirect(base_url() . 'Role');
}
public function edit_role($id){
if($id != ''){
$template['datas'] = $this->Role_model->get_roles($id);
$template['page'] = 'Roles/addrole';
$template['page_title'] = "Add Role";
if(isset($_POST) && !empty($_POST)){
$data = $_POST;
$result = $this->Role_model->update_role($id,$data);
if($result){
$this->session->set_flashdata('message', array('message' => 'Role Updated successfully','class' => 'success'));
redirect(base_url() . 'Role');
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry Role not Updated','class' => 'danger'));
redirect(base_url() . 'Role');
}
}
}
$template['data'] = $this->Role_model->get_allroles();
$this->load->view('template', $template);
}
public function role_manage($id){
if($this->session->userdata('admin') == 1){
$template['page'] = "Adminusers/role_management";
$template['page_title'] = "Add role";
$newarray = array();
$template['access'] = $this->Adminuser_model->get_access($id);
$rs = $this->Adminuser_model->get_details();
foreach ($rs as $row) {
$result = $this->Adminuser_model->get_functions($row->id);
$row->functions = $result;
$newarray[] = $row;
}
$template['newarray'] = $newarray;
$this->load->view('template', $template);
}
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Cars extends CI_Controller
{
public function __construct()
{
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Role_model');
$this->load->helper('access');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
public function index()
{
$template['page'] = 'Cars/add-cars';
$template['page_title'] = "Create Cars";
if ($_POST) {
$data = $_POST;
unset($data['submit']);
$result = $this->Cars_model->save_carmake($data);
if ($result == "Exist") {
$this->session->set_flashdata('message', array(
'message' => 'Car already Exist',
'class' => 'danger'
));
} else {
$this->session->set_flashdata('message', array(
'message' => 'Car added successfully',
'class' => 'success'
));
}
redirect(base_url() . 'Cars/save_carmake');
} else {
$template['data'] = $this->Cars_model->get_allcars();
$this->load->view('template', $template);
}
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Settings_ctrl extends CI_Controller {
public function __construct(){
parent:: __construct();
$userdata = $this->session->userdata('userdata');
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Settings_model');
$this->load->library('image_lib');
$this->load->helper('access');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$class = $this->router->fetch_class();
$method = $this->router->fetch_method();
$r = check_access($class,$method);
// $r);exit();
if($r == false)
{
redirect(base_url().'welcome/error_404');
}
}
//Add Settings
public function index()
{
$template['page'] = 'Settings/add-settings';
$template['page_title'] = 'Add Settings';
// $template['perm'] = $this->perm;
//$template['main'] = $this->info->menu_name;
// $template['sub'] = $this->info->fun_menu;
// $id = $this->session->userdata('logged_in')['id'];
if($_POST){
$data = $_POST;
//array_walk($data, "remove_html");
unset($data['submit']);
if(isset($_FILES['logo'])) {
//$config = set_upload_logo('assets/uploads/logo');
$this->load->library('upload');
$new_name = time()."_".$_FILES["logo"]['name'];
$config['file_name'] = $new_name;
$this->upload->initialize($config);
if ( ! $this->upload->do_upload('logo')) {
unset($data['logo']);
}
else {
$upload_data = $this->upload->data();
//$data['logo'] = $config['upload_path']."/".$upload_data['file_name'];
$data['logo'] = base_url().$config['upload_path']."/".$upload_data['file_name'];
}
}
/* Save category details */
$result = $this->Settings_model->update_settings($data);
if($result) {
/* Set success message */
$this->session->set_flashdata('message',array('message' => 'Add Settings Details Updated successfully','class' => 'success'));
}
else {
/* Set error message */
$this->session->set_flashdata('message', array('message' => 'Error','class' => 'error'));
}
}
$resulttitles = $this->Settings_model->settings_viewing();
$sessing_arrays = array(
'title' => $resulttitles->title
);
$this->session->set_userdata('title', $sessing_arrays);
//redirect(base_url().'Business_information/add_Businessinformation');
$template['result'] = $this->Settings_model->settings_viewing();
$this->load->view('template',$template);
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/Welcome
* - or -
* http://example.com/index.php/Welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/Welcome/<method_name>
* @see http://codeigniter.com/user_guide/general/urls.html
*/
public function __construct() {
parent::__construct();
$this->load->model('Profile_model');
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
}
public function index(){
$template['page'] = "User/profile";
$template['page_title'] = "Edit Profile";
$template['data'] = $this->Profile_model->get_logined_user_data($this->session->userdata('id'));
$this->load->view('template', $template);
}
public function EditProfile(){
if(isset($_POST) && !empty($_POST)){
$data = $_POST;
$temps = $this->Profile_model->get_logined_user_data($data['id']);
if(!empty($_FILES)) {
$fileName =$_FILES['file']['name'];
$fileName = str_replace('%','a',$fileName);
$fileName = 'joyride'.'_'.time().".".$fileName;
$config = set_upload_options('./assets/uploads/profile_pic/');
$config['file_name'] = $fileName;
$this->load->library('upload', $config);
if (!$this->upload->do_upload('file')) {
$error = array('error' => $this->upload->display_errors('', ''));
$res = array(
"status"=> "error",
"error"=> "Upload Error",
"message"=> "Sorry! Promocode Image not uploaded".$error['error']
);
}
else {
$imagedata = $this->upload->data();
$data['profile_picture']= '/assets/uploads/profile_pic/'.$imagedata['file_name'];
}
}else{
$data['profile_picture'] = $temps['profile_picture'];
}
$result = $this->Profile_model->edit_profile($data);
if($result){
$this->session->set_flashdata('message', array('message' => 'User details updated successfully','class' => 'success'));
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry, User details not Updated','class' => 'danger'));
}
redirect(base_url().'User');
}
}
public function ChangePassword(){
if(isset($_POST) && !empty($_POST)){
$data = $_POST;
$temps = $this->Profile_model->get_logined_user_data($data['id']);
if($temps['password'] == md5($data['password_c'])){
if($data['password_n'] == $data['password_cn']){
$result = $this->Profile_model->ChangePassword($data);
if($result){
$this->session->set_flashdata('message', array('message' => 'Password updated successfully','class' => 'success'));
}else{
$this->session->set_flashdata('message', array('message' => 'Sorry, Password not Updated','class' => 'danger'));
}
redirect(base_url().'User');
}else{
$this->session->set_flashdata('message', array('message' => 'New Password and Confirm Password Doesnot match','class' => 'danger'));
}
}else{
$this->session->set_flashdata('message', array('message' => 'Current Password Doesnot match','class' => 'danger'));
}
redirect(base_url().'User');
}
}
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Verify_email extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/Welcome
* - or -
* http://example.com/index.php/Welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/Welcome/<method_name>
* @see http://codeigniter.com/user_guide/general/urls.html
*/
public function __construct() {
parent::__construct();
}
public function index(){
// echo "called";
}
public function verify($req_id=null){
if($this->db->where('req_id',$req_id)->get("users")->num_rows()>0){
$this->db->where('req_id',$req_id)->update("users",array("email_is_verified"=>1,"req_id"=>""));
echo "Verification Successfully";
} else {
echo "Invalid Verification code";
}
}
// public function verify_get($req_id=null){
// }
}
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Welcome extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/Welcome
* - or -
* http://example.com/index.php/Welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/Welcome/<method_name>
* @see http://codeigniter.com/user_guide/general/urls.html
*/
public function __construct() {
parent::__construct();
if (!$this->session->userdata('logged_in')) {
redirect(base_url());
}
}
public function index(){
$template['page'] = "Home/Dashboard";
$template['page_title'] = "Dashboard";
$template['data'] = "Dashboard page";
$this->load->view('template', $template);
}
public function test(){
$template['page'] = "form-demo";
$template['page_title'] = "Test Page";
$template['data'] = "Test page";
$this->load->view('template', $template);
}
public function error_404(){
$this->load->view('error_404');
}
}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
<?php
function check_access($class,$method) {
$called = $class.'/'.$method;
$CI = & get_instance();
$query = $CI->db->where('link',$called)->get('tbl_controller_functions')->row();
// $query);echo"<br>";
if(count($query)>0){
$id = $CI->session->userdata('admin');
$CI->db->where('user_type',$id);
//$CI->db->where("FIND_IN_SET('$query->id',page_id) !=", 0);
$r = $CI->db->get('tbl_role_permission');
$query1 = $r->row();
// $query1);exit();
$page_name = array();
$page_name = explode(',', $query1->page_id);
if( in_array($query->id,$page_name))
{
return true;
}
else{
return false;
}
}
else{
//echo "false";
return true;
}
}
?>
\ No newline at end of file
<?php
function get_icon(){
$CI = & get_instance();
$CI->db->select('*');
$CI->db->where("id", 1);
$CI->db->from('settings');
$result = $CI->db->get()->row();
return $result;
}
function get_picture($id){
$CI = & get_instance();
$query = $CI->db->get_where('admin',array('id' => $id));
$result = $query->row();
return $result;
}
/* ===Get Admin=== */
function pull_admin(){
$CI = & get_instance();
$query = $CI->db->get('admin');
$result = $query->result();
return $result;
}
// function get_homesettings(){
// $CI = & get_instance();
// $query = $CI->db->get_where('settings',array('id' => 1));
// $result = $query->row();
// return $result;
// }
function upload_patient_image($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function upload_doctor_image($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function upload_hospital_image($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function upload_medical_image($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function upload_clinic_image($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
/* === Get Total Patients Count === */
function pull_total_patients(){
$CI = & get_instance();
$CI->db->where('status','1');
$query = $CI->db->get('patient');
$car=$query->num_rows();
return $car;
}
/* === Get Total Appointment Count === */
function pull_total_appoinment(){
$CI = & get_instance();
$CI->db->where('status','1');
$query = $CI->db->get('appointment');
$car=$query->num_rows();
return $car;
}
/* === Get Total Doctor Count === */
function pull_total_doctor(){
$CI = & get_instance();
$CI->db->where('status','1');
$query = $CI->db->get('doctor');
$car=$query->num_rows();
return $car;
}
/* === Get Total Clinic Count === */
function pull_total_clinic(){
$CI = & get_instance();
$CI->db->where('status','1');
$query = $CI->db->get('clinic');
$car=$query->num_rows();
return $car;
}
?>
<?php
function get_total_customers($id){
$CI = & get_instance();
$CI->db->select("COUNT(*) AS tot_customers");
$CI->db->where('status','1');
$rs = $CI->db->get('users');
// echo $CI->db->last_query();
// die();
return $rs->row()->tot_customers;
}
function get_total_bookings($id){
$CI = & get_instance();
$rs = $CI->db->select('COUNT(*) AS tot_bookings')->get('booking');
// echo $CI->db->last_query();
// die();
return $rs->row()->tot_bookings;
}
function get_onprocess($id){
$CI = & get_instance();
$rs = $CI->db->select('COUNT(*) AS processing')->where('status',4)->get('booking');
//$rs = $CI->db->select('type')->where('id',$id)->get('verification')->row();
// echo $CI->db->last_query();
// die();
return $rs->row()->processing;
}
function get_completed($id){
$CI = & get_instance();
$rs = $CI->db->select('COUNT(*) AS completed')->where('status',2)->get('booking_approve');
//$rs = $CI->db->select('type')->where('id',$id)->get('verification')->row();
// echo $CI->db->last_query();
// die();
return $rs->row()->completed;
}
function get_total_drivers($id){
$CI = & get_instance();
$rs = $CI->db->select('COUNT(*) AS tot_drivers')->where('status',1)->get('booking_approve');
//$rs = $CI->db->select('type')->where('id',$id)->get('verification')->row();
// echo $CI->db->last_query();
// die();
return $rs->row()->tot_drivers;
}
function get_customername($id){
$CI = & get_instance();
$rs = $CI->db->select('first_name')->where('id',$id)->get('users')->row();
return $rs->first_name;
}
function get_doc_name($id){
$CI = & get_instance();
// $rs = $CI->db->where('help_id',$id)->get('help_review')->row();
//$rs = $CI->db->select('('*') AS likes')->where('id',$id)->where('type','1')->get('help_review');\
$rs = $CI->db->select('type')->where('id',$id)->get('verification')->row();
if($rs->type == '1'){
return "Government Id";
}elseif($rs->type == '2'){
return "Pan Card";
}elseif($rs->type == '3'){
return "Passport";
}
//return $rs->type;
}
function get_status($status){
$array = array('1'=>'Booking',
'2'=>'Rejected',
'3'=>'User Cancelled',
'4'=>'Owner Cancelled',
'4'=>'Completed',
'0'=>'Pending');
return $array[$status];
}
function get_color($status){
$array = array('1'=>'success',
'2'=>'info',
'3'=>'danger',
'4'=>'info',
//'5'=>'success',
'0'=>'danger');
return $array[$status];
}
// function get_statusdoc($status){
// $array = array('1'=>'Approved',
// '2'=>'Pending',
// '3'=>'Rejected',
// '4'=>'Not Uploaded'
// );
// return $array[$status];
// }
function get_statusdoc($status){
$array = array('1'=>'Approved',
'2'=>'Pending',
'3'=>'Rejected',
'4'=>'Pending',
'0'=>'Not Uploaded'
);
return $array[$status];
}
function get_drivername($id){
$CI = & get_instance();
$rs = $CI->db->select('first_name')->where('id',$id)->get('users')->row();
return $rs->first_name;
}
function get_driveremail($id){
$CI = & get_instance();
$rs = $CI->db->select('email')->where('id',$id)->get('users')->row();
return $rs->email;
}
function get_driverdob($id){
$CI = & get_instance();
$rs = $CI->db->select('date_of_birth')->where('id',$id)->get('users')->row();
return $rs->date_of_birth;
}
function get_drivergender($id){
$CI = & get_instance();
$rs = $CI->db->select('gender')->where('id',$id)->get('users')->row();
return $rs->gender;
}
function get_tripsource($id){
$CI = & get_instance();
$rs = $CI->db->select('source')->where('id',$id)->get('ride')->row();
// echo $CI->db->last_query();
// die();
return $rs->source;
}
function get_tripdestination($id){
$CI = & get_instance();
$rs = $CI->db->select('destination')->where('id',$id)->get('ride')->row();
return $rs->destination;
}
function get_tripdriver($id){
$CI = & get_instance();
$rs = $CI->db->select('driver_id')->where('ride_id',$id)->get('booking_approve')->row();
$rs1 = $CI->db->select('first_name')->where('id',$rs->driver_id)->get('users')->row();
return $rs1->first_name;
}
function get_amnt($id){
$CI = & get_instance();
$rs = $CI->db->select('sum(amount) as total ')->where('ride_id',$id)->get('booking_approve')->row();
//$rs1 = $CI->db->select('first_name')->where('id',$rs->driver_id)->get('users')->row();
//echo $CI->db->last_query();
// die();
// $rs);
return $rs->total;
}
function get_admincharge($id){
$CI = & get_instance();
$rs = $CI->db->select('sum(amount) as total ')->where('ride_id',$id)->get('booking_approve')->row();
//$rs1 = $CI->db->select('first_name')->where('id',$rs->driver_id)->get('users')->row();
//echo $CI->db->last_query();
// die();
// $rs);
$price = $rs->total;
$rs1 = $CI->db->select('admin_charge')->get('settings')->row();
$adminpercent = $rs1->admin_charge;
$fincharge = $price*$adminpercent/100;
return $fincharge;
}
function get_drivercharge($id){
$CI = & get_instance();
$rs = $CI->db->select('sum(amount) as total ')->where('ride_id',$id)->get('booking_approve')->row();
$price = $rs->total;
$rs1 = $CI->db->select('admin_charge')->get('settings')->row();
$adminpercent = $rs1->admin_charge;
$fincharge = $price*$adminpercent/100;
$drivercharge = $price-$fincharge;
return $drivercharge;
}
function get_bookid($id){
$CI = & get_instance();
$rs = $CI->db->select('booking_id')->where('ride_id',$id)->get('booking')->row();
return $rs->booking_id;
}
function get_deppoint($id){
$CI = & get_instance();
$rs = $CI->db->select('departure_point')->where('ride_id',$id)->get('booking')->row();
return $rs->departure_point;
}
function get_droppoint($id){
$CI = & get_instance();
$rs = $CI->db->select('drop_point')->where('ride_id',$id)->get('booking')->row();
return $rs->drop_point;
}
function get_custname($id){
$CI = & get_instance();
$rs = $CI->db->select('user_id')->where('ride_id',$id)->get('booking')->row();
$rs1 = $CI->db->select('first_name')->where('id',$rs->user_id)->get('users')->row();
return $rs1->first_name;
}
function get_bookdate($id){
$CI = & get_instance();
$rs = $CI->db->select('booking_date')->where('ride_id',$id)->get('booking')->row();
return $rs->booking_date;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
<?php
function tcpdf()
{
require_once('tcpdf/examples/lang/eng.php');
require_once('tcpdf/tcpdf.php');
}
?>
\ No newline at end of file
<?php
function set_doctor_image($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function set_upload_options($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function set_upload_logo($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['width'] = 60;
$config['height'] = 80;
$config['overwrite'] = FALSE;
return $config;
}
function set_upload_favicono($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function set_upload_optionsgallery($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function set_upload_agent($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function set_upload_editagent($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function set_upload_profile($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
function set_upload_profilepic($path) {
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '0';
$config['overwrite'] = FALSE;
return $config;
}
?>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
TCPDF - README
============================================================
I WISH TO IMPROVE AND EXPAND TCPDF BUT I NEED YOUR SUPPORT.
PLEASE MAKE A DONATION:
http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 6.0.099
Release date: 2014-11-15
Author: Nicola Asuni
Copyright (c) 2002-2014:
Nicola Asuni
Tecnick.com LTD
www.tecnick.com
URLs:
http://www.tcpdf.org
http://www.sourceforge.net/projects/tcpdf
Description:
TCPDF is a PHP class for generating PDF files on-the-fly without requiring external extensions.
This library includes also a class to extract data from existing PDF documents and
classes to generate 1D and 2D barcodes in various formats.
Main Features:
* no external libraries are required for the basic functions;
* all standard page formats, custom page formats, custom margins and units of measure;
* UTF-8 Unicode and Right-To-Left languages;
* TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1 and CID-0 fonts;
* font subsetting;
* methods to publish some XHTML + CSS code, Javascript and Forms;
* images, graphic (geometric figures) and transformation methods;
* supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http: www.imagemagick.org/www/formats.html)
* 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, Datamatrix, QR-Code, PDF417;
* JPEG and PNG ICC profiles, Grayscale, RGB, CMYK, Spot Colors and Transparencies;
* automatic page header and footer management;
* document encryption up to 256 bit and digital signature certifications;
* transactions to UNDO commands;
* PDF annotations, including links, text and file attachments;
* text rendering modes (fill, stroke and clipping);
* multiple columns mode;
* no-write page regions;
* bookmarks, named destinations and table of content;
* text hyphenation;
* text stretching and spacing (tracking);
* automatic page break, line break and text alignments including justification;
* automatic page numbering and page groups;
* move and delete pages;
* page compression (requires php-zlib extension);
* XOBject Templates;
* Layers and object visibility.
* PDF/A-1b support.
Installation (full instructions on http: www.tcpdf.org):
1. copy the folder on your Web server
2. set your installation path and other parameters on the config/tcpdf_config.php
3. call the examples/example_001.php page with your browser to see an example
Source Code Documentation:
http://www.tcpdf.org
Additional Documentation:
http://www.tcpdf.org
License:
Copyright (C) 2002-2014 Nicola Asuni - Tecnick.com LTD
TCPDF is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
TCPDF is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the License
along with TCPDF. If not, see
<http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT>.
See LICENSE.TXT file for more information.
Third party fonts:
This library may include third party font files released with different licenses.
All the PHP files on the fonts directory are subject to the general TCPDF license (GNU-LGPLv3),
they do not contain any binary data but just a description of the general properties of a particular font.
These files can be also generated on the fly using the font utilities and TCPDF methods.
All the original binary TTF font files have been renamed for compatibility with TCPDF and compressed using the gzcompress PHP function that uses the ZLIB data format (.z files).
The binary files (.z) that begins with the prefix "free" have been extracted from the GNU FreeFont collection (GNU-GPLv3).
The binary files (.z) that begins with the prefix "pdfa" have been derived from the GNU FreeFont, so they are subject to the same license.
For the details of Copyright, License and other information, please check the files inside the directory fonts/freefont-20120503
Link : http://www.gnu.org/software/freefont/
The binary files (.z) that begins with the prefix "dejavu" have been extracted from the DejaVu fonts 2.33 (Bitstream) collection.
For the details of Copyright, License and other information, please check the files inside the directory fonts/dejavu-fonts-ttf-2.33
Link : http://dejavu-fonts.org
The binary files (.z) that begins with the prefix "ae" have been extracted from the Arabeyes.org collection (GNU-GPLv2).
Link : http://projects.arabeyes.org/
ICC profile:
TCPDF includes the sRGB.icc profile from the icc-profiles-free Debian package:
https://packages.debian.org/source/stable/icc-profiles-free
============================================================
{
"name": "tecnick.com/tcpdf",
"version": "6.0.099",
"homepage": "http://www.tcpdf.org/",
"type": "library",
"description": "TCPDF is a PHP class for generating PDF documents and barcodes.",
"keywords": ["PDF","tcpdf","PDFD32000-2008","qrcode","datamatrix","pdf417","barcodes"],
"license": "LGPLv3",
"authors": [
{
"name": "Nicola Asuni",
"email": "info@tecnick.com",
"homepage": "http://nicolaasuni.tecnick.com"
}
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"classmap": [
"fonts",
"config",
"include",
"tcpdf.php",
"tcpdf_parser.php",
"tcpdf_import.php",
"tcpdf_barcodes_1d.php",
"tcpdf_barcodes_2d.php",
"include/tcpdf_colors.php",
"include/tcpdf_filters.php",
"include/tcpdf_font_data.php",
"include/tcpdf_fonts.php",
"include/tcpdf_images.php",
"include/tcpdf_static.php",
"include/barcodes/datamatrix.php",
"include/barcodes/pdf417.php",
"include/barcodes/qrcode.php"
]
}
}
<?php
//============================================================+
// File name : tcpdf_config.php
// Begin : 2004-06-11
// Last Update : 2014-09-02
//
// Description : Configuration file for TCPDF.
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
// Copyright (C) 2004-2014 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
// TCPDF is free software: you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// TCPDF is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
//============================================================+
/**
* Configuration file for TCPDF.
* @author Nicola Asuni
* @package com.tecnick.tcpdf
* @version 4.9.005
* @since 2004-10-27
*/
// IMPORTANT:
// If you define the constant K_TCPDF_EXTERNAL_CONFIG, all the following settings will be ignored.
// If you use the tcpdf_autoconfig.php, then you can overwrite some values here.
/**
* Installation path (/var/www/tcpdf/).
* By default it is automatically calculated but you can also set it as a fixed string to improve performances.
*/
//define ('K_PATH_MAIN', '');
/**
* URL path to tcpdf installation folder (http://localhost/tcpdf/).
* By default it is automatically set but you can also set it as a fixed string to improve performances.
*/
//define ('K_PATH_URL', '');
/**
* Path for PDF fonts.
* By default it is automatically set but you can also set it as a fixed string to improve performances.
*/
//define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
/**
* Default images directory.
* By default it is automatically set but you can also set it as a fixed string to improve performances.
*/
//define ('K_PATH_IMAGES', '');
/**
* Deafult image logo used be the default Header() method.
* Please set here your own logo or an empty string to disable it.
*/
//define ('PDF_HEADER_LOGO', '');
/**
* Header logo image width in user units.
*/
//define ('PDF_HEADER_LOGO_WIDTH', 0);
/**
* Cache directory for temporary files (full path).
*/
//define ('K_PATH_CACHE', '/tmp/');
/**
* Generic name for a blank image.
*/
define ('K_BLANK_IMAGE', '_blank.png');
/**
* Page format.
*/
define ('PDF_PAGE_FORMAT', 'A4');
/**
* Page orientation (P=portrait, L=landscape).
*/
define ('PDF_PAGE_ORIENTATION', 'P');
/**
* Document creator.
*/
define ('PDF_CREATOR', 'TCPDF');
/**
* Document author.
*/
define ('PDF_AUTHOR', 'TCPDF');
/**
* Header title.
*/
define ('PDF_HEADER_TITLE', 'TCPDF Example');
/**
* Header description string.
*/
define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
/**
* Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
*/
define ('PDF_UNIT', 'mm');
/**
* Header margin.
*/
define ('PDF_MARGIN_HEADER', 5);
/**
* Footer margin.
*/
define ('PDF_MARGIN_FOOTER', 10);
/**
* Top margin.
*/
define ('PDF_MARGIN_TOP', 27);
/**
* Bottom margin.
*/
define ('PDF_MARGIN_BOTTOM', 25);
/**
* Left margin.
*/
define ('PDF_MARGIN_LEFT', 15);
/**
* Right margin.
*/
define ('PDF_MARGIN_RIGHT', 15);
/**
* Default main font name.
*/
define ('PDF_FONT_NAME_MAIN', 'helvetica');
/**
* Default main font size.
*/
define ('PDF_FONT_SIZE_MAIN', 10);
/**
* Default data font name.
*/
define ('PDF_FONT_NAME_DATA', 'helvetica');
/**
* Default data font size.
*/
define ('PDF_FONT_SIZE_DATA', 8);
/**
* Default monospaced font name.
*/
define ('PDF_FONT_MONOSPACED', 'courier');
/**
* Ratio used to adjust the conversion of pixels to user units.
*/
define ('PDF_IMAGE_SCALE_RATIO', 1.25);
/**
* Magnification factor for titles.
*/
define('HEAD_MAGNIFICATION', 1.1);
/**
* Height of cell respect font height.
*/
define('K_CELL_HEIGHT_RATIO', 1.25);
/**
* Title magnification respect main font size.
*/
define('K_TITLE_MAGNIFICATION', 1.3);
/**
* Reduction factor for small font.
*/
define('K_SMALL_RATIO', 2/3);
/**
* Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language.
*/
define('K_THAI_TOPCHARS', true);
/**
* If true allows to call TCPDF methods using HTML syntax
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
*/
define('K_TCPDF_CALLS_IN_HTML', true);
/**
* If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
*/
define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
/**
* Default timezone for datetime functions
*/
define('K_TIMEZONE', 'UTC');
//============================================================+
// END OF FILE
//============================================================+
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment