blog updated

This commit is contained in:
krish@sentientgeeks.com 2024-01-15 08:53:28 +00:00
parent a2db58b92b
commit 566db0f800
18785 changed files with 12 additions and 3356339 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
/*.env /*.env
/*.htaccess /*.htaccess
/vendor
/systemfiles

View File

@ -1,6 +0,0 @@
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>

View File

@ -1,6 +0,0 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}

Binary file not shown.

Binary file not shown.

View File

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

View File

@ -1,29 +0,0 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
/*
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|| Android Firebase Push Notification Configurations
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*/
/*
|--------------------------------------------------------------------------
| Firebase API Key
|--------------------------------------------------------------------------
|
| The secret key for Firebase API
| YOUR-FCM-SERVER-KEY
*/
// $config['key'] = 'AAAAC9VlHUU:APA91bEI4eUtSlgqRG7CvFwYzhoVwV7-4AJMp-IGd4Y-Oj4KDPM46JPpQFyN71MwBsb4QYJcQEvUGn5eAHDHoTeaK3BSxkw9KYqR9SNTHYcqeJREDuml6E_sxlRf9TytU7ZD9d4homuz';
$config['key'] = 'AAAAxbf3sMY:APA91bEG0Ow70XWe4_cDSaNoGHxQZx9bw2J_S03mPnWVgbOw_jfBH-n0TmpsiBvKfZ2GUvd0R_g_bhWnonQqRVICNwUvllsxQfrmDYJZaUs5UK_hCot2ac0OWmg7omsquSe1bLJ0Mcps';
/*
|--------------------------------------------------------------------------
| Firebase Cloud Messaging API URL
|--------------------------------------------------------------------------
|
| The URL for Firebase Cloud Messafing
|
*/
$config['fcm_url'] = 'https://fcm.googleapis.com/fcm/send';

View File

@ -1,137 +0,0 @@
<?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', 'email', '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');
|
| You can also supply an alternative property name to be assigned in
| the controller:
|
| $autoload['drivers'] = array('cache' => 'cch');
|
*/
$autoload['drivers'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file','security');
*/
$autoload['helper'] = array('url', 'file');
/*
| -------------------------------------------------------------------
| 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();
$autoload['helper'] = array('menu','icdapi','address','npiapi','fileupload','common','multifileupload','servicestherapy','email','notification');

View File

@ -1,566 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| WARNING: You MUST set this value!
|
| If it is not set, then CodeIgniter will try guess the protocol and path
| your installation, but due to security concerns the hostname will be set
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
| The auto-detection mechanism exists only for convenience during
| development and MUST NOT be used in production!
|
| If you need to allow multiple domains, remember that this file is still
| a PHP script and you can easily do that on your own.
|
*/
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
$ht = "https://";
} else {
$ht = "http://";
}
$config['base_url'] = $ht.$_SERVER['HTTP_HOST'];
$config['base_url'] .= preg_replace('@/+$@','',dirname($_SERVER['SCRIPT_NAME'])).'/';
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'REQUEST_URI' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'REQUEST_URI';
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| https://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';
/*
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
|
| This determines which set of language files should be used. Make sure
| there is an available translation if you intend to use something other
| than english.
|
*/
$config['language'] = 'english';
/*
|--------------------------------------------------------------------------
| Default Character Set
|--------------------------------------------------------------------------
|
| This determines which character set is used by default in various methods
| that require a character set to be provided.
|
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the 'hooks' feature you must enable it by
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = TRUE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries. For more information please see the user guide:
|
| https://codeigniter.com/user_guide/general/core_classes.html
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Composer auto-loading
|--------------------------------------------------------------------------
|
| Enabling this setting will tell CodeIgniter to look for a Composer
| package auto-loader script in application/vendor/autoload.php.
|
| $config['composer_autoload'] = TRUE;
|
| Or if you have your vendor/ directory located somewhere else, you
| can opt to set a specific path as well:
|
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
| For more information about Composer, please visit http://getcomposer.org/
|
| Note: This will NOT disable or override the CodeIgniter-specific
| autoloading (application/config/autoload.php)
*/
$config['composer_autoload'] = 'vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify which characters are permitted within your URLs.
| When someone tries to submit a URL with disallowed characters they will
| get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| The configured value is actually a regular expression character group
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
| example.com/who/what/where/
|
| You can optionally enable standard query string based URLs:
| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string 'words' that will
| invoke your controllers and its functions:
| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
| use segment based URLs.
|
*/
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';
/*
|--------------------------------------------------------------------------
| Allow $_GET array
|--------------------------------------------------------------------------
|
| By default CodeIgniter enables access to the $_GET array. If for some
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['allow_get_array'] = TRUE;
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| You can also pass an array with threshold levels to show individual error types
|
| array(2) = Debug Messages, without Error Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0;
/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ directory. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| Log File Extension
|--------------------------------------------------------------------------
|
| The default filename extension for log files. The default 'php' allows for
| protecting the log files via basic scripting, when they are to be stored
| under a publicly accessible directory.
|
| Note: Leaving it blank will default to 'php'.
|
*/
$config['log_file_extension'] = '';
/*
|--------------------------------------------------------------------------
| Log File Permissions
|--------------------------------------------------------------------------
|
| The file system permissions to be applied on newly created log files.
|
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
| integer notation (i.e. 0700, 0644, etc.)
*/
$config['log_file_permissions'] = 0644;
/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'Y-m-d H:i:s';
/*
|--------------------------------------------------------------------------
| Error Views Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/views/errors/ directory. Use a full server path with trailing slash.
|
*/
$config['error_views_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/cache/ directory. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Include Query String
|--------------------------------------------------------------------------
|
| Whether to take the URL query string into consideration when generating
| output cache files. Valid options are:
|
| FALSE = Disabled
| TRUE = Enabled, take all query parameters into account.
| Please be aware that this may result in numerous cache
| files generated for the same page over and over again.
| array('q') = Enabled, but only take into account the specified list
| of query parameters.
|
*/
$config['cache_query_string'] = FALSE;
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class, you must set an encryption key.
| See the user guide for more info.
|
| https://codeigniter.com/user_guide/libraries/encryption.html
|
*/
$config['encryption_key'] = '';
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_driver'
|
| The storage driver to use: files, database, redis, memcached
|
| 'sess_cookie_name'
|
| The session cookie name, must contain only [0-9a-z_-] characters
|
| 'sess_expiration'
|
| The number of SECONDS you want the session to last.
| Setting to 0 (zero) means expire when the browser is closed.
|
| 'sess_save_path'
|
| The location to save sessions to, driver dependent.
|
| For the 'files' driver, it's a path to a writable directory.
| WARNING: Only absolute paths are supported!
|
| For the 'database' driver, it's a table name.
| Please read up the manual for the format with other session drivers.
|
| IMPORTANT: You are REQUIRED to set a valid save path!
|
| 'sess_match_ip'
|
| Whether to match the user's IP address when reading the session data.
|
| WARNING: If you're using the database driver, don't forget to update
| your session table's PRIMARY KEY when changing this setting.
|
| 'sess_time_to_update'
|
| How many seconds between CI regenerating the session ID.
|
| 'sess_regenerate_destroy'
|
| Whether to destroy session data associated with the old session ID
| when auto-regenerating the session ID. When set to FALSE, the data
| will be later deleted by the garbage collector.
|
| Other session cookie settings are shared with the rest of the application,
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
*/
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
| Note: These settings (with the exception of 'cookie_prefix' and
| 'cookie_httponly') will also affect sessions.
|
*/
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;
/*
|--------------------------------------------------------------------------
| Standardize newlines
|--------------------------------------------------------------------------
|
| Determines whether to standardize newline characters in input data,
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['standardize_newlines'] = FALSE;
/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['global_xss_filtering'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cross Site Request Forgery
|--------------------------------------------------------------------------
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
| checked on a submitted form. If you are accepting user data, it is strongly
| recommended CSRF protection be enabled.
|
| 'csrf_token_name' = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
| 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
*/
$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = FALSE;
$config['csrf_exclude_uris'] = array(
'hms_web_service/login',
'hms_web_service/emailExist',
'hms_web_service/register',
'hms_web_service/getExperienceDetails',
'hms_web_service/ProfileUpdate',
'hms_web_service/documentsSaved',
'hms_web_service/forgetPass',
'hms_web_service/checkOtp',
'hms_web_service/user_save_new_password',
'hms_web_service/saveDocumentSignature',
'hms_web_service/updatedata',
'hms_web_service/profileOtherInfo',
'hms_web_service/send_for_approval',
'hms_web_service/saveExamData',
'hms_web_service/linkedinLogin',
'hms_web_service/deleteOtherReference',
'hms_web_service/deleteLicenseData',
'hms_web_service/saveVideoChatHistory',
'hms_web_service/saveAvailability',
'hms_web_service/saveReportData',
'hms_web_service/saveAcceptence',
'hms_web_service/clock_in',
'hms_web_service/clock_out',
'hms_web_service/test_push_notification',
'hms_web_service/test_notification',
'hms_web_service/updateProfilePic',
'hms_web_service/hms_patient_sign_up',
'hms_web_service/hms_caregiver_sign_up',
'hms_web_service/hms_user_verification_resend_otp',
'hms_web_service/hms_user_verification_authenticate',
'hms_web_service/save_ftf_home_visit_form',
'hms_web_service/editReferal',
);
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| Only used if zlib.output_compression is turned off in your php.ini.
| Please do not use it together with httpd-level output compression.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are 'local' or any PHP supported timezone. This preference tells
| the system whether to use your server's local time as the master 'now'
| reference, or convert it to the configured one timezone. See the 'date
| helper' page of the user guide for information regarding date handling.
|
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
|--------------------------------------------------------------------------
|
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
| Note: You need to have eval() enabled for this to work.
|
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy
| IP addresses from which CodeIgniter should trust headers such as
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
| the visitor's IP address.
|
| You can use both an array or a comma-separated list of proxy addresses,
| as well as specifying whole subnets. Here are a few examples:
|
| Comma-separated: '10.0.1.200,192.168.5.0/24'
| Array: array('10.0.1.200', '192.168.5.0/24')
*/
$config['proxy_ips'] = '';
date_default_timezone_set('America/New_York');

View File

@ -1,550 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| WARNING: You MUST set this value!
|
| If it is not set, then CodeIgniter will try guess the protocol and path
| your installation, but due to security concerns the hostname will be set
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
| The auto-detection mechanism exists only for convenience during
| development and MUST NOT be used in production!
|
| If you need to allow multiple domains, remember that this file is still
| a PHP script and you can easily do that on your own.
|
*/
// if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
// $ht = "https://";
// } else {
$ht = "http://";
// }
$config['base_url'] = $ht.$_SERVER['HTTP_HOST'];
$config['base_url'] .= preg_replace('@/+$@','',dirname($_SERVER['SCRIPT_NAME'])).'/';
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'REQUEST_URI' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'REQUEST_URI';
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| https://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';
/*
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
|
| This determines which set of language files should be used. Make sure
| there is an available translation if you intend to use something other
| than english.
|
*/
$config['language'] = 'english';
/*
|--------------------------------------------------------------------------
| Default Character Set
|--------------------------------------------------------------------------
|
| This determines which character set is used by default in various methods
| that require a character set to be provided.
|
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the 'hooks' feature you must enable it by
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = TRUE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries. For more information please see the user guide:
|
| https://codeigniter.com/user_guide/general/core_classes.html
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Composer auto-loading
|--------------------------------------------------------------------------
|
| Enabling this setting will tell CodeIgniter to look for a Composer
| package auto-loader script in application/vendor/autoload.php.
|
| $config['composer_autoload'] = TRUE;
|
| Or if you have your vendor/ directory located somewhere else, you
| can opt to set a specific path as well:
|
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
| For more information about Composer, please visit http://getcomposer.org/
|
| Note: This will NOT disable or override the CodeIgniter-specific
| autoloading (application/config/autoload.php)
*/
$config['composer_autoload'] = 'vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify which characters are permitted within your URLs.
| When someone tries to submit a URL with disallowed characters they will
| get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| The configured value is actually a regular expression character group
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
| example.com/who/what/where/
|
| You can optionally enable standard query string based URLs:
| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string 'words' that will
| invoke your controllers and its functions:
| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
| use segment based URLs.
|
*/
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';
/*
|--------------------------------------------------------------------------
| Allow $_GET array
|--------------------------------------------------------------------------
|
| By default CodeIgniter enables access to the $_GET array. If for some
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['allow_get_array'] = TRUE;
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| You can also pass an array with threshold levels to show individual error types
|
| array(2) = Debug Messages, without Error Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0;
/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ directory. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| Log File Extension
|--------------------------------------------------------------------------
|
| The default filename extension for log files. The default 'php' allows for
| protecting the log files via basic scripting, when they are to be stored
| under a publicly accessible directory.
|
| Note: Leaving it blank will default to 'php'.
|
*/
$config['log_file_extension'] = '';
/*
|--------------------------------------------------------------------------
| Log File Permissions
|--------------------------------------------------------------------------
|
| The file system permissions to be applied on newly created log files.
|
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
| integer notation (i.e. 0700, 0644, etc.)
*/
$config['log_file_permissions'] = 0644;
/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'Y-m-d H:i:s';
/*
|--------------------------------------------------------------------------
| Error Views Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/views/errors/ directory. Use a full server path with trailing slash.
|
*/
$config['error_views_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/cache/ directory. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Include Query String
|--------------------------------------------------------------------------
|
| Whether to take the URL query string into consideration when generating
| output cache files. Valid options are:
|
| FALSE = Disabled
| TRUE = Enabled, take all query parameters into account.
| Please be aware that this may result in numerous cache
| files generated for the same page over and over again.
| array('q') = Enabled, but only take into account the specified list
| of query parameters.
|
*/
$config['cache_query_string'] = FALSE;
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class, you must set an encryption key.
| See the user guide for more info.
|
| https://codeigniter.com/user_guide/libraries/encryption.html
|
*/
$config['encryption_key'] = '';
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_driver'
|
| The storage driver to use: files, database, redis, memcached
|
| 'sess_cookie_name'
|
| The session cookie name, must contain only [0-9a-z_-] characters
|
| 'sess_expiration'
|
| The number of SECONDS you want the session to last.
| Setting to 0 (zero) means expire when the browser is closed.
|
| 'sess_save_path'
|
| The location to save sessions to, driver dependent.
|
| For the 'files' driver, it's a path to a writable directory.
| WARNING: Only absolute paths are supported!
|
| For the 'database' driver, it's a table name.
| Please read up the manual for the format with other session drivers.
|
| IMPORTANT: You are REQUIRED to set a valid save path!
|
| 'sess_match_ip'
|
| Whether to match the user's IP address when reading the session data.
|
| WARNING: If you're using the database driver, don't forget to update
| your session table's PRIMARY KEY when changing this setting.
|
| 'sess_time_to_update'
|
| How many seconds between CI regenerating the session ID.
|
| 'sess_regenerate_destroy'
|
| Whether to destroy session data associated with the old session ID
| when auto-regenerating the session ID. When set to FALSE, the data
| will be later deleted by the garbage collector.
|
| Other session cookie settings are shared with the rest of the application,
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
*/
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
| Note: These settings (with the exception of 'cookie_prefix' and
| 'cookie_httponly') will also affect sessions.
|
*/
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;
/*
|--------------------------------------------------------------------------
| Standardize newlines
|--------------------------------------------------------------------------
|
| Determines whether to standardize newline characters in input data,
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['standardize_newlines'] = FALSE;
/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['global_xss_filtering'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cross Site Request Forgery
|--------------------------------------------------------------------------
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
| checked on a submitted form. If you are accepting user data, it is strongly
| recommended CSRF protection be enabled.
|
| 'csrf_token_name' = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
| 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
*/
$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = FALSE;
$config['csrf_exclude_uris'] = array(
'hms_web_service/login',
'hms_web_service/emailExist',
'hms_web_service/register',
'hms_web_service/getExperienceDetails',
'hms_web_service/ProfileUpdate',
'hms_web_service/documentsSaved',
'hms_web_service/forgetPass',
'hms_web_service/checkOtp',
'hms_web_service/user_save_new_password',
'hms_web_service/saveDocumentSignature',
'hms_web_service/updatedata',
'hms_web_service/profileOtherInfo',
'hms_web_service/send_for_approval',
'hms_web_service/saveExamData',
'hms_web_service/linkedinLogin',
'hms_web_service/saveExamResult',
);
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| Only used if zlib.output_compression is turned off in your php.ini.
| Please do not use it together with httpd-level output compression.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are 'local' or any PHP supported timezone. This preference tells
| the system whether to use your server's local time as the master 'now'
| reference, or convert it to the configured one timezone. See the 'date
| helper' page of the user guide for information regarding date handling.
|
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
|--------------------------------------------------------------------------
|
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
| Note: You need to have eval() enabled for this to work.
|
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy
| IP addresses from which CodeIgniter should trust headers such as
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
| the visitor's IP address.
|
| You can use both an array or a comma-separated list of proxy addresses,
| as well as specifying whole subnets. Here are a few examples:
|
| Comma-separated: '10.0.1.200,192.168.5.0/24'
| Array: array('10.0.1.200', '192.168.5.0/24')
*/
$config['proxy_ips'] = '';
date_default_timezone_set('America/New_York');

View File

@ -1,258 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Display Debug backtrace
|--------------------------------------------------------------------------
|
| If set to TRUE, a backtrace will be displayed along with php errors. If
| error_reporting is disabled, the backtrace will not display, regardless
| of this setting
|
*/
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system. The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
| always be used to set the mode correctly.
|
*/
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/*
|--------------------------------------------------------------------------
| Exit Status Codes
|--------------------------------------------------------------------------
|
| Used to indicate the conditions under which the script is exit()ing.
| While there is no universal standard for error codes, there are some
| broad conventions. Three such conventions are mentioned below, for
| those who wish to make use of them. The CodeIgniter defaults were
| chosen for the least overlap with these conventions, while still
| leaving room for others to be defined in future versions and user
| applications.
|
| The three main conventions used for determining exit status codes
| are as follows:
|
| Standard C/C++ Library (stdlibc):
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
| (This link also contains other GNU-specific conventions)
| BSD sysexits.h:
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
| Bash scripting:
| http://tldp.org/LDP/abs/html/exitcodes.html
|
*/
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
defined('_SITE_TITLE_') OR define('_SITE_TITLE_', 'WeCuro');
///Documents CODE
defined('_DOC_PHOTOCODE_') OR define('_DOC_PHOTOCODE_', 'PHO');
defined('_DOC_CTZCODE_') OR define('_DOC_CTZCODE_', 'CTZ');//Citizen
defined('_DOC_CTZBACK_') OR define('_DOC_CTZBACK_', 'CTB');//Citizen
defined('_DOC_SFICODE_') OR define('_DOC_SFICODE_', 'SFI');//State Fedaration
defined('_DOC_SSCCODE_') OR define('_DOC_SSCCODE_', 'SSC');//Social Security Card
defined('_DOC_SSCBACK_') OR define('_DOC_SSCBACK_', 'SSB');//Social Security Card
defined('_DOC_RESUMECODE_') OR define('_DOC_RESUMECODE_', 'RSM');//Resume
defined('_DOC_REFCODE_') OR define('_DOC_REFCODE_', 'REF');//Personal/Professional References2
defined('_DOC_NPICODE_') OR define('_DOC_NPICODE_', 'NPI');//NPI Document
defined('_DOC_PCACODE_') OR define('_DOC_PCACODE_', 'PCA');//PCA Document
defined('_DOC_COVID_') OR define('_DOC_COVID_', 'CVD');//Covid Report
defined('_DOC_CPR_') OR define('_DOC_CPR_', 'CPR');//CPR Report
defined('_DOC_SIDCODE_') OR define('_DOC_SIDCODE_', 'SID');//State ID Card Font
defined('_DOC_SIDBACK_') OR define('_DOC_SIDBACK_', 'SIDB');//State ID Card Back
defined('_DOC_RUBELLACODE_') OR define('_DOC_RUBELLACODE_', 'RBL'); //Rubella
defined('_DOC_RUBOELLACODE_') OR define('_DOC_RUBOELLACODE_', 'RAL');//Ruboella
defined('_DOC_CHICKENPOXCODE_') OR define('_DOC_CHICKENPOXCODE_', 'CPX');//Ruboella
defined('_DOC_PPDCODE_') OR define('_DOC_PPDCODE_', 'PPD');//PPD
defined('_DOC_QUANTIFUROMCODE_') OR define('_DOC_QUANTIFUROMCODE_', 'QTF');//Quantifurom
defined('_DOC_CHEST_X_RAYCODE_') OR define('_DOC_CHEST_X_RAYCODE_', 'CXR');//Chest X-ray
defined('_DOC_FLU_VACCINECODE_') OR define('_DOC_FLU_VACCINECODE_', 'FLV');//Flu Vaccine
defined('_DOC_HEPATITIS_BCODE_') OR define('_DOC_HEPATITIS_BCODE_', 'HBC');//Hepatitis B
defined('_DOC_PEF_CODE_') OR define('_DOC_PEF_CODE_', 'PEF');//Physical Examination Form
defined('_DOC_EHA_CODE_') OR define('_DOC_EHA_CODE_', 'EHA');//Employee Health Assessment
defined('_DOC_HBV_CODE_') OR define('_DOC_HBV_CODE_', 'HBV');//Hapatitis B Vaccine Acceptence
defined('_DOC_RBL_CODE_') OR define('_DOC_RBL_CODE_', 'RBL');//Rubella vaccine
defined('_DOC_RBO_CODE_') OR define('_DOC_RBO_CODE_', 'RBO');//Rubella vaccine
defined('_DOC_RRM_CODE_') OR define('_DOC_RRM_CODE_', 'RRM');//Rubella,Rubello & Mumps vaccine
defined('_DOC_DIPHTHERIA_CODE_') OR define('_DOC_DIPHTHERIA_CODE_', 'DIP');//Rubella vaccine
defined('_DOC_TETANUS_CODE_') OR define('_DOC_TETANUS_CODE_', 'TNS');//Rubella vaccine
defined('_DOC_TDAP_CODE_') OR define('_DOC_TDAP_CODE_', 'TDAP');//Tetanus and Diptheria vaccine
defined('_DOC_MUMPS_CODE_') OR define('_DOC_MUMPS_CODE_', 'MUM');//Rubella vaccine
defined('_DOC_VAR_CODE_') OR define('_DOC_VAR_CODE_', 'VAR');//Rubella vaccine
defined('_DOC_DRUG_SCREENINGCODE_') OR define('_DOC_DRUG_SCREENINGCODE_', 'DSC');//Drug Screening
defined('_DOC_MICCODE_') OR define('_DOC_MICCODE_', 'MIC');//Malpractice Insurance Policy
defined('_DOC_TRAININGCODE_') OR define('_DOC_TRAININGCODE_', 'TRN');//Training Documents
defined('_DOC_OTHERCODE_') OR define('_DOC_OTHERCODE_', 'OTR');//OTHER Documents
defined('_DOC_CHRC102_') OR define('_DOC_CHRC102_', '102');//DOH CHRC 102 Form
defined('_DOC_CHRC103_') OR define('_DOC_CHRC103_', '103');//DOH CHRC 103 Form
defined('_DOC_RRFCODE_') OR define('_DOC_RRFCODE_', 'RRF');//HOME CARE REGISTRY RELEASE Form
defined('_ADDL_CERTIFICATE_') OR define('_ADDL_CERTIFICATE_', 'ADC');//Additional Certificate
defined('_DOC_TRAINING_LICENCE_') OR define('_DOC_TRAINING_LICENCE_', 'LIC');//Licence
defined('_DOC_CER_') OR define('_DOC_CER_', 'CER');//Licence
defined('_OTHER_REFERENCE_CODE') OR define('_OTHER_REFERENCE_CODE', 'ORC');//Otrher Reference
defined('_DOC_PROFETIONAL_REFERENCE') OR define('_DOC_PROFETIONAL_REFERENCE', 'DPR');//PROFETIONAL REFERENCE
defined('_DOC_TUBERCULOSIS_QUESTIONNAIRE') OR define('_DOC_TUBERCULOSIS_QUESTIONNAIRE', 'DTUQ');//Tuberculosis Questionnaire
defined('_IV_CERTIFICATION') OR define('_IV_CERTIFICATION', 'IVC');//IV CERTIFICATE
defined('_BLS_CERTIFICATION') OR define('_BLS_CERTIFICATION', 'BLS');//BLS CERTIFICATE
defined('_ACLS_CERTIFICATION') OR define('_ACLS_CERTIFICATION', 'ACL');//ACLS CERTIFICATE
defined('_PALS_CERTIFICATION') OR define('_PALS_CERTIFICATION', 'PAL');//PALS CERTIFICATE
defined('_DOC_CITIZENSHIP_ONE_') OR define('_DOC_CITIZENSHIP_ONE_', 'CTZ1');//Licence
defined('_DOC_CITIZENSHIP_TWO_') OR define('_DOC_CITIZENSHIP_TWO_', 'CTZ2');//Licence
//ICD API
defined('ICD_TOKEN_ENPOINT') OR define('ICD_TOKEN_ENPOINT', $_ENV['ICD_TOKEN_ENPOINT']);
defined('ICD_CLIENT_ID') OR define('ICD_CLIENT_ID', $_ENV['ICD_CLIENT_ID']);
defined('ICD_CLIENT_SECRET') OR define('ICD_CLIENT_SECRET', $_ENV['ICD_CLIENT_SECRET']);
defined('ICD_SCOPE') OR define('ICD_SCOPE', $_ENV['ICD_SCOPE']);
defined('ICD_GRANT_TYPE') OR define('ICD_GRANT_TYPE', $_ENV['ICD_GRANT_TYPE']);
// defined('ICD_TOKEN_ENPOINT') OR define('ICD_TOKEN_ENPOINT', 'https://icdaccessmanagement.who.int/connect/token');
// defined('ICD_CLIENT_ID') OR define('ICD_CLIENT_ID', '3426fb0a-b499-49ff-b990-b6881af2b77e_61b0d074-2b83-49d7-b980-dafa67f50f2b');
// defined('ICD_CLIENT_SECRET') OR define('ICD_CLIENT_SECRET', 'IiwImhNU7QciPVU77r/a8gAgSKuYGJMJfc7c/kkA/v4=');
// defined('ICD_SCOPE') OR define('ICD_SCOPE', 'icdapi_access');
// defined('ICD_GRANT_TYPE') OR define('ICD_GRANT_TYPE', 'client_credentials');
//GEOCODE API
defined('GEOCODE_API_KEY') OR define('GEOCODE_API_KEY', $_ENV['GEOCODE_API_KEY']);
// defined('GEOCODE_API_KEY') OR define('GEOCODE_API_KEY', '1f004e99ebbb1ff4bb08c6dd5d894469');
//mapquest_api
defined('MAPQUEST_API_KEY') OR define('MAPQUEST_API_KEY', $_ENV['MAPQUEST_API_KEY']);
// defined('MAPQUEST_API_KEY') OR define('MAPQUEST_API_KEY', 'o9kVvzAORXhqbBJxCsqPQY3Om1kb0eqI');
//INVOICE API
defined('authorizationRequestUrl') OR define('authorizationRequestUrl', $_ENV['authorizationRequestUrl']);
defined('INV_CLIENT_ID') OR define('INV_CLIENT_ID', $_ENV['INV_CLIENT_ID']);
defined('INV_CLIENT_SECRET') OR define('INV_CLIENT_SECRET', $_ENV['INV_CLIENT_SECRET']);
defined('INV_SCOPE') OR define('INV_SCOPE', $_ENV['INV_SCOPE']);
defined('oauth_redirect_uri') OR define('oauth_redirect_uri', $_ENV['oauth_redirect_uri']);
defined('ACCURATE_AUTH') OR define('ACCURATE_AUTH', $_ENV['ACCURATE_AUTH']);
// defined('authorizationRequestUrl') OR define('authorizationRequestUrl', 'https://appcenter.intuit.com/connect/oauth2');
// defined('INV_CLIENT_ID') OR define('INV_CLIENT_ID', 'ABQ8G3V638aECkSCR7g3ojCaYrIpuGX4Okqp4IuJpXuyNmfhPr');
// defined('INV_CLIENT_SECRET') OR define('INV_CLIENT_SECRET', 'NRIODFajK3AXR0QGKfNLZfQQH01RZrER41EBmVOc');
// defined('INV_SCOPE') OR define('INV_SCOPE', 'com.intuit.quickbooks.accounting');
// defined('oauth_redirect_uri') OR define('oauth_redirect_uri', 'http://localhost/hospital-managements/callback');
// defined('ACCURATE_AUTH') OR define('ACCURATE_AUTH', 'OGViYWUwMmItZmFhNC00M2RiLWJkNzAtNzBjY2ViMTcxODk5OjBhMDQ4YmViLWUyYjktNDMzMS04ODcyLWE5Yjc3OGFmZDlhNA==');
//INDEED CREDENTIAL
defined('INDEED_CLIENT_ID') OR define('INDEED_CLIENT_ID',$_ENV['INDEED_CLIENT_ID']);
defined('INDEED_CLIENT_SECRET') OR define('INDEED_CLIENT_SECRET', $_ENV['INDEED_CLIENT_SECRET']);
defined('indeed_oauth_redirect_uri') OR define('indeed_oauth_redirect_uri', $_ENV['indeed_oauth_redirect_uri']);
defined('INDEED_GRANT_TYPE') OR define('INDEED_GRANT_TYPE', $_ENV['INDEED_GRANT_TYPE']);
// defined('INDEED_CLIENT_ID') OR define('INDEED_CLIENT_ID', 'bc670ca45cf385cfeedba3050383552ba3c0d86d7f8f2aa946fea196cdecbd42');
// defined('INDEED_CLIENT_SECRET') OR define('INDEED_CLIENT_SECRET', 'v2tIaDfpNSTkhCbRlfTjfGjUK0a9yfUDVvbjfMugcv54phpL6CclqINavaBKl7Sz');
// defined('indeed_oauth_redirect_uri') OR define('indeed_oauth_redirect_uri', 'http://localhost/hospital-management/auth/loginIndeed');
// defined('INDEED_GRANT_TYPE') OR define('INDEED_GRANT_TYPE', 'authorization_code');
// App version
defined('APP_VERSION') or define('APP_VERSION',$_ENV['APP_VERSION']);
// defined('APP_VERSION') or define('APP_VERSION','v 1.0.0');
// Site credentials
defined('EMAIL_FROM') or define('EMAIL_FROM',$_ENV['EMAIL_FROM']);
defined('SEND_GRID_API_KEY') or define('SEND_GRID_API_KEY',$_ENV['SEND_GRID_API_KEY']);
defined('SEND_GRID_URL') or define('SEND_GRID_URL',$_ENV['SEND_GRID_URL']);
//recaptcha
defined('RECAPTCHA_SITE_KEY') or define('RECAPTCHA_SITE_KEY',$_ENV['RECAPTCHA_SITE_KEY']);
defined('RECAPTCHA_SECRET_KEY') or define('RECAPTCHA_SECRET_KEY',$_ENV['RECAPTCHA_SECRET_KEY']);
//Twilio SMS
defined('TWILIO_SMS_SID') or define('TWILIO_SMS_SID',$_ENV['TWILIO_SMS_SID']);
defined('TWILIO_SMS_AUTH_TOKEN') or define('TWILIO_SMS_AUTH_TOKEN',$_ENV['TWILIO_SMS_AUTH_TOKEN']);
defined('TWILIO_SMS_PHONE_NUMBER') or define('TWILIO_SMS_PHONE_NUMBER',$_ENV['TWILIO_SMS_PHONE_NUMBER']);
defined('COUNTRY_CODE') or define('COUNTRY_CODE',$_ENV['COUNTRY_CODE']);
// defined('EMAIL_FROM') or define('EMAIL_FROM','moli@sentientgeeks.com');
// defined('SEND_GRID_API_KEY') or define('SEND_GRID_API_KEY','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');
// defined('SEND_GRID_URL') or define('SEND_GRID_URL','https://api.sendgrid.com/v3/mail/send');
//ACCEPTANCE TAB VERIFICATION CODE
defined('_VERIFY_CAREGIVER_INFO_') OR define('_VERIFY_CAREGIVER_INFO_', 'VCINF'); //U.S. WORK AUTHORIZATION & ID
defined('_VERIFY_US_AUTH_') OR define('_VERIFY_US_AUTH_', 'VAUTH'); //U.S. WORK AUTHORIZATION & ID
defined('_VERIFY_REFERENCE_') OR define('_VERIFY_REFERENCE_', 'VREF'); //Professional References
defined('_VERIFY_RESUME_') OR define('_VERIFY_RESUME_', 'VRES'); //Resume
defined('_VERIFY_EDUCATION_') OR define('_VERIFY_EDUCATION_', 'VEDU'); //Education
defined('_VERIFY_LICENSES_') OR define('_VERIFY_LICENSES_', 'VLIC'); //Licenses
defined('_VERIFY_CERTIFICATION_') OR define('_VERIFY_CERTIFICATION_', 'VCER'); //Certification
defined('_VERIFY_MALPACTICE_INS_') OR define('_VERIFY_MALPACTICE_INS_', 'VMINS'); //Malpractice Insurance
defined('_VERIFY_NPI_') OR define('_VERIFY_NPI_', 'VNPI'); //NPI Number
defined('_VERIFY_NON_MEDICAL_DOC_') OR define('_VERIFY_NON_MEDICAL_DOC_', 'VNMD'); //NON MEDICAL DOC
defined('_VERIFY_DISCLOSURE_') OR define('_VERIFY_DISCLOSURE_', 'VDIS'); //DISCLOSURE
defined('_VERIFY_HEALTH_ASSESMENT_') OR define('_VERIFY_HEALTH_ASSESMENT_', 'VHA'); //Health Assesment
defined('_VERIFY_PHYSICAL_EXAM_') OR define('_VERIFY_PHYSICAL_EXAM_', 'VPEX'); //Physical Examination
defined('_VERIFY_TUBER_QUES_') OR define('_VERIFY_TUBER_QUES_', 'VTQ'); //Tuberculosis Questionaire
defined('_VERIFY_DRUG_SCREEN_') OR define('_VERIFY_DRUG_SCREEN_', 'VDSC'); //Drug Screen Attestation
defined('_VERIFY_VACCINE_') OR define('_VERIFY_VACCINE_', 'VVAC'); //Vaccines
defined('_VERIFY_PHY_ATTESTATION_') OR define('_VERIFY_PHY_ATTESTATION_', 'VPAT'); //Physical Attestation
defined('_VERIFY_BACKGROUND_') OR define('_VERIFY_BACKGROUND_', 'VBACK'); //Physical Attestation
defined('_ADDITIONAL_PDF_DISCLOSURE_') OR define('_ADDITIONAL_PDF_DISCLOSURE_', 'APD'); //Additional pdfs in disclosure section
defined('_BACKGROUND_CHECK_DOC_') OR define('_BACKGROUND_CHECK_DOC_', 'BCHD'); //Additional pdfs in disclosure section
defined('_USER_ADDED_NOTES_') OR define('_USER_ADDED_NOTES_', 'NOTES'); //Additional pdfs in disclosure section
defined('_VERIFY_CPR_') OR define('_VERIFY_CPR_', 'VCPR'); //CPR

View File

@ -1,96 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide.
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
| ['dsn'] The full DSN string describe a connection to the database.
| ['hostname'] The hostname of your database server.
| ['username'] The username used to connect to the database
| ['password'] The password used to connect to the database
| ['database'] The name of the database you want to connect to
| ['dbdriver'] The database driver. e.g.: mysqli.
| Currently supported:
| cubrid, ibase, mssql, mysql, mysqli, oci8,
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
| ['dbprefix'] You can add an optional prefix, which will be added
| to the table name when using the Query Builder class
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
| ['cachedir'] The path to the folder where cache files should be stored
| ['char_set'] The character set used in communicating with the database
| ['dbcollat'] The character collation used in communicating with the database
| NOTE: For MySQL and MySQLi databases, this setting is only used
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
| (and in table creation queries made with DB Forge).
| There is an incompatibility in PHP with mysql_real_escape_string() which
| can make your site vulnerable to SQL injection if you are using a
| multi-byte character set and are running versions lower than these.
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
| ['encrypt'] Whether or not to use an encrypted connection.
|
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
| 'ssl_key' - Path to the private key file
| 'ssl_cert' - Path to the public key certificate file
| 'ssl_ca' - Path to the certificate authority file
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
| ['compress'] Whether or not to use client compression (MySQL only)
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
| - good for ensuring strict SQL while developing
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
| NOTE: Disabling this will also effectively disable both
| $this->db->last_query() and profiling of DB queries.
| When you run a query, with this setting set to TRUE (default),
| CodeIgniter will store the SQL statement for debugging purposes.
| However, this may cause high memory usage, especially if you run
| a lot of SQL queries ... disable this to avoid that problem.
|
| The $active_group variable lets you choose which connection group to
| make active. By default there is only one group (the 'default' group).
|
| The $query_builder variables lets you determine whether or not to load
| the query builder class.
*/
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => $_ENV['DB_HOST'],//'localhost',
'username' => $_ENV['DB_USER'],//'root',
'password' => $_ENV['DB_PASSWORD'],//'',
'database' => $_ENV['DB_NAME'],//'wecuro_new',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);

View File

@ -1,24 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$_doctypes = array(
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
'xhtml-basic11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
'html5' => '<!DOCTYPE html>',
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
'mathml1' => '<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">',
'mathml2' => '<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">',
'svg10' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">',
'svg11' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
'svg11-basic' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">',
'svg11-tiny' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">',
'xhtml-math-svg-xh' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
'xhtml-math-svg-sh' => '<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">'
);

View File

@ -1,15 +0,0 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$config = array(
'protocol' => 'smtp', // 'mail', 'sendmail', or 'smtp'
'smtp_host' => 'smtp.mailtrap.io',
'smtp_port' => 25,
'smtp_user' => '505a0d93534180',
'smtp_pass' => '07433d0ae4879d',
'smtp_crypto' => 'tls', //can be 'ssl' or 'tls' for example
'mailtype' => 'html', //plaintext 'text' mails or 'html'
'smtp_timeout' => '4', //in seconds
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);
?>

View File

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

View File

@ -1,21 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files. Please see the user guide for info:
|
| https://codeigniter.com/user_guide/general/hooks.html
|
*/
$hook['pre_controller'] = array(
// 'class' => '',
'function' => 'required',
'filename' => 'required.php',
'filepath' => 'hooks',
// 'params' => ''
);

View File

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

View File

@ -1,216 +0,0 @@
<?php
/**
* Name: Ion Auth
*
*
* Created: 10.01.2009
*
* Description: Modified auth system based on redux_auth with extensive customization. This is basically what Redux Auth 2 should be.
* Original Author name has been kept but that does not mean that the method has not been modified.
*
* Requirements: PHP5.6 or above
*
* @package CodeIgniter-Ion-Auth
* @author Ben Edmunds
* @link http://github.com/benedmunds/CodeIgniter-Ion-Auth
* @filesource
*/
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Database group name option.
| -------------------------------------------------------------------------
| Allows to select a specific group for the database connection
|
| Default is empty: uses default group defined in CI's configuration
| (see application/config/database.php, $active_group variable)
*/
$config['database_group_name'] = '';
/*
| -------------------------------------------------------------------------
| Tables.
| -------------------------------------------------------------------------
| Database table names.
*/
$config['tables']['users'] = 'users';
$config['tables']['groups'] = 'groups';
$config['tables']['users_groups'] = 'users_groups';
$config['tables']['login_attempts'] = 'login_attempts';
/*
| Users table column and Group table column you want to join WITH.
|
| Joins from users.id
| Joins from groups.id
*/
$config['join']['users'] = 'user_id';
$config['join']['groups'] = 'group_id';
/*
| -------------------------------------------------------------------------
| Hash Method (bcrypt or argon2)
| -------------------------------------------------------------------------
| Bcrypt is available in PHP 5.3+
| Argon2 is available in PHP 7.2
|
| Argon2 is recommended by expert (it is actually the winner of the Password Hashing Competition
| for more information see https://password-hashing.net). So if you can (PHP 7.2), go for it.
|
| Bcrypt specific:
| bcrypt_default_cost settings: This defines how strong the encryption will be.
| However, higher the cost, longer it will take to hash (CPU usage) So adjust
| this based on your server hardware.
|
| You can (and should!) benchmark your server. This can be done easily with this little script:
| https://gist.github.com/Indigo744/24062e07477e937a279bc97b378c3402
|
| With bcrypt, an example hash of "password" is:
| $2y$08$200Z6ZZbp3RAEXoaWcMA6uJOFicwNZaqk4oDhqTUiFXFe63MG.Daa
|
| A specific parameter bcrypt_admin_cost is available for user in admin group.
| It is recommended to have a stronger hashing for administrators.
|
| Argon2 specific:
| argon2_default_params settings: This is an array containing the options for the Argon2 algorithm.
| You can define 3 differents keys:
| memory_cost (default 4096 kB)
| Maximum memory (in kBytes) that may be used to compute the Argon2 hash
| The spec recommends setting the memory cost to a power of 2.
| time_cost (default 2)
| Number of iterations (used to tune the running time independently of the memory size).
This defines how strong the encryption will be.
| threads (default 2)
| Number of threads to use for computing the Argon2 hash
| The spec recommends setting the number of threads to a power of 2.
|
| You can (and should!) benchmark your server. This can be done easily with this little script:
| https://gist.github.com/Indigo744/e92356282eb808b94d08d9cc6e37884c
|
| With argon2, an example hash of "password" is:
| $argon2i$v=19$m=1024,t=2,p=2$VEFSSU4wSzh3cllVdE1JZQ$PDeks/7JoKekQrJa9HlfkXIk8dAeZXOzUxLBwNFbZ44
|
| A specific parameter argon2_admin_params is available for user in admin group.
| It is recommended to have a stronger hashing for administrators.
|
| For more information, check the password_hash function help: http://php.net/manual/en/function.password-hash.php
|
*/
$config['hash_method'] = 'bcrypt'; // bcrypt or argon2
$config['bcrypt_default_cost'] = 10; // Set cost according to your server benchmark - but no lower than 10 (default PHP value)
$config['bcrypt_admin_cost'] = 12; // Cost for user in admin group
$config['default_rounds'] = 8; // This does not apply if random_rounds is set to true
$config['random_rounds'] = FALSE;
$config['min_rounds'] = 5;
$config['max_rounds'] = 9;
$config['salt_prefix'] = version_compare(PHP_VERSION, '5.3.7', '<') ? '$2a$' : '$2y$';
$config['argon2_default_params'] = [
'memory_cost' => 1 << 12, // 4MB
'time_cost' => 2,
'threads' => 2
];
$config['argon2_admin_params'] = [
'memory_cost' => 1 << 14, // 16MB
'time_cost' => 4,
'threads' => 2
];
/*
| -------------------------------------------------------------------------
| Authentication options.
| -------------------------------------------------------------------------
| maximum_login_attempts: This maximum is not enforced by the library, but is used by
| is_max_login_attempts_exceeded().
| The controller should check this function and act appropriately.
| If this variable set to 0, there is no maximum.
| min_password_length: This minimum is not enforced directly by the library.
| The controller should define a validation rule to enforce it.
| See the Auth controller for an example implementation.
|
| The library will fail for empty password or password size above 4096 bytes.
| This is an arbitrary (long) value to protect against DOS attack.
*/
$config['site_title'] = "Example.com"; // Site Title, example.com
$config['admin_email'] = "admin@example.com"; // Admin Email, admin@example.com
$config['default_group'] = 'members'; // Default group, use name
$config['admin_group'] = 'admin'; // Default administrators group, use name
$config['identity'] = 'email'; /* You can use any unique column in your table as identity column.
The values in this column, alongside password, will be used for login purposes
IMPORTANT: If you are changing it from the default (email),
update the UNIQUE constraint in your DB */
$config['min_password_length'] = 8; // Minimum Required Length of Password (not enforced by lib - see note above)
$config['email_activation'] = FALSE; // Email Activation for registration
$config['manual_activation'] = FALSE; // Manual Activation for registration
$config['remember_users'] = TRUE; // Allow users to be remembered and enable auto-login
$config['user_expire'] = 86500; // How long to remember the user (seconds). Set to zero for no expiration - see sess_expiration in CodeIgniter Session Config for session expiration
$config['user_extend_on_login'] = FALSE; // Extend the users cookies every time they auto-login
$config['track_login_attempts'] = TRUE; // Track the number of failed login attempts for each user or ip.
$config['track_login_ip_address'] = TRUE; // Track login attempts by IP Address, if FALSE will track based on identity. (Default: TRUE)
$config['maximum_login_attempts'] = 10; // The maximum number of failed login attempts.
$config['lockout_time'] = 50; /* The number of seconds to lockout an account due to exceeded attempts
You should not use a value below 60 (1 minute) */
$config['forgot_password_expiration'] = 1800; /* The number of seconds after which a forgot password request will expire. If set to 0, forgot password requests will not expire.
30 minutes to 1 hour are good values (enough for a user to receive the email and reset its password)
You should not set a value too high, as it would be a security issue! */
$config['recheck_timer'] = 0; /* The number of seconds after which the session is checked again against database to see if the user still exists and is active.
Leave 0 if you don't want session recheck. if you really think you need to recheck the session against database, we would
recommend a higher value, as this would affect performance */
/*
| -------------------------------------------------------------------------
| Cookie options.
| -------------------------------------------------------------------------
| remember_cookie_name Default: remember_code
*/
$config['remember_cookie_name'] = 'remember_code';
/*
| -------------------------------------------------------------------------
| Email options.
| -------------------------------------------------------------------------
| email_config:
| 'file' = Use the default CI config or use from a config file
| array = Manually set your email config settings
*/
$config['use_ci_email'] = FALSE; // Send Email using the builtin CI email class, if false it will return the code and the identity
$config['email_config'] = [
'mailtype' => 'html',
];
/*
| -------------------------------------------------------------------------
| Email templates.
| -------------------------------------------------------------------------
| Folder where email templates are stored.
| Default: auth/
*/
$config['email_templates'] = 'auth/email/';
/*
| -------------------------------------------------------------------------
| Activate Account Email Template
| -------------------------------------------------------------------------
| Default: activate.tpl.php
*/
$config['email_activate'] = 'activate.tpl.php';
/*
| -------------------------------------------------------------------------
| Forgot Password Email Template
| -------------------------------------------------------------------------
| Default: forgot_password.tpl.php
*/
$config['email_forgot_password'] = 'forgot_password.tpl.php';
/*
| -------------------------------------------------------------------------
| Message Delimiters.
| -------------------------------------------------------------------------
*/
$config['delimiters_source'] = 'config'; // "config" = use the settings defined here, "form_validation" = use the settings defined in CI's form validation library
$config['message_start_delimiter'] = '<p>'; // Message start delimiter
$config['message_end_delimiter'] = '</p>'; // Message end delimiter
$config['error_start_delimiter'] = '<p>'; // Error message start delimiter
$config['error_end_delimiter'] = '</p>'; // Error message end delimiter

View File

@ -1,19 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Memcached settings
| -------------------------------------------------------------------------
| Your Memcached servers can be specified below.
|
| See: https://codeigniter.com/user_guide/libraries/caching.html#memcached
|
*/
$config = array(
'default' => array(
'hostname' => '127.0.0.1',
'port' => '11211',
'weight' => '1',
),
);

View File

@ -1,84 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Enable/Disable Migrations
|--------------------------------------------------------------------------
|
| Migrations are disabled by default for security reasons.
| You should enable migrations whenever you intend to do a schema migration
| and disable it back when you're done.
|
*/
$config['migration_enabled'] = FALSE;
/*
|--------------------------------------------------------------------------
| Migration Type
|--------------------------------------------------------------------------
|
| Migration file names may be based on a sequential identifier or on
| a timestamp. Options are:
|
| 'sequential' = Sequential migration naming (001_add_blog.php)
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
| Use timestamp format YYYYMMDDHHIISS.
|
| Note: If this configuration value is missing the Migration library
| defaults to 'sequential' for backward compatibility with CI2.
|
*/
$config['migration_type'] = 'timestamp';
/*
|--------------------------------------------------------------------------
| Migrations table
|--------------------------------------------------------------------------
|
| This is the name of the table that will store the current migrations state.
| When migrations runs it will store in a database table which migration
| level the system is at. It then compares the migration level in this
| table to the $config['migration_version'] if they are not the same it
| will migrate up. This must be set.
|
*/
$config['migration_table'] = 'migrations';
/*
|--------------------------------------------------------------------------
| Auto Migrate To Latest
|--------------------------------------------------------------------------
|
| If this is set to TRUE when you load the migrations class and have
| $config['migration_enabled'] set to TRUE the system will auto migrate
| to your latest migration (whatever $config['migration_version'] is
| set to). This way you do not have to call migrations anywhere else
| in your code to have the latest migration.
|
*/
$config['migration_auto_latest'] = FALSE;
/*
|--------------------------------------------------------------------------
| Migrations version
|--------------------------------------------------------------------------
|
| This is used to set migration version that the file system should be on.
| If you run $this->migration->current() this is the version that schema will
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 0;
/*
|--------------------------------------------------------------------------
| Migrations Path
|--------------------------------------------------------------------------
|
| Path to your migrations folder.
| Typically, it will be within your application path.
| Also, writing permission is required within the migrations path.
|
*/
$config['migration_path'] = APPPATH.'migrations/';

View File

@ -1,184 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| MIME TYPES
| -------------------------------------------------------------------
| This file contains an array of mime types. It is used by the
| Upload class to help identify allowed file types.
|
*/
return array(
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
'cpt' => 'application/mac-compactpro',
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'),
'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
'dms' => 'application/octet-stream',
'lha' => 'application/octet-stream',
'lzh' => 'application/octet-stream',
'exe' => array('application/octet-stream', 'application/x-msdownload'),
'class' => 'application/octet-stream',
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
'so' => 'application/octet-stream',
'sea' => 'application/octet-stream',
'dll' => 'application/octet-stream',
'oda' => 'application/oda',
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
'ai' => array('application/pdf', 'application/postscript'),
'eps' => 'application/postscript',
'ps' => 'application/postscript',
'smi' => 'application/smil',
'smil' => 'application/smil',
'mif' => 'application/vnd.mif',
'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
'wbxml' => 'application/wbxml',
'wmlc' => 'application/wmlc',
'dcr' => 'application/x-director',
'dir' => 'application/x-director',
'dxr' => 'application/x-director',
'dvi' => 'application/x-dvi',
'gtar' => 'application/x-gtar',
'gz' => 'application/x-gzip',
'gzip' => 'application/x-gzip',
'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
'php4' => 'application/x-httpd-php',
'php3' => 'application/x-httpd-php',
'phtml' => 'application/x-httpd-php',
'phps' => 'application/x-httpd-php-source',
'js' => array('application/x-javascript', 'text/plain'),
'swf' => 'application/x-shockwave-flash',
'sit' => 'application/x-stuffit',
'tar' => 'application/x-tar',
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
'z' => 'application/x-compress',
'xhtml' => 'application/xhtml+xml',
'xht' => 'application/xhtml+xml',
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
'mid' => 'audio/midi',
'midi' => 'audio/midi',
'mpga' => 'audio/mpeg',
'mp2' => 'audio/mpeg',
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
'aif' => array('audio/x-aiff', 'audio/aiff'),
'aiff' => array('audio/x-aiff', 'audio/aiff'),
'aifc' => 'audio/x-aiff',
'ram' => 'audio/x-pn-realaudio',
'rm' => 'audio/x-pn-realaudio',
'rpm' => 'audio/x-pn-realaudio-plugin',
'ra' => 'audio/x-realaudio',
'rv' => 'video/vnd.rn-realvideo',
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
'gif' => 'image/gif',
'jpeg' => array('image/jpeg', 'image/pjpeg'),
'jpg' => array('image/jpeg', 'image/pjpeg'),
'jpe' => array('image/jpeg', 'image/pjpeg'),
'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'png' => array('image/png', 'image/x-png'),
'tiff' => 'image/tiff',
'tif' => 'image/tiff',
'css' => array('text/css', 'text/plain'),
'html' => array('text/html', 'text/plain'),
'htm' => array('text/html', 'text/plain'),
'shtml' => array('text/html', 'text/plain'),
'txt' => 'text/plain',
'text' => 'text/plain',
'log' => array('text/plain', 'text/x-log'),
'rtx' => 'text/richtext',
'rtf' => 'text/rtf',
'xml' => array('application/xml', 'text/xml', 'text/plain'),
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'mpe' => 'video/mpeg',
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
'movie' => 'video/x-sgi-movie',
'doc' => array('application/msword', 'application/vnd.ms-office'),
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
'dot' => array('application/msword', 'application/vnd.ms-office'),
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
'word' => array('application/msword', 'application/octet-stream'),
'xl' => 'application/excel',
'eml' => 'message/rfc822',
'json' => array('application/json', 'text/json'),
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
'p12' => 'application/x-pkcs12',
'p7a' => 'application/x-pkcs7-signature',
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
'p7r' => 'application/x-pkcs7-certreqresp',
'p7s' => 'application/pkcs7-signature',
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
'der' => 'application/x-x509-ca-cert',
'kdb' => 'application/octet-stream',
'pgp' => 'application/pgp',
'gpg' => 'application/gpg-keys',
'sst' => 'application/octet-stream',
'csr' => 'application/octet-stream',
'rsa' => 'application/x-pkcs7',
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
'3g2' => 'video/3gpp2',
'3gp' => array('video/3gp', 'video/3gpp'),
'mp4' => 'video/mp4',
'm4a' => 'audio/x-m4a',
'f4v' => array('video/mp4', 'video/x-f4v'),
'flv' => 'video/x-flv',
'webm' => 'video/webm',
'aac' => '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' => array('audio/ogg', 'video/ogg', 'application/ogg'),
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
'ics' => 'text/calendar',
'ical' => 'text/calendar',
'zsh' => 'text/x-scriptzsh',
'7z' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
'7zip' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
'vcf' => 'text/x-vcard',
'srt' => array('text/srt', 'text/plain'),
'vtt' => array('text/vtt', 'text/plain'),
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'),
'odc' => 'application/vnd.oasis.opendocument.chart',
'otc' => 'application/vnd.oasis.opendocument.chart-template',
'odf' => 'application/vnd.oasis.opendocument.formula',
'otf' => 'application/vnd.oasis.opendocument.formula-template',
'odg' => 'application/vnd.oasis.opendocument.graphics',
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
'odi' => 'application/vnd.oasis.opendocument.image',
'oti' => 'application/vnd.oasis.opendocument.image-template',
'odp' => 'application/vnd.oasis.opendocument.presentation',
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
'odt' => 'application/vnd.oasis.opendocument.text',
'odm' => 'application/vnd.oasis.opendocument.text-master',
'ott' => 'application/vnd.oasis.opendocument.text-template',
'oth' => 'application/vnd.oasis.opendocument.text-web'
);

View File

@ -1,80 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Sandbox / Test Mode
* -------------------------
* TRUE means you'll be hitting PayPal's sandbox/test servers. FALSE means you'll be hitting the live servers.
*/
$config['Sandbox'] = TRUE;
//$config['paypal_lib_currency_code'] = 'USD';
/*
* PayPal API Version
* ------------------
* The library is currently using PayPal API version 123.0.
* You may adjust this value here and then pass it into the PayPal object when you create it within your scripts to override if necessary.
*/
$config['APIVersion'] = '123.0';
/*
* PayPal Gateway API Credentials
* ------------------------------
* These are your PayPal API credentials for working with the PayPal gateway directly.
* These are used any time you're using the parent PayPal class within the library.
*
* We're using shorthand if/else statements here to set both Sandbox and Production values.
* Your sandbox values go on the left and your live values go on the right.
*
* You may obtain these credentials by logging into the following with your PayPal account.
* Sandbox: https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run
* Live: https://www.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run
*
*/
$config['APIUsername'] = $config['Sandbox'] ? 'rizvi.mahmud.plabon_api1.gmail.com' : 'PRODUCTION_USERNAME_GOES_HERE';
$config['APIPassword'] = $config['Sandbox'] ? 'HWK7HG8KF5MS2AMW' : 'PRODUCTION_PASSWORD_GOES_HERE';
$config['APISignature'] = $config['Sandbox'] ? 'Aaw-Fd69z.JLuiq13ejMN-CsSMuuAPEXWUFPF5QW9sD22fp1hosGIFKo' : 'PRODUCTION_SIGNATURE_GOES_HERE';
/*
* Payflow Gateway API Credentials
* ------------------------------
* These are the credentials you use for your PayPal Manager: http://manager.paypal.com
* These are used when you're working with the PayFlow child class.
*
* We're using shorthand if/else statements here to set both Sandbox and Production values.
* Your sandbox values go on the left and your live values go on the right.
*
* You may use the same credentials you use to login to your PayPal Manager,
* or you may create API specific credentials from within your PayPal Manager account.
*/
$config['PayFlowUsername'] = $config['Sandbox'] ? 'FNSQPQ4B85EYJ' : 'PRODUCTION_USERNAME_GOGES_HERE';
$config['PayFlowPassword'] = $config['Sandbox'] ? 'rijhipla1!' : 'PRODUCTION_PASSWORD_GOES_HERE';
$config['PayFlowVendor'] = $config['Sandbox'] ? 'FNSQPQ4B85EYJ' : 'PRODUCTION_VENDOR_GOES_HERE';
$config['PayFlowPartner'] = $config['Sandbox'] ? 'PayPal' : 'PRODUCTION_PARTNER_GOES_HERE';
/*
* PayPal Application ID
* --------------------------------------
* The application is only required with Adaptive Payments applications.
* You obtain your application ID but submitting it for approval within your
* developer account at http://developer.paypal.com
*
* We're using shorthand if/else statements here to set both Sandbox and Production values.
* Your sandbox values go on the left and your live values go on the right.
* The sandbox value included here is a global value provided for developrs to use in the PayPal sandbox.
*/
$config['ApplicationID'] = $config['Sandbox'] ? 'APP-80W284485P519543T' : 'PRODUCTION_APP_ID_GOES_HERE';
/*
* PayPal Developer Account Email Address
* This is the email address that you use to sign in to http://developer.paypal.com
*/
$config['DeveloperEmailAccount'] = 'some@email.com';
/**
* Third Party User Values
* These can be setup here or within each caller directly when setting up the PayPal object.
*/
$config['DeviceID'] = 'DEVICE_ID_GOES_HERE';
/* End of file paypal.php */
/* Location: ./system/application/config/paypal.php */

View File

@ -1,14 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Profiler Sections
| -------------------------------------------------------------------------
| This file lets you determine whether or not various sections of Profiler
| data are displayed when the Profiler is enabled.
| Please see the user guide for info:
|
| https://codeigniter.com/user_guide/general/profiling.html
|
*/

View File

@ -1,626 +0,0 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| HTTP protocol
|--------------------------------------------------------------------------
|
| Set to force the use of HTTPS for REST API calls
|
*/
$config['force_https'] = false;
/*
|--------------------------------------------------------------------------
| REST Output Format
|--------------------------------------------------------------------------
|
| The default format of the response
|
| 'array': Array data structure
| 'csv': Comma separated file
| 'json': Uses json_encode(). Note: If a GET query string
| called 'callback' is passed, then jsonp will be returned
| 'html' HTML using the table library in CodeIgniter
| 'php': Uses var_export()
| 'serialized': Uses serialize()
| 'xml': Uses simplexml_load_string()
|
*/
$config['rest_default_format'] = 'json';
/*
|--------------------------------------------------------------------------
| REST Supported Output Formats
|--------------------------------------------------------------------------
|
| The following setting contains a list of the supported/allowed formats.
| You may remove those formats that you don't want to use.
| If the default format $config['rest_default_format'] is missing within
| $config['rest_supported_formats'], it will be added silently during
| REST_Controller initialization.
|
*/
$config['rest_supported_formats'] = [
'json',
'array',
'csv',
'html',
'jsonp',
'php',
'serialized',
'xml',
];
/*
|--------------------------------------------------------------------------
| REST Status Field Name
|--------------------------------------------------------------------------
|
| The field name for the status inside the response
|
*/
$config['rest_status_field_name'] = 'status';
/*
|--------------------------------------------------------------------------
| REST Message Field Name
|--------------------------------------------------------------------------
|
| The field name for the message inside the response
|
*/
$config['rest_message_field_name'] = 'error';
/*
|--------------------------------------------------------------------------
| Enable Emulate Request
|--------------------------------------------------------------------------
|
| Should we enable emulation of the request (e.g. used in Mootools request)
|
*/
$config['enable_emulate_request'] = true;
/*
|--------------------------------------------------------------------------
| REST Realm
|--------------------------------------------------------------------------
|
| Name of the password protected REST API displayed on login dialogs
|
| e.g: My Secret REST API
|
*/
$config['rest_realm'] = 'REST API';
/*
|--------------------------------------------------------------------------
| REST Login
|--------------------------------------------------------------------------
|
| Set to specify the REST API requires to be logged in
|
| FALSE No login required
| 'basic' Unsecured login
| 'digest' More secured login
| 'session' Check for a PHP session variable. See 'auth_source' to set the
| authorization key
|
*/
$config['rest_auth'] = false;
/*
|--------------------------------------------------------------------------
| REST Login Source
|--------------------------------------------------------------------------
|
| Is login required and if so, the user store to use
|
| '' Use config based users or wildcard testing
| 'ldap' Use LDAP authentication
| 'library' Use a authentication library
|
| Note: If 'rest_auth' is set to 'session' then change 'auth_source' to the name of the session variable
|
*/
$config['auth_source'] = 'ldap';
/*
|--------------------------------------------------------------------------
| Allow Authentication and API Keys
|--------------------------------------------------------------------------
|
| Where you wish to have Basic, Digest or Session login, but also want to use API Keys (for limiting
| requests etc), set to TRUE;
|
*/
$config['allow_auth_and_keys'] = true;
$config['strict_api_and_auth'] = true; // force the use of both api and auth before a valid api request is made
/*
|--------------------------------------------------------------------------
| REST Login Class and Function
|--------------------------------------------------------------------------
|
| If library authentication is used define the class and function name
|
| The function should accept two parameters: class->function($username, $password)
| In other cases override the function _perform_library_auth in your controller
|
| For digest authentication the library function should return already a stored
| md5(username:restrealm:password) for that username
|
| e.g: md5('admin:REST API:1234') = '1e957ebc35631ab22d5bd6526bd14ea2'
|
*/
$config['auth_library_class'] = '';
$config['auth_library_function'] = '';
/*
|--------------------------------------------------------------------------
| Override auth types for specific class/method
|--------------------------------------------------------------------------
|
| Set specific authentication types for methods within a class (controller)
|
| Set as many config entries as needed. Any methods not set will use the default 'rest_auth' config value.
|
| e.g:
|
| $config['auth_override_class_method']['deals']['view'] = 'none';
| $config['auth_override_class_method']['deals']['insert'] = 'digest';
| $config['auth_override_class_method']['accounts']['user'] = 'basic';
| $config['auth_override_class_method']['dashboard']['*'] = 'none|digest|basic';
|
| Here 'deals', 'accounts' and 'dashboard' are controller names, 'view', 'insert' and 'user' are methods within. An asterisk may also be used to specify an authentication method for an entire classes methods. Ex: $config['auth_override_class_method']['dashboard']['*'] = 'basic'; (NOTE: leave off the '_get' or '_post' from the end of the method name)
| Acceptable values are; 'none', 'digest' and 'basic'.
|
*/
// $config['auth_override_class_method']['deals']['view'] = 'none';
// $config['auth_override_class_method']['deals']['insert'] = 'digest';
// $config['auth_override_class_method']['accounts']['user'] = 'basic';
// $config['auth_override_class_method']['dashboard']['*'] = 'basic';
// ---Uncomment list line for the wildard unit test
// $config['auth_override_class_method']['wildcard_test_cases']['*'] = 'basic';
/*
|--------------------------------------------------------------------------
| Override auth types for specific 'class/method/HTTP method'
|--------------------------------------------------------------------------
|
| example:
|
| $config['auth_override_class_method_http']['deals']['view']['get'] = 'none';
| $config['auth_override_class_method_http']['deals']['insert']['post'] = 'none';
| $config['auth_override_class_method_http']['deals']['*']['options'] = 'none';
*/
// ---Uncomment list line for the wildard unit test
// $config['auth_override_class_method_http']['wildcard_test_cases']['*']['options'] = 'basic';
/*
|--------------------------------------------------------------------------
| REST Login Usernames
|--------------------------------------------------------------------------
|
| Array of usernames and passwords for login, if ldap is configured this is ignored
|
*/
$config['rest_valid_logins'] = ['admin' => '1234'];
/*
|--------------------------------------------------------------------------
| Global IP White-listing
|--------------------------------------------------------------------------
|
| Limit connections to your REST server to White-listed IP addresses
|
| Usage:
| 1. Set to TRUE and select an auth option for extreme security (client's IP
| address must be in white-list and they must also log in)
| 2. Set to TRUE with auth set to FALSE to allow White-listed IPs access with no login
| 3. Set to FALSE but set 'auth_override_class_method' to 'white-list' to
| restrict certain methods to IPs in your white-list
|
*/
$config['rest_ip_whitelist_enabled'] = false;
/*
|--------------------------------------------------------------------------
| REST Handle Exceptions
|--------------------------------------------------------------------------
|
| Handle exceptions caused by the controller
|
*/
$config['rest_handle_exceptions'] = true;
/*
|--------------------------------------------------------------------------
| REST IP White-list
|--------------------------------------------------------------------------
|
| Limit connections to your REST server with a comma separated
| list of IP addresses
|
| e.g: '123.456.789.0, 987.654.32.1'
|
| 127.0.0.1 and 0.0.0.0 are allowed by default
|
*/
$config['rest_ip_whitelist'] = '';
/*
|--------------------------------------------------------------------------
| Global IP Blacklisting
|--------------------------------------------------------------------------
|
| Prevent connections to the REST server from blacklisted IP addresses
|
| Usage:
| 1. Set to TRUE and add any IP address to 'rest_ip_blacklist'
|
*/
$config['rest_ip_blacklist_enabled'] = false;
/*
|--------------------------------------------------------------------------
| REST IP Blacklist
|--------------------------------------------------------------------------
|
| Prevent connections from the following IP addresses
|
| e.g: '123.456.789.0, 987.654.32.1'
|
*/
$config['rest_ip_blacklist'] = '';
/*
|--------------------------------------------------------------------------
| REST Database Group
|--------------------------------------------------------------------------
|
| Connect to a database group for keys, logging, etc. It will only connect
| if you have any of these features enabled
|
*/
$config['rest_database_group'] = 'default';
/*
|--------------------------------------------------------------------------
| REST API Keys Table Name
|--------------------------------------------------------------------------
|
| The table name in your database that stores API keys
|
*/
$config['rest_keys_table'] = 'keys';
/*
|--------------------------------------------------------------------------
| REST Enable Keys
|--------------------------------------------------------------------------
|
| When set to TRUE, the REST API will look for a column name called 'key'.
| If no key is provided, the request will result in an error. To override the
| column name see 'rest_key_column'
|
| Default table schema:
| CREATE TABLE `keys` (
| `id` INT(11) NOT NULL AUTO_INCREMENT,
| `user_id` INT(11) NOT NULL,
| `key` VARCHAR(40) NOT NULL,
| `level` INT(2) NOT NULL,
| `ignore_limits` TINYINT(1) NOT NULL DEFAULT '0',
| `is_private_key` TINYINT(1) NOT NULL DEFAULT '0',
| `ip_addresses` TEXT NULL DEFAULT NULL,
| `date_created` INT(11) NOT NULL,
| PRIMARY KEY (`id`)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
*/
$config['rest_enable_keys'] = false;
/*
|--------------------------------------------------------------------------
| REST Table Key Column Name
|--------------------------------------------------------------------------
|
| If not using the default table schema in 'rest_enable_keys', specify the
| column name to match e.g. my_key
|
*/
$config['rest_key_column'] = 'key';
/*
|--------------------------------------------------------------------------
| REST API Limits method
|--------------------------------------------------------------------------
|
| Specify the method used to limit the API calls
|
| Available methods are :
| $config['rest_limits_method'] = 'IP_ADDRESS'; // Put a limit per ip address
| $config['rest_limits_method'] = 'API_KEY'; // Put a limit per api key
| $config['rest_limits_method'] = 'METHOD_NAME'; // Put a limit on method calls
| $config['rest_limits_method'] = 'ROUTED_URL'; // Put a limit on the routed URL
|
*/
$config['rest_limits_method'] = 'ROUTED_URL';
/*
|--------------------------------------------------------------------------
| REST Key Length
|--------------------------------------------------------------------------
|
| Length of the created keys. Check your default database schema on the
| maximum length allowed
|
| Note: The maximum length is 40
|
*/
$config['rest_key_length'] = 40;
/*
|--------------------------------------------------------------------------
| REST API Key Variable
|--------------------------------------------------------------------------
|
| Custom header to specify the API key
| Note: Custom headers with the X- prefix are deprecated as of
| 2012/06/12. See RFC 6648 specification for more details
|
*/
$config['rest_key_name'] = 'X-API-KEY';
/*
|--------------------------------------------------------------------------
| REST Enable Logging
|--------------------------------------------------------------------------
|
| When set to TRUE, the REST API will log actions based on the column names 'key', 'date',
| 'time' and 'ip_address'. This is a general rule that can be overridden in the
| $this->method array for each controller
|
| Default table schema:
| CREATE TABLE `logs` (
| `id` INT(11) NOT NULL AUTO_INCREMENT,
| `uri` VARCHAR(255) NOT NULL,
| `method` VARCHAR(6) NOT NULL,
| `params` TEXT DEFAULT NULL,
| `api_key` VARCHAR(40) NOT NULL,
| `ip_address` VARCHAR(45) NOT NULL,
| `time` INT(11) NOT NULL,
| `rtime` FLOAT DEFAULT NULL,
| `authorized` VARCHAR(1) NOT NULL,
| `response_code` smallint(3) DEFAULT '0',
| PRIMARY KEY (`id`)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
*/
$config['rest_enable_logging'] = false;
/*
|--------------------------------------------------------------------------
| REST API Logs Table Name
|--------------------------------------------------------------------------
|
| If not using the default table schema in 'rest_enable_logging', specify the
| table name to match e.g. my_logs
|
*/
$config['rest_logs_table'] = 'logs';
/*
|--------------------------------------------------------------------------
| REST Method Access Control
|--------------------------------------------------------------------------
| When set to TRUE, the REST API will check the access table to see if
| the API key can access that controller. 'rest_enable_keys' must be enabled
| to use this
|
| Default table schema:
| CREATE TABLE `access` (
| `id` INT(11) unsigned NOT NULL AUTO_INCREMENT,
| `key` VARCHAR(40) NOT NULL DEFAULT '',
| `all_access` TINYINT(1) NOT NULL DEFAULT '0',
| `controller` VARCHAR(50) NOT NULL DEFAULT '',
| `date_created` DATETIME DEFAULT NULL,
| `date_modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
| PRIMARY KEY (`id`)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
*/
$config['rest_enable_access'] = false;
/*
|--------------------------------------------------------------------------
| REST API Access Table Name
|--------------------------------------------------------------------------
|
| If not using the default table schema in 'rest_enable_access', specify the
| table name to match e.g. my_access
|
*/
$config['rest_access_table'] = 'access';
/*
|--------------------------------------------------------------------------
| REST API Param Log Format
|--------------------------------------------------------------------------
|
| When set to TRUE, the REST API log parameters will be stored in the database as JSON
| Set to FALSE to log as serialized PHP
|
*/
$config['rest_logs_json_params'] = false;
/*
|--------------------------------------------------------------------------
| REST Enable Limits
|--------------------------------------------------------------------------
|
| When set to TRUE, the REST API will count the number of uses of each method
| by an API key each hour. This is a general rule that can be overridden in the
| $this->method array in each controller
|
| Default table schema:
| CREATE TABLE `limits` (
| `id` INT(11) NOT NULL AUTO_INCREMENT,
| `uri` VARCHAR(255) NOT NULL,
| `count` INT(10) NOT NULL,
| `hour_started` INT(11) NOT NULL,
| `api_key` VARCHAR(40) NOT NULL,
| PRIMARY KEY (`id`)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
| To specify the limits within the controller's __construct() method, add per-method
| limits with:
|
| $this->methods['METHOD_NAME']['limit'] = [NUM_REQUESTS_PER_HOUR];
|
| See application/controllers/api/example.php for examples
*/
$config['rest_enable_limits'] = false;
/*
|--------------------------------------------------------------------------
| REST API Limits Table Name
|--------------------------------------------------------------------------
|
| If not using the default table schema in 'rest_enable_limits', specify the
| table name to match e.g. my_limits
|
*/
$config['rest_limits_table'] = 'limits';
/*
|--------------------------------------------------------------------------
| REST Ignore HTTP Accept
|--------------------------------------------------------------------------
|
| Set to TRUE to ignore the HTTP Accept and speed up each request a little.
| Only do this if you are using the $this->rest_format or /format/xml in URLs
|
*/
$config['rest_ignore_http_accept'] = false;
/*
|--------------------------------------------------------------------------
| REST AJAX Only
|--------------------------------------------------------------------------
|
| Set to TRUE to allow AJAX requests only. Set to FALSE to accept HTTP requests
|
| Note: If set to TRUE and the request is not AJAX, a 505 response with the
| error message 'Only AJAX requests are accepted.' will be returned.
|
| Hint: This is good for production environments
|
*/
$config['rest_ajax_only'] = false;
/*
|--------------------------------------------------------------------------
| REST Language File
|--------------------------------------------------------------------------
|
| Language file to load from the language directory
|
*/
$config['rest_language'] = 'english';
/*
|--------------------------------------------------------------------------
| CORS Check
|--------------------------------------------------------------------------
|
| Set to TRUE to enable Cross-Origin Resource Sharing (CORS). Useful if you
| are hosting your API on a different domain from the application that
| will access it through a browser
|
*/
$config['check_cors'] = false;
/*
|--------------------------------------------------------------------------
| CORS Allowable Headers
|--------------------------------------------------------------------------
|
| If using CORS checks, set the allowable headers here
|
*/
$config['allowed_cors_headers'] = [
'Origin',
'X-Requested-With',
'Content-Type',
'Accept',
'Access-Control-Request-Method',
];
/*
|--------------------------------------------------------------------------
| CORS Allowable Methods
|--------------------------------------------------------------------------
|
| If using CORS checks, you can set the methods you want to be allowed
|
*/
$config['allowed_cors_methods'] = [
'GET',
'POST',
'OPTIONS',
'PUT',
'PATCH',
'DELETE',
];
/*
|--------------------------------------------------------------------------
| CORS Allow Any Domain
|--------------------------------------------------------------------------
|
| Set to TRUE to enable Cross-Origin Resource Sharing (CORS) from any
| source domain
|
*/
$config['allow_any_cors_domain'] = TRUE;
/*
|--------------------------------------------------------------------------
| CORS Allowable Domains
|--------------------------------------------------------------------------
|
| Used if $config['check_cors'] is set to TRUE and $config['allow_any_cors_domain']
| is set to FALSE. Set all the allowable domains within the array
|
| e.g. $config['allowed_origins'] = ['http://www.example.com', 'https://spa.example.com']
|
*/
$config['allowed_cors_origins'] = [];
/*
|--------------------------------------------------------------------------
| CORS Forced Headers
|--------------------------------------------------------------------------
|
| If using CORS checks, always include the headers and values specified here
| in the OPTIONS client preflight.
| Example:
| $config['forced_cors_headers'] = [
| 'Access-Control-Allow-Credentials' => 'true'
| ];
|
| Added because of how Sencha Ext JS framework requires the header
| Access-Control-Allow-Credentials to be set to true to allow the use of
| credentials in the REST Proxy.
| See documentation here:
| http://docs.sencha.com/extjs/6.5.2/classic/Ext.data.proxy.Rest.html#cfg-withCredentials
|
*/
$config['forced_cors_headers'] = [];

View File

@ -1,56 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| https://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are three reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
| $route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
| $route['translate_uri_dashes'] = FALSE;
|
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
|
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
*/
$route['default_controller'] = 'auth';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['master/access-assessment'] = 'master_access_assessment';

View File

@ -1,64 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| SMILEYS
| -------------------------------------------------------------------
| This file contains an array of smileys for use with the emoticon helper.
| Individual images can be used to replace multiple smileys. For example:
| :-) and :) use the same image replacement.
|
| Please see user guide for more info:
| https://codeigniter.com/user_guide/helpers/smiley_helper.html
|
*/
$smileys = array(
// smiley image name width height alt
':-)' => array('grin.gif', '19', '19', 'grin'),
':lol:' => array('lol.gif', '19', '19', 'LOL'),
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
':)' => array('smile.gif', '19', '19', 'smile'),
';-)' => array('wink.gif', '19', '19', 'wink'),
';)' => array('wink.gif', '19', '19', 'wink'),
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
':-S' => array('confused.gif', '19', '19', 'confused'),
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
':long:' => array('longface.gif', '19', '19', 'long face'),
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
':down:' => array('downer.gif', '19', '19', 'downer'),
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
':sick:' => array('sick.gif', '19', '19', 'sick'),
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
'>:(' => array('mad.gif', '19', '19', 'mad'),
':mad:' => array('mad.gif', '19', '19', 'mad'),
'>:-(' => array('angry.gif', '19', '19', 'angry'),
':angry:' => array('angry.gif', '19', '19', 'angry'),
':zip:' => array('zip.gif', '19', '19', 'zipper'),
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
':snake:' => array('snake.gif', '19', '19', 'snake'),
':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'),
':question:' => array('question.gif', '19', '19', 'question')
);

View File

@ -1,215 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| USER AGENT TYPES
| -------------------------------------------------------------------
| This file contains four arrays of user agent data. It is used by the
| User Agent Class to help identify browser, platform, robot, and
| mobile device data. The array keys are used to identify the device
| and the array values are used to set the actual name of the item.
*/
$platforms = array(
'windows nt 10.0' => 'Windows 10',
'windows nt 6.3' => 'Windows 8.1',
'windows nt 6.2' => 'Windows 8',
'windows nt 6.1' => 'Windows 7',
'windows nt 6.0' => 'Windows Vista',
'windows nt 5.2' => 'Windows 2003',
'windows nt 5.1' => 'Windows XP',
'windows nt 5.0' => 'Windows 2000',
'windows nt 4.0' => 'Windows NT 4.0',
'winnt4.0' => 'Windows NT 4.0',
'winnt 4.0' => 'Windows NT',
'winnt' => 'Windows NT',
'windows 98' => 'Windows 98',
'win98' => 'Windows 98',
'windows 95' => 'Windows 95',
'win95' => 'Windows 95',
'windows phone' => 'Windows Phone',
'windows' => 'Unknown Windows OS',
'android' => 'Android',
'blackberry' => 'BlackBerry',
'iphone' => 'iOS',
'ipad' => 'iOS',
'ipod' => 'iOS',
'os x' => 'Mac OS X',
'ppc mac' => 'Power PC Mac',
'freebsd' => 'FreeBSD',
'ppc' => 'Macintosh',
'linux' => 'Linux',
'debian' => 'Debian',
'sunos' => 'Sun Solaris',
'beos' => 'BeOS',
'apachebench' => 'ApacheBench',
'aix' => 'AIX',
'irix' => 'Irix',
'osf' => 'DEC OSF',
'hp-ux' => 'HP-UX',
'netbsd' => 'NetBSD',
'bsdi' => 'BSDi',
'openbsd' => 'OpenBSD',
'gnu' => 'GNU/Linux',
'unix' => 'Unknown Unix OS',
'symbian' => 'Symbian OS'
);
// The order of this array should NOT be changed. Many browsers return
// multiple browser types so we want to identify the sub-type first.
$browsers = array(
'OPR' => 'Opera',
'Flock' => 'Flock',
'Edge' => 'Edge',
'Chrome' => 'Chrome',
// Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
'Opera.*?Version' => 'Opera',
'Opera' => 'Opera',
'MSIE' => 'Internet Explorer',
'Internet Explorer' => 'Internet Explorer',
'Trident.* rv' => 'Internet Explorer',
'Shiira' => 'Shiira',
'Firefox' => 'Firefox',
'Chimera' => 'Chimera',
'Phoenix' => 'Phoenix',
'Firebird' => 'Firebird',
'Camino' => 'Camino',
'Netscape' => 'Netscape',
'OmniWeb' => 'OmniWeb',
'Safari' => 'Safari',
'Mozilla' => 'Mozilla',
'Konqueror' => 'Konqueror',
'icab' => 'iCab',
'Lynx' => 'Lynx',
'Links' => 'Links',
'hotjava' => 'HotJava',
'amaya' => 'Amaya',
'IBrowse' => 'IBrowse',
'Maxthon' => 'Maxthon',
'Ubuntu' => 'Ubuntu Web Browser'
);
$mobiles = array(
// legacy array, old values commented out
'mobileexplorer' => 'Mobile Explorer',
// 'openwave' => 'Open Wave',
// 'opera mini' => 'Opera Mini',
// 'operamini' => 'Opera Mini',
// 'elaine' => 'Palm',
'palmsource' => 'Palm',
// 'digital paths' => 'Palm',
// 'avantgo' => 'Avantgo',
// 'xiino' => 'Xiino',
'palmscape' => 'Palmscape',
// 'nokia' => 'Nokia',
// 'ericsson' => 'Ericsson',
// 'blackberry' => 'BlackBerry',
// 'motorola' => 'Motorola'
// Phones and Manufacturers
'motorola' => 'Motorola',
'nokia' => 'Nokia',
'nexus' => 'Nexus',
'palm' => 'Palm',
'iphone' => 'Apple iPhone',
'ipad' => 'iPad',
'ipod' => 'Apple iPod Touch',
'sony' => 'Sony Ericsson',
'ericsson' => 'Sony Ericsson',
'blackberry' => 'BlackBerry',
'cocoon' => 'O2 Cocoon',
'blazer' => 'Treo',
'lg' => 'LG',
'amoi' => 'Amoi',
'xda' => 'XDA',
'mda' => 'MDA',
'vario' => 'Vario',
'htc' => 'HTC',
'samsung' => 'Samsung',
'sharp' => 'Sharp',
'sie-' => 'Siemens',
'alcatel' => 'Alcatel',
'benq' => 'BenQ',
'ipaq' => 'HP iPaq',
'mot-' => 'Motorola',
'playstation portable' => 'PlayStation Portable',
'playstation 3' => 'PlayStation 3',
'playstation vita' => 'PlayStation Vita',
'hiptop' => 'Danger Hiptop',
'nec-' => 'NEC',
'panasonic' => 'Panasonic',
'philips' => 'Philips',
'sagem' => 'Sagem',
'sanyo' => 'Sanyo',
'spv' => 'SPV',
'zte' => 'ZTE',
'sendo' => 'Sendo',
'nintendo dsi' => 'Nintendo DSi',
'nintendo ds' => 'Nintendo DS',
'nintendo 3ds' => 'Nintendo 3DS',
'wii' => 'Nintendo Wii',
'open web' => 'Open Web',
'openweb' => 'OpenWeb',
// Operating Systems
'android' => 'Android',
'symbian' => 'Symbian',
'SymbianOS' => 'SymbianOS',
'elaine' => 'Palm',
'series60' => 'Symbian S60',
'windows ce' => 'Windows CE',
// Browsers
'obigo' => 'Obigo',
'netfront' => 'Netfront Browser',
'openwave' => 'Openwave Browser',
'mobilexplorer' => 'Mobile Explorer',
'operamini' => 'Opera Mini',
'opera mini' => 'Opera Mini',
'opera mobi' => 'Opera Mobile',
'fennec' => 'Firefox Mobile',
// Other
'digital paths' => 'Digital Paths',
'avantgo' => 'AvantGo',
'xiino' => 'Xiino',
'novarra' => 'Novarra Transcoder',
'vodafone' => 'Vodafone',
'docomo' => 'NTT DoCoMo',
'o2' => 'O2',
// Fallback
'mobile' => 'Generic Mobile',
'wireless' => 'Generic Mobile',
'j2me' => 'Generic Mobile',
'midp' => 'Generic Mobile',
'cldc' => 'Generic Mobile',
'up.link' => 'Generic Mobile',
'up.browser' => 'Generic Mobile',
'smartphone' => 'Generic Mobile',
'cellphone' => 'Generic Mobile'
);
// There are hundreds of bots but these are the most common.
$robots = array(
'googlebot' => 'Googlebot',
'msnbot' => 'MSNBot',
'baiduspider' => 'Baiduspider',
'bingbot' => 'Bing',
'slurp' => 'Inktomi Slurp',
'yahoo' => 'Yahoo',
'ask jeeves' => 'Ask Jeeves',
'fastcrawler' => 'FastCrawler',
'infoseek' => 'InfoSeek Robot 1.0',
'lycos' => 'Lycos',
'yandex' => 'YandexBot',
'mediapartners-google' => 'MediaPartners Google',
'CRAZYWEBCRAWLER' => 'Crazy Webcrawler',
'adsbot-google' => 'AdsBot Google',
'feedfetcher-google' => 'Feedfetcher Google',
'curious george' => 'Curious George',
'ia_archiver' => 'Alexa Crawler',
'MJ12bot' => 'Majestic-12',
'Uptimebot' => 'Uptimebot'
);

View File

@ -1,31 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
use Twilio\Rest\Client;
class Welcome extends CI_Controller {
public function index()
{
$data = ['phone' => '+8801777282772', 'text' => 'Hello, CI'];
print_r($this->sendSMS($data));
}
protected function sendSMS($data) {
// Your Account SID and Auth Token from twilio.com/console
$sid = 'AC2e78b039528cf65d94db68674ba43ead';
$token = '9859a8217b4cc699d516f46fbb21a0d5';
$client = new Client($sid, $token);
// Use the client to do fun stuff like send text messages!
return $client->messages->create(
// the number you'd like to send the message to
$data['phone'],
array(
// A Twilio phone number you purchased at twilio.com/console
"from" => "+15183536455",
// the body of the text message you'd like to send
'body' => $data['text']
)
);
}
}

View File

@ -1,35 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
use Twilio\Rest\Client;
class Auth extends CI_Controller {
public function index()
{
echo 'test';
die;
// $data = ['phone' => '+8801777282772', 'text' => 'Hello, CI'];
// print_r($this->sendSMS($data));
$this->load->view('frontend/index');
}
protected function sendSMS($data) {
// Your Account SID and Auth Token from twilio.com/console
$sid = 'AC2e78b039528cf65d94db68674ba43ead';
$token = '9859a8217b4cc699d516f46fbb21a0d5';
$client = new Client($sid, $token);
// Use the client to do fun stuff like send text messages!
return $client->messages->create(
// the number you'd like to send the message to
$data['phone'],
array(
// A Twilio phone number you purchased at twilio.com/console
"from" => "+15183536455",
// the body of the text message you'd like to send
'body' => $data['text']
)
);
}
}

View File

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

View File

@ -1,10 +0,0 @@
<?php
(defined('BASEPATH')) OR exit('No direct script access allowed');
/* load the MX_Loader class */
require APPPATH . "third_party/MX/Loader.php";
class MY_Loader extends MX_Loader {
}

View File

@ -1,10 +0,0 @@
<?php
(defined('BASEPATH')) OR exit('No direct script access allowed');
/* load the MX_Router class */
require APPPATH . "third_party/MX/Router.php";
class MY_Router extends MX_Router {
}

View File

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

View File

@ -1,14 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('NotificationUpdate')){
function NotificationUpdate($userID, $param)
{
return true;
}
/**
* $param should be an array
* param => ("message_type" => (schedule accept, deline) , 'schedule_id' => '' )
*/
}

View File

@ -1,66 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('address_info')){
function address_info($address,$zipcode){
$apiKey = 'd17faffa0a6feff29ee9386dfed2963a'; // usgeocoder.com API KEY.
$prepAddr = str_replace(' ',',',$address);
$url = "https://usgeocoder.com/api/get_info.php?address=".$prepAddr.'&zipcode='.$zipcode.'&authkey='.$apiKey.'&format=json';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$responseJson = curl_exec($ch);
curl_close($ch);
$response = json_decode($responseJson);
$address_info=$response->usgeocoder->address_info;
$geo_info=$response->usgeocoder->geo_info;
$resp = array();
//geo Info
if ($geo_info->geo_status == 'Match Found') {
$latitude = $geo_info->latitude;
$longitude = $geo_info->longitude;
$resp['geo_info'] = array(
"status_code" => 200,
"status" => "success",
"latlong" => array("Latitude" => $latitude , "Longitude" => $longitude),
);
} else {
$resp['geo_info'] = array(
"status_code" => 404,
"status" => "failed",
"error" => "Not Found"
);
}
//Address Info
if ($address_info->address_status == 'Match Found') {
$city = $address_info->city;
$county = $address_info->county;
$state = $address_info->state;
$street = $address_info->street;
$resp['address_info'] = array(
"status_code" => 200,
"status" => "success",
"address" => array("city" => $city , "county" => $county, "state" => $state,"street" => $street),
);
} else {
$resp['address_info'] = array(
"status_code" => 404,
"status" => "failed",
"error" => "Not Found"
);
}
return $resp;
}
}
?>

View File

@ -1,33 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('formateDate')){
function formateDate($date){
$date=date_create($date);
return date_format($date,"m/d/Y");
}
function _na($data, $msg="N/A")
{
if ($data == '' || $data == NULL) {
return $msg;
}
else{
return $data;
}
}
function _die($data = 'test')
{
echo "<pre>";
print_r($data);
die();
}
function pre($data){
echo "<pre>";
print_r($data);
}
}
?>

View File

@ -1,324 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('formateDate')){
function formateDate($date){
$date=date_create($date);
return date_format($date,"m/d/Y");
}
}
if (!function_exists('base64_enc')){
function base64_enc($str)
{
return urlencode(base64_encode($str));
}
}
if (!function_exists('base64_dec')){
function base64_dec($str)
{
return base64_decode(urldecode($str));
}
}
function _na($data, $msg="N/A")
{
if ($data == '' || $data == NULL) {
return $msg;
}
else{
return $data;
}
}
function _die($data = 'test')
{
echo "<pre>";
print_r($data);
die();
}
function pre($data){
echo "<pre>";
print_r($data);
}
if (!function_exists('activity_log')){
function activity_log($data){
$data['activity_time']=date ('Y-m-d H:i:s', now());
$CI = &get_instance();
$CI->load->model('home/Home_model');
$CI->Home_model->activity_log($data);
}
}
if(!function_exists('generateRandomString')){
function generateRandomString($length=10,$characters='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'){
$charLength=strlen($characters);
$randomString='';
for($i=0; $i<$length;$i++){
$randomString .= $characters[rand(0, $charLength - 1)];
}
return $randomString;
}
}
if(!function_exists('validateCaptcha')){
function validateCaptcha($recaptcha){
$recaptcha_verify=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".RECAPTCHA_SECRET_KEY."&response=".$recaptcha."&remoteip=".$_SERVER['REMOTE_ADDR']);
$recaptcha_result=json_decode($recaptcha_verify,true);
return $recaptcha_result;
}
}
if(!function_exists('alpha_numeric_number_validation')){
function alpha_numeric_number_validation($string,$length=10){
if(preg_match_all('/\d+/', $string, $matches)) {
$number=implode('', $matches[0]);
}else{
$number='';
}
if(strlen($number)===$length){
return TRUE;
}else{
return FALSE;
}
}
}
if(!function_exists('set_custom_error_message')){
function set_custom_error_message($form_validation){
$form_validation->set_message('alpha_numeric_number_validation', 'The Phone Number field must be at least 10 digits.');
}
}
if(!function_exists('extract_number_from_string')){
function extract_number_from_string($string){
if(preg_match_all('/\d+/', $string, $matches)) {
$number=implode('', $matches[0]);
}else{
$number='';
}
return $number;
}
}
if(!function_exists('calc_rate_prcntg')){
function calc_rate_prcntg($new,$old){
try{
$response=(object)[
'new'=>$new,
'old'=>$old,
'rate'=>0,
'growth'=>'',
];
if($response->new>0 && $response->old>0){
$response->rate=number_format((($response->new-$response->old)/$response->old)*100,0);
}else if($response->new<=0 && $response->old>0){
$response->rate=number_format(-100,0);
}else if($response->new>0 && $response->old<=0){
$response->rate=number_format(100,0);
}
if($response->rate>0){
$response->growth='increased';
}else if($response->rate<0){
$response->growth='decreased';
}else{
$response->growth='none';
}
return $response;
}catch(Exception $e){
$getMsg="common_helper - calc_rate_prcntg: ".$e->getMessage();
echo $getMsg;
}
}
}
if(!function_exists('geo_address_by_ip')){
function geo_address_by_ip($ip=null){
try{
$apiKey='7cba03079a814ebcbd04059e7830e2fa';
if($ip){
$url="https://api.ipgeolocation.io/ipgeo?apiKey=".$apiKey."&ip=".$ip;
}else{
$url="https://api.ipgeolocation.io/ipgeo?apiKey=".$apiKey."";
}
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$responseJson=curl_exec($ch);
curl_close($ch);
$response=json_decode($responseJson);
return $response;
}catch(Exception $e){
$getMsg="common_helper - geo_address_by_ip: ".$e->getMessage();
echo $getMsg;
}
}
}
#function for Push Notification
if (!function_exists('sendNotification')){
function sendNotification($fcm_token,$post_title,$post_message,$type)
{
$token = $fcm_token; // push token
$message = $post_message;
//echo $message;exit;
$CI =& get_instance();
$CI->load->library('fcm'); // load library
$CI->fcm->setTitle($post_title);
$CI->fcm->setMessage($message);
$CI->fcm->setIsBackground(false);
$payload = array('notification'=> '');
$CI->fcm->setPayload($payload);
//$CI->fcm->setImage('https://firebase.google.com/_static/9f55fd91be/images/firebase/lockup.png');
/**
* Get the compiled notification data as an array
*/
// $json = $CI->fcm->getPush();
$msg = array
(
'body' => $post_message,
'title' => $post_title,
'icon' => 'myicon',/*Default Icon*/
'sound' => 1,/*Default sound*/
'priority'=> 'high',
'show_in_foreground'=> true,
);
// $json = json_encode($msg);
// _die($json);
$p = $CI->fcm->send($token, $msg);
// print_r($p);
return $p;
}
}
#function for Push Notification
#-----------------------------------------------
if (!function_exists('gettingNameFromShortCode')){
function gettingNameFromShortCode($data){
$CI = &get_instance();
$CI->load->model('home/Home_model');
$name= $CI->Home_model->getting_name_from_short_code($data);
// _die($name);
return $name;
}
}
if (!function_exists('getCitizenList')){
function getCitizenList($data){
$CI = &get_instance();
$CI->load->model('home/Home_model');
$name= $CI->Home_model->getCitizenList($data);
// _die($name);
return $name;
}
}
if (!function_exists('getCitizenName')){
function getCitizenName($data){
$CI = &get_instance();
$CI->load->model('home/Home_model');
$name= $CI->Home_model->getCitizenName($data);
// _die($name);
return $name;
}
}
if(!function_exists('gettingDocumentFromDocId')){
function gettingDocumentFromDocId($id){
$CI=&get_instance();
$CI->load->model('home/Home_model');
$data=$CI->Home_model->getting_document_from_docId($id);
return $data;
}
}
// Getting Nearest City
if (!function_exists('nearestCity')){
function getNearCityByIp(){
// echo "hi";
$ip=getIP();
// return $ip;
// echo 'getNearCityByIp';
if($ip=='::1')
$ip='34.77.181.223';
$response=json_decode(file_get_contents('http://getnearbycities.geobytes.com/GetNearbyCities?radius=100&locationcode='.$ip), true);
// return $output;
$output=[];
if($response){
$i=0;
foreach ($response as $set) {
$output[$i]['city']=$set[1];
$output[$i]['Kilometres']=$set[7];
$output[$i]['Miles']=$set[11];
$i++;
}
// pre($output);
return $output;
}
}
}
if (!function_exists('getIP')){
function getIP() {
foreach (array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR') as $key) {
if (array_key_exists($key, $_SERVER) === true) {
foreach (explode(',', $_SERVER[$key]) as $ip) {
if (filter_var($ip, FILTER_VALIDATE_IP) !== false) {
return $ip;
}
}
}
}
}
}
if (!function_exists('getExtensionByType')){
function getExtensionByType($type){
$doc_type=array('CTZ1','CTZ2','SSC','RSM','REF','DPR','MIC','EHA','HBV','PPD','CXR','RRM','CPX','TDAP','FLV','CVD','LIC','CPR','DSC','MMR','DTUQ','RRF','102','103','PCA');
$image_type=array('PROFILE');
if(in_array($type,$doc_type))
return array('gif','jpg','png','jpeg','pdf','doc','docx');
if(in_array($type,$image_type))
return array('gif','jpg','png','jpeg');
return false;
}
}
if (!function_exists('objToArray')){
function objToArray($obj){
if (!is_object($obj)) {
return false;
}
$data=[];
foreach ($obj as $key => $value) {
$data[$key]=$value;
}
return $data;
}
}
?>

View File

@ -1,46 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('docExpireDate')){
function docExpireDate($caregiverId,$docName,$dateCompleted=null,$expireDate=null){
$CI = &get_instance();
$CI->load->model('home/home_model');
$data['caregiver_id']=$caregiverId;
$data['doc_name']=$docName;
$data['DateCompleted']=$dateCompleted;
$data['ExpirationDate']=$expireDate;
$data['status']='1';
$result=$CI->home_model->insertDocExpireDate($data);
if($result>0){
$output['status']=200;
$output['message']='Data inserted.';
}else{
$output['status']=400;
$output['message']='Inserted Error.';
}
return $output;
}
}
if (!function_exists('getDocExpireDate')){
function getDocExpireDate($caregiverId,$docName){
$CI = &get_instance();
$CI->load->model('home/home_model');
$data['caregiver_id']=$caregiverId;
$data['doc_name']=$docName;
$result=$CI->home_model->getExpireDateByCaregiverIdAndDocType($data);
if($result){
$output['status']=200;
$output['result']=$result;
}else{
$output['status']=400;
$output['message']='Not Found.';
}
return $output;
}
}
?>

View File

@ -1,24 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('viewDynamincForm')){
function viewDynamincForm($slug_name){
$CI = &get_instance();
$CI->load->model('formmapping/Formmapping_model');
$templateArr=$CI->Formmapping_model->getFormDataByName($slug_name);
$data['templateArr']=explode(',', $templateArr->template_id);
$data['form_name']=$templateArr->form_name;
$output="";
$output.='<div class="row">';
foreach ($data['templateArr'] as $t ) {
$output.='<div use="dynamic_form" template-id="'.$t.'" class="col-lg-12"></div>';
}
$output.='</div>';
echo $output;
//echo 'test';
//echo '<pre>';print_r($data);
//die;
}
}
?>

View File

@ -1,109 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function send_email($from,$to,$subject,$message){
$CI = &get_instance();
//echo APPPATH;
$ch = curl_init();
$senddata = '{
"Messages":[
{
"From": {
"Email": "ujjwal@sentientgeeks.com",
"Name": "Ujjwal"
},
"To": [
{
"Email":"'.$to.'"
}
],
"Subject": "'.$subject.'",
"HTMLPart": "'.$message.'"
}
]
}';
$username='bad29f69421a73e83da553fafda450a2';
$password='8ace947e7398c99ec88b2f9646e1a057';
$headers = array(
'Content-Type:application/json'
//'Authorization: Basic YmFkMjlmNjk0MjFhNzNlODNkYTU1M2ZhZmRhNDUwYTI6OGFjZTk0N2U3Mzk4Yzk5ZWM4OGIyZjk2NDZlMWEwNTc='
);
curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3.1/send");
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$senddata);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"cc\":[\"cc@example.net\":\"cc whom!\"],\"text\":\"This is the text\",\"bcc\":[\"ujjwal@sentientgeeks.com\":\"bcc whom!\"],\"replyto\":[\"ujjwal@sentientgeeks.com\",\"reply to!\"],\"html\":\"This is the <h1>HTML</h1>This is inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/>Some text<br/>This is inline image 2.<br/><img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/>Some more text<br/>Re-used inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">\",\"to\":{\"ujjwal@sentientgeeks.com\":\"to whom!\"},\"attachment\": {\"myfilename.pdf\":\"your_pdf_files_base64_encoded_chunk_data\"},\"from\":[\"ujjwal@sentientgeeks.com\",\"from email!\"],\"subject\":\"My subject\",\"headers\":{\"Content-Type\":\"text/html; charset=iso-8859-1\", \"X-param1\":\"value1\",\"X-param2\":\"value2\", \"X-Mailin-custom\":\"my custom value\",\"X-Mailin-IP\":\"102.102.1.2\", \"X-Mailin-Tag\":\"My tag\"},\"inline_image\":{\"myinlineimage1.png\":\"your_png_files_base64_encoded_chunk_data\", \"myinlineimage2.jpg\":\"your_jpg_files_base64_encoded_chunk_data\"}}");
curl_setopt($ch, CURLOPT_POST, 1);
//$headers = array();
//$headers[] = "user: bad29f69421a73e83da553fafda450a2:8ace947e7398c99ec88b2f9646e1a057";
//$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print_r($result);
// require_once(APPPATH.'sendgrid-php/sendgrid-php.php');
// include APPPATH . 'sendgrid-php/sendgrid-php.php';
// $email = new \SendGrid\Mail\Mail();
/*
$email->setFrom("setfrom@test.com", "testname");
$email->setSubject("MailTest");
$email->addTo('tomail@gmail.com', "User");
$email->addContent("text/plain", "subject");
$email->addContent(
"text/html",'<html><body>Message</body><html>');
$sendgrid = new \SendGrid(('sendgrid-API-KEY_HERE'));
try {
$response = $sendgrid->send($email);
print $response->statusCode() . "\n";
print_r($response->headers());
print $response->body() . "\n";
} catch (Exception $e) {
echo 'Caught exception: '. $e->getMessage() ."\n";
}
/*
$CI->load->library('email');
/*
$config['protocol'] = 'smtp';
//$config['smtp_host'] = 'smtp.mailtrap.io';
$config['smtp_host'] = 'smtp.sendgrid.net';
$config['smtp_port'] = '587';
$config['smtp_timeout'] = '30';
// $config['smtp_user'] = '505a0d93534180';
// $config['smtp_pass'] = '07433d0ae4879d';
$config['smtp_user'] = 'apikey';
$config['smtp_pass'] = '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';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['mailtype'] = 'html'; // or html
$config['validation'] = TRUE; // bool whether to validate email or not
$CI->email->initialize(array(
'protocol' => 'smtp',
'smtp_host' => 'smtp-relay.sendinblue.com',
'smtp_user' => 'ujjwal@sentientgeeks.com',
'smtp_pass' => '4zT95dpUAYCNLnEO',
'smtp_port' => 587,
'crlf' => "\r\n",
'newline' => "\r\n"
));
//$CI->email->initialize($config);
//$CI->load->library('email');
$CI->email->from($from['email'],$from['name']);
$CI->email->to($to);
$CI->email->subject($subject);
$CI->email->message($message);
$CI->email->send();
echo $CI->email->print_debugger();
*/
}
?>

View File

@ -1,166 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function send_email($from,$to,$subject,$message){
$CI = &get_instance();
//echo APPPATH;
//$messages='<h3>Test</h3>';
$ch = curl_init();
$senddata = '{
"Messages":[
{
"From": {
"Email": "ujjwal@sentientgeeks.com",
"Name": "Ujjwal"
},
"To": [
{
"Email":"'.$to.'"
}
],
"Subject": "'.$subject.'",
"HTMLPart": "'.$message.'"
}
]
}';
//echo $senddata;die;
$username='bad29f69421a73e83da553fafda450a2';
$password='8ace947e7398c99ec88b2f9646e1a057';
$headers = array(
'Content-Type:application/json'
//'Authorization: Basic YmFkMjlmNjk0MjFhNzNlODNkYTU1M2ZhZmRhNDUwYTI6OGFjZTk0N2U3Mzk4Yzk5ZWM4OGIyZjk2NDZlMWEwNTc='
);
curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3.1/send");
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$senddata);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"cc\":[\"cc@example.net\":\"cc whom!\"],\"text\":\"This is the text\",\"bcc\":[\"ujjwal@sentientgeeks.com\":\"bcc whom!\"],\"replyto\":[\"ujjwal@sentientgeeks.com\",\"reply to!\"],\"html\":\"This is the <h1>HTML</h1>This is inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/>Some text<br/>This is inline image 2.<br/><img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/>Some more text<br/>Re-used inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">\",\"to\":{\"ujjwal@sentientgeeks.com\":\"to whom!\"},\"attachment\": {\"myfilename.pdf\":\"your_pdf_files_base64_encoded_chunk_data\"},\"from\":[\"ujjwal@sentientgeeks.com\",\"from email!\"],\"subject\":\"My subject\",\"headers\":{\"Content-Type\":\"text/html; charset=iso-8859-1\", \"X-param1\":\"value1\",\"X-param2\":\"value2\", \"X-Mailin-custom\":\"my custom value\",\"X-Mailin-IP\":\"102.102.1.2\", \"X-Mailin-Tag\":\"My tag\"},\"inline_image\":{\"myinlineimage1.png\":\"your_png_files_base64_encoded_chunk_data\", \"myinlineimage2.jpg\":\"your_jpg_files_base64_encoded_chunk_data\"}}");
curl_setopt($ch, CURLOPT_POST, 1);
//$headers = array();
//$headers[] = "user: bad29f69421a73e83da553fafda450a2:8ace947e7398c99ec88b2f9646e1a057";
//$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print_r($result);
// require_once(APPPATH.'sendgrid-php/sendgrid-php.php');
// include APPPATH . 'sendgrid-php/sendgrid-php.php';
// $email = new \SendGrid\Mail\Mail();
/*
$email->setFrom("setfrom@test.com", "testname");
$email->setSubject("MailTest");
$email->addTo('tomail@gmail.com', "User");
$email->addContent("text/plain", "subject");
$email->addContent(
"text/html",'<html><body>Message</body><html>');
$sendgrid = new \SendGrid(('sendgrid-API-KEY_HERE'));
try {
$response = $sendgrid->send($email);
print $response->statusCode() . "\n";
print_r($response->headers());
print $response->body() . "\n";
} catch (Exception $e) {
echo 'Caught exception: '. $e->getMessage() ."\n";
}
/*
$CI->load->library('email');
/*
$config['protocol'] = 'smtp';
//$config['smtp_host'] = 'smtp.mailtrap.io';
$config['smtp_host'] = 'smtp.sendgrid.net';
$config['smtp_port'] = '587';
$config['smtp_timeout'] = '30';
// $config['smtp_user'] = '505a0d93534180';
// $config['smtp_pass'] = '07433d0ae4879d';
$config['smtp_user'] = 'apikey';
$config['smtp_pass'] = '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';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['mailtype'] = 'html'; // or html
$config['validation'] = TRUE; // bool whether to validate email or not
$CI->email->initialize(array(
'protocol' => 'smtp',
'smtp_host' => 'smtp-relay.sendinblue.com',
'smtp_user' => 'ujjwal@sentientgeeks.com',
'smtp_pass' => '4zT95dpUAYCNLnEO',
'smtp_port' => 587,
'crlf' => "\r\n",
'newline' => "\r\n"
));
//$CI->email->initialize($config);
//$CI->load->library('email');
$CI->email->from($from['email'],$from['name']);
$CI->email->to($to);
$CI->email->subject($subject);
$CI->email->message($message);
$CI->email->send();
echo $CI->email->print_debugger();
*/
}
function cgq_email($to,$subject,$message)
{
$msg= "this is test mail";
$message = $msg;
// echo $message;
// die();
$CI = &get_instance();
$ch = curl_init();
$senddata = '{
"Messages":[
{
"From": {
"Email": "ujjwal@sentientgeeks.com",
"Name": "Ujjwal"
},
"To": [
{
"Email":"'.$to.'"
}
],
"Subject": "'.$subject.'",
"HTMLPart": "'.$message.'"
}
]
}';
$username='bad29f69421a73e83da553fafda450a2';
$password='8ace947e7398c99ec88b2f9646e1a057';
$headers = array(
'Content-Type:application/json'
//'Authorization: Basic YmFkMjlmNjk0MjFhNzNlODNkYTU1M2ZhZmRhNDUwYTI6OGFjZTk0N2U3Mzk4Yzk5ZWM4OGIyZjk2NDZlMWEwNTc='
);
curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3.1/send");
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$senddata);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print_r($result);
}
?>

View File

@ -1,166 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function send_email($from,$to,$subject,$message){
$CI = &get_instance();
//echo APPPATH;
//$messages='<h3>Test</h3>';
$ch = curl_init();
$senddata = '{
"Messages":[
{
"From": {
"Email": "ujjwal@sentientgeeks.com",
"Name": "Ujjwal"
},
"To": [
{
"Email":"'.$to.'"
}
],
"Subject": "'.$subject.'",
"HTMLPart": "'.$message.'"
}
]
}';
//echo $senddata;die;
$username='bad29f69421a73e83da553fafda450a2';
$password='8ace947e7398c99ec88b2f9646e1a057';
$headers = array(
'Content-Type:application/json'
//'Authorization: Basic YmFkMjlmNjk0MjFhNzNlODNkYTU1M2ZhZmRhNDUwYTI6OGFjZTk0N2U3Mzk4Yzk5ZWM4OGIyZjk2NDZlMWEwNTc='
);
curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3.1/send");
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$senddata);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"cc\":[\"cc@example.net\":\"cc whom!\"],\"text\":\"This is the text\",\"bcc\":[\"ujjwal@sentientgeeks.com\":\"bcc whom!\"],\"replyto\":[\"ujjwal@sentientgeeks.com\",\"reply to!\"],\"html\":\"This is the <h1>HTML</h1>This is inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/>Some text<br/>This is inline image 2.<br/><img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/>Some more text<br/>Re-used inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">\",\"to\":{\"ujjwal@sentientgeeks.com\":\"to whom!\"},\"attachment\": {\"myfilename.pdf\":\"your_pdf_files_base64_encoded_chunk_data\"},\"from\":[\"ujjwal@sentientgeeks.com\",\"from email!\"],\"subject\":\"My subject\",\"headers\":{\"Content-Type\":\"text/html; charset=iso-8859-1\", \"X-param1\":\"value1\",\"X-param2\":\"value2\", \"X-Mailin-custom\":\"my custom value\",\"X-Mailin-IP\":\"102.102.1.2\", \"X-Mailin-Tag\":\"My tag\"},\"inline_image\":{\"myinlineimage1.png\":\"your_png_files_base64_encoded_chunk_data\", \"myinlineimage2.jpg\":\"your_jpg_files_base64_encoded_chunk_data\"}}");
curl_setopt($ch, CURLOPT_POST, 1);
//$headers = array();
//$headers[] = "user: bad29f69421a73e83da553fafda450a2:8ace947e7398c99ec88b2f9646e1a057";
//$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print_r($result);
// require_once(APPPATH.'sendgrid-php/sendgrid-php.php');
// include APPPATH . 'sendgrid-php/sendgrid-php.php';
// $email = new \SendGrid\Mail\Mail();
/*
$email->setFrom("setfrom@test.com", "testname");
$email->setSubject("MailTest");
$email->addTo('tomail@gmail.com', "User");
$email->addContent("text/plain", "subject");
$email->addContent(
"text/html",'<html><body>Message</body><html>');
$sendgrid = new \SendGrid(('sendgrid-API-KEY_HERE'));
try {
$response = $sendgrid->send($email);
print $response->statusCode() . "\n";
print_r($response->headers());
print $response->body() . "\n";
} catch (Exception $e) {
echo 'Caught exception: '. $e->getMessage() ."\n";
}
/*
$CI->load->library('email');
/*
$config['protocol'] = 'smtp';
//$config['smtp_host'] = 'smtp.mailtrap.io';
$config['smtp_host'] = 'smtp.sendgrid.net';
$config['smtp_port'] = '587';
$config['smtp_timeout'] = '30';
// $config['smtp_user'] = '505a0d93534180';
// $config['smtp_pass'] = '07433d0ae4879d';
$config['smtp_user'] = 'apikey';
$config['smtp_pass'] = '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';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['mailtype'] = 'html'; // or html
$config['validation'] = TRUE; // bool whether to validate email or not
$CI->email->initialize(array(
'protocol' => 'smtp',
'smtp_host' => 'smtp-relay.sendinblue.com',
'smtp_user' => 'ujjwal@sentientgeeks.com',
'smtp_pass' => '4zT95dpUAYCNLnEO',
'smtp_port' => 587,
'crlf' => "\r\n",
'newline' => "\r\n"
));
//$CI->email->initialize($config);
//$CI->load->library('email');
$CI->email->from($from['email'],$from['name']);
$CI->email->to($to);
$CI->email->subject($subject);
$CI->email->message($message);
$CI->email->send();
echo $CI->email->print_debugger();
*/
}
function cgq_email($to,$subject,$token)
{
$msg= "<!DOCTYPE html><html lang='en' xmlns='http://www.w3.org/1999/xhtml' xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office'><head><meta charset='utf-8'><meta name='viewport' content='width=device-width'><meta http-equiv='X-UA-Compatible' content='IE=edge'><meta name='x-apple-disable-message-reformatting'><title></title><link href='https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i' rel='stylesheet'></head><body width='100%' style='margin: 0; padding: 0 !important;'><div style='width: 100%;'><div style='max-width: 600px; margin: 0 auto;' class='email-container'><table role='presentation' cellspacing='0' cellpadding='0' style='margin: auto;border-spacing: 0 !important; border-collapse: collapse !important;text-align: center;border: 0;width: 100%;'><tr><td class='bg_white logo' style='padding: 1em 2.5em; text-align: center'><h1 style='margin: 0;'><a href='#'><img style='width: 75px;' src='<?php echo base_url(); ?>common/app-assets/images/logo/logo.png' width='75' /></a></h1></td></tr><tr><td valign='middle' class='bg_light email-section' style='height: 300px;padding: 1.5em;background: #fafafa;'><table><tr><td><div class='text' style='padding: 0 3em; text-align: center;'><h2 style='font-family: 'Playfair Display', serif;color: #000000;margin-top: 0;'>Onboarding Video And Quiz</h2><p style='font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.8; color: rgba(0,0,0,.4);'>Congratulations your deocuments are successfully verified, now you are on the final step of onboarding video tutorial and Quiz process. Just click on the link below to complete the on boarding process.</p><p><a href='".base_url()."onboarding/process/".$token."' class='btn btn-primary' style='border-radius: 30px;background: #f3a333;text-decoration: none; color: #ffffff;padding: 10px 15px;font-family: 'Montserrat', sans-serif; font-weight: 400;font-size: 15px;line-height: 1.8;'>Click Here</a></p></div></td></tr></table></td></tr></table><table style='align-items: center;margin: auto;width: 100%;border: 0;border-spacing: 0 !important; border-collapse: collapse !important;'role='presentation' cellspacing='0' cellpadding='0'><tr><td valign='middle' class='bg_black footer email-section' style='padding: 1.5em;background: #000000;'><table><tr><td valign='top' width='33.333%'><table role='presentation' cellspacing='0' cellpadding='0' style='width: 100%;border: 0;'><tr><td style='text-align: left; padding-right: 10px;text-align: center;'><p style='color: rgba(255,255,255,.5);font-family: sans-serif; font-weight: 400; font-size: 15px; line-height: 1.8;'>&copy; 2021 We Curo. All Rights Reserved</p></td></tr></table></td></tr></table></td></tr></table></div></div></body></html>";
$message = $msg;
// echo $message;
// die();
$CI = &get_instance();
$ch = curl_init();
$senddata = '{
"Messages":[
{
"From": {
"Email": "ujjwal@sentientgeeks.com",
"Name": "Ujjwal"
},
"To": [
{
"Email":"'.$to.'"
}
],
"Subject": "'.$subject.'",
"HTMLPart": "'.$message.'"
}
]
}';
$username='bad29f69421a73e83da553fafda450a2';
$password='8ace947e7398c99ec88b2f9646e1a057';
$headers = array(
'Content-Type:application/json'
//'Authorization: Basic YmFkMjlmNjk0MjFhNzNlODNkYTU1M2ZhZmRhNDUwYTI6OGFjZTk0N2U3Mzk4Yzk5ZWM4OGIyZjk2NDZlMWEwNTc='
);
curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3.1/send");
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$senddata);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print_r($result);
}
?>

View File

@ -1,284 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// function send_email($from,$to,$subject,$message){
// $CI = &get_instance();
// //echo APPPATH;
// //$messages='<h3>Test</h3>';
// $ch = curl_init();
// $senddata = '{
// "Messages":[
// {
// "From": {
// "Email": "ujjwal@sentientgeeks.com",
// "Name": "Ujjwal"
// },
// "To": [
// {
// "Email":"'.$to.'"
// }
// ],
// "Subject": "'.$subject.'",
// "HTMLPart": "'.$message.'"
// }
// ]
// }';
// //echo $senddata;die;
// $username='bad29f69421a73e83da553fafda450a2';
// $password='8ace947e7398c99ec88b2f9646e1a057';
// $headers = array(
// 'Content-Type:application/json'
// //'Authorization: Basic YmFkMjlmNjk0MjFhNzNlODNkYTU1M2ZhZmRhNDUwYTI6OGFjZTk0N2U3Mzk4Yzk5ZWM4OGIyZjk2NDZlMWEwNTc='
// );
// curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3.1/send");
// curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// curl_setopt($ch, CURLOPT_POSTFIELDS,$senddata);
// //curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"cc\":[\"cc@example.net\":\"cc whom!\"],\"text\":\"This is the text\",\"bcc\":[\"ujjwal@sentientgeeks.com\":\"bcc whom!\"],\"replyto\":[\"ujjwal@sentientgeeks.com\",\"reply to!\"],\"html\":\"This is the <h1>HTML</h1>This is inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/>Some text<br/>This is inline image 2.<br/><img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/>Some more text<br/>Re-used inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">\",\"to\":{\"ujjwal@sentientgeeks.com\":\"to whom!\"},\"attachment\": {\"myfilename.pdf\":\"your_pdf_files_base64_encoded_chunk_data\"},\"from\":[\"ujjwal@sentientgeeks.com\",\"from email!\"],\"subject\":\"My subject\",\"headers\":{\"Content-Type\":\"text/html; charset=iso-8859-1\", \"X-param1\":\"value1\",\"X-param2\":\"value2\", \"X-Mailin-custom\":\"my custom value\",\"X-Mailin-IP\":\"102.102.1.2\", \"X-Mailin-Tag\":\"My tag\"},\"inline_image\":{\"myinlineimage1.png\":\"your_png_files_base64_encoded_chunk_data\", \"myinlineimage2.jpg\":\"your_jpg_files_base64_encoded_chunk_data\"}}");
// curl_setopt($ch, CURLOPT_POST, 1);
// //$headers = array();
// //$headers[] = "user: bad29f69421a73e83da553fafda450a2:8ace947e7398c99ec88b2f9646e1a057";
// //$headers[] = "Content-Type: application/json";
// curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
// $result = curl_exec($ch);
// if (curl_errno($ch)) {
// echo 'Error:' . curl_error($ch);
// }
// curl_close ($ch);
// return $result;
// }
function send_email($from,$to,$subject,$message){
$CI = &get_instance();
//echo APPPATH;
//$messages='<h3>Test</h3>';
$ch = curl_init();
$personalizationsData= '{
"personalizations":[
{
"to":[
{
"email":"'.$to.'"
}
],
"subject": "'.$subject.'"
}
],
"content": [{"type": "text/html", "value": "'.$message.'"}],
"from":{"email": "'.EMAIL_FROM.'","name": "'._SITE_TITLE_.'"},
"reply_to":{"email": "'.EMAIL_FROM.'","name": "'._SITE_TITLE_.'"}
}';
$header = array(
'Content-Type:application/json',
'Authorization: Bearer '.SEND_GRID_API_KEY.''
);
curl_setopt($ch, CURLOPT_URL, SEND_GRID_URL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$personalizationsData);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"cc\":[\"cc@example.net\":\"cc whom!\"],\"text\":\"This is the text\",\"bcc\":[\"ujjwal@sentientgeeks.com\":\"bcc whom!\"],\"replyto\":[\"ujjwal@sentientgeeks.com\",\"reply to!\"],\"html\":\"This is the <h1>HTML</h1>This is inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/>Some text<br/>This is inline image 2.<br/><img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/>Some more text<br/>Re-used inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">\",\"to\":{\"ujjwal@sentientgeeks.com\":\"to whom!\"},\"attachment\": {\"myfilename.pdf\":\"your_pdf_files_base64_encoded_chunk_data\"},\"from\":[\"ujjwal@sentientgeeks.com\",\"from email!\"],\"subject\":\"My subject\",\"headers\":{\"Content-Type\":\"text/html; charset=iso-8859-1\", \"X-param1\":\"value1\",\"X-param2\":\"value2\", \"X-Mailin-custom\":\"my custom value\",\"X-Mailin-IP\":\"102.102.1.2\", \"X-Mailin-Tag\":\"My tag\"},\"inline_image\":{\"myinlineimage1.png\":\"your_png_files_base64_encoded_chunk_data\", \"myinlineimage2.jpg\":\"your_jpg_files_base64_encoded_chunk_data\"}}");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
return $result;
}
// attachment
function send_email_attach($from,$to,$subject,$message,$attach){
$CI = &get_instance();
//echo APPPATH;
//$messages='<h3>Test</h3>';
$ch = curl_init();
$personalizationsData= '{
"personalizations":[
{
"to":[
{
"email":"'.$to.'"
}
],
"subject": "'.$subject.'"
}
],
"content": [{"type": "text/html", "value": "'.$message.'"}],
"from":{"email": "'.EMAIL_FROM.'","name": "'._SITE_TITLE_.'"},
"reply_to":{"email": "'.EMAIL_FROM.'","name": "'._SITE_TITLE_.'"},
"attachment":{"content": "attachment",
"filename": "'.$attach.'",
"type": "application/pdf",
"disposition": "attachment"}
}';
$header = array(
'Content-Type:application/json',
'Authorization: Bearer '.SEND_GRID_API_KEY.''
);
curl_setopt($ch, CURLOPT_URL, SEND_GRID_URL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$personalizationsData);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"cc\":[\"cc@example.net\":\"cc whom!\"],\"text\":\"This is the text\",\"bcc\":[\"ujjwal@sentientgeeks.com\":\"bcc whom!\"],\"replyto\":[\"ujjwal@sentientgeeks.com\",\"reply to!\"],\"html\":\"This is the <h1>HTML</h1>This is inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/>Some text<br/>This is inline image 2.<br/><img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/>Some more text<br/>Re-used inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">\",\"to\":{\"ujjwal@sentientgeeks.com\":\"to whom!\"},\"attachment\": {\"myfilename.pdf\":\"your_pdf_files_base64_encoded_chunk_data\"},\"from\":[\"ujjwal@sentientgeeks.com\",\"from email!\"],\"subject\":\"My subject\",\"headers\":{\"Content-Type\":\"text/html; charset=iso-8859-1\", \"X-param1\":\"value1\",\"X-param2\":\"value2\", \"X-Mailin-custom\":\"my custom value\",\"X-Mailin-IP\":\"102.102.1.2\", \"X-Mailin-Tag\":\"My tag\"},\"inline_image\":{\"myinlineimage1.png\":\"your_png_files_base64_encoded_chunk_data\", \"myinlineimage2.jpg\":\"your_jpg_files_base64_encoded_chunk_data\"}}");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
return $result;
}
function cgq_email($to,$subject,$token)
{
$msg= "<!DOCTYPE html><html lang='en' xmlns='http://www.w3.org/1999/xhtml' xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office'><head><meta charset='utf-8'><meta name='viewport' content='width=device-width'><meta http-equiv='X-UA-Compatible' content='IE=edge'><meta name='x-apple-disable-message-reformatting'><title></title><link href='https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i' rel='stylesheet'></head><body width='100%' style='margin: 0; padding: 0 !important;'><div style='width: 100%;'><div style='max-width: 600px; margin: 0 auto;' class='email-container'><table role='presentation' cellspacing='0' cellpadding='0' style='margin: auto;border-spacing: 0 !important; border-collapse: collapse !important;text-align: center;border: 0;width: 100%;'><tr><td class='bg_white logo' style='padding: 1em 2.5em; text-align: center'><h1 style='margin: 0;'><a href='#'><img style='width: 75px;' src='<?php echo base_url(); ?>common/app-assets/images/logo/logo.png' width='75' /></a></h1></td></tr><tr><td valign='middle' class='bg_light email-section' style='height: 300px;padding: 1.5em;background: #fafafa;'><table><tr><td><div class='text' style='padding: 0 3em; text-align: center;'><h2 style='font-family: 'Playfair Display', serif;color: #000000;margin-top: 0;'>Onboarding Video And Quiz</h2><p style='font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.8; color: rgba(0,0,0,.4);'>Congratulations your deocuments are successfully verified, now you are on the final step of onboarding video tutorial and Quiz process. Just click on the link below to complete the on boarding process.</p><p><a href='".base_url()."onboarding/process/".$token."' class='btn btn-primary' style='border-radius: 30px;background: #f3a333;text-decoration: none; color: #ffffff;padding: 10px 15px;font-family: 'Montserrat', sans-serif; font-weight: 400;font-size: 15px;line-height: 1.8;'>Click Here</a></p></div></td></tr></table></td></tr></table><table style='align-items: center;margin: auto;width: 100%;border: 0;border-spacing: 0 !important; border-collapse: collapse !important;'role='presentation' cellspacing='0' cellpadding='0'><tr><td valign='middle' class='bg_black footer email-section' style='padding: 1.5em;background: #000000;'><table><tr><td valign='top' width='33.333%'><table role='presentation' cellspacing='0' cellpadding='0' style='width: 100%;border: 0;'><tr><td style='text-align: left; padding-right: 10px;text-align: center;'><p style='color: rgba(255,255,255,.5);font-family: sans-serif; font-weight: 400; font-size: 15px; line-height: 1.8;'>&copy; 2021 We Curo. All Rights Reserved</p></td></tr></table></td></tr></table></td></tr></table></div></div></body></html>";
$message = $msg;
// echo $message;
// die();
$CI = &get_instance();
$ch = curl_init();
// $senddata = '{
// "Messages":[
// {
// "From": {
// "Email": "ujjwal@sentientgeeks.com",
// "Name": "WeCuro Onboarding Process"
// },
// "To": [
// {
// "Email":"'.$to.'"
// }
// ],
// "Subject": "'.$subject.'",
// "HTMLPart": "'.$message.'"
// }
// ]
// }';
// $username='bad29f69421a73e83da553fafda450a2';
// $password='8ace947e7398c99ec88b2f9646e1a057';
// $headers = array(
// 'Content-Type:application/json'
// //'Authorization: Basic YmFkMjlmNjk0MjFhNzNlODNkYTU1M2ZhZmRhNDUwYTI6OGFjZTk0N2U3Mzk4Yzk5ZWM4OGIyZjk2NDZlMWEwNTc='
// );
// curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3.1/send");
// curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// curl_setopt($ch, CURLOPT_POSTFIELDS,$senddata);
// curl_setopt($ch, CURLOPT_POST, 1);
// curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
// $result = curl_exec($ch);
// if (curl_errno($ch)) {
// echo 'Error:' . curl_error($ch);
// }
$personalizationsData= '{
"personalizations":[
{
"to":[
{
"email":"'.$to.'"
}
],
"subject": "'.$subject.'"
}
],
"content": [{"type": "text/html", "value": "'.$message.'"}],
"from":{"email":"moli@sentientgeeks.com","name":"WeCuro"},
"reply_to":{"email":"moli@sentientgeeks.com","name":"WeCuro"}
}';
$header = array(
'Content-Type:application/json',
'Authorization: Bearer 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'
);
curl_setopt($ch, CURLOPT_URL, "https://api.sendgrid.com/v3/mail/send");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$personalizationsData);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"cc\":[\"cc@example.net\":\"cc whom!\"],\"text\":\"This is the text\",\"bcc\":[\"ujjwal@sentientgeeks.com\":\"bcc whom!\"],\"replyto\":[\"ujjwal@sentientgeeks.com\",\"reply to!\"],\"html\":\"This is the <h1>HTML</h1>This is inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/>Some text<br/>This is inline image 2.<br/><img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/>Some more text<br/>Re-used inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">\",\"to\":{\"ujjwal@sentientgeeks.com\":\"to whom!\"},\"attachment\": {\"myfilename.pdf\":\"your_pdf_files_base64_encoded_chunk_data\"},\"from\":[\"ujjwal@sentientgeeks.com\",\"from email!\"],\"subject\":\"My subject\",\"headers\":{\"Content-Type\":\"text/html; charset=iso-8859-1\", \"X-param1\":\"value1\",\"X-param2\":\"value2\", \"X-Mailin-custom\":\"my custom value\",\"X-Mailin-IP\":\"102.102.1.2\", \"X-Mailin-Tag\":\"My tag\"},\"inline_image\":{\"myinlineimage1.png\":\"your_png_files_base64_encoded_chunk_data\", \"myinlineimage2.jpg\":\"your_jpg_files_base64_encoded_chunk_data\"}}");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print_r($result);
}
function cgdoc_email($to,$subject,$message)
{
// echo $message;
// die();
$CI = &get_instance();
$ch = curl_init();
$personalizationsData= '{
"personalizations":[
{
"to":[
{
"email":"'.$to.'"
}
],
"subject": "'.$subject.'"
}
],
"content": [{"type": "text/html", "value": "'.$message.'"}],
"from":{"email":"'.EMAIL_FROM.'","name":"'._SITE_TITLE_.'"},
"reply_to":{"email":"'.EMAIL_FROM.'","name":"'._SITE_TITLE_.'"}
}';
$header = array(
'Content-Type:application/json',
'Authorization: Bearer '.SEND_GRID_API_KEY.''
);
curl_setopt($ch, CURLOPT_URL, SEND_GRID_URL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$personalizationsData);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"cc\":[\"cc@example.net\":\"cc whom!\"],\"text\":\"This is the text\",\"bcc\":[\"ujjwal@sentientgeeks.com\":\"bcc whom!\"],\"replyto\":[\"ujjwal@sentientgeeks.com\",\"reply to!\"],\"html\":\"This is the <h1>HTML</h1>This is inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/>Some text<br/>This is inline image 2.<br/><img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/>Some more text<br/>Re-used inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">\",\"to\":{\"ujjwal@sentientgeeks.com\":\"to whom!\"},\"attachment\": {\"myfilename.pdf\":\"your_pdf_files_base64_encoded_chunk_data\"},\"from\":[\"ujjwal@sentientgeeks.com\",\"from email!\"],\"subject\":\"My subject\",\"headers\":{\"Content-Type\":\"text/html; charset=iso-8859-1\", \"X-param1\":\"value1\",\"X-param2\":\"value2\", \"X-Mailin-custom\":\"my custom value\",\"X-Mailin-IP\":\"102.102.1.2\", \"X-Mailin-Tag\":\"My tag\"},\"inline_image\":{\"myinlineimage1.png\":\"your_png_files_base64_encoded_chunk_data\", \"myinlineimage2.jpg\":\"your_jpg_files_base64_encoded_chunk_data\"}}");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print_r($result);
}
?>

View File

@ -1,166 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function send_email($from,$to,$subject,$message){
$CI = &get_instance();
//echo APPPATH;
//$messages='<h3>Test</h3>';
$ch = curl_init();
$senddata = '{
"Messages":[
{
"From": {
"Email": "ujjwal@sentientgeeks.com",
"Name": "Ujjwal"
},
"To": [
{
"Email":"'.$to.'"
}
],
"Subject": "'.$subject.'",
"HTMLPart": "'.$message.'"
}
]
}';
//echo $senddata;die;
$username='bad29f69421a73e83da553fafda450a2';
$password='8ace947e7398c99ec88b2f9646e1a057';
$headers = array(
'Content-Type:application/json'
//'Authorization: Basic YmFkMjlmNjk0MjFhNzNlODNkYTU1M2ZhZmRhNDUwYTI6OGFjZTk0N2U3Mzk4Yzk5ZWM4OGIyZjk2NDZlMWEwNTc='
);
curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3.1/send");
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$senddata);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"cc\":[\"cc@example.net\":\"cc whom!\"],\"text\":\"This is the text\",\"bcc\":[\"ujjwal@sentientgeeks.com\":\"bcc whom!\"],\"replyto\":[\"ujjwal@sentientgeeks.com\",\"reply to!\"],\"html\":\"This is the <h1>HTML</h1>This is inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/>Some text<br/>This is inline image 2.<br/><img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/>Some more text<br/>Re-used inline image 1.<br/><img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">\",\"to\":{\"ujjwal@sentientgeeks.com\":\"to whom!\"},\"attachment\": {\"myfilename.pdf\":\"your_pdf_files_base64_encoded_chunk_data\"},\"from\":[\"ujjwal@sentientgeeks.com\",\"from email!\"],\"subject\":\"My subject\",\"headers\":{\"Content-Type\":\"text/html; charset=iso-8859-1\", \"X-param1\":\"value1\",\"X-param2\":\"value2\", \"X-Mailin-custom\":\"my custom value\",\"X-Mailin-IP\":\"102.102.1.2\", \"X-Mailin-Tag\":\"My tag\"},\"inline_image\":{\"myinlineimage1.png\":\"your_png_files_base64_encoded_chunk_data\", \"myinlineimage2.jpg\":\"your_jpg_files_base64_encoded_chunk_data\"}}");
curl_setopt($ch, CURLOPT_POST, 1);
//$headers = array();
//$headers[] = "user: bad29f69421a73e83da553fafda450a2:8ace947e7398c99ec88b2f9646e1a057";
//$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print_r($result);
// require_once(APPPATH.'sendgrid-php/sendgrid-php.php');
// include APPPATH . 'sendgrid-php/sendgrid-php.php';
// $email = new \SendGrid\Mail\Mail();
/*
$email->setFrom("setfrom@test.com", "testname");
$email->setSubject("MailTest");
$email->addTo('tomail@gmail.com', "User");
$email->addContent("text/plain", "subject");
$email->addContent(
"text/html",'<html><body>Message</body><html>');
$sendgrid = new \SendGrid(('sendgrid-API-KEY_HERE'));
try {
$response = $sendgrid->send($email);
print $response->statusCode() . "\n";
print_r($response->headers());
print $response->body() . "\n";
} catch (Exception $e) {
echo 'Caught exception: '. $e->getMessage() ."\n";
}
/*
$CI->load->library('email');
/*
$config['protocol'] = 'smtp';
//$config['smtp_host'] = 'smtp.mailtrap.io';
$config['smtp_host'] = 'smtp.sendgrid.net';
$config['smtp_port'] = '587';
$config['smtp_timeout'] = '30';
// $config['smtp_user'] = '505a0d93534180';
// $config['smtp_pass'] = '07433d0ae4879d';
$config['smtp_user'] = 'apikey';
$config['smtp_pass'] = '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';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['mailtype'] = 'html'; // or html
$config['validation'] = TRUE; // bool whether to validate email or not
$CI->email->initialize(array(
'protocol' => 'smtp',
'smtp_host' => 'smtp-relay.sendinblue.com',
'smtp_user' => 'ujjwal@sentientgeeks.com',
'smtp_pass' => '4zT95dpUAYCNLnEO',
'smtp_port' => 587,
'crlf' => "\r\n",
'newline' => "\r\n"
));
//$CI->email->initialize($config);
//$CI->load->library('email');
$CI->email->from($from['email'],$from['name']);
$CI->email->to($to);
$CI->email->subject($subject);
$CI->email->message($message);
$CI->email->send();
echo $CI->email->print_debugger();
*/
}
function cgq_email($to,$subject,$token)
{
$msg= "<!DOCTYPE html><html lang='en' xmlns='http://www.w3.org/1999/xhtml' xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office'><head><meta charset='utf-8'><meta name='viewport' content='width=device-width'><meta http-equiv='X-UA-Compatible' content='IE=edge'><meta name='x-apple-disable-message-reformatting'><title></title><link href='https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i' rel='stylesheet'></head><body width='100%' style='margin: 0; padding: 0 !important;'><div style='width: 100%;'><div style='max-width: 600px; margin: 0 auto;' class='email-container'><table role='presentation' cellspacing='0' cellpadding='0' style='margin: auto;border-spacing: 0 !important; border-collapse: collapse !important;text-align: center;border: 0;width: 100%;'><tr><td class='bg_white logo' style='padding: 1em 2.5em; text-align: center'><h1 style='margin: 0;'><a href='#'><img style='width: 75px;' src='<?php echo base_url(); ?>common/app-assets/images/logo/logo.png' width='75' /></a></h1></td></tr><tr><td valign='middle' class='bg_light email-section' style='height: 300px;padding: 1.5em;background: #fafafa;'><table><tr><td><div class='text' style='padding: 0 3em; text-align: center;'><h2 style='font-family: 'Playfair Display', serif;color: #000000;margin-top: 0;'>Onboarding Video And Quiz</h2><p style='font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.8; color: rgba(0,0,0,.4);'>Congratulations your deocuments are successfully verified, now you are on the final step of onboarding video tutorial and Quiz process. Just click on the link below to complete the on boarding process.</p><p><a href='".base_url()."onboarding/process/".$token."' class='btn btn-primary' style='border-radius: 30px;background: #f3a333;text-decoration: none; color: #ffffff;padding: 10px 15px;font-family: 'Montserrat', sans-serif; font-weight: 400;font-size: 15px;line-height: 1.8;'>Click Here</a></p></div></td></tr></table></td></tr></table><table style='align-items: center;margin: auto;width: 100%;border: 0;border-spacing: 0 !important; border-collapse: collapse !important;'role='presentation' cellspacing='0' cellpadding='0'><tr><td valign='middle' class='bg_black footer email-section' style='padding: 1.5em;background: #000000;'><table><tr><td valign='top' width='33.333%'><table role='presentation' cellspacing='0' cellpadding='0' style='width: 100%;border: 0;'><tr><td style='text-align: left; padding-right: 10px;text-align: center;'><p style='color: rgba(255,255,255,.5);font-family: sans-serif; font-weight: 400; font-size: 15px; line-height: 1.8;'>&copy; 2021 We Curo. All Rights Reserved</p></td></tr></table></td></tr></table></td></tr></table></div></div></body></html>";
$message = $msg;
// echo $message;
// die();
$CI = &get_instance();
$ch = curl_init();
$senddata = '{
"Messages":[
{
"From": {
"Email": "ujjwal@sentientgeeks.com",
"Name": "WeCuro Onboarding Process"
},
"To": [
{
"Email":"'.$to.'"
}
],
"Subject": "'.$subject.'",
"HTMLPart": "'.$message.'"
}
]
}';
$username='bad29f69421a73e83da553fafda450a2';
$password='8ace947e7398c99ec88b2f9646e1a057';
$headers = array(
'Content-Type:application/json'
//'Authorization: Basic YmFkMjlmNjk0MjFhNzNlODNkYTU1M2ZhZmRhNDUwYTI6OGFjZTk0N2U3Mzk4Yzk5ZWM4OGIyZjk2NDZlMWEwNTc='
);
curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3.1/send");
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$senddata);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print_r($result);
}
?>

View File

@ -1,95 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('fileStore')){
function fileStore($file=array(),$uploadData=array()){
if(!isset($uploadData["CONFIG"])){
return 'File Config Not Defined.';
}else if(!isset($uploadData["NAME"])){
return 'File Name Not Defined.';
}
$CI = &get_instance();
$uploadto="";
if(!isset($uploadData['folder_name'])){
$uploadData['folder_name']='uploads/common';
}
if (!is_dir($uploadData['folder_name'])) {
mkdir($uploadData['folder_name'], 0777, TRUE);
}
$uploadto=$uploadData['folder_name'];
$name=$uploadData["NAME"];
$file_name = $file[$name]['name'];
$size=$file[$name]['size'];
$type=$file[$name]['type'];
$file_name_pieces = explode('.', $file_name);
$count=count($file_name_pieces);
$new_file_name = "";
// if(isset($uploadData["NEW_FILENAME_START"]) && trim($uploadData["NEW_FILENAME_START"]) !== '')
// {
// $new_file_name = $uploadData["NEW_FILENAME_START"].'_';
// }
if(isset($uploadData["NEW_FILENAME_START"])){
$new_file_name = $uploadData["NEW_FILENAME_START"].'_';
}
$new_file_name .= str_pad(rand(), 6, "0", STR_PAD_LEFT).'_'.date('YmdHis').'.'.$file_name_pieces[$count-1];
//$new_file_name = $doc_type.'_'.str_pad($ionid, 6, "0", STR_PAD_LEFT).'_'.date('YmdHis').'_01.'.$file_name_pieces[$count-1];
$config = $uploadData["CONFIG"];
$config['file_name']=$new_file_name;
$config['upload_path']="./".$uploadto;
$config['overwrite']=false;
// $config = array(
// 'file_name' => $new_file_name,
// 'upload_path' => "./".$uploadto,
// //'allowed_types' => "gif|jpg|png|jpeg|pdf",
// 'overwrite' => False,
// //'max_size' => "20480000",
// //'max_height' => "1768",
// //'max_width' => "2024"
// );
$CI->load->library('Upload', $config);
$CI->upload->initialize($config);
if ($CI->upload->do_upload($name)) {
$path = $CI->upload->data();
//$photo = $path['file_name'];
}
if($path['file_name']!=""){
$ret[$name]=$uploadto.''.$path['file_name'];
}
// echo $uploadto="uploads/PatientDocuments/".$folder_name."/";
$ret = array(
"PATH" => $uploadto,
"NEW_FILE_NAME" => $path['file_name'],
"ORIGINAL_FILE_NAME" => $file_name,
"EXT" => $file_name_pieces[$count-1],
"SIZE" => $size,
"MIME" => $type
);
// echo '<br>';
// print_r($uploadData);
// echo '<br>';
// print_r($config);
// echo '<br>';
// print_r($file);
// echo '<br>';
// print_r($ret);
return $ret;
}
}
?>

View File

@ -1,34 +0,0 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
// generate pdf
function generate_pdf($name, $tpl, $data)
{
$ci = &get_instance();
$data['data'] = $data;
$html = '';
$ci->load->library('pdf');
foreach ($tpl as $value)
{
$ci->load->view($value, $data);
$html = $ci->output->get_output();
$ci->dompdf->loadHtml($html);
// setup size
$ci->dompdf->setPaper('A4', 'portrait');
// Render the HTML as PDF
}
// _die($html);
// Get output html
// add external css library
// $html .= '<link href="' . base_url() . 'assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">';
// Load pdf library
$ci->dompdf->render();
// echo $output = $ci->dompdf->output();
// Output PDF (1 = download and 0 = preview)
$ci->dompdf->stream($name, array("Attachment" => 0));
}
?>

View File

@ -1,49 +0,0 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
// generate pdf
function generate_pdf($name, $tpl, $data)
{
$ci = &get_instance();
$data['data'] = $data;
$html = '';
$ci->load->library('pdf');
foreach ($tpl as $value)
{
$ci->load->view($value, $data);
$html = $ci->output->get_output();
$ci->dompdf->loadHtml($html);
// setup size
$ci->dompdf->setPaper('A4', 'portrait');
// Render the HTML as PDF
}
// _die($html);
// Get output html
// add external css library
// $html .= '<link href="' . base_url() . 'assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">';
// Load pdf library
$ci->dompdf->render();
// echo $output = $ci->dompdf->output();
// Output PDF (1 = download and 0 = preview)
$ci->dompdf->stream($name, array("Attachment" => 0));
}
function generate_html($name, $tpl, $data)
{
$ci = &get_instance();
$data['data'] = $data;
$html = '';
$ci->load->library('pdf');
foreach ($tpl as $value)
{
$html = $ci->load->view($value, $data, true);
// Render the HTML as PDF
}
return $html;
}
?>

View File

@ -1,49 +0,0 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
// generate pdf
function generate_pdf($name, $tpl, $data)
{
$ci = &get_instance();
$data['data'] = $data;
$html = '';
$ci->load->library('pdf');
foreach ($tpl as $value)
{
$ci->load->view($value, $data);
$html = $ci->output->get_output();
$ci->dompdf->loadHtml($html);
// setup size
$ci->dompdf->setPaper('A4', 'portrait');
// Render the HTML as PDF
}
// _die($html);
// Get output html
// add external css library
// $html .= '<link href="' . base_url() . 'assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">';
// Load pdf library
$ci->dompdf->render();
// echo $output = $ci->dompdf->output();
// Output PDF (1 = download and 0 = preview)
$ci->dompdf->stream($name, array("Attachment" => 0));
}
function generate_html($name, $tpl, $data)
{
$ci = &get_instance();
$data['data'] = $data;
$html = '';
$ci->load->library('pdf');
foreach ($tpl as $value)
{
$html = $ci->load->view($value, $data, true);
// Render the HTML as PDF
}
return $html;
}
?>

View File

@ -1,852 +0,0 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
// generate pdf
use mikehaertl\pdftk\Pdf;
use fpdf;
use Dompdf\Dompdf;
// require_once(APPPATH .'libraries/dompdf/autoload.inc.php');
function generate_pdf($name, $tpl, $data)
{
$ci = &get_instance();
$data['data'] = $data;
$html = '';
$ci->load->library('pdf');
foreach ($tpl as $value)
{
$ci->load->view($value, $data);
$html = $ci->output->get_output();
$ci->dompdf->loadHtml($html);
// setup size
$ci->dompdf->setPaper('A4', 'portrait');
// Render the HTML as PDF
}
// _die($html);
// Get output html
// add external css library
// $html .= '<link href="' . base_url() . 'assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">';
// Load pdf library
$ci->dompdf->render();
// echo $output = $ci->dompdf->output();
// Output PDF (1 = download and 0 = preview)
$ci->dompdf->stream($name, array("Attachment" => 0));
}
if (!function_exists('generate_pdf_file')){
function generate_pdf_file($name, $tpl, $data){
$ci = &get_instance();
$data['data'] = $data;
// _die($data);
$html = '';
$ci->load->library('pdf');
foreach ($tpl as $value)
{
$ci->load->view($value, $data);
$html = $ci->output->get_output();
$ci->dompdf->loadHtml($html);
$ci->dompdf->setPaper('A4', 'portrait');
}
$ci->dompdf->render();
// $ci->dompdf->stream($name, array("Attachment" => 0));
if(!file_exists($data['file_name'])){
$output=$ci->dompdf->output();
// $filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
file_put_contents($data['file_name'], $output);
// echo $data['file_name'];
}
return $data['file_name'];
// _die($data['file_name']);
}
}
function generate_html($name, $tpl, $data)
{
$ci = &get_instance();
$data['data'] = $data;
$html = '';
$ci->load->library('pdf');
$html = $ci->load->view($tpl, $data, true);
return $html;
}
/*
| filling Editable pdf forms
| and creating new one is started from here
| used libraries are pdftk and fpdf
*/
function pdfGenerate($data,$id,$slug,$pages)
{
$CI = & get_instance();
$CI->load->library('Generatepdf');
$CI->load->library('Generatefpdf');
// return $data;
foreach($data as $d){
$filepath=$d['filepath'];
$imgpath=$d['imgpath'];
$imageFile=$d['imageFile'];
$x=$d['x'];
$y=$d['y'];
$w=$d['w'];
$h=$d['h'];
$pdfFile=$d['pdfFile'];
$dataInfo=$d['dataInfo'];
if($pages>1){
$finalPage=$pages-1;
/*
| extracting files
*/
$pdftk=new Pdf($pdfFile);
$filename="pdf_".rand(9999,99999999)."_".$id.".pdf";
$pdftk->cat([$pages]);
$pdftk->saveAs($filepath."/temps/".$filename);
$extractedPdfFile1=$filepath."/temps/".$filename;
$pdftk=new Pdf($pdfFile);
$filename="pdf_".rand(9999,99999999)."_".$id.".pdf";
$pdftk->cat(1,$finalPage);
$pdftk->saveAs($filepath."/temps/".$filename);
$extractedPdfFile2=$filepath."/temps/".$filename;
/*
| signature image file pdf create using fpdf
*/
$fpdf = new fpdf();
$filename = "pdf_".rand(9999,99999999)."_".$id.".pdf";
$fpdf->AddPage();
$fpdf->Image($imageFile,$x,$y,$w,$h);
$fpdf->Output($filepath."/temps/".$filename,'F');
$imagePdf=$imgpath."\\temps\\".$filename;
/*
| editable form fill up using pdftk
*/
$pdftk = new Pdf();
$filename = "pdf_".rand(9999,99999999)."_".$id.".pdf";
$pdftk->addFile($extractedPdfFile1,'A');
$pdftk->fillForm($dataInfo)
->flatten()
->saveAs($filepath."/temps/".$filename);
$editedPdf=$filepath."/temps/".$filename;
/*
| stamping of those above two pdf's using pdftk
*/
$pdftk = new Pdf();
$filename = "stamp_".rand(9999,99999999)."_".$id.".pdf";
$pdftk->addFile($editedPdf,'B');
$pdftk->stamp($imagePdf)
->saveAs($filepath."/temps/".$filename);
$stampedfile=$filepath."/temps/".$filename;
$pdftk = new Pdf();
$filename = "stamp_".rand(9999,99999999)."_".$id.".pdf";
$pdftk->addFile($extractedPdfFile2, 'A');
$pdftk->cat('A');
$pdftk->addFile($stampedfile, 'B');
$pdftk->cat('B');
$pdftk->saveAs($filepath."/temps/".$filename);
$files[]=$filepath."/temps/".$filename;
/*
| unlinking $imagePdf & $editedPdf files
*/
unlink($imagePdf);
unlink($editedPdf);
unlink($extractedPdfFile1);
unlink($extractedPdfFile2);
unlink($stampedfile);
}else{
/*
| signature image file pdf create using fpdf
*/
$fpdf = new fpdf();
$filename = "pdf_".rand(9999,99999999)."_".$id.".pdf";
$fpdf->AddPage();
$fpdf->Image($imageFile,$x,$y,$w,$h);
$fpdf->Output($filepath."/temps/".$filename,'F');
$imagePdf=$imgpath."\\temps\\".$filename;
/*
| editable form fill up using pdftk
*/
$pdftk = new Pdf();
$filename = "pdf_".rand(9999,99999999)."_".$id.".pdf";
$pdftk->addFile($pdfFile,'A');
$pdftk->fillForm($dataInfo)
->flatten()
->saveAs($filepath."/temps/".$filename);
$editedPdf=$filepath."/temps/".$filename;
/*
| stamping of those above two pdf's using pdftk
*/
$pdftk = new Pdf();
$filename = "stamp_".rand(9999,99999999)."_".$id.".pdf";
$pdftk->addFile($editedPdf,'B');
$pdftk->stamp($imagePdf)
->saveAs($filepath."/temps/".$filename);
$files[]=$filepath."/temps/".$filename;
/*
| unlinking $imagePdf & $editedPdf files
*/
unlink($imagePdf);
unlink($editedPdf);
}
}
/*
| catenation of $files
*/
$pdftk = new Pdf();
$filename = $slug."_".$id.".pdf";
$char="A";
foreach($files as $f){
$pdftk->addFile($f, $char);
$pdftk->cat($char);
$char++;
}
$pdftk->saveAs($filepath."/pdfs/".$filename);
/*
| unlinking $files
*/
foreach($files as $f){
unlink($f);
}
return $filename;
}
function generate_pdf_and_save($tpl,$data,$path,$cred)
{
$CI = & get_instance();
$CI->load->library('Generatepdf');
$CI->load->library('Generatefpdf');
$CI->load->library('pdf');
$dompdf = new Dompdf();
$data['data']=$data;
$html = '';
$output="";
foreach($tpl as $value){
$CI->load->view($value, $data);
$html=$CI->output->get_output();
$dompdf->load_html($html);
$dompdf->setPaper('A4', 'portrait');
}
$dompdf->render();
$output=$dompdf->output();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
file_put_contents($path['filePath'].$filename, $output);
$bigPdfFile=$path['filePath'].$filename;
#spliting big file into components files
foreach($cred as $d){
$pdftk = new Pdf();
$pdftk->addFile($bigPdfFile, 'A');
$pdftk->cat($d['start'],$d['end'],'A');
$pdftk->saveAs($path['filePath'].$d['slug'].$path['fileName']);
}
#spliting big file into components files
#unlinking big file
unlink($bigPdfFile);
#unlinking big file
}
function mypdf2($datas,$ion_id,$mainslug)
{
// pre($datas);exit;
$CI = & get_instance();
$CI->load->library('Generatepdf');
$CI->load->library('Generatefpdf');
foreach($datas as $data){
#extracting all datas
$pdfFile=$data['pdfFile'];
$pages=$data['pages'];
$break_page=$data['break_page'];
$slug=$data['slug'];
$filePath=$data['filePath'];
$imagePath=$data['imagePath'];
$imagePath=str_replace("\\","/",$imagePath);
$imageFile=$data['imageFile'];
$imageFile=str_replace("\\","/",$imageFile);
$x=$data['x'];
$y=$data['y'];
$w=$data['w'];
$h=$data['h'];
$imageFile1=$data['imageFile1'];
$imageFile1=str_replace("\\","/",$imageFile1);
$x1=$data['x1'];
$y1=$data['y1'];
$w1=$data['w1'];
$h1=$data['h1'];
$imageFile2=$data['imageFile2'];
$imageFile2=str_replace("\\","/",$imageFile2);
$x2=$data['x2'];
$y2=$data['y2'];
$w2=$data['w2'];
$h2=$data['h2'];
$filePath=$data['filePath'];
$dataInfo=$data['dataInfo'];
// pre($data);
#extracting all datas
#filling up form
$pdftk = new Pdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->addFile($pdfFile,'A');
$pdftk->fillForm($dataInfo)
->flatten()
->saveAs($filePath.$filename);
$filledPdfFile=$filePath.$filename;
#filling up form
if($pages>1){
#splitting the pdf files according to $break_page
$pdftk = new Pdf($filledPdfFile);
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->cat([$break_page]);
$pdftk->saveAs($filePath.$filename);
$breakedPdfFile=$filePath.$filename;
#splitting the pdf files according to $break_page
#creating image pdf file
$fpdf = new fpdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$fpdf->AddPage();
$fpdf->Image($imageFile,$x,$y,$w,$h);
$fpdf->Image($imageFile1,$x1,$y1,$w1,$h1);
$fpdf->Image($imageFile2,$x2,$y2,$w2,$h2);
$fpdf->Output($filePath.$filename,'F');
$imagePdf=$imagePath.$filename;
$imagePdf2=$filePath.$filename;
#creating image pdf file
#stamping $imagePdf on $breakedPdfFile
$pdftk = new Pdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->addFile($breakedPdfFile,'B');
$pdftk->stamp($imagePdf)
->saveAs($filePath.$filename);
$stampedPdfFile=$filePath.$filename;
#stamping $imagePdf on $breakedPdfFile
#relative concatenation of $filledPdfFile && $stampedPdfFile
if($break_page==1){
$p1=null;
$p2=null;
}if($break_page==2){
$p1=1;
$p2=null;
}if($break_page>2){
$p1=1;
$p2=$break_page-1;
}if($break_page==$pages){
$p3=null;
$p4=null;
}if($break_page==($pages-1)){
$p3=$pages;
$p4=null;
}if($break_page<($pages-1)){
$p3=$break_page+1;
$p4=$pages;
}
$pdftk = new Pdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
if($p1!=null){
$pdftk->addFile($filledPdfFile, 'A');
$pdftk->cat($p1,$p2,'A');
}
$pdftk->addFile($stampedPdfFile, 'B');
$pdftk->cat('B');
if($p3!=null){
$pdftk->addFile($filledPdfFile, 'C');
$pdftk->cat($p3,$p4,'C');
}
$pdftk->saveAs($filePath.$filename);
$files[]=$filePath.$filename;
#relative concatenation of $filledPdfFile && $stampedPdfFile
#unlinking files
unlink($breakedPdfFile);
unlink($imagePdf2);
unlink($stampedPdfFile);
#unlinking files
}else{
#creating image pdf file
$fpdf = new fpdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$fpdf->AddPage();
$fpdf->Image($imageFile,$x,$y,$w,$h);
$fpdf->Image($imageFile1,$x1,$y1,$w1,$h1);
$fpdf->Image($imageFile2,$x2,$y2,$w2,$h2);
$fpdf->Output($filePath.$filename,'F');
$imagePdf=$imagePath.$filename;
$imagePdf2=$filePath.$filename;
#creating image pdf file
#stamping $imagePdf on $filledPdfFile
$pdftk = new Pdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->addFile($filledPdfFile,'B');
$pdftk->stamp($imagePdf)
->saveAs($filePath.$filename);
$files[]=$filePath.$filename;
#stamping $imagePdf on $filledPdfFile
#unlinking files
unlink($imagePdf2);
#unlinking files
}
#unlinking files
unlink($filledPdfFile);
#unlinking files
}
// pre($datas);exit;
/*
| catenation of $files
*/
$pdftk = new Pdf();
IF($mainslug!=""){
$slug=$mainslug;
}
$filename = $slug.str_pad($ion_id, 6,"0",STR_PAD_LEFT).".pdf";
$char = "A";
foreach($files as $f){
$pdftk->addFile($f, $char);
$pdftk->cat($char);
$char++;
}
$pdftk->saveAs($filePath.$filename);
/*
| unlinking $files
*/
foreach($files as $f){
unlink($f);
}
return $filename;
}
function ci_create_single_page_html_to_pdf($data){
try{
$CI=&get_instance();
$CI->load->library('pdf');
$CI->load->view($data->html_page,$data->html_page_data);
$html=$CI->output->get_output();
$dompdf=new Dompdf();
$newpath=$data->upload_path.$data->slug.$data->unique_id.".pdf";
$dompdf->loadHtml($html);
$dompdf->setPaper('A4','portrait');
$dompdf->render();
$output=$dompdf->output();
$file_put_contents=file_put_contents($newpath,$output);
return $newpath;
}
catch(Exception $e){
$getMsg="generatepdf_helper - ci_create_single_page_html_to_pdf: ".$e->getMessage();
echo $getMsg;
}
}
function ci_single_page_pdf_creation($datas,$merge=false){
try{
$CI=&get_instance();
$CI->load->library('Generatepdf');
$CI->load->library('Generatefpdf');
$temporary_files=[];
$main_files=[];
foreach($datas->pdf_datas as $data){
$temp_main_files=[];
if(!is_dir($data->basic_data['pdf_upload_path'])){
mkdir($data->basic_data['pdf_upload_path'],0777,TRUE);
}
#filling up form
$pdftk=new Pdf();
$filename="temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->addFile($data->basic_data['pdf_file'],'A');
$pdftk->fillForm($data->form_data)->flatten()->saveAs($data->basic_data['pdf_upload_path'].$filename);
$filled_pdf_file=$data->basic_data['pdf_upload_path'].$filename;
#filling up form
if(count($data->image_data)>0){
#creating image pdf file
$fpdf=new fpdf();
$filename="temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$fpdf->AddPage();
foreach($data->image_data as $image_data){
$fpdf->Image($image_data->image_file,$image_data->x,$image_data->y,$image_data->w,$image_data->h);
}
$fpdf->Output($data->basic_data['pdf_upload_path'].$filename,'F');
$image_pdf_file=$data->basic_data['pdf_upload_path'].$filename;
#creating image pdf file
#stamping $image pdf on editable pdf
$pdftk=new Pdf();
$filename="temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->addFile($filled_pdf_file,'B');
$pdftk->stamp($image_pdf_file)->saveAs($data->basic_data['pdf_upload_path'].$filename);
$temp_main_files[]=$data->basic_data['pdf_upload_path'].$filename;
#stamping $image pdf on editable pdf
$temporary_files[]=$filled_pdf_file;
$temporary_files[]=$image_pdf_file;
}else{
$temp_main_files[]=$filled_pdf_file;
}
foreach($temp_main_files as $file){
$rename=$data->basic_data['pdf_upload_path'].$data->basic_data['slug'].$data->basic_data['unique_id'].".pdf";
rename($file,$rename);
$main_files[]=$rename;
$temporary_files[]=$file;
}
}
foreach($temporary_files as $file){
unlink($file);
}
if($merge===true){
$response=ci_merge_pdfs($main_files,$datas->common,FALSE);
}else{
$response=$main_files;
}
return $response;
}catch(Exception $e){
echo $e->getMessage();
}
}
function ci_merge_pdfs($files,$asset,$stat=FALSE){
try{
$CI=&get_instance();
$CI->load->library('Generatepdf');
$pdftk=new Pdf();
$slug=isset($asset->slug)&&$asset->slug!=""?$asset->slug:"we_curo_";
$filename=$slug.$asset->unique_id.".pdf";
$char="A";
foreach($files as $f){
$pdftk->addFile($f,$char);
$pdftk->cat($char);
$char++;
}
$pdftk->saveAs($asset->upload_path.$filename);
if($stat===TRUE){
foreach($files as $file){
unlink($file);
}
}
return $asset->upload_path.$filename;
}catch(Exception $e){
echo $e->getMessage();
}
}
function mypdf($datas,$ion_id,$mainslug)
{
// pre($datas);exit;
$CI = & get_instance();
$CI->load->library('Generatepdf');
$CI->load->library('Generatefpdf');
foreach($datas as $data){
#extracting all datas
$pdfFile=$data['pdfFile'];
$pages=$data['pages'];
$break_page=$data['break_page'];
$slug=$data['slug'];
$filePath=$data['filePath'];
$imagePath=$data['imagePath'];
$imagePath=str_replace("\\","/",$imagePath);
$imageFile=$data['imageFile'];
$imageFile=str_replace("\\","/",$imageFile);
$x=$data['x'];
$y=$data['y'];
$w=$data['w'];
$h=$data['h'];
$filePath=$data['filePath'];
$dataInfo=$data['dataInfo'];
// pre($data);
#extracting all datas
#filling up form
$pdftk = new Pdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->addFile($pdfFile,'A');
$pdftk->fillForm($dataInfo)
->flatten()
->saveAs($filePath.$filename);
$filledPdfFile=$filePath.$filename;
#filling up form
if($pages>1){
#splitting the pdf files according to $break_page
$pdftk = new Pdf($filledPdfFile);
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->cat([$break_page]);
$pdftk->saveAs($filePath.$filename);
$breakedPdfFile=$filePath.$filename;
#splitting the pdf files according to $break_page
#creating image pdf file
$fpdf = new fpdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$fpdf->AddPage();
$fpdf->Image($imageFile,$x,$y,$w,$h);
$fpdf->Output($filePath.$filename,'F');
$imagePdf=$imagePath.$filename;
$imagePdf2=$filePath.$filename;
#creating image pdf file
#stamping $imagePdf on $breakedPdfFile
$pdftk = new Pdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->addFile($breakedPdfFile,'B');
$pdftk->stamp($imagePdf)
->saveAs($filePath.$filename);
$stampedPdfFile=$filePath.$filename;
#stamping $imagePdf on $breakedPdfFile
#relative concatenation of $filledPdfFile && $stampedPdfFile
if($break_page==1){
$p1=null;
$p2=null;
}if($break_page==2){
$p1=1;
$p2=null;
}if($break_page>2){
$p1=1;
$p2=$break_page-1;
}if($break_page==$pages){
$p3=null;
$p4=null;
}if($break_page==($pages-1)){
$p3=$pages;
$p4=null;
}if($break_page<($pages-1)){
$p3=$break_page+1;
$p4=$pages;
}
$pdftk = new Pdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
if($p1!=null){
$pdftk->addFile($filledPdfFile, 'A');
$pdftk->cat($p1,$p2,'A');
}
$pdftk->addFile($stampedPdfFile, 'B');
$pdftk->cat('B');
if($p3!=null){
$pdftk->addFile($filledPdfFile, 'C');
$pdftk->cat($p3,$p4,'C');
}
$pdftk->saveAs($filePath.$filename);
$files[]=$filePath.$filename;
#relative concatenation of $filledPdfFile && $stampedPdfFile
#unlinking files
unlink($breakedPdfFile);
unlink($imagePdf2);
unlink($stampedPdfFile);
#unlinking files
}else{
#creating image pdf file
$fpdf = new fpdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$fpdf->AddPage();
$fpdf->Image($imageFile,$x,$y,$w,$h);
$fpdf->Output($filePath.$filename,'F');
$imagePdf=$imagePath.$filename;
$imagePdf2=$filePath.$filename;
#creating image pdf file
#stamping $imagePdf on $filledPdfFile
$pdftk = new Pdf();
$filename = "temp_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$pdftk->addFile($filledPdfFile,'B');
$pdftk->stamp($imagePdf)
->saveAs($filePath.$filename);
$files[]=$filePath.$filename;
#stamping $imagePdf on $filledPdfFile
#unlinking files
unlink($imagePdf2);
#unlinking files
}
#unlinking files
unlink($filledPdfFile);
#unlinking files
}
// pre($datas);exit;
/*
| catenation of $files
*/
$pdftk = new Pdf();
IF($mainslug!=""){
$slug=$mainslug;
}
$filename = $slug.str_pad($ion_id, 6,"0",STR_PAD_LEFT).".pdf";
$char = "A";
foreach($files as $f){
$pdftk->addFile($f, $char);
$pdftk->cat($char);
$char++;
}
$pdftk->saveAs($filePath.$filename);
/*
| unlinking $files
*/
foreach($files as $f){
unlink($f);
}
return $filename;
}
function testpdf()
{
$CI = & get_instance();
$CI->load->library('Generatepdf');
$CI->load->library('Generatefpdf');
$pdfFile="systemfiles/pdf/secondary/end_application/direct_deposit.pdf";
$dataInfo=[
'printed_name'=>'ujjwal',
'date'=>"15/11/2021"
];
$pdftk = new Pdf();
$filename = "test_file.pdf";
$pdftk->addFile($pdfFile,'A');
$response=$pdftk->fillForm($dataInfo)
->flatten()
->saveAs("systemfiles/".$filename);
$createdPdf="systemfiles/".$filename.'<br> Response:'.$response;
return $createdPdf;
}
// function testpdf()
// {
// // echo "1";die;
// $CI = & get_instance();
// $CI->load->library('Generatepdf');
// $CI->load->library('Generatefpdf');
// $pdfFile="systemfiles/pdf/secondary/end_application/direct_deposit.pdf";
// $dataInfo=[
// 'printed_name'=>'ujjwal',
// 'date'=>"15/11/2021"
// ];
// $pdftk = new Pdf();
// $filename = "test_file.pdf";
// $pdftk->addFile($pdfFile,'A');
// $pdftk->fillForm($dataInfo)
// ->flatten()
// ->saveAs("systemfiles/".$filename);
// $createdPdf="systemfiles/".$filename;
// return $createdPdf;
// }
// function mergePdf()
// {
// $CI = & get_instance();
// $CI->load->library('Generatepdf');
// $CI->load->library('Generatefpdf');
// $slug="AUTH_RELEASE_";
// $files=[
// "systemfiles/pdf/primary/start_application/information_release.pdf",
// "systemfiles/pdf/primary/start_application/general_disclosure.pdf",
// "systemfiles/pdf/primary/start_application/privacy_policy.pdf",
// "systemfiles/pdf/primary/start_application/terms_of_use.pdf",
// "systemfiles/pdf/primary/start_application/arbitration_agreement.pdf",
// "systemfiles/pdf/primary/start_application/e_signature.pdf",
// ];
// $pdftk = new Pdf();
// $filename = $slug.str_pad($ion_id, 6,"0",STR_PAD_LEFT).".pdf";
// $char = "A";
// foreach($files as $f){
// $pdftk->addFile($f, $char);
// $pdftk->cat($char);
// $char++;
// }
// $pdftk->saveAs("systemfiles/pdf/primary/start_application/".$filename);
// }
function merge_pdfs($files,$slug,$ion_id,$location)
{
$CI = & get_instance();
$CI->load->library('Generatepdf');
$pdftk = new Pdf();
$filename = $slug.str_pad($ion_id, 6,"0",STR_PAD_LEFT).".pdf";
$char = "A";
foreach($files as $f){
$pdftk->addFile($f, $char);
$pdftk->cat($char);
$char++;
}
$pdftk->saveAs($location.$filename);
return $location.$filename;
}
function testfpdf()
{
$CI = & get_instance();
$CI->load->library('Generatepdf');
$CI->load->library('Generatefpdf');
$pdfFile="systemfiles/pdf/secondary/end_application/direct_deposit.pdf";
$dataInfo=[
'printed_name'=>'ujjwal',
'date'=>"15/11/2021"
];
#creating image pdf file
$fpdf = new fpdf();
// echo '<pre>'; print_r($fpdf);exit;
$filename = "fpdf_".rand(9999,99999999)."_".rand(9999,99999999).".pdf";
$fpdf->AddPage();
$fpdf->Image('https://png.pngtree.com/png-clipart/20190925/original/pngtree-computer-online-shopping-png-image_4986603.jpg',60,175,50,35);
$abc=$fpdf->Output("systemfiles/".$filename,'F');
return "systemfiles/".$filename;
// $imagePdf=$imagePath.$filename;
// $imagePdf2=$filePath.$filename;
#creating image pdf file
}
?>

View File

@ -1,100 +0,0 @@
<?php
function get_ICD_Info($code){
$uri = 'https://id.who.int/icd/entity/search?q='.$code;
//Create Token Start
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ICD_TOKEN_ENPOINT);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
'client_id' => ICD_CLIENT_ID,
'client_secret' => ICD_CLIENT_SECRET,
'scope' => ICD_SCOPE,
'grant_type' => ICD_GRANT_TYPE
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // set curl without result echo
$result = curl_exec($ch);
curl_close($ch);
$json_array = (json_decode($result, true));
$token = $json_array['access_token'];
$_SESSION['token'] = $token;
//Create Token END
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer '.$token,
'Accept: application/json',
'Accept-Language: en',
'API-Version: v2'
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // set curl without result echo
$api_response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
//return $http_code;
$res=json_decode($api_response);
$i=0;
foreach($res->destinationEntities as $enty){
//print_r($enty);
$output[$i]['id']=$enty->id;
$output[$i]['title']=$enty->title;
$i++;
}
return $output;
//return $res;
//return $output->destinationEntities;
}
function get_ICD_ById($id){
$uri = 'https://id.who.int/icd/entity/'.$id;
//Create Token Start
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ICD_TOKEN_ENPOINT);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
'client_id' => ICD_CLIENT_ID,
'client_secret' => ICD_CLIENT_SECRET,
'scope' => ICD_SCOPE,
'grant_type' => ICD_GRANT_TYPE
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // set curl without result echo
$result = curl_exec($ch);
curl_close($ch);
$json_array = (json_decode($result, true));
$token = $json_array['access_token'];
$_SESSION['token'] = $token;
//Create Token END
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer '.$token,
'Accept: application/json',
'Accept-Language: en',
'API-Version: v2'
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // set curl without result echo
$api_response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
//return $http_code;
$res=json_decode($api_response);
//return $output;
$output=(array)$res->title;
//return $output->destinationEntities;
return $output['@value'];
}
?>

View File

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

View File

@ -1,134 +0,0 @@
<?php
// use QuickBooksOnline\API\DataService\DataService;
// session_start();
// function processCode()
// {
// // Create SDK instance
// $config = include('config.php');
// $dataService = DataService::Configure(array(
// 'auth_mode' => 'oauth2',
// 'ClientID' => $config['INV_CLIENT_ID'],
// 'ClientSecret' => $config['INV_CLIENT_SECRET'],
// 'RedirectURI' => $config['oauth_redirect_uri'],
// 'scope' => $config['INV_SCOPE'],
// 'baseUrl' => "development"
// ));
// $OAuth2LoginHelper = $dataService->getOAuth2LoginHelper();
// $parseUrl = parseAuthRedirectUrl($_SERVER['QUERY_STRING']);
// /*
// * Update the OAuth2Token
// */
// $accessToken =
// $OAuth2LoginHelper->exchangeAuthorizationCodeForToken($parseUrl['code'],
// $parseUrl['realmId']);
// $dataService->updateOAuth2Token($accessToken);
// /*
// * Setting the accessToken for session variable
// */
// $_SESSION['sessionAccessToken'] = $accessToken;
// }
// function parseAuthRedirectUrl($url)
// {
// parse_str($url,$qsArray);
// return array(
// 'code' => $qsArray['code'],
// 'realmId' => $qsArray['realmId']
// );
// $result = processCode();
// }
function get_INV_Info($code){
//die;
$uri = 'https://appcenter.intuit.com/'.$code;
//Create Token Start
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
'auth_mode' => 'oauth2',
'ClientID' => INV_CLIENT_ID,
'ClientSecret' => INV_CLIENT_SECRET,
'RedirectURI' => oauth_redirect_uri,
'scope' => INV_SCOPE,
'baseUrl' => "development"
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // set curl without result echo
$result = curl_exec($ch);
curl_close($ch);
$json_array = (json_decode($result, true));
$token = $json_array['access_token'];
$_SESSION['token'] = $token;
//Create Token END
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer '.$token,
'Accept: application/json',
'content-type: application/json'
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // set curl without result echo
$api_response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
//return $http_code;
$res=json_decode($api_response);
$i=0;
foreach($res->destinationEntities as $enty){
//print_r($enty);die;
$output[$i]['id']=$enty->CompanyAddr->id;
$output[$i]['title']=$enty->CompanyName;
$i++;
}
return $output;
}
function makeAPICall()
{
// Create SDK instance
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
'auth_mode' => 'oauth2',
'ClientID' => INV_CLIENT_ID,
'ClientSecret' => INV_CLIENT_SECRET,
'RedirectURI' => oauth_redirect_uri,
'scope' => INV_SCOPE,
'baseUrl' => "development"
));
/*
* Retrieve the accessToken value from session variable
*/
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // set curl without result echo
$result = curl_exec($ch);
curl_close($ch);
$json_array = (json_decode($result, true));
$token = $json_array['access_token'];
$_SESSION['token'] = $token;
$accessToken = $_SESSION['token'];
/*
* Update the OAuth2Token of the dataService object
*/
$dataService->updateOAuth2Token($accessToken);
$companyInfo = $dataService->getCompanyInfo();
//print_r($companyInfo);
return $companyInfo;
}
?>

View File

@ -1,35 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function createDateTimeForNextEmails($firstEmailData){
$CI = &get_instance();
$CI->load->model('mail_settings/Mail_model');
$startDateTime=$firstEmailData->email_send_date;
$mailBody=$CI->Mail_model->getMailBodySettingsByid("1");
$no_email=$mailBody->max_email;
$emailPrefArray=json_decode($mailBody->email_interval,true);
foreach($emailPrefArray as $ep){
$days=$ep['days'];
$hours=$ep['hours'];
$minutes=$ep['minutes'];
$seconds="0";
$time=($days*86400+$hours*3600+$minutes*60+$seconds*1);
$a=(strtotime($startDateTime)+$time);
$date=date("Y-m-d H:i:s",$a);
if($emailsendDate){
$length=count($emailsendDate)-1;
$b=(strtotime($emailsendDate[$length])+$time);
$date=date("Y-m-d H:i:s",$b);
$emailsendDate[]=$date;
}else{
$emailsendDate[]=$date;
}
}
return $emailsendDate;
}
?>

View File

@ -1,52 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('map_address')){
function map_address($address,$api=''){
// $apiKey = 'AIzaSyAlmhyud5rrzHErOCq8FLV11NhfBFQpYlE'; // DEV API
// $apiKey = 'AIzaSyAlmhyud5rrzHErOCq8FLV11NhfBFQpYlE'; // client Google maps now requires an API key.
// SGeek API.
if ($api=='')
{
$apiKey = 'AIzaSyATGiMKU2Gt2-mdQA20xdPm4Of5WsomO1s';
}
else
{
$apiKey = $api;
}
$prepAddr = str_replace(' ','+',$address);
$url = "https://maps.google.com/maps/api/geocode/json?address=".urlencode($address).'&sensor=false&key='.$apiKey;
// https://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&key=AIzaSyC8vrcmnC6B1iLmvFofk3DAy4SGVOhjRQQ
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$responseJson = curl_exec($ch);
curl_close($ch);
$response = json_decode($responseJson);
$resp = array();
if ($response->status == 'OK') {
$latitude = $response->results[0]->geometry->location->lat;
$longitude = $response->results[0]->geometry->location->lng;
$resp = array(
"status" => "success",
"latlong" => array("Latitude" => $latitude , "Longitude" => $longitude),
);
} else {
$resp = array(
"api" => $apiKey,
"status" => $response->status,
"error" => $response
);
}
return $resp;
}
}
?>

View File

@ -1,218 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// if (!function_exists('map_address')){
// function map_address($address,$api='')
// {
// // $apiKey = 'AIzaSyAlmhyud5rrzHErOCq8FLV11NhfBFQpYlE'; // DEV API
// // $apiKey = 'AIzaSyAlmhyud5rrzHErOCq8FLV11NhfBFQpYlE'; // client Google maps now requires an API key.
// // SGeek API.
// if ($api=='')
// {
// $apiKey = 'AIzaSyATGiMKU2Gt2-mdQA20xdPm4Of5WsomO1s';
// }
// else
// {
// $apiKey = $api;
// }
// $prepAddr = str_replace(' ','+',$address);
// // $url = "https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJN1t_tDeuEmsRUsoyG83frY4&fields=google hq&key=".$apiKey;
// $url = "https://maps.google.com/maps/api/geocode/json?address=".urlencode($address).'&sensor=false&key='.$apiKey;
// // $url = "https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=40.6655101,-73.89188969999998&destinations=40.6905615%2C-73.9976592%7C40.6905615&key=$apiKey";
// // https://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&key=AIzaSyC8vrcmnC6B1iLmvFofk3DAy4SGVOhjRQQ
// $ch = curl_init();
// curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// $responseJson = curl_exec($ch);
// curl_close($ch);
// $response = json_decode($responseJson);
// $resp = array();
// if ($response->status == 'OK') {
// $latitude = $response->results[0]->geometry->location->lat;
// $longitude = $response->results[0]->geometry->location->lng;
// $resp = array(
// "status" => "success",
// "latlong" => array("Latitude" => $latitude , "Longitude" => $longitude),
// );
// } else {
// $resp = array(
// "api" => $apiKey,
// "status" => $response->status,
// "error" => $response
// );
// }
// $city = '';
// $county = '';
// $state = '';
// $stateSmall = '';
// $lat = '';
// $long = '';
// $address_components = $response->results[0]->address_components;
// $formatted_address = $response->results[0]->formatted_address;
// $geometry = $response->results[0]->geometry;
// $lat = $geometry->location->lat;
// $long = $geometry->location->lng;
// foreach ($address_components as $value) {
// if(in_array('administrative_area_level_2', $value->types))
// {
// $county = $value->long_name;
// }
// if(in_array('locality', $value->types))
// {
// $city = $value->long_name;
// }
// if(in_array('administrative_area_level_1', $value->types))
// {
// $state = $value->long_name;
// $stateSmall = $value->short_name;
// }
// if($city==''){
// $city = $state;
// }
// }
// // return $response;
// return array('city' => $city, 'county' => $county, 'state' => $state, 'stateShort' => $stateSmall, 'lat' => $lat, 'long' => $long);
// }
// }
if (!function_exists('mapquest_address')){
function mapquest_address($address,$zipcode)
{
$CI = &get_instance();
$CI->load->model('home/Home_model');
$apiKey = MAPQUEST_API_KEY;
$prepAddr = $address.','.$zipcode;
$url = "https://www.mapquestapi.com/geocoding/v1/address?key=".$apiKey."&location=".urlencode($prepAddr)."";
// return $url;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$responseJson = curl_exec($ch);
curl_close($ch);
$response = json_decode($responseJson);
if(isset($response->results[0]->locations[0]->adminArea5))
$city=$response->results[0]->locations[0]->adminArea5;
if(isset($response->results[0]->locations[0]->adminArea4))
$county=$response->results[0]->locations[0]->adminArea4;
if(isset($response->results[0]->locations[0]->adminArea3)){
$state_code=$response->results[0]->locations[0]->adminArea3;
$state_arr=$CI->Home_model->name_by_code($state_code);
$state=$state_arr->name;
}
if(isset($response->results[0]->locations[0]->latLng->lat))
$latitude=$response->results[0]->locations[0]->latLng->lat;
if(isset($response->results[0]->locations[0]->latLng->lng))
$longitude=$response->results[0]->locations[0]->latLng->lng;
return array('city' => $city, 'county' => $county, 'state' => $state, 'stateShort' => $state_code, 'lat' => $latitude, 'long' => $longitude);
}
}
if (!function_exists('distanceApi')){
function distanceApi($frmLat="40.6655101",$frmLon="-73.89188969999998",$toLat="40.6905615",$toLon="-73.9976592",$api=''){
// $apiKey = 'AIzaSyAlmhyud5rrzHErOCq8FLV11NhfBFQpYlE'; // DEV API
// $apiKey = 'AIzaSyAlmhyud5rrzHErOCq8FLV11NhfBFQpYlE'; // client Google maps now requires an API key.
// SGeek API.
if ($api=='')
{
$apiKey = 'AIzaSyATGiMKU2Gt2-mdQA20xdPm4Of5WsomO1s';
}
else
{
$apiKey = $api;
}
$prepAddr = str_replace(' ','+',$address);
// $url = "https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJN1t_tDeuEmsRUsoyG83frY4&fields=google hq&key=".$apiKey;
// $url = "https://maps.google.com/maps/api/geocode/json?address=".urlencode($address).'&sensor=false&key='.$apiKey;
$url = "https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=$frmLat,$frmLon&destinations=$toLat,$toLon&key=$apiKey";
// echo $url; die;
// https://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&key=AIzaSyC8vrcmnC6B1iLmvFofk3DAy4SGVOhjRQQ
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$responseJson = curl_exec($ch);
curl_close($ch);
$response = json_decode($responseJson);
$resp = array();
if ($response->status == 'OK') {
$latitude = $response->results[0]->geometry->location->lat;
$longitude = $response->results[0]->geometry->location->lng;
$resp = array(
"status" => "success",
"latlong" => array("Latitude" => $latitude , "Longitude" => $longitude),
);
} else {
$resp = array(
"api" => $apiKey,
"status" => $response->status,
"error" => $response
);
}
// _die($response);
$destination_addresses = $response->destination_addresses[0];
$origin_addresses = $response->origin_addresses[0];
$distance = $response->rows[0]->elements[0]->distance->text;
$duration = $response->rows[0]->elements[0]->duration->text;
return array('destination_addresses'=>$destination_addresses,'origin_addresses'=>$origin_addresses,'distance'=>$distance,'duration' => $duration);
}
}
if (!function_exists('nearestCity')){
function nearestCity($lat='15.495602',$long='73.825209',$api='')
{
if ($api=='')
{
$apiKey = 'AIzaSyATGiMKU2Gt2-mdQA20xdPm4Of5WsomO1s';
}
// $url = "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location={$lat},{$long}&radius=1500&types=hotel&sensor=false&key={$apiKey}";
$url = "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location={$lat},{$long}&radius=300000&types=post_office&key={$apiKey}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_PROXYPORT, 3128);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
$response_a = json_decode($response);
$dataset = $response_a->results;
$city = array();
foreach ($dataset as $data) {
// echo $data->results[0]->vicinity;
$a = explode(',', $data->vicinity);
if(!in_array($a[1], $city))
{
$city[] = $a[1];
}
}
return $city;
// echo $name = $response_a->results[0]->name;
// echo "<br />";
// echo $vicinity = $response_a->results[0]->vicinity;
}
}
?>

View File

@ -1,30 +0,0 @@
<?php
function menu_array(){
$CI = &get_instance();
$CI->load->model('home/home_model');
$user_id=$CI->session->userdata('user_id');
$data=$CI->home_model->get_menu($user_id);
return $data;
// $CI->db->insert(db_prefix() . 'pa_notify_log', [
// 'notify_id' => $notification['id'],
// 'triggertime' => date("Y-m-d H:i:s")
// ]);
//return $user_id;
// echo '<pre>';
// if(is_array($user_id)) {
// print_r($user_id);
// } else {
// var_dump($user_id);
// }
// echo '</pre>';
}
function dashboard_menu_array(){
$CI = &get_instance();
$CI->load->model('home/home_model');
$data=$CI->home_model->get_dashboard_menu();
return $data;
}
?>

View File

@ -1,87 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('multifileStore')){
function multifileStore($file=array(),$uploadData=array()){
if(!isset($uploadData["CONFIG"])){
return 'File Config Not Defined.';
}else if(!isset($uploadData["NAME"])){
return 'File Name Not Defined.';
}
$config = $uploadData["CONFIG"];
$ret = array();
$uploadto="";
if(!isset($uploadData['folder_name'])){
$uploadData['folder_name']='uploads/common';
}
if (!is_dir($uploadData['folder_name'])) {
mkdir($uploadData['folder_name'], 0777, TRUE);
}
$uploadto=$uploadData['folder_name'];
$name=$uploadData["NAME"];
$no_of_files=count($file[$name]['name']);
$check=0;
///NEW CODE START
if($no_of_files>0){
for($j=0; $j < $no_of_files; $j++){
$file_name = $file[$name]['name'][$j];
$size=$file[$name]['size'][$j];
$type=$file[$name]['type'][$j];
$file_name_pieces = explode('.', $file_name);
$count=count($file_name_pieces);
$file_ext=$file_name_pieces[$count-1];
$new_file_name = "";
if(isset($uploadData["NEW_FILENAME_START"])){
$new_file_name = $uploadData["NEW_FILENAME_START"].'_';
}
$new_file_name .= str_pad(rand(), 6, "0", STR_PAD_LEFT).'_'.date('YmdHis').'.'.$file_ext;
$path=$uploadto.''.$new_file_name;
if(!in_array($file_ext,$config['allowed_types'])){
$check++;
$ret[$j] = array(
"ERROR"=>404,
"MSG"=>'WRONG FILE TYPE.',
);
}
if($file[$name]["size"][$j] > $config['max_size']){
$check++;
$ret[$j] = array(
"ERROR"=>404,
"MSG"=>'FILE SIZE IS TOO LARGE.',
);
}
if($check===0){
if(move_uploaded_file($file[$name]['tmp_name'][$j],$path))
{
$ret[$j] = array(
"PATH" => $uploadto,
"NEW_FILE_NAME" => $new_file_name,
"ORIGINAL_FILE_NAME" => $file_name,
"EXT" => $file_ext,
"SIZE" => $size,
"MIME" => $type,
"ERROR"=>0,
"MSG"=>'FILE UPLOADED',
);
}else{
$ret[$j] = array(
"ERROR"=>404,
"MSG"=>'FILE NOT UPLOADED',
);
}
}
}
}
return $ret;
}
}
?>

View File

@ -1,23 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('NotificationUpdate')){
function NotificationUpdate($userID, $param)
{
return true;
}
}
if (!function_exists('NotificationView')){
function NotificationView()
{
$CI = &get_instance();
$CI->load->model('notification/Notification_model');
//echo 'test';die;
$user_id=$CI->session->userdata('user_id');
$output=$CI->Notification_model->getAllUnreadNotification($user_id);
//$output=$user_id;
return $output;
}
}

View File

@ -1,77 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('npinumber_checking')){
function npinumber_checking($npinumber){
$url = "https://npiregistry.cms.hhs.gov/api/?number=".$npinumber."&enumeration_type=&taxonomy_description=&first_name=&use_first_name_alias=&last_name=&organization_name=&address_purpose=&city=&state=&postal_code=&country_code=&limit=&skip=&version=2.1";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$responseJson = curl_exec($ch);
curl_close($ch);
$response = json_decode($responseJson);
$resp = array();
//return $response;
if(isset($response->results)){
return $response;
}else{
$resp = array(
"status_code" => 404,
"status" => "failed",
"error" => "Not Found"
);
return $resp;
}
// $address_info=$response->usgeocoder->address_info;
// $geo_info=$response->usgeocoder->geo_info;
// $resp = array();
// //geo Info
// if ($geo_info->geo_status == 'Match Found') {
// $latitude = $geo_info->latitude;
// $longitude = $geo_info->longitude;
// $resp['geo_info'] = array(
// "status_code" => 200,
// "status" => "success",
// "latlong" => array("Latitude" => $latitude , "Longitude" => $longitude),
// );
// } else {
// $resp['geo_info'] = array(
// "status_code" => 404,
// "status" => "failed",
// "error" => "Not Found"
// );
// }
// //Address Info
// if ($address_info->address_status == 'Match Found') {
// $city = $address_info->city;
// $county = $address_info->county;
// $state = $address_info->state;
// $resp['address_info'] = array(
// "status_code" => 200,
// "status" => "success",
// "address" => array("city" => $city , "county" => $county, "state" => $state),
// );
// } else {
// $resp['address_info'] = array(
// "status_code" => 404,
// "status" => "failed",
// "error" => "Not Found"
// );
// }
//return $response;
}
}
?>

View File

@ -1,49 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('serviceTherapy'))
{
function serviceTherapy($lvlSrv)
{
$data = array();
$CI = &get_instance();
$CI->load->model('referral/Referral_model');
$rn = $CI->Referral_model->getValueFrom('master_cg_skills','name','RN')[0]->id;
$lnp = $CI->Referral_model->getValueFrom('master_cg_skills','name','LPN')[0]->id;
$hha = $CI->Referral_model->getValueFrom('master_cg_skills','name','HHA')[0]->id;
$pca = $CI->Referral_model->getValueFrom('master_cg_skills','name','PCA')[0]->id;
$serviceActivity = $CI->Referral_model->getServiceActivity();
$therapyType = $CI->Referral_model->getTherapyType();
if($lvlSrv == $rn || $lvlSrv == $lnp)
{
foreach ($serviceActivity as $value) {
$data [] = array( 'value' => "Service~$value->id", 'name' => $value->name );
}
foreach ($therapyType as $value) {
$data [] = array( 'value' => "Therapy~$value->id", 'name' => $value->name );
}
}
if($lvlSrv == $hha || $lvlSrv == $pca)
{
foreach ($serviceActivity as $value) {
// $data .= "<option value='Service~$value->id'>$value->name</option>";
$data [] = array( 'value' => "Service~$value->id", 'name' => $value->name );
}
foreach ($therapyType as $value) {
$data [] = array( 'value' => "Therapy~$value->id", 'name' => $value->name );
// $data .= "<option value='Therapy~$value->id'>$value->name</option>";
}
}
// echo $data;
return $data;
}
}
?>

View File

@ -1,16 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
use Twilio\Rest\Client;
function send_sms($code,$to,$msg){
$CI=&get_instance();
$client=new Client(''.TWILIO_SMS_SID, ''.TWILIO_SMS_AUTH_TOKEN);
$send=$client->messages->create(
''.$code.$to,
array(
"from" => ''.TWILIO_SMS_PHONE_NUMBER,
'body' => ''.$msg
)
);
}
?>

View File

@ -1,136 +0,0 @@
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('fileChunk')){
function fileChunk($file=array()){
/**
* upload.php
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*/
#!! IMPORTANT:
#!! this file is just an example, it doesn't incorporate any security checks and
#!! is not recommended to be used in production environment as it is. Be sure to
#!! revise it and customize to your needs.
// Make sure file is not cached (as it happens for example on iOS devices)
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
/*
// Support CORS
header("Access-Control-Allow-Origin: *");
// other CORS headers if any...
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
exit; // finish preflight CORS requests here
}
*/
// 5 minutes execution time
@set_time_limit(5 * 60);
// Uncomment this one to fake upload time
// usleep(5000);
// Settings
// $targetDir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload";
$targetDir = 'uploads/common';
$cleanupTargetDir = true; // Remove old files
$maxFileAge = 5 * 3600; // Temp file age in seconds
// Create target dir
if (!file_exists($targetDir)) {
@mkdir($targetDir);
}
// Get a file name
if (isset($_REQUEST["name"])) {
$fileName = $_REQUEST["name"];
} elseif (!empty($file)) {
$fileName = $file["file"]["name"];
} else {
$fileName = uniqid("file_");
}
$filePath = $targetDir . DIRECTORY_SEPARATOR . $fileName;
// Chunking might be enabled
$chunk = isset($_REQUEST["chunk"]) ? intval($_REQUEST["chunk"]) : 0;
$chunks = isset($_REQUEST["chunks"]) ? intval($_REQUEST["chunks"]) : 0;
// Remove old temp files
if ($cleanupTargetDir) {
if (!is_dir($targetDir) || !$dir = opendir($targetDir)) {
die('{"jsonrpc" : "2.0", "error" : {"code": 100, "message": "Failed to open temp directory."}, "id" : "id"}');
}
while (($file = readdir($dir)) !== false) {
$tmpfilePath = $targetDir . DIRECTORY_SEPARATOR . $file;
// If temp file is current file proceed to the next
if ($tmpfilePath == "{$filePath}.part") {
continue;
}
// Remove temp file if it is older than the max age and is not the current file
if (preg_match('/\.part$/', $file) && (filemtime($tmpfilePath) < time() - $maxFileAge)) {
@unlink($tmpfilePath);
}
}
closedir($dir);
}
// Open temp file
if (!$out = @fopen("{$filePath}.part", $chunks ? "ab" : "wb")) {
die('{"jsonrpc" : "2.0", "error" : {"code": 102, "message": "Failed to open output stream."}, "id" : "id"}');
}
if (!empty($file)) {
if ($file["file"]["error"] || !is_uploaded_file($file["file"]["tmp_name"])) {
die('{"jsonrpc" : "2.0", "error" : {"code": 103, "message": "Failed to move uploaded file."}, "id" : "id"}');
}
// Read binary input stream and append it to temp file
if (!$in = @fopen($file["file"]["tmp_name"], "rb")) {
die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "Failed to open input stream."}, "id" : "id"}');
}
} else {
if (!$in = @fopen("php://input", "rb")) {
die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "Failed to open input stream."}, "id" : "id"}');
}
}
while ($buff = fread($in, 4096)) {
fwrite($out, $buff);
}
@fclose($out);
@fclose($in);
// Check if file has been uploaded
if (!$chunks || $chunk == $chunks - 1) {
// Strip the temp .part suffix off
rename("{$filePath}.part", $filePath);
}
// Return Success JSON-RPC response
die('{"jsonrpc" : "2.0", "result" : null, "id" : "id"}');
}
}
?>

View File

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

View File

@ -1,45 +0,0 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function required() {
$CI = & get_instance();
$CI->load->library('Ion_auth');
$CI->load->library('session');
$CI->load->library('form_validation');
$CI->load->library('upload');
$CI->load->config('paypal');
$RTR = & load_class('Router');
if ($RTR->class != "frontend" && $RTR->class != "auth") {
if (!$CI->ion_auth->logged_in()) {
redirect('auth/login');
}
}
if ($RTR->class != "frontend" && $RTR->class != "auth") {
$CI->language = $CI->db->get('settings')->row()->language;
$CI->lang->load('system_syntax', $CI->language);
}
$CI->language = $CI->db->get('settings')->row()->language;
$CI->lang->load('system_syntax', $CI->language);
$settings = $CI->db->get('settings')->row();
$CI->currency = $settings->currency;
$CI->load->model('settings/settings_model');
$CI->load->model('sms/sms_model');
$CI->load->model('email/email_model');
$CI->load->model('ion_auth_model');
$CI->load->library('parser');
$CI->load->helper('security');
}

View File

@ -1,45 +0,0 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function required() {
$CI = & get_instance();
$CI->load->library('Ion_auth');
$CI->load->library('session');
$CI->load->library('form_validation');
$CI->load->library('upload');
$CI->load->config('paypal');
$RTR = & load_class('Router');
if ($RTR->class != "frontend" && $RTR->class != "auth" && $RTR->class != "onboarding") {
if (!$CI->ion_auth->logged_in()) {
redirect('auth/login');
}
}
if ($RTR->class != "frontend" && $RTR->class != "auth") {
$CI->language = $CI->db->get('settings')->row()->language;
$CI->lang->load('system_syntax', $CI->language);
}
$CI->language = $CI->db->get('settings')->row()->language;
$CI->lang->load('system_syntax', $CI->language);
$settings = $CI->db->get('settings')->row();
$CI->currency = $settings->currency;
$CI->load->model('settings/settings_model');
$CI->load->model('sms/sms_model');
$CI->load->model('email/email_model');
$CI->load->model('ion_auth_model');
$CI->load->library('parser');
$CI->load->helper('security');
}

View File

@ -1,55 +0,0 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function required() {
$CI = & get_instance();
$CI->load->library('Ion_auth');
$CI->load->library('session');
$CI->load->library('form_validation');
$CI->load->library('upload');
$CI->load->config('paypal');
$RTR = & load_class('Router');
if ($RTR->class != "frontend" && $RTR->class != "auth" && $RTR->class != "onboarding") {
if (!$CI->ion_auth->logged_in()) {
redirect('auth/login');
}
}
if ($RTR->class != "frontend" && $RTR->class != "auth") {
$CI->language = $CI->db->get('settings')->row()->language;
$CI->lang->load('system_syntax', $CI->language);
}
// $CI->language = $CI->db->get('settings')->row()->language;
// $CI->lang->load('system_syntax', $CI->language);
if(get_cookie('pref_language')!="")
{
$CI->language = get_cookie('pref_language');
$CI->lang->load('system_syntax', $CI->language);
}
else
{
$CI->language = $CI->db->get('settings')->row()->language;
$CI->lang->load('system_syntax', $CI->language);
}
$settings = $CI->db->get('settings')->row();
$CI->currency = $settings->currency;
$CI->load->model('settings/settings_model');
$CI->load->model('sms/sms_model');
$CI->load->model('email/email_model');
$CI->load->model('ion_auth_model');
$CI->load->library('parser');
$CI->load->helper('security');
}

View File

@ -1,55 +0,0 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function required() {
$CI = & get_instance();
$CI->load->library('Ion_auth');
$CI->load->library('session');
$CI->load->library('form_validation');
$CI->load->library('upload');
$CI->load->config('paypal');
$RTR = & load_class('Router');
if ($RTR->class != "frontend" && $RTR->class != "auth" && $RTR->class != "onboarding" && $RTR->class != "privacy_policy" && $RTR->class != "terms_conditions" && $RTR->class != "hms_web_service" && $RTR->class != "test" && $RTR->class != "cronjob" && $RTR->class != "home_visit" && $RTR->class != "cproforms") {
if (!$CI->ion_auth->logged_in()) {
redirect('auth/login');
}
}
if ($RTR->class != "frontend" && $RTR->class != "auth" && $RTR->class != "privacy_policy" && $RTR->class != "terms_conditions" && $RTR->class != "home_visit" && $RTR->class != "cproforms") {
$CI->language = $CI->db->get('settings')->row()->language;
$CI->lang->load('system_syntax', $CI->language);
}
// $CI->language = $CI->db->get('settings')->row()->language;
// $CI->lang->load('system_syntax', $CI->language);
if(get_cookie('pref_language')!="")
{
$CI->language = get_cookie('pref_language');
$CI->lang->load('system_syntax', $CI->language);
}
else
{
$CI->language = $CI->db->get('settings')->row()->language;
$CI->lang->load('system_syntax', $CI->language);
}
$settings = $CI->db->get('settings')->row();
$CI->currency = $settings->currency;
$CI->load->model('settings/settings_model');
$CI->load->model('sms/sms_model');
$CI->load->model('email/email_model');
$CI->load->model('ion_auth_model');
$CI->load->library('parser');
$CI->load->helper('security');
}

View File

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

View File

@ -1,161 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Auth Lang - English
*
* Author: Ben Edmunds
* ben.edmunds@gmail.com
* @benedmunds
*
* Author: Daniel Davis
* @ourmaninjapan
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created: 03.09.2013
*
* Description: English language file for Ion Auth example views
*
*/
// Errors
$lang['error_csrf'] = 'This form post did not pass our security checks.';
// Login
$lang['login_heading'] = 'Login';
$lang['login_subheading'] = 'Please login with your email/username and password below.';
$lang['login_identity_label'] = 'Email/Username:';
$lang['login_password_label'] = 'Password:';
$lang['login_remember_label'] = 'Remember Me:';
$lang['login_submit_btn'] = 'Login';
$lang['login_forgot_password'] = 'Forgot your password?';
// Index
$lang['index_heading'] = 'Users';
$lang['index_subheading'] = 'Below is a list of the users.';
$lang['index_fname_th'] = 'First Name';
$lang['index_lname_th'] = 'Last Name';
$lang['index_email_th'] = 'Email';
$lang['index_groups_th'] = 'Groups';
$lang['index_status_th'] = 'Status';
$lang['index_action_th'] = 'Action';
$lang['index_active_link'] = 'Active';
$lang['index_inactive_link'] = 'Inactive';
$lang['index_create_user_link'] = 'Create a new user';
$lang['index_create_group_link'] = 'Create a new group';
// Deactivate User
$lang['deactivate_heading'] = 'Deactivate User';
$lang['deactivate_subheading'] = 'Are you sure you want to deactivate the user \'%s\'';
$lang['deactivate_confirm_y_label'] = 'Yes:';
$lang['deactivate_confirm_n_label'] = 'No:';
$lang['deactivate_submit_btn'] = 'Submit';
$lang['deactivate_validation_confirm_label'] = 'confirmation';
$lang['deactivate_validation_user_id_label'] = 'user ID';
// Create User
$lang['create_user_heading'] = 'Create User';
$lang['create_user_subheading'] = 'Please enter the users information below.';
$lang['create_user_fname_label'] = 'First Name:';
$lang['create_user_lname_label'] = 'Last Name:';
$lang['create_user_company_label'] = 'Company Name:';
$lang['create_user_email_label'] = 'Email:';
$lang['create_user_phone_label'] = 'Phone:';
$lang['create_user_password_label'] = 'Password:';
$lang['create_user_password_confirm_label'] = 'Confirm Password:';
$lang['create_user_submit_btn'] = 'Create User';
$lang['create_user_validation_fname_label'] = 'First Name';
$lang['create_user_validation_lname_label'] = 'Last Name';
$lang['create_user_validation_email_label'] = 'Email Address';
$lang['create_user_validation_phone1_label'] = 'First Part of Phone';
$lang['create_user_validation_phone2_label'] = 'Second Part of Phone';
$lang['create_user_validation_phone3_label'] = 'Third Part of Phone';
$lang['create_user_validation_company_label'] = 'Company Name';
$lang['create_user_validation_password_label'] = 'Password';
$lang['create_user_validation_password_confirm_label'] = 'Password Confirmation';
// Edit User
$lang['edit_user_heading'] = 'Edit User';
$lang['edit_user_subheading'] = 'Please enter the users information below.';
$lang['edit_user_fname_label'] = 'First Name:';
$lang['edit_user_lname_label'] = 'Last Name:';
$lang['edit_user_company_label'] = 'Company Name:';
$lang['edit_user_email_label'] = 'Email:';
$lang['edit_user_phone_label'] = 'Phone:';
$lang['edit_user_password_label'] = 'Password: (if changing password)';
$lang['edit_user_password_confirm_label'] = 'Confirm Password: (if changing password)';
$lang['edit_user_groups_heading'] = 'Member of groups';
$lang['edit_user_submit_btn'] = 'Save User';
$lang['edit_user_validation_fname_label'] = 'First Name';
$lang['edit_user_validation_lname_label'] = 'Last Name';
$lang['edit_user_validation_email_label'] = 'Email Address';
$lang['edit_user_validation_phone1_label'] = 'First Part of Phone';
$lang['edit_user_validation_phone2_label'] = 'Second Part of Phone';
$lang['edit_user_validation_phone3_label'] = 'Third Part of Phone';
$lang['edit_user_validation_company_label'] = 'Company Name';
$lang['edit_user_validation_groups_label'] = 'Groups';
$lang['edit_user_validation_password_label'] = 'Password';
$lang['edit_user_validation_password_confirm_label'] = 'Password Confirmation';
// Create Group
$lang['create_group_title'] = 'Create Group';
$lang['create_group_heading'] = 'Create Group';
$lang['create_group_subheading'] = 'Please enter the group information below.';
$lang['create_group_name_label'] = 'Group Name:';
$lang['create_group_desc_label'] = 'Description:';
$lang['create_group_submit_btn'] = 'Create Group';
$lang['create_group_validation_name_label'] = 'Group Name';
$lang['create_group_validation_desc_label'] = 'Description';
// Edit Group
$lang['edit_group_title'] = 'Edit Group';
$lang['edit_group_saved'] = 'Group Saved';
$lang['edit_group_heading'] = 'Edit Group';
$lang['edit_group_subheading'] = 'Please enter the group information below.';
$lang['edit_group_name_label'] = 'Group Name:';
$lang['edit_group_desc_label'] = 'Description:';
$lang['edit_group_submit_btn'] = 'Save Group';
$lang['edit_group_validation_name_label'] = 'Group Name';
$lang['edit_group_validation_desc_label'] = 'Description';
// Change Password
$lang['change_password_heading'] = 'Change Password';
$lang['change_password_old_password_label'] = 'Old Password:';
$lang['change_password_new_password_label'] = 'New Password (at least %s characters long):';
$lang['change_password_new_password_confirm_label'] = 'Confirm New Password:';
$lang['change_password_submit_btn'] = 'Change';
$lang['change_password_validation_old_password_label'] = 'Old Password';
$lang['change_password_validation_new_password_label'] = 'New Password';
$lang['change_password_validation_new_password_confirm_label'] = 'Confirm New Password';
// Forgot Password
$lang['forgot_password_heading'] = 'Forgot Password';
$lang['forgot_password_subheading'] = 'Please enter your %s so we can send you an email to reset your password.';
$lang['forgot_password_email_label'] = '%s:';
$lang['forgot_password_submit_btn'] = 'Submit';
$lang['forgot_password_validation_email_label'] = 'Email Address';
$lang['forgot_password_username_identity_label'] = 'Username';
$lang['forgot_password_email_identity_label'] = 'Email';
$lang['forgot_password_email_not_found'] = 'No record of that email address.';
// Reset Password
$lang['reset_password_heading'] = 'Change Password';
$lang['reset_password_new_password_label'] = 'New Password (at least %s characters long):';
$lang['reset_password_new_password_confirm_label'] = 'Confirm New Password:';
$lang['reset_password_submit_btn'] = 'Change';
$lang['reset_password_validation_new_password_label'] = 'New Password';
$lang['reset_password_validation_new_password_confirm_label'] = 'Confirm New Password';
// Activation Email
$lang['email_activate_heading'] = 'Activate account for %s';
$lang['email_activate_subheading'] = 'Please click this link to %s.';
$lang['email_activate_link'] = 'Activate Your Account';
// Forgot Password Email
$lang['email_forgot_password_heading'] = 'Reset Password for %s';
$lang['email_forgot_password_subheading'] = 'Please click this link to %s.';
$lang['email_forgot_password_link'] = 'Reset Your Password';
// New Password Email
$lang['email_new_password_heading'] = 'New Password for %s';
$lang['email_new_password_subheading'] = 'Your password has been reset to: %s';

View File

@ -1,51 +0,0 @@
<?php
$lang['cal_su'] = "Su";
$lang['cal_mo'] = "Mo";
$lang['cal_tu'] = "Tu";
$lang['cal_we'] = "We";
$lang['cal_th'] = "Th";
$lang['cal_fr'] = "Fr";
$lang['cal_sa'] = "Sa";
$lang['cal_sun'] = "Sun";
$lang['cal_mon'] = "Mon";
$lang['cal_tue'] = "Tue";
$lang['cal_wed'] = "Wed";
$lang['cal_thu'] = "Thu";
$lang['cal_fri'] = "Fri";
$lang['cal_sat'] = "Sat";
$lang['cal_sunday'] = "Sunday";
$lang['cal_monday'] = "Monday";
$lang['cal_tuesday'] = "Tuesday";
$lang['cal_wednesday'] = "Wednesday";
$lang['cal_thursday'] = "Thursday";
$lang['cal_friday'] = "Friday";
$lang['cal_saturday'] = "Saturday";
$lang['cal_jan'] = "Jan";
$lang['cal_feb'] = "Feb";
$lang['cal_mar'] = "Mar";
$lang['cal_apr'] = "Apr";
$lang['cal_may'] = "May";
$lang['cal_jun'] = "Jun";
$lang['cal_jul'] = "Jul";
$lang['cal_aug'] = "Aug";
$lang['cal_sep'] = "Sep";
$lang['cal_oct'] = "Oct";
$lang['cal_nov'] = "Nov";
$lang['cal_dec'] = "Dec";
$lang['cal_january'] = "January";
$lang['cal_february'] = "February";
$lang['cal_march'] = "March";
$lang['cal_april'] = "April";
$lang['cal_mayl'] = "May";
$lang['cal_june'] = "June";
$lang['cal_july'] = "July";
$lang['cal_august'] = "August";
$lang['cal_september'] = "September";
$lang['cal_october'] = "October";
$lang['cal_november'] = "November";
$lang['cal_december'] = "December";
/* End of file calendar_lang.php */
/* Location: ./system/language/english/calendar_lang.php */

View File

@ -1,61 +0,0 @@
<?php
$lang['date_year'] = "Year";
$lang['date_years'] = "Years";
$lang['date_month'] = "Month";
$lang['date_months'] = "Months";
$lang['date_week'] = "Week";
$lang['date_weeks'] = "Weeks";
$lang['date_day'] = "Day";
$lang['date_days'] = "Days";
$lang['date_hour'] = "Hour";
$lang['date_hours'] = "Hours";
$lang['date_minute'] = "Minute";
$lang['date_minutes'] = "Minutes";
$lang['date_second'] = "Second";
$lang['date_seconds'] = "Seconds";
$lang['UM12'] = '(UTC -12:00) Baker/Howland Island';
$lang['UM11'] = '(UTC -11:00) Samoa Time Zone, Niue';
$lang['UM10'] = '(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti';
$lang['UM95'] = '(UTC -9:30) Marquesas Islands';
$lang['UM9'] = '(UTC -9:00) Alaska Standard Time, Gambier Islands';
$lang['UM8'] = '(UTC -8:00) Pacific Standard Time, Clipperton Island';
$lang['UM7'] = '(UTC -7:00) Mountain Standard Time';
$lang['UM6'] = '(UTC -6:00) Central Standard Time';
$lang['UM5'] = '(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time';
$lang['UM45'] = '(UTC -4:30) Venezuelan Standard Time';
$lang['UM4'] = '(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time';
$lang['UM35'] = '(UTC -3:30) Newfoundland Standard Time';
$lang['UM3'] = '(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay';
$lang['UM2'] = '(UTC -2:00) South Georgia/South Sandwich Islands';
$lang['UM1'] = '(UTC -1:00) Azores, Cape Verde Islands';
$lang['UTC'] = '(UTC) Greenwich Mean Time, Western European Time';
$lang['UP1'] = '(UTC +1:00) Central European Time, West Africa Time';
$lang['UP2'] = '(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time';
$lang['UP3'] = '(UTC +3:00) Moscow Time, East Africa Time';
$lang['UP35'] = '(UTC +3:30) Iran Standard Time';
$lang['UP4'] = '(UTC +4:00) Azerbaijan Standard Time, Samara Time';
$lang['UP45'] = '(UTC +4:30) Afghanistan';
$lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time';
$lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time';
$lang['UP575'] = '(UTC +5:45) Nepal Time';
$lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time';
$lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar';
$lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam';
$lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time';
$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time';
$lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time';
$lang['UP95'] = '(UTC +9:30) Australian Central Standard Time';
$lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time';
$lang['UP105'] = '(UTC +10:30) Lord Howe Island';
$lang['UP11'] = '(UTC +11:00) Srednekolymsk Time, Solomon Islands, Vanuatu';
$lang['UP115'] = '(UTC +11:30) Norfolk Island';
$lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time';
$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time';
$lang['UP13'] = '(UTC +13:00) Phoenix Islands Time, Tonga';
$lang['UP14'] = '(UTC +14:00) Line Islands';
/* End of file date_lang.php */
/* Location: ./system/language/english/date_lang.php */

View File

@ -1,29 +0,0 @@
<?php
$lang['db_invalid_connection_str'] = 'Unable to determine the database settings based on the connection string you submitted.';
$lang['db_unable_to_connect'] = 'Unable to connect to your database server using the provided settings.';
$lang['db_unable_to_select'] = 'Unable to select the specified database: %s';
$lang['db_unable_to_create'] = 'Unable to create the specified database: %s';
$lang['db_invalid_query'] = 'The query you submitted is not valid.';
$lang['db_must_set_table'] = 'You must set the database table to be used with your query.';
$lang['db_must_use_set'] = 'You must use the "set" method to update an entry.';
$lang['db_must_use_index'] = 'You must specify an index to match on for batch updates.';
$lang['db_batch_missing_index'] = 'One or more rows submitted for batch updating is missing the specified index.';
$lang['db_must_use_where'] = 'Updates are not allowed unless they contain a "where" clause.';
$lang['db_del_must_use_where'] = 'Deletes are not allowed unless they contain a "where" or "like" clause.';
$lang['db_field_param_missing'] = 'To fetch fields requires the name of the table as a parameter.';
$lang['db_unsupported_function'] = 'This feature is not available for the database you are using.';
$lang['db_transaction_failure'] = 'Transaction failure: Rollback performed.';
$lang['db_unable_to_drop'] = 'Unable to drop the specified database.';
$lang['db_unsuported_feature'] = 'Unsupported feature of the database platform you are using.';
$lang['db_unsuported_compression'] = 'The file compression format you chose is not supported by your server.';
$lang['db_filepath_error'] = 'Unable to write data to the file path you have submitted.';
$lang['db_invalid_cache_path'] = 'The cache path you submitted is not valid or writable.';
$lang['db_table_name_required'] = 'A table name is required for that operation.';
$lang['db_column_name_required'] = 'A column name is required for that operation.';
$lang['db_column_definition_required'] = 'A column definition is required for that operation.';
$lang['db_unable_to_set_charset'] = 'Unable to set client connection character set: %s';
$lang['db_error_heading'] = 'A Database Error Occurred';
/* End of file db_lang.php */
/* Location: ./system/language/english/db_lang.php */

View File

@ -1,24 +0,0 @@
<?php
$lang['email_must_be_array'] = "The email validation method must be passed an array.";
$lang['email_invalid_address'] = "Invalid email address: %s";
$lang['email_attachment_missing'] = "Unable to locate the following email attachment: %s";
$lang['email_attachment_unreadable'] = "Unable to open this attachment: %s";
$lang['email_no_recipients'] = "You must include recipients: To, Cc, or Bcc";
$lang['email_send_failure_phpmail'] = "Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.";
$lang['email_send_failure_sendmail'] = "Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method.";
$lang['email_send_failure_smtp'] = "Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.";
$lang['email_sent'] = "Your message has been successfully sent using the following protocol: %s";
$lang['email_no_socket'] = "Unable to open a socket to Sendmail. Please check settings.";
$lang['email_no_hostname'] = "You did not specify a SMTP hostname.";
$lang['email_smtp_error'] = "The following SMTP error was encountered: %s";
$lang['email_no_smtp_unpw'] = "Error: You must assign a SMTP username and password.";
$lang['email_failed_smtp_login'] = "Failed to send AUTH LOGIN command. Error: %s";
$lang['email_smtp_auth_un'] = "Failed to authenticate username. Error: %s";
$lang['email_smtp_auth_pw'] = "Failed to authenticate password. Error: %s";
$lang['email_smtp_data_failure'] = "Unable to send data: %s";
$lang['email_exit_status'] = "Exit status code: %s";
/* End of file email_lang.php */
/* Location: ./system/language/english/email_lang.php */

View File

@ -1,29 +0,0 @@
<?php
$lang['required'] = "The %s field is required.";
$lang['isset'] = "The %s field must have a value.";
$lang['valid_email'] = "The %s field must contain a valid email address.";
$lang['valid_emails'] = "The %s field must contain all valid email addresses.";
$lang['valid_url'] = "The %s field must contain a valid URL.";
$lang['valid_ip'] = "The %s field must contain a valid IP.";
$lang['min_length'] = "The %s field must be at least %s characters in length.";
$lang['max_length'] = "The %s field can not exceed %s characters in length.";
$lang['exact_length'] = "The %s field must be exactly %s characters in length.";
$lang['alpha'] = "The %s field may only contain alphabetical characters.";
$lang['alpha_numeric'] = "The %s field may only contain alpha-numeric characters.";
$lang['alpha_dash'] = "The %s field may only contain alpha-numeric characters, underscores, and dashes.";
$lang['numeric'] = "The %s field must contain only numbers.";
$lang['is_numeric'] = "The %s field must contain only numeric characters.";
$lang['integer'] = "The %s field must contain an integer.";
$lang['regex_match'] = "The %s field is not in the correct format.";
$lang['matches'] = "The %s field does not match the %s field.";
$lang['is_unique'] = "The %s field must contain a unique value.";
$lang['is_natural'] = "The %s field must contain only positive numbers.";
$lang['is_natural_no_zero'] = "The %s field must contain a number greater than zero.";
$lang['decimal'] = "The %s field must contain a decimal number.";
$lang['less_than'] = "The %s field must contain a number less than %s.";
$lang['greater_than'] = "The %s field must contain a number greater than %s.";
/* End of file form_validation_lang.php */
/* Location: ./system/language/english/form_validation_lang.php */

View File

@ -1,18 +0,0 @@
<?php
$lang['ftp_no_connection'] = "Unable to locate a valid connection ID. Please make sure you are connected before peforming any file routines.";
$lang['ftp_unable_to_connect'] = "Unable to connect to your FTP server using the supplied hostname.";
$lang['ftp_unable_to_login'] = "Unable to login to your FTP server. Please check your username and password.";
$lang['ftp_unable_to_makdir'] = "Unable to create the directory you have specified.";
$lang['ftp_unable_to_changedir'] = "Unable to change directories.";
$lang['ftp_unable_to_chmod'] = "Unable to set file permissions. Please check your path.";
$lang['ftp_unable_to_upload'] = "Unable to upload the specified file. Please check your path.";
$lang['ftp_unable_to_download'] = "Unable to download the specified file. Please check your path.";
$lang['ftp_no_source_file'] = "Unable to locate the source file. Please check your path.";
$lang['ftp_unable_to_rename'] = "Unable to rename the file.";
$lang['ftp_unable_to_delete'] = "Unable to delete the file.";
$lang['ftp_unable_to_move'] = "Unable to move the file. Please make sure the destination directory exists.";
/* End of file ftp_lang.php */
/* Location: ./system/language/english/ftp_lang.php */

View File

@ -1,24 +0,0 @@
<?php
$lang['imglib_source_image_required'] = "You must specify a source image in your preferences.";
$lang['imglib_gd_required'] = "The GD image library is required for this feature.";
$lang['imglib_gd_required_for_props'] = "Your server must support the GD image library in order to determine the image properties.";
$lang['imglib_unsupported_imagecreate'] = "Your server does not support the GD function required to process this type of image.";
$lang['imglib_gif_not_supported'] = "GIF images are often not supported due to licensing restrictions. You may have to use JPG or PNG images instead.";
$lang['imglib_jpg_not_supported'] = "JPG images are not supported.";
$lang['imglib_png_not_supported'] = "PNG images are not supported.";
$lang['imglib_jpg_or_png_required'] = "The image resize protocol specified in your preferences only works with JPEG or PNG image types.";
$lang['imglib_copy_error'] = "An error was encountered while attempting to replace the file. Please make sure your file directory is writable.";
$lang['imglib_rotate_unsupported'] = "Image rotation does not appear to be supported by your server.";
$lang['imglib_libpath_invalid'] = "The path to your image library is not correct. Please set the correct path in your image preferences.";
$lang['imglib_image_process_failed'] = "Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct.";
$lang['imglib_rotation_angle_required'] = "An angle of rotation is required to rotate the image.";
$lang['imglib_writing_failed_gif'] = "GIF image.";
$lang['imglib_invalid_path'] = "The path to the image is not correct.";
$lang['imglib_copy_failed'] = "The image copy routine failed.";
$lang['imglib_missing_font'] = "Unable to find a font to use.";
$lang['imglib_save_failed'] = "Unable to save the image. Please make sure the image and file directory are writable.";
/* End of file imglib_lang.php */
/* Location: ./system/language/english/imglib_lang.php */

View File

@ -1,75 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Ion Auth Lang - Arabic
*
* Author: Emad Elsaid
* blazeeboy@gmail.com
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created: 30.08.2010
*
* Description: Arabic language file for Ion Auth messages and errors
*
*/
// Account Creation
$lang['account_creation_successful'] = 'تم انشاء حسابك بنجاح';
$lang['account_creation_unsuccessful'] = 'حدث خطأ اثناء انشاء حسابك لدينا';
$lang['account_creation_duplicate_email'] = 'هذا البريد الإلكترونى تم استخدامه من قبل او غير صحيح';
$lang['account_creation_duplicate_username'] = 'اسم المستخدم تم التسجيل به من قبل او غير صحيح';
$lang['account_creation_missing_default_group'] = 'Default group is not set';
$lang['account_creation_invalid_default_group'] = 'Invalid default group name set';
// Password
$lang['password_change_successful'] = 'تم تغيير كلمة السر';
$lang['password_change_unsuccessful'] = 'لا يمكن تغيير كلمة السر';
$lang['forgot_password_successful'] = 'تم ارسال بريد لإستعادة كلمة السر';
$lang['forgot_password_unsuccessful'] = 'لا يمكن استعادة كلمة السر';
// Activation
$lang['activate_successful'] = 'تم تفعيل حسابك';
$lang['activate_unsuccessful'] = 'لا يمكن تفعيل حسابك';
$lang['deactivate_successful'] = 'تم إيقاف حسابك';
$lang['deactivate_unsuccessful'] = 'لا يمكن إيقاف حسابك';
$lang['activation_email_successful'] = 'تم إرسال بريد التفعيل';
$lang['activation_email_unsuccessful'] = 'لا يمكن ارسال بريد التفعيل';
// Login / Logout
$lang['login_successful'] = 'تم تسجيل الدخول بنجاح';
$lang['login_unsuccessful'] = 'معلومات الدخول غير صحيحة';
$lang['login_unsuccessful_not_active']= 'Account is inactive';
$lang['login_timeout'] = 'Temporarily Locked Out. Try again later.';
$lang['logout_successful'] = 'تم تسجيل خروجك';
// Account Changes
$lang['update_successful'] = 'تم تعديل معلومات حسابك';
$lang['update_unsuccessful'] = 'لا يمكن تعديل معلومات الحساب';
$lang['delete_successful'] = 'تم إلغاء المستخدم';
$lang['delete_unsuccessful'] = 'لا يمكن إلغاء المستخدم';
// Groups
$lang['group_creation_successful'] = 'Group created Successfully';
$lang['group_already_exists'] = 'Group name already taken';
$lang['group_update_successful'] = 'Group details updated';
$lang['group_delete_successful'] = 'Group deleted';
$lang['group_delete_unsuccessful'] = 'Unable to delete group';
$lang['group_delete_notallowed'] = 'Can\'t delete the administrators\' group';
$lang['group_name_required'] = 'Group name is a required field';
$lang['group_name_admin_not_alter'] = 'Admin group name can not be changed';
// Activation Email
$lang['email_activation_subject'] = 'Account Activation';
$lang['email_activate_heading'] = 'Activate account for %s';
$lang['email_activate_subheading'] = 'Please click this link to %s.';
$lang['email_activate_link'] = 'Activate Your Account';
// Forgot Password Email
$lang['email_forgotten_password_subject'] = 'Forgotten Password Verification';
$lang['email_forgot_password_heading'] = 'Reset Password for %s';
$lang['email_forgot_password_subheading'] = 'Please click this link to %s.';
$lang['email_forgot_password_link'] = 'Reset Your Password';
// New Password Email
$lang['email_new_password_subject'] = 'New Password';
$lang['email_new_password_heading'] = 'New Password for %s';
$lang['email_new_password_subheading'] = 'Your password has been reset to: %s';

View File

@ -1,13 +0,0 @@
<?php
$lang['migration_none_found'] = "No migrations were found.";
$lang['migration_not_found'] = "This migration could not be found.";
$lang['migration_multiple_version'] = "This are multiple migrations with the same version number: %d.";
$lang['migration_class_doesnt_exist'] = "The migration class \"%s\" could not be found.";
$lang['migration_missing_up_method'] = "The migration class \"%s\" is missing an 'up' method.";
$lang['migration_missing_down_method'] = "The migration class \"%s\" is missing an 'down' method.";
$lang['migration_invalid_filename'] = "Migration \"%s\" has an invalid filename.";
/* End of file migration_lang.php */
/* Location: ./system/language/english/migration_lang.php */

View File

@ -1,10 +0,0 @@
<?php
$lang['terabyte_abbr'] = "TB";
$lang['gigabyte_abbr'] = "GB";
$lang['megabyte_abbr'] = "MB";
$lang['kilobyte_abbr'] = "KB";
$lang['bytes'] = "Bytes";
/* End of file number_lang.php */
/* Location: ./system/language/english/number_lang.php */

View File

@ -1,25 +0,0 @@
<?php
$lang['profiler_database'] = 'DATABASE';
$lang['profiler_controller_info'] = 'CLASS/METHOD';
$lang['profiler_benchmarks'] = 'BENCHMARKS';
$lang['profiler_queries'] = 'QUERIES';
$lang['profiler_get_data'] = 'GET DATA';
$lang['profiler_post_data'] = 'POST DATA';
$lang['profiler_uri_string'] = 'URI STRING';
$lang['profiler_memory_usage'] = 'MEMORY USAGE';
$lang['profiler_config'] = 'CONFIG VARIABLES';
$lang['profiler_session_data'] = 'SESSION DATA';
$lang['profiler_headers'] = 'HTTP HEADERS';
$lang['profiler_no_db'] = 'Database driver is not currently loaded';
$lang['profiler_no_queries'] = 'No queries were run';
$lang['profiler_no_post'] = 'No POST data exists';
$lang['profiler_no_get'] = 'No GET data exists';
$lang['profiler_no_uri'] = 'No URI data exists';
$lang['profiler_no_memory'] = 'Memory Usage Unavailable';
$lang['profiler_no_profiles'] = 'No Profile data - all Profiler sections have been disabled.';
$lang['profiler_section_hide'] = 'Hide';
$lang['profiler_section_show'] = 'Show';
/* End of file profiler_lang.php */
/* Location: ./system/language/english/profiler_lang.php */

File diff suppressed because it is too large Load Diff

View File

@ -1,25 +0,0 @@
<?php
$lang['ut_test_name'] = 'Test Name';
$lang['ut_test_datatype'] = 'Test Datatype';
$lang['ut_res_datatype'] = 'Expected Datatype';
$lang['ut_result'] = 'Result';
$lang['ut_undefined'] = 'Undefined Test Name';
$lang['ut_file'] = 'File Name';
$lang['ut_line'] = 'Line Number';
$lang['ut_passed'] = 'Passed';
$lang['ut_failed'] = 'Failed';
$lang['ut_boolean'] = 'Boolean';
$lang['ut_integer'] = 'Integer';
$lang['ut_float'] = 'Float';
$lang['ut_double'] = 'Float'; // can be the same as float
$lang['ut_string'] = 'String';
$lang['ut_array'] = 'Array';
$lang['ut_object'] = 'Object';
$lang['ut_resource'] = 'Resource';
$lang['ut_null'] = 'Null';
$lang['ut_notes'] = 'Notes';
/* End of file unit_test_lang.php */
/* Location: ./system/language/english/unit_test_lang.php */

View File

@ -1,22 +0,0 @@
<?php
$lang['upload_userfile_not_set'] = "Unable to find a post variable called userfile.";
$lang['upload_file_exceeds_limit'] = "The uploaded file exceeds the maximum allowed size in your PHP configuration file.";
$lang['upload_file_exceeds_form_limit'] = "The uploaded file exceeds the maximum size allowed by the submission form.";
$lang['upload_file_partial'] = "The file was only partially uploaded.";
$lang['upload_no_temp_directory'] = "The temporary folder is missing.";
$lang['upload_unable_to_write_file'] = "The file could not be written to disk.";
$lang['upload_stopped_by_extension'] = "The file upload was stopped by extension.";
$lang['upload_no_file_selected'] = "You did not select a file to upload.";
$lang['upload_invalid_filetype'] = "The filetype you are attempting to upload is not allowed.";
$lang['upload_invalid_filesize'] = "The file you are attempting to upload is larger than the permitted size.";
$lang['upload_invalid_dimensions'] = "The image you are attempting to upload exceedes the maximum height or width.";
$lang['upload_destination_error'] = "A problem was encountered while attempting to move the uploaded file to the final destination.";
$lang['upload_no_filepath'] = "The upload path does not appear to be valid.";
$lang['upload_no_file_types'] = "You have not specified any allowed file types.";
$lang['upload_bad_filename'] = "The file name you submitted already exists on the server.";
$lang['upload_not_writable'] = "The upload destination folder does not appear to be writable.";
/* End of file upload_lang.php */
/* Location: ./system/language/english/upload_lang.php */

View File

@ -1,161 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Auth Lang - English
*
* Author: Ben Edmunds
* ben.edmunds@gmail.com
* @benedmunds
*
* Author: Daniel Davis
* @ourmaninjapan
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created: 03.09.2013
*
* Description: English language file for Ion Auth example views
*
*/
// Errors
$lang['error_csrf'] = 'This form post did not pass our security checks.';
// Login
$lang['login_heading'] = 'Login';
$lang['login_subheading'] = 'Please login with your email/username and password below.';
$lang['login_identity_label'] = 'Email/Username:';
$lang['login_password_label'] = 'Password:';
$lang['login_remember_label'] = 'Remember Me:';
$lang['login_submit_btn'] = 'Login';
$lang['login_forgot_password'] = 'Forgot your password?';
// Index
$lang['index_heading'] = 'Users';
$lang['index_subheading'] = 'Below is a list of the users.';
$lang['index_fname_th'] = 'First Name';
$lang['index_lname_th'] = 'Last Name';
$lang['index_email_th'] = 'Email';
$lang['index_groups_th'] = 'Groups';
$lang['index_status_th'] = 'Status';
$lang['index_action_th'] = 'Action';
$lang['index_active_link'] = 'Active';
$lang['index_inactive_link'] = 'Inactive';
$lang['index_create_user_link'] = 'Create a new user';
$lang['index_create_group_link'] = 'Create a new group';
// Deactivate User
$lang['deactivate_heading'] = 'Deactivate User';
$lang['deactivate_subheading'] = 'Are you sure you want to deactivate the user \'%s\'';
$lang['deactivate_confirm_y_label'] = 'Yes:';
$lang['deactivate_confirm_n_label'] = 'No:';
$lang['deactivate_submit_btn'] = 'Submit';
$lang['deactivate_validation_confirm_label'] = 'confirmation';
$lang['deactivate_validation_user_id_label'] = 'user ID';
// Create User
$lang['create_user_heading'] = 'Create User';
$lang['create_user_subheading'] = 'Please enter the users information below.';
$lang['create_user_fname_label'] = 'First Name:';
$lang['create_user_lname_label'] = 'Last Name:';
$lang['create_user_company_label'] = 'Company Name:';
$lang['create_user_email_label'] = 'Email:';
$lang['create_user_phone_label'] = 'Phone:';
$lang['create_user_password_label'] = 'Password:';
$lang['create_user_password_confirm_label'] = 'Confirm Password:';
$lang['create_user_submit_btn'] = 'Create User';
$lang['create_user_validation_fname_label'] = 'First Name';
$lang['create_user_validation_lname_label'] = 'Last Name';
$lang['create_user_validation_email_label'] = 'Email Address';
$lang['create_user_validation_phone1_label'] = 'First Part of Phone';
$lang['create_user_validation_phone2_label'] = 'Second Part of Phone';
$lang['create_user_validation_phone3_label'] = 'Third Part of Phone';
$lang['create_user_validation_company_label'] = 'Company Name';
$lang['create_user_validation_password_label'] = 'Password';
$lang['create_user_validation_password_confirm_label'] = 'Password Confirmation';
// Edit User
$lang['edit_user_heading'] = 'Edit User';
$lang['edit_user_subheading'] = 'Please enter the users information below.';
$lang['edit_user_fname_label'] = 'First Name:';
$lang['edit_user_lname_label'] = 'Last Name:';
$lang['edit_user_company_label'] = 'Company Name:';
$lang['edit_user_email_label'] = 'Email:';
$lang['edit_user_phone_label'] = 'Phone:';
$lang['edit_user_password_label'] = 'Password: (if changing password)';
$lang['edit_user_password_confirm_label'] = 'Confirm Password: (if changing password)';
$lang['edit_user_groups_heading'] = 'Member of groups';
$lang['edit_user_submit_btn'] = 'Save User';
$lang['edit_user_validation_fname_label'] = 'First Name';
$lang['edit_user_validation_lname_label'] = 'Last Name';
$lang['edit_user_validation_email_label'] = 'Email Address';
$lang['edit_user_validation_phone1_label'] = 'First Part of Phone';
$lang['edit_user_validation_phone2_label'] = 'Second Part of Phone';
$lang['edit_user_validation_phone3_label'] = 'Third Part of Phone';
$lang['edit_user_validation_company_label'] = 'Company Name';
$lang['edit_user_validation_groups_label'] = 'Groups';
$lang['edit_user_validation_password_label'] = 'Password';
$lang['edit_user_validation_password_confirm_label'] = 'Password Confirmation';
// Create Group
$lang['create_group_title'] = 'Create Group';
$lang['create_group_heading'] = 'Create Group';
$lang['create_group_subheading'] = 'Please enter the group information below.';
$lang['create_group_name_label'] = 'Group Name:';
$lang['create_group_desc_label'] = 'Description:';
$lang['create_group_submit_btn'] = 'Create Group';
$lang['create_group_validation_name_label'] = 'Group Name';
$lang['create_group_validation_desc_label'] = 'Description';
// Edit Group
$lang['edit_group_title'] = 'Edit Group';
$lang['edit_group_saved'] = 'Group Saved';
$lang['edit_group_heading'] = 'Edit Group';
$lang['edit_group_subheading'] = 'Please enter the group information below.';
$lang['edit_group_name_label'] = 'Group Name:';
$lang['edit_group_desc_label'] = 'Description:';
$lang['edit_group_submit_btn'] = 'Save Group';
$lang['edit_group_validation_name_label'] = 'Group Name';
$lang['edit_group_validation_desc_label'] = 'Description';
// Change Password
$lang['change_password_heading'] = 'Change Password';
$lang['change_password_old_password_label'] = 'Old Password:';
$lang['change_password_new_password_label'] = 'New Password (at least %s characters long):';
$lang['change_password_new_password_confirm_label'] = 'Confirm New Password:';
$lang['change_password_submit_btn'] = 'Change';
$lang['change_password_validation_old_password_label'] = 'Old Password';
$lang['change_password_validation_new_password_label'] = 'New Password';
$lang['change_password_validation_new_password_confirm_label'] = 'Confirm New Password';
// Forgot Password
$lang['forgot_password_heading'] = 'Forgot Password';
$lang['forgot_password_subheading'] = 'Please enter your %s so we can send you an email to reset your password.';
$lang['forgot_password_email_label'] = '%s:';
$lang['forgot_password_submit_btn'] = 'Submit';
$lang['forgot_password_validation_email_label'] = 'Email Address';
$lang['forgot_password_username_identity_label'] = 'Username';
$lang['forgot_password_email_identity_label'] = 'Email';
$lang['forgot_password_email_not_found'] = 'No record of that email address.';
// Reset Password
$lang['reset_password_heading'] = 'Change Password';
$lang['reset_password_new_password_label'] = 'New Password (at least %s characters long):';
$lang['reset_password_new_password_confirm_label'] = 'Confirm New Password:';
$lang['reset_password_submit_btn'] = 'Change';
$lang['reset_password_validation_new_password_label'] = 'New Password';
$lang['reset_password_validation_new_password_confirm_label'] = 'Confirm New Password';
// Activation Email
$lang['email_activate_heading'] = 'Activate account for %s';
$lang['email_activate_subheading'] = 'Please click this link to %s.';
$lang['email_activate_link'] = 'Activate Your Account';
// Forgot Password Email
$lang['email_forgot_password_heading'] = 'Reset Password for %s';
$lang['email_forgot_password_subheading'] = 'Please click this link to %s.';
$lang['email_forgot_password_link'] = 'Reset Your Password';
// New Password Email
$lang['email_new_password_heading'] = 'New Password for %s';
$lang['email_new_password_subheading'] = 'Your password has been reset to: %s';

View File

@ -1,51 +0,0 @@
<?php
$lang['cal_su'] = "Su";
$lang['cal_mo'] = "Mo";
$lang['cal_tu'] = "Tu";
$lang['cal_we'] = "We";
$lang['cal_th'] = "Th";
$lang['cal_fr'] = "Fr";
$lang['cal_sa'] = "Sa";
$lang['cal_sun'] = "Sun";
$lang['cal_mon'] = "Mon";
$lang['cal_tue'] = "Tue";
$lang['cal_wed'] = "Wed";
$lang['cal_thu'] = "Thu";
$lang['cal_fri'] = "Fri";
$lang['cal_sat'] = "Sat";
$lang['cal_sunday'] = "Sunday";
$lang['cal_monday'] = "Monday";
$lang['cal_tuesday'] = "Tuesday";
$lang['cal_wednesday'] = "Wednesday";
$lang['cal_thursday'] = "Thursday";
$lang['cal_friday'] = "Friday";
$lang['cal_saturday'] = "Saturday";
$lang['cal_jan'] = "Jan";
$lang['cal_feb'] = "Feb";
$lang['cal_mar'] = "Mar";
$lang['cal_apr'] = "Apr";
$lang['cal_may'] = "May";
$lang['cal_jun'] = "Jun";
$lang['cal_jul'] = "Jul";
$lang['cal_aug'] = "Aug";
$lang['cal_sep'] = "Sep";
$lang['cal_oct'] = "Oct";
$lang['cal_nov'] = "Nov";
$lang['cal_dec'] = "Dec";
$lang['cal_january'] = "January";
$lang['cal_february'] = "February";
$lang['cal_march'] = "March";
$lang['cal_april'] = "April";
$lang['cal_mayl'] = "May";
$lang['cal_june'] = "June";
$lang['cal_july'] = "July";
$lang['cal_august'] = "August";
$lang['cal_september'] = "September";
$lang['cal_october'] = "October";
$lang['cal_november'] = "November";
$lang['cal_december'] = "December";
/* End of file calendar_lang.php */
/* Location: ./system/language/english/calendar_lang.php */

View File

@ -1,61 +0,0 @@
<?php
$lang['date_year'] = "Year";
$lang['date_years'] = "Years";
$lang['date_month'] = "Month";
$lang['date_months'] = "Months";
$lang['date_week'] = "Week";
$lang['date_weeks'] = "Weeks";
$lang['date_day'] = "Day";
$lang['date_days'] = "Days";
$lang['date_hour'] = "Hour";
$lang['date_hours'] = "Hours";
$lang['date_minute'] = "Minute";
$lang['date_minutes'] = "Minutes";
$lang['date_second'] = "Second";
$lang['date_seconds'] = "Seconds";
$lang['UM12'] = '(UTC -12:00) Baker/Howland Island';
$lang['UM11'] = '(UTC -11:00) Samoa Time Zone, Niue';
$lang['UM10'] = '(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti';
$lang['UM95'] = '(UTC -9:30) Marquesas Islands';
$lang['UM9'] = '(UTC -9:00) Alaska Standard Time, Gambier Islands';
$lang['UM8'] = '(UTC -8:00) Pacific Standard Time, Clipperton Island';
$lang['UM7'] = '(UTC -7:00) Mountain Standard Time';
$lang['UM6'] = '(UTC -6:00) Central Standard Time';
$lang['UM5'] = '(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time';
$lang['UM45'] = '(UTC -4:30) Venezuelan Standard Time';
$lang['UM4'] = '(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time';
$lang['UM35'] = '(UTC -3:30) Newfoundland Standard Time';
$lang['UM3'] = '(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay';
$lang['UM2'] = '(UTC -2:00) South Georgia/South Sandwich Islands';
$lang['UM1'] = '(UTC -1:00) Azores, Cape Verde Islands';
$lang['UTC'] = '(UTC) Greenwich Mean Time, Western European Time';
$lang['UP1'] = '(UTC +1:00) Central European Time, West Africa Time';
$lang['UP2'] = '(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time';
$lang['UP3'] = '(UTC +3:00) Moscow Time, East Africa Time';
$lang['UP35'] = '(UTC +3:30) Iran Standard Time';
$lang['UP4'] = '(UTC +4:00) Azerbaijan Standard Time, Samara Time';
$lang['UP45'] = '(UTC +4:30) Afghanistan';
$lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time';
$lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time';
$lang['UP575'] = '(UTC +5:45) Nepal Time';
$lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time';
$lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar';
$lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam';
$lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time';
$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time';
$lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time';
$lang['UP95'] = '(UTC +9:30) Australian Central Standard Time';
$lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time';
$lang['UP105'] = '(UTC +10:30) Lord Howe Island';
$lang['UP11'] = '(UTC +11:00) Srednekolymsk Time, Solomon Islands, Vanuatu';
$lang['UP115'] = '(UTC +11:30) Norfolk Island';
$lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time';
$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time';
$lang['UP13'] = '(UTC +13:00) Phoenix Islands Time, Tonga';
$lang['UP14'] = '(UTC +14:00) Line Islands';
/* End of file date_lang.php */
/* Location: ./system/language/english/date_lang.php */

View File

@ -1,29 +0,0 @@
<?php
$lang['db_invalid_connection_str'] = 'Unable to determine the database settings based on the connection string you submitted.';
$lang['db_unable_to_connect'] = 'Unable to connect to your database server using the provided settings.';
$lang['db_unable_to_select'] = 'Unable to select the specified database: %s';
$lang['db_unable_to_create'] = 'Unable to create the specified database: %s';
$lang['db_invalid_query'] = 'The query you submitted is not valid.';
$lang['db_must_set_table'] = 'You must set the database table to be used with your query.';
$lang['db_must_use_set'] = 'You must use the "set" method to update an entry.';
$lang['db_must_use_index'] = 'You must specify an index to match on for batch updates.';
$lang['db_batch_missing_index'] = 'One or more rows submitted for batch updating is missing the specified index.';
$lang['db_must_use_where'] = 'Updates are not allowed unless they contain a "where" clause.';
$lang['db_del_must_use_where'] = 'Deletes are not allowed unless they contain a "where" or "like" clause.';
$lang['db_field_param_missing'] = 'To fetch fields requires the name of the table as a parameter.';
$lang['db_unsupported_function'] = 'This feature is not available for the database you are using.';
$lang['db_transaction_failure'] = 'Transaction failure: Rollback performed.';
$lang['db_unable_to_drop'] = 'Unable to drop the specified database.';
$lang['db_unsuported_feature'] = 'Unsupported feature of the database platform you are using.';
$lang['db_unsuported_compression'] = 'The file compression format you chose is not supported by your server.';
$lang['db_filepath_error'] = 'Unable to write data to the file path you have submitted.';
$lang['db_invalid_cache_path'] = 'The cache path you submitted is not valid or writable.';
$lang['db_table_name_required'] = 'A table name is required for that operation.';
$lang['db_column_name_required'] = 'A column name is required for that operation.';
$lang['db_column_definition_required'] = 'A column definition is required for that operation.';
$lang['db_unable_to_set_charset'] = 'Unable to set client connection character set: %s';
$lang['db_error_heading'] = 'A Database Error Occurred';
/* End of file db_lang.php */
/* Location: ./system/language/english/db_lang.php */

View File

@ -1,24 +0,0 @@
<?php
$lang['email_must_be_array'] = "The email validation method must be passed an array.";
$lang['email_invalid_address'] = "Invalid email address: %s";
$lang['email_attachment_missing'] = "Unable to locate the following email attachment: %s";
$lang['email_attachment_unreadable'] = "Unable to open this attachment: %s";
$lang['email_no_recipients'] = "You must include recipients: To, Cc, or Bcc";
$lang['email_send_failure_phpmail'] = "Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.";
$lang['email_send_failure_sendmail'] = "Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method.";
$lang['email_send_failure_smtp'] = "Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.";
$lang['email_sent'] = "Your message has been successfully sent using the following protocol: %s";
$lang['email_no_socket'] = "Unable to open a socket to Sendmail. Please check settings.";
$lang['email_no_hostname'] = "You did not specify a SMTP hostname.";
$lang['email_smtp_error'] = "The following SMTP error was encountered: %s";
$lang['email_no_smtp_unpw'] = "Error: You must assign a SMTP username and password.";
$lang['email_failed_smtp_login'] = "Failed to send AUTH LOGIN command. Error: %s";
$lang['email_smtp_auth_un'] = "Failed to authenticate username. Error: %s";
$lang['email_smtp_auth_pw'] = "Failed to authenticate password. Error: %s";
$lang['email_smtp_data_failure'] = "Unable to send data: %s";
$lang['email_exit_status'] = "Exit status code: %s";
/* End of file email_lang.php */
/* Location: ./system/language/english/email_lang.php */

View File

@ -1,29 +0,0 @@
<?php
$lang['required'] = "The %s field is required.";
$lang['isset'] = "The %s field must have a value.";
$lang['valid_email'] = "The %s field must contain a valid email address.";
$lang['valid_emails'] = "The %s field must contain all valid email addresses.";
$lang['valid_url'] = "The %s field must contain a valid URL.";
$lang['valid_ip'] = "The %s field must contain a valid IP.";
$lang['min_length'] = "The %s field must be at least %s characters in length.";
$lang['max_length'] = "The %s field can not exceed %s characters in length.";
$lang['exact_length'] = "The %s field must be exactly %s characters in length.";
$lang['alpha'] = "The %s field may only contain alphabetical characters.";
$lang['alpha_numeric'] = "The %s field may only contain alpha-numeric characters.";
$lang['alpha_dash'] = "The %s field may only contain alpha-numeric characters, underscores, and dashes.";
$lang['numeric'] = "The %s field must contain only numbers.";
$lang['is_numeric'] = "The %s field must contain only numeric characters.";
$lang['integer'] = "The %s field must contain an integer.";
$lang['regex_match'] = "The %s field is not in the correct format.";
$lang['matches'] = "The %s field does not match the %s field.";
$lang['is_unique'] = "The %s field must contain a unique value.";
$lang['is_natural'] = "The %s field must contain only positive numbers.";
$lang['is_natural_no_zero'] = "The %s field must contain a number greater than zero.";
$lang['decimal'] = "The %s field must contain a decimal number.";
$lang['less_than'] = "The %s field must contain a number less than %s.";
$lang['greater_than'] = "The %s field must contain a number greater than %s.";
/* End of file form_validation_lang.php */
/* Location: ./system/language/english/form_validation_lang.php */

View File

@ -1,18 +0,0 @@
<?php
$lang['ftp_no_connection'] = "Unable to locate a valid connection ID. Please make sure you are connected before peforming any file routines.";
$lang['ftp_unable_to_connect'] = "Unable to connect to your FTP server using the supplied hostname.";
$lang['ftp_unable_to_login'] = "Unable to login to your FTP server. Please check your username and password.";
$lang['ftp_unable_to_makdir'] = "Unable to create the directory you have specified.";
$lang['ftp_unable_to_changedir'] = "Unable to change directories.";
$lang['ftp_unable_to_chmod'] = "Unable to set file permissions. Please check your path.";
$lang['ftp_unable_to_upload'] = "Unable to upload the specified file. Please check your path.";
$lang['ftp_unable_to_download'] = "Unable to download the specified file. Please check your path.";
$lang['ftp_no_source_file'] = "Unable to locate the source file. Please check your path.";
$lang['ftp_unable_to_rename'] = "Unable to rename the file.";
$lang['ftp_unable_to_delete'] = "Unable to delete the file.";
$lang['ftp_unable_to_move'] = "Unable to move the file. Please make sure the destination directory exists.";
/* End of file ftp_lang.php */
/* Location: ./system/language/english/ftp_lang.php */

View File

@ -1,24 +0,0 @@
<?php
$lang['imglib_source_image_required'] = "You must specify a source image in your preferences.";
$lang['imglib_gd_required'] = "The GD image library is required for this feature.";
$lang['imglib_gd_required_for_props'] = "Your server must support the GD image library in order to determine the image properties.";
$lang['imglib_unsupported_imagecreate'] = "Your server does not support the GD function required to process this type of image.";
$lang['imglib_gif_not_supported'] = "GIF images are often not supported due to licensing restrictions. You may have to use JPG or PNG images instead.";
$lang['imglib_jpg_not_supported'] = "JPG images are not supported.";
$lang['imglib_png_not_supported'] = "PNG images are not supported.";
$lang['imglib_jpg_or_png_required'] = "The image resize protocol specified in your preferences only works with JPEG or PNG image types.";
$lang['imglib_copy_error'] = "An error was encountered while attempting to replace the file. Please make sure your file directory is writable.";
$lang['imglib_rotate_unsupported'] = "Image rotation does not appear to be supported by your server.";
$lang['imglib_libpath_invalid'] = "The path to your image library is not correct. Please set the correct path in your image preferences.";
$lang['imglib_image_process_failed'] = "Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct.";
$lang['imglib_rotation_angle_required'] = "An angle of rotation is required to rotate the image.";
$lang['imglib_writing_failed_gif'] = "GIF image.";
$lang['imglib_invalid_path'] = "The path to the image is not correct.";
$lang['imglib_copy_failed'] = "The image copy routine failed.";
$lang['imglib_missing_font'] = "Unable to find a font to use.";
$lang['imglib_save_failed'] = "Unable to save the image. Please make sure the image and file directory are writable.";
/* End of file imglib_lang.php */
/* Location: ./system/language/english/imglib_lang.php */

View File

@ -1,79 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Ion Auth Lang - Bulgarian
*
* Author: Ivan Kolev
* ivan.kolev@gmail.com
*
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created: 01.22.2013
*
* Description: Bulgarian language file for Ion Auth messages and errors
*
*/
// Account Creation
$lang['account_creation_successful'] = 'Регистрацията бе създадена успешно';
$lang['account_creation_unsuccessful'] = 'Неуспешен опит за създаване на регистрация';
$lang['account_creation_duplicate_email'] = 'Email адреса е вече използван или невалиден';
$lang['account_creation_duplicate_username'] = 'Потребителското име е вече използвано или невалидно';
// TODO Please Translate
$lang['account_creation_missing_default_group'] = 'Default group is not set';
$lang['account_creation_invalid_default_group'] = 'Invalid default group name set';
// Password
$lang['password_change_successful'] = 'Паролата бе сменена успешно';
$lang['password_change_unsuccessful'] = 'Неуспешен опит за смяна на паролата';
$lang['forgot_password_successful'] = 'Изпратен е Email за нулиране на паролата';
$lang['forgot_password_unsuccessful'] = 'Неуспешен опит за нулиране на паролата';
// Activation
$lang['activate_successful'] = 'Регистрацията е активирана';
$lang['activate_unsuccessful'] = 'Неуспешен опит за активиране на регистрацията';
$lang['deactivate_successful'] = 'Регистрацията е деактивирана';
$lang['deactivate_unsuccessful'] = 'Неуспешен опит за деактивиране на регистрацията';
$lang['activation_email_successful'] = 'Изпратен е Email за активиране на регистрацията';
$lang['activation_email_unsuccessful'] = 'Неуспешен опит за изпращане на Email за активация';
// Login / Logout
$lang['login_successful'] = 'Успешен вход в системата';
$lang['login_unsuccessful'] = 'Неуспешен вход в системата';
$lang['login_unsuccessful_not_active'] = 'Регистрацията не е активирана';
$lang['login_timeout'] = 'Временно заключен. Моля опитайте по-късно';
$lang['logout_successful'] = 'Успешен изход от системата';
// Account Changes
$lang['update_successful'] = 'Регистрацията беше актуализирана успешно';
$lang['update_unsuccessful'] = 'Неуспешен опит за актуализиране на регистрацията';
$lang['delete_successful'] = 'Потребителя бе изтрит';
$lang['delete_unsuccessful'] = 'Неуспешен опит за изтриване на потребител';
// Groups
$lang['group_creation_successful'] = 'Групата бе създадена успешно';
$lang['group_already_exists'] = 'Името на групата вече е заето';
$lang['group_update_successful'] = 'Детайлите на групата бяха актуализирани';
$lang['group_delete_successful'] = 'Групата бе изтрита';
$lang['group_delete_unsuccessful'] = 'Неуспешен опит за изтриване на групата';
//TO DO Please translate
$lang['group_delete_notallowed'] = 'Can\'t delete the administrators\' group';
$lang['group_name_required'] = 'Group name is a required field';
$lang['group_name_admin_not_alter'] = 'Admin group name can not be changed';
//TO DO Please translate
// Activation Email
$lang['email_activation_subject'] = 'Активиране на регистрацията';
$lang['email_activate_heading'] = 'Activate account for %s';
$lang['email_activate_subheading'] = 'Please click this link to %s.';
$lang['email_activate_link'] = 'Activate Your Account';
// Forgot Password Email
$lang['email_forgotten_password_subject'] = 'Проверка за забравена парола';
$lang['email_forgot_password_heading'] = 'Reset Password for %s';
$lang['email_forgot_password_subheading'] = 'Please click this link to %s.';
$lang['email_forgot_password_link'] = 'Reset Your Password';
// New Password Email
$lang['email_new_password_subject'] = 'Нова парола';
$lang['email_new_password_heading'] = 'New Password for %s';
$lang['email_new_password_subheading'] = 'Your password has been reset to: %s';

View File

@ -1,13 +0,0 @@
<?php
$lang['migration_none_found'] = "No migrations were found.";
$lang['migration_not_found'] = "This migration could not be found.";
$lang['migration_multiple_version'] = "This are multiple migrations with the same version number: %d.";
$lang['migration_class_doesnt_exist'] = "The migration class \"%s\" could not be found.";
$lang['migration_missing_up_method'] = "The migration class \"%s\" is missing an 'up' method.";
$lang['migration_missing_down_method'] = "The migration class \"%s\" is missing an 'down' method.";
$lang['migration_invalid_filename'] = "Migration \"%s\" has an invalid filename.";
/* End of file migration_lang.php */
/* Location: ./system/language/english/migration_lang.php */

View File

@ -1,10 +0,0 @@
<?php
$lang['terabyte_abbr'] = "TB";
$lang['gigabyte_abbr'] = "GB";
$lang['megabyte_abbr'] = "MB";
$lang['kilobyte_abbr'] = "KB";
$lang['bytes'] = "Bytes";
/* End of file number_lang.php */
/* Location: ./system/language/english/number_lang.php */

View File

@ -1,25 +0,0 @@
<?php
$lang['profiler_database'] = 'DATABASE';
$lang['profiler_controller_info'] = 'CLASS/METHOD';
$lang['profiler_benchmarks'] = 'BENCHMARKS';
$lang['profiler_queries'] = 'QUERIES';
$lang['profiler_get_data'] = 'GET DATA';
$lang['profiler_post_data'] = 'POST DATA';
$lang['profiler_uri_string'] = 'URI STRING';
$lang['profiler_memory_usage'] = 'MEMORY USAGE';
$lang['profiler_config'] = 'CONFIG VARIABLES';
$lang['profiler_session_data'] = 'SESSION DATA';
$lang['profiler_headers'] = 'HTTP HEADERS';
$lang['profiler_no_db'] = 'Database driver is not currently loaded';
$lang['profiler_no_queries'] = 'No queries were run';
$lang['profiler_no_post'] = 'No POST data exists';
$lang['profiler_no_get'] = 'No GET data exists';
$lang['profiler_no_uri'] = 'No URI data exists';
$lang['profiler_no_memory'] = 'Memory Usage Unavailable';
$lang['profiler_no_profiles'] = 'No Profile data - all Profiler sections have been disabled.';
$lang['profiler_section_hide'] = 'Hide';
$lang['profiler_section_show'] = 'Show';
/* End of file profiler_lang.php */
/* Location: ./system/language/english/profiler_lang.php */

View File

@ -1,25 +0,0 @@
<?php
$lang['ut_test_name'] = 'Test Name';
$lang['ut_test_datatype'] = 'Test Datatype';
$lang['ut_res_datatype'] = 'Expected Datatype';
$lang['ut_result'] = 'Result';
$lang['ut_undefined'] = 'Undefined Test Name';
$lang['ut_file'] = 'File Name';
$lang['ut_line'] = 'Line Number';
$lang['ut_passed'] = 'Passed';
$lang['ut_failed'] = 'Failed';
$lang['ut_boolean'] = 'Boolean';
$lang['ut_integer'] = 'Integer';
$lang['ut_float'] = 'Float';
$lang['ut_double'] = 'Float'; // can be the same as float
$lang['ut_string'] = 'String';
$lang['ut_array'] = 'Array';
$lang['ut_object'] = 'Object';
$lang['ut_resource'] = 'Resource';
$lang['ut_null'] = 'Null';
$lang['ut_notes'] = 'Notes';
/* End of file unit_test_lang.php */
/* Location: ./system/language/english/unit_test_lang.php */

View File

@ -1,22 +0,0 @@
<?php
$lang['upload_userfile_not_set'] = "Unable to find a post variable called userfile.";
$lang['upload_file_exceeds_limit'] = "The uploaded file exceeds the maximum allowed size in your PHP configuration file.";
$lang['upload_file_exceeds_form_limit'] = "The uploaded file exceeds the maximum size allowed by the submission form.";
$lang['upload_file_partial'] = "The file was only partially uploaded.";
$lang['upload_no_temp_directory'] = "The temporary folder is missing.";
$lang['upload_unable_to_write_file'] = "The file could not be written to disk.";
$lang['upload_stopped_by_extension'] = "The file upload was stopped by extension.";
$lang['upload_no_file_selected'] = "You did not select a file to upload.";
$lang['upload_invalid_filetype'] = "The filetype you are attempting to upload is not allowed.";
$lang['upload_invalid_filesize'] = "The file you are attempting to upload is larger than the permitted size.";
$lang['upload_invalid_dimensions'] = "The image you are attempting to upload exceedes the maximum height or width.";
$lang['upload_destination_error'] = "A problem was encountered while attempting to move the uploaded file to the final destination.";
$lang['upload_no_filepath'] = "The upload path does not appear to be valid.";
$lang['upload_no_file_types'] = "You have not specified any allowed file types.";
$lang['upload_bad_filename'] = "The file name you submitted already exists on the server.";
$lang['upload_not_writable'] = "The upload destination folder does not appear to be writable.";
/* End of file upload_lang.php */
/* Location: ./system/language/english/upload_lang.php */

View File

@ -1,161 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Auth Lang - English
*
* Author: Ben Edmunds
* ben.edmunds@gmail.com
* @benedmunds
*
* Author: Daniel Davis
* @ourmaninjapan
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created: 03.09.2013
*
* Description: English language file for Ion Auth example views
*
*/
// Errors
$lang['error_csrf'] = 'This form post did not pass our security checks.';
// Login
$lang['login_heading'] = 'Login';
$lang['login_subheading'] = 'Please login with your email/username and password below.';
$lang['login_identity_label'] = 'Email/Username:';
$lang['login_password_label'] = 'Password:';
$lang['login_remember_label'] = 'Remember Me:';
$lang['login_submit_btn'] = 'Login';
$lang['login_forgot_password'] = 'Forgot your password?';
// Index
$lang['index_heading'] = 'Users';
$lang['index_subheading'] = 'Below is a list of the users.';
$lang['index_fname_th'] = 'First Name';
$lang['index_lname_th'] = 'Last Name';
$lang['index_email_th'] = 'Email';
$lang['index_groups_th'] = 'Groups';
$lang['index_status_th'] = 'Status';
$lang['index_action_th'] = 'Action';
$lang['index_active_link'] = 'Active';
$lang['index_inactive_link'] = 'Inactive';
$lang['index_create_user_link'] = 'Create a new user';
$lang['index_create_group_link'] = 'Create a new group';
// Deactivate User
$lang['deactivate_heading'] = 'Deactivate User';
$lang['deactivate_subheading'] = 'Are you sure you want to deactivate the user \'%s\'';
$lang['deactivate_confirm_y_label'] = 'Yes:';
$lang['deactivate_confirm_n_label'] = 'No:';
$lang['deactivate_submit_btn'] = 'Submit';
$lang['deactivate_validation_confirm_label'] = 'confirmation';
$lang['deactivate_validation_user_id_label'] = 'user ID';
// Create User
$lang['create_user_heading'] = 'Create User';
$lang['create_user_subheading'] = 'Please enter the users information below.';
$lang['create_user_fname_label'] = 'First Name:';
$lang['create_user_lname_label'] = 'Last Name:';
$lang['create_user_company_label'] = 'Company Name:';
$lang['create_user_email_label'] = 'Email:';
$lang['create_user_phone_label'] = 'Phone:';
$lang['create_user_password_label'] = 'Password:';
$lang['create_user_password_confirm_label'] = 'Confirm Password:';
$lang['create_user_submit_btn'] = 'Create User';
$lang['create_user_validation_fname_label'] = 'First Name';
$lang['create_user_validation_lname_label'] = 'Last Name';
$lang['create_user_validation_email_label'] = 'Email Address';
$lang['create_user_validation_phone1_label'] = 'First Part of Phone';
$lang['create_user_validation_phone2_label'] = 'Second Part of Phone';
$lang['create_user_validation_phone3_label'] = 'Third Part of Phone';
$lang['create_user_validation_company_label'] = 'Company Name';
$lang['create_user_validation_password_label'] = 'Password';
$lang['create_user_validation_password_confirm_label'] = 'Password Confirmation';
// Edit User
$lang['edit_user_heading'] = 'Edit User';
$lang['edit_user_subheading'] = 'Please enter the users information below.';
$lang['edit_user_fname_label'] = 'First Name:';
$lang['edit_user_lname_label'] = 'Last Name:';
$lang['edit_user_company_label'] = 'Company Name:';
$lang['edit_user_email_label'] = 'Email:';
$lang['edit_user_phone_label'] = 'Phone:';
$lang['edit_user_password_label'] = 'Password: (if changing password)';
$lang['edit_user_password_confirm_label'] = 'Confirm Password: (if changing password)';
$lang['edit_user_groups_heading'] = 'Member of groups';
$lang['edit_user_submit_btn'] = 'Save User';
$lang['edit_user_validation_fname_label'] = 'First Name';
$lang['edit_user_validation_lname_label'] = 'Last Name';
$lang['edit_user_validation_email_label'] = 'Email Address';
$lang['edit_user_validation_phone1_label'] = 'First Part of Phone';
$lang['edit_user_validation_phone2_label'] = 'Second Part of Phone';
$lang['edit_user_validation_phone3_label'] = 'Third Part of Phone';
$lang['edit_user_validation_company_label'] = 'Company Name';
$lang['edit_user_validation_groups_label'] = 'Groups';
$lang['edit_user_validation_password_label'] = 'Password';
$lang['edit_user_validation_password_confirm_label'] = 'Password Confirmation';
// Create Group
$lang['create_group_title'] = 'Create Group';
$lang['create_group_heading'] = 'Create Group';
$lang['create_group_subheading'] = 'Please enter the group information below.';
$lang['create_group_name_label'] = 'Group Name:';
$lang['create_group_desc_label'] = 'Description:';
$lang['create_group_submit_btn'] = 'Create Group';
$lang['create_group_validation_name_label'] = 'Group Name';
$lang['create_group_validation_desc_label'] = 'Description';
// Edit Group
$lang['edit_group_title'] = 'Edit Group';
$lang['edit_group_saved'] = 'Group Saved';
$lang['edit_group_heading'] = 'Edit Group';
$lang['edit_group_subheading'] = 'Please enter the group information below.';
$lang['edit_group_name_label'] = 'Group Name:';
$lang['edit_group_desc_label'] = 'Description:';
$lang['edit_group_submit_btn'] = 'Save Group';
$lang['edit_group_validation_name_label'] = 'Group Name';
$lang['edit_group_validation_desc_label'] = 'Description';
// Change Password
$lang['change_password_heading'] = 'Change Password';
$lang['change_password_old_password_label'] = 'Old Password:';
$lang['change_password_new_password_label'] = 'New Password (at least %s characters long):';
$lang['change_password_new_password_confirm_label'] = 'Confirm New Password:';
$lang['change_password_submit_btn'] = 'Change';
$lang['change_password_validation_old_password_label'] = 'Old Password';
$lang['change_password_validation_new_password_label'] = 'New Password';
$lang['change_password_validation_new_password_confirm_label'] = 'Confirm New Password';
// Forgot Password
$lang['forgot_password_heading'] = 'Forgot Password';
$lang['forgot_password_subheading'] = 'Please enter your %s so we can send you an email to reset your password.';
$lang['forgot_password_email_label'] = '%s:';
$lang['forgot_password_submit_btn'] = 'Submit';
$lang['forgot_password_validation_email_label'] = 'Email Address';
$lang['forgot_password_username_identity_label'] = 'Username';
$lang['forgot_password_email_identity_label'] = 'Email';
$lang['forgot_password_email_not_found'] = 'No record of that email address.';
// Reset Password
$lang['reset_password_heading'] = 'Change Password';
$lang['reset_password_new_password_label'] = 'New Password (at least %s characters long):';
$lang['reset_password_new_password_confirm_label'] = 'Confirm New Password:';
$lang['reset_password_submit_btn'] = 'Change';
$lang['reset_password_validation_new_password_label'] = 'New Password';
$lang['reset_password_validation_new_password_confirm_label'] = 'Confirm New Password';
// Activation Email
$lang['email_activate_heading'] = 'Activate account for %s';
$lang['email_activate_subheading'] = 'Please click this link to %s.';
$lang['email_activate_link'] = 'Activate Your Account';
// Forgot Password Email
$lang['email_forgot_password_heading'] = 'Reset Password for %s';
$lang['email_forgot_password_subheading'] = 'Please click this link to %s.';
$lang['email_forgot_password_link'] = 'Reset Your Password';
// New Password Email
$lang['email_new_password_heading'] = 'New Password for %s';
$lang['email_new_password_subheading'] = 'Your password has been reset to: %s';

View File

@ -1,51 +0,0 @@
<?php
$lang['cal_su'] = "Su";
$lang['cal_mo'] = "Mo";
$lang['cal_tu'] = "Tu";
$lang['cal_we'] = "We";
$lang['cal_th'] = "Th";
$lang['cal_fr'] = "Fr";
$lang['cal_sa'] = "Sa";
$lang['cal_sun'] = "Sun";
$lang['cal_mon'] = "Mon";
$lang['cal_tue'] = "Tue";
$lang['cal_wed'] = "Wed";
$lang['cal_thu'] = "Thu";
$lang['cal_fri'] = "Fri";
$lang['cal_sat'] = "Sat";
$lang['cal_sunday'] = "Sunday";
$lang['cal_monday'] = "Monday";
$lang['cal_tuesday'] = "Tuesday";
$lang['cal_wednesday'] = "Wednesday";
$lang['cal_thursday'] = "Thursday";
$lang['cal_friday'] = "Friday";
$lang['cal_saturday'] = "Saturday";
$lang['cal_jan'] = "Jan";
$lang['cal_feb'] = "Feb";
$lang['cal_mar'] = "Mar";
$lang['cal_apr'] = "Apr";
$lang['cal_may'] = "May";
$lang['cal_jun'] = "Jun";
$lang['cal_jul'] = "Jul";
$lang['cal_aug'] = "Aug";
$lang['cal_sep'] = "Sep";
$lang['cal_oct'] = "Oct";
$lang['cal_nov'] = "Nov";
$lang['cal_dec'] = "Dec";
$lang['cal_january'] = "January";
$lang['cal_february'] = "February";
$lang['cal_march'] = "March";
$lang['cal_april'] = "April";
$lang['cal_mayl'] = "May";
$lang['cal_june'] = "June";
$lang['cal_july'] = "July";
$lang['cal_august'] = "August";
$lang['cal_september'] = "September";
$lang['cal_october'] = "October";
$lang['cal_november'] = "November";
$lang['cal_december'] = "December";
/* End of file calendar_lang.php */
/* Location: ./system/language/english/calendar_lang.php */

View File

@ -1,61 +0,0 @@
<?php
$lang['date_year'] = "Year";
$lang['date_years'] = "Years";
$lang['date_month'] = "Month";
$lang['date_months'] = "Months";
$lang['date_week'] = "Week";
$lang['date_weeks'] = "Weeks";
$lang['date_day'] = "Day";
$lang['date_days'] = "Days";
$lang['date_hour'] = "Hour";
$lang['date_hours'] = "Hours";
$lang['date_minute'] = "Minute";
$lang['date_minutes'] = "Minutes";
$lang['date_second'] = "Second";
$lang['date_seconds'] = "Seconds";
$lang['UM12'] = '(UTC -12:00) Baker/Howland Island';
$lang['UM11'] = '(UTC -11:00) Samoa Time Zone, Niue';
$lang['UM10'] = '(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti';
$lang['UM95'] = '(UTC -9:30) Marquesas Islands';
$lang['UM9'] = '(UTC -9:00) Alaska Standard Time, Gambier Islands';
$lang['UM8'] = '(UTC -8:00) Pacific Standard Time, Clipperton Island';
$lang['UM7'] = '(UTC -7:00) Mountain Standard Time';
$lang['UM6'] = '(UTC -6:00) Central Standard Time';
$lang['UM5'] = '(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time';
$lang['UM45'] = '(UTC -4:30) Venezuelan Standard Time';
$lang['UM4'] = '(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time';
$lang['UM35'] = '(UTC -3:30) Newfoundland Standard Time';
$lang['UM3'] = '(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay';
$lang['UM2'] = '(UTC -2:00) South Georgia/South Sandwich Islands';
$lang['UM1'] = '(UTC -1:00) Azores, Cape Verde Islands';
$lang['UTC'] = '(UTC) Greenwich Mean Time, Western European Time';
$lang['UP1'] = '(UTC +1:00) Central European Time, West Africa Time';
$lang['UP2'] = '(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time';
$lang['UP3'] = '(UTC +3:00) Moscow Time, East Africa Time';
$lang['UP35'] = '(UTC +3:30) Iran Standard Time';
$lang['UP4'] = '(UTC +4:00) Azerbaijan Standard Time, Samara Time';
$lang['UP45'] = '(UTC +4:30) Afghanistan';
$lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time';
$lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time';
$lang['UP575'] = '(UTC +5:45) Nepal Time';
$lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time';
$lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar';
$lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam';
$lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time';
$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time';
$lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time';
$lang['UP95'] = '(UTC +9:30) Australian Central Standard Time';
$lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time';
$lang['UP105'] = '(UTC +10:30) Lord Howe Island';
$lang['UP11'] = '(UTC +11:00) Srednekolymsk Time, Solomon Islands, Vanuatu';
$lang['UP115'] = '(UTC +11:30) Norfolk Island';
$lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time';
$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time';
$lang['UP13'] = '(UTC +13:00) Phoenix Islands Time, Tonga';
$lang['UP14'] = '(UTC +14:00) Line Islands';
/* End of file date_lang.php */
/* Location: ./system/language/english/date_lang.php */

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