Reformatted code files
This commit is contained in:
parent
cc44f3e0c6
commit
8a68e97f94
116 changed files with 1252 additions and 1198 deletions
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$_doctypes = [
|
||||
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
// Add custom values by settings them to the $config array.
|
||||
// Example: $config['smtp_host'] = 'smtp.gmail.com';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
@ -9,31 +9,31 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||
| 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'),
|
||||
return [
|
||||
'hqx' => ['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'),
|
||||
'csv' => ['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' => ['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'),
|
||||
'exe' => ['application/octet-stream', 'application/x-msdownload'],
|
||||
'class' => 'application/octet-stream',
|
||||
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
|
||||
'psd' => ['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'),
|
||||
'pdf' => ['application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'],
|
||||
'ai' => ['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'),
|
||||
'xls' => ['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' => ['application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'],
|
||||
'pptx' => ['application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'],
|
||||
'wbxml' => 'application/wbxml',
|
||||
'wmlc' => 'application/wmlc',
|
||||
'dcr' => 'application/x-director',
|
||||
|
@ -43,88 +43,88 @@ return array(
|
|||
'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'),
|
||||
'php' => ['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'),
|
||||
'js' => ['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'),
|
||||
'tgz' => ['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'),
|
||||
'zip' => ['application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'],
|
||||
'rar' => ['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'),
|
||||
'mp3' => ['audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'],
|
||||
'aif' => ['audio/x-aiff', 'audio/aiff'],
|
||||
'aiff' => ['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'),
|
||||
'wav' => ['audio/x-wav', 'audio/wave', 'audio/wav'],
|
||||
'bmp' => ['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'),
|
||||
'jpeg' => ['image/jpeg', 'image/pjpeg'],
|
||||
'jpg' => ['image/jpeg', 'image/pjpeg'],
|
||||
'jpe' => ['image/jpeg', 'image/pjpeg'],
|
||||
'jp2' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
|
||||
'j2k' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
|
||||
'jpf' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
|
||||
'jpg2' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
|
||||
'jpx' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
|
||||
'jpm' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
|
||||
'mj2' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
|
||||
'mjp2' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
|
||||
'png' => ['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'),
|
||||
'css' => ['text/css', 'text/plain'],
|
||||
'html' => ['text/html', 'text/plain'],
|
||||
'htm' => ['text/html', 'text/plain'],
|
||||
'shtml' => ['text/html', 'text/plain'],
|
||||
'txt' => 'text/plain',
|
||||
'text' => 'text/plain',
|
||||
'log' => array('text/plain', 'text/x-log'),
|
||||
'log' => ['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'),
|
||||
'xml' => ['application/xml', 'text/xml', 'text/plain'],
|
||||
'xsl' => ['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'),
|
||||
'avi' => ['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'),
|
||||
'doc' => ['application/msword', 'application/vnd.ms-office'],
|
||||
'docx' => ['application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'],
|
||||
'dot' => ['application/msword', 'application/vnd.ms-office'],
|
||||
'dotx' => ['application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'],
|
||||
'xlsx' => ['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'],
|
||||
'word' => ['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'),
|
||||
'json' => ['application/json', 'text/json'],
|
||||
'pem' => ['application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'],
|
||||
'p10' => ['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'),
|
||||
'p7c' => ['application/pkcs7-mime', 'application/x-pkcs7-mime'],
|
||||
'p7m' => ['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'),
|
||||
'crt' => ['application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'],
|
||||
'crl' => ['application/pkix-crl', 'application/pkcs-crl'],
|
||||
'der' => 'application/x-x509-ca-cert',
|
||||
'kdb' => 'application/octet-stream',
|
||||
'pgp' => 'application/pgp',
|
||||
|
@ -132,12 +132,12 @@ return array(
|
|||
'sst' => 'application/octet-stream',
|
||||
'csr' => 'application/octet-stream',
|
||||
'rsa' => 'application/x-pkcs7',
|
||||
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
|
||||
'cer' => ['application/pkix-cert', 'application/x-x509-ca-cert'],
|
||||
'3g2' => 'video/3gpp2',
|
||||
'3gp' => array('video/3gp', 'video/3gpp'),
|
||||
'3gp' => ['video/3gp', 'video/3gpp'],
|
||||
'mp4' => 'video/mp4',
|
||||
'm4a' => 'audio/x-m4a',
|
||||
'f4v' => array('video/mp4', 'video/x-f4v'),
|
||||
'f4v' => ['video/mp4', 'video/x-f4v'],
|
||||
'flv' => 'video/x-flv',
|
||||
'webm' => 'video/webm',
|
||||
'aac' => 'audio/x-acc',
|
||||
|
@ -145,26 +145,26 @@ return array(
|
|||
'm3u' => 'text/plain',
|
||||
'xspf' => 'application/xspf+xml',
|
||||
'vlc' => 'application/videolan',
|
||||
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
|
||||
'wmv' => ['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'),
|
||||
'ogg' => ['audio/ogg', 'video/ogg', 'application/ogg'],
|
||||
'kmz' => ['application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'],
|
||||
'kml' => ['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'),
|
||||
'7z' => ['application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'],
|
||||
'7zip' => ['application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'],
|
||||
'cdr' => ['application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'],
|
||||
'wma' => ['audio/x-ms-wma', 'video/x-ms-asf'],
|
||||
'jar' => ['application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'],
|
||||
'svg' => ['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'),
|
||||
'srt' => ['text/srt', 'text/plain'],
|
||||
'vtt' => ['text/vtt', 'text/plain'],
|
||||
'ico' => ['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',
|
||||
|
@ -181,4 +181,4 @@ return array(
|
|||
'odm' => 'application/vnd.oasis.opendocument.text-master',
|
||||
'ott' => 'application/vnd.oasis.opendocument.text-template',
|
||||
'oth' => 'application/vnd.oasis.opendocument.text-web'
|
||||
);
|
||||
];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
|
|
@ -52,7 +52,7 @@ class Backend extends EA_Controller {
|
|||
*/
|
||||
public function index($appointment_hash = '')
|
||||
{
|
||||
$this->session->set_userdata('dest_url', site_url('backend/index' . (!empty($appointment_hash) ? '/' . $appointment_hash : '')));
|
||||
$this->session->set_userdata('dest_url', site_url('backend/index' . (! empty($appointment_hash) ? '/' . $appointment_hash : '')));
|
||||
|
||||
if ( ! $this->has_privileges(PRIV_APPOINTMENTS))
|
||||
{
|
||||
|
@ -77,7 +77,7 @@ class Backend extends EA_Controller {
|
|||
$view['available_providers'] = $this->providers_model->get_available_providers();
|
||||
$view['available_services'] = $this->services_model->get_available_services();
|
||||
$view['customers'] = $this->customers_model->get_batch();
|
||||
$view['calendar_view'] = !empty($calendar_view_query_param) ? $calendar_view_query_param : $user['settings']['calendar_view'];
|
||||
$view['calendar_view'] = ! empty($calendar_view_query_param) ? $calendar_view_query_param : $user['settings']['calendar_view'];
|
||||
$view['timezones'] = $this->timezones->to_array();
|
||||
$this->set_user_data($view);
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
use EA\Engine\Notifications\Email as EmailClient;
|
||||
use EA\Engine\Types\Email;
|
||||
use EA\Engine\Types\Text;
|
||||
use EA\Engine\Types\Url;
|
||||
|
||||
/**
|
||||
* Backend API Controller
|
||||
|
@ -420,9 +419,9 @@ class Backend_api extends EA_Controller {
|
|||
// Notify admins
|
||||
$admins = $this->admins_model->get_batch();
|
||||
|
||||
foreach($admins as $admin)
|
||||
foreach ($admins as $admin)
|
||||
{
|
||||
if (!$admin['settings']['notifications'] === '0')
|
||||
if ( ! $admin['settings']['notifications'] === '0')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -435,9 +434,9 @@ class Backend_api extends EA_Controller {
|
|||
// Notify secretaries
|
||||
$secretaries = $this->secretaries_model->get_batch();
|
||||
|
||||
foreach($secretaries as $secretary)
|
||||
foreach ($secretaries as $secretary)
|
||||
{
|
||||
if (!$secretary['settings']['notifications'] === '0')
|
||||
if ( ! $secretary['settings']['notifications'] === '0')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -562,7 +561,7 @@ class Backend_api extends EA_Controller {
|
|||
$limit = 1000;
|
||||
}
|
||||
|
||||
$customers = $this->customers_model->get_batch($where, $limit, null, $order_by);
|
||||
$customers = $this->customers_model->get_batch($where, $limit, NULL, $order_by);
|
||||
|
||||
foreach ($customers as &$customer)
|
||||
{
|
||||
|
@ -1319,7 +1318,7 @@ class Backend_api extends EA_Controller {
|
|||
|
||||
$result = $this->providers_model->delete($this->input->post('provider_id'));
|
||||
|
||||
$response =$result ? AJAX_SUCCESS : AJAX_FAILURE;
|
||||
$response = $result ? AJAX_SUCCESS : AJAX_FAILURE;
|
||||
}
|
||||
catch (Exception $exception)
|
||||
{
|
||||
|
@ -1393,7 +1392,7 @@ class Backend_api extends EA_Controller {
|
|||
|
||||
$secretary_id = $this->secretaries_model->add($secretary);
|
||||
|
||||
$response =[
|
||||
$response = [
|
||||
'status' => AJAX_SUCCESS,
|
||||
'id' => $secretary_id
|
||||
];
|
||||
|
@ -1427,7 +1426,7 @@ class Backend_api extends EA_Controller {
|
|||
|
||||
$result = $this->secretaries_model->delete($this->input->post('secretary_id'));
|
||||
|
||||
$response =$result ? AJAX_SUCCESS : AJAX_FAILURE;
|
||||
$response = $result ? AJAX_SUCCESS : AJAX_FAILURE;
|
||||
}
|
||||
catch (Exception $exception)
|
||||
{
|
||||
|
@ -1605,7 +1604,7 @@ class Backend_api extends EA_Controller {
|
|||
}
|
||||
else
|
||||
{
|
||||
$response =AJAX_FAILURE;
|
||||
$response = AJAX_FAILURE;
|
||||
}
|
||||
}
|
||||
catch (Exception $exception)
|
||||
|
@ -1679,7 +1678,7 @@ class Backend_api extends EA_Controller {
|
|||
$this->providers_model->set_setting('working_plan', $working_plan, $provider['id']);
|
||||
}
|
||||
|
||||
$response =AJAX_SUCCESS;
|
||||
$response = AJAX_SUCCESS;
|
||||
}
|
||||
catch (Exception $exception)
|
||||
{
|
||||
|
|
|
@ -41,6 +41,22 @@ class Console extends EA_Controller {
|
|||
$this->load->model('settings_model');
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a console installation.
|
||||
*
|
||||
* Use this method to install Easy!Appointments directly from the terminal.
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* php index.php console install
|
||||
*/
|
||||
public function install()
|
||||
{
|
||||
$this->migrate('fresh');
|
||||
$this->seed();
|
||||
$this->output->set_output(PHP_EOL . '⇾ Installation completed, login with "administrator" / "administrator".' . PHP_EOL . PHP_EOL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Migrate the database to the latest state.
|
||||
*
|
||||
|
@ -142,22 +158,6 @@ class Console extends EA_Controller {
|
|||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a console installation.
|
||||
*
|
||||
* Use this method to install Easy!Appointments directly from the terminal.
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* php index.php console install
|
||||
*/
|
||||
public function install()
|
||||
{
|
||||
$this->migrate('fresh');
|
||||
$this->seed();
|
||||
$this->output->set_output(PHP_EOL . '⇾ Installation completed, login with "administrator" / "administrator".' . PHP_EOL . PHP_EOL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a backup file.
|
||||
*
|
||||
|
|
|
@ -29,67 +29,6 @@ class Google extends EA_Controller {
|
|||
$this->load->model('providers_model');
|
||||
}
|
||||
|
||||
/**
|
||||
* Authorize Google Calendar API usage for a specific provider.
|
||||
*
|
||||
* Since it is required to follow the web application flow, in order to retrieve a refresh token from the Google API
|
||||
* service, this method is going to authorize the given provider.
|
||||
*
|
||||
* @param int $provider_id The provider id, for whom the sync authorization is made.
|
||||
*/
|
||||
public function oauth($provider_id)
|
||||
{
|
||||
// Store the provider id for use on the callback function.
|
||||
$this->session->set_userdata('oauth_provider_id', $provider_id);
|
||||
|
||||
// Redirect browser to google user content page.
|
||||
header('Location: ' . $this->google_sync->get_auth_url());
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback method for the Google Calendar API authorization process.
|
||||
*
|
||||
* Once the user grants consent with his Google Calendar data usage, the Google OAuth service will redirect him back
|
||||
* in this page. Here we are going to store the refresh token, because this is what will be used to generate access
|
||||
* tokens in the future.
|
||||
*
|
||||
* IMPORTANT: Because it is necessary to authorize the application using the web server flow (see official
|
||||
* documentation of OAuth), every Easy!Appointments installation should use its own calendar api key. So in every
|
||||
* api console account, the "http://path-to-Easy!Appointments/google/oauth_callback" should be included in an allowed redirect URL.
|
||||
*/
|
||||
public function oauth_callback()
|
||||
{
|
||||
$code = $this->input->get('code');
|
||||
|
||||
if (empty($code))
|
||||
{
|
||||
$this->output->set_output('Code authorization failed.');
|
||||
return;
|
||||
}
|
||||
|
||||
$token = $this->google_sync->authenticate($code);
|
||||
|
||||
if (empty($token))
|
||||
{
|
||||
$this->output->set_output('Token authorization failed.');
|
||||
return;
|
||||
}
|
||||
|
||||
// Store the token into the database for future reference.
|
||||
$oauth_provider_id = $this->session->userdata('oauth_provider_id');
|
||||
|
||||
if ($oauth_provider_id)
|
||||
{
|
||||
$this->providers_model->set_setting('google_sync', TRUE, $oauth_provider_id);
|
||||
$this->providers_model->set_setting('google_token', json_encode($token), $oauth_provider_id);
|
||||
$this->providers_model->set_setting('google_calendar', 'primary', $oauth_provider_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->output->set_output('Sync provider id not specified.');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Complete synchronization of appointments between Google Calendar and Easy!Appointments.
|
||||
*
|
||||
|
@ -288,5 +227,66 @@ class Google extends EA_Controller {
|
|||
->set_output(json_encode($response));
|
||||
}
|
||||
|
||||
/**
|
||||
* Authorize Google Calendar API usage for a specific provider.
|
||||
*
|
||||
* Since it is required to follow the web application flow, in order to retrieve a refresh token from the Google API
|
||||
* service, this method is going to authorize the given provider.
|
||||
*
|
||||
* @param int $provider_id The provider id, for whom the sync authorization is made.
|
||||
*/
|
||||
public function oauth($provider_id)
|
||||
{
|
||||
// Store the provider id for use on the callback function.
|
||||
$this->session->set_userdata('oauth_provider_id', $provider_id);
|
||||
|
||||
// Redirect browser to google user content page.
|
||||
header('Location: ' . $this->google_sync->get_auth_url());
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback method for the Google Calendar API authorization process.
|
||||
*
|
||||
* Once the user grants consent with his Google Calendar data usage, the Google OAuth service will redirect him back
|
||||
* in this page. Here we are going to store the refresh token, because this is what will be used to generate access
|
||||
* tokens in the future.
|
||||
*
|
||||
* IMPORTANT: Because it is necessary to authorize the application using the web server flow (see official
|
||||
* documentation of OAuth), every Easy!Appointments installation should use its own calendar api key. So in every
|
||||
* api console account, the "http://path-to-Easy!Appointments/google/oauth_callback" should be included in an allowed redirect URL.
|
||||
*/
|
||||
public function oauth_callback()
|
||||
{
|
||||
$code = $this->input->get('code');
|
||||
|
||||
if (empty($code))
|
||||
{
|
||||
$this->output->set_output('Code authorization failed.');
|
||||
return;
|
||||
}
|
||||
|
||||
$token = $this->google_sync->authenticate($code);
|
||||
|
||||
if (empty($token))
|
||||
{
|
||||
$this->output->set_output('Token authorization failed.');
|
||||
return;
|
||||
}
|
||||
|
||||
// Store the token into the database for future reference.
|
||||
$oauth_provider_id = $this->session->userdata('oauth_provider_id');
|
||||
|
||||
if ($oauth_provider_id)
|
||||
{
|
||||
$this->providers_model->set_setting('google_sync', TRUE, $oauth_provider_id);
|
||||
$this->providers_model->set_setting('google_token', json_encode($token), $oauth_provider_id);
|
||||
$this->providers_model->set_setting('google_calendar', 'primary', $oauth_provider_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->output->set_output('Sync provider id not specified.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ class Installation extends EA_Controller {
|
|||
$admin['timezone'] = 'UTC';
|
||||
$admin['settings']['username'] = $admin['username'];
|
||||
$admin['settings']['password'] = $admin['password'];
|
||||
$admin['settings']['notifications'] = true;
|
||||
$admin['settings']['notifications'] = TRUE;
|
||||
$admin['settings']['calendar_view'] = CALENDAR_VIEW_DEFAULT;
|
||||
unset($admin['username'], $admin['password']);
|
||||
$admin['id'] = $this->admins_model->add($admin);
|
||||
|
|
|
@ -49,7 +49,7 @@ class Unavailabilities extends API_V1_Controller {
|
|||
{
|
||||
try
|
||||
{
|
||||
$where = $id !== NULL ? ['id' => $id] : ['is_unavailable' => true];
|
||||
$where = $id !== NULL ? ['id' => $id] : ['is_unavailable' => TRUE];
|
||||
|
||||
$unavailabilities = $this->appointments_model->get_batch($where);
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['db_invalid_connection_str'] = 'غير قادر على إيجاد إعدادات الإتصال بقواعد البيانات بناء على البيانات المرسلة.';
|
||||
$lang['db_unable_to_connect'] = 'غير قادر على الإتصال بقواعد البيانات بناء على الإعدادات المقدمة.';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['email_must_be_array'] = 'يجب تمرير مصفوفة إلى دالة التحقق من البريد الإلكتروني.';
|
||||
$lang['email_invalid_address'] = 'عنوان بريد إلكتروني خاطئ: %s';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['migration_none_found'] = "لا يوجد أي عمليات ترحيل.";
|
||||
$lang['migration_not_found'] = "تعذر العثور على عملية الترحيل هذه.";
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['db_invalid_connection_str'] = 'Z řetězce spojení které jste zadali nelze určit nastavení databáze.';
|
||||
$lang['db_unable_to_connect'] = 'Se zadanými nastaveními se není možné připojit k databázovému serveru.';
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['email_must_be_array'] = 'Metoda validace emailu musí být předána jako pole.';
|
||||
$lang['email_invalid_address'] = 'Neplatná emailová adresa: %s';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['migration_none_found'] = 'Nebyla nalezena žádná migrace.';
|
||||
$lang['migration_not_found'] = 'Migrace s číslem verze %s nebyla nalezena.';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// Czech
|
||||
$lang['page_title'] = 'Rezervace schůzky s';
|
||||
$lang['service_and_provider'] = 'Výběr služby & poskytovatele';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['db_invalid_connection_str'] = 'Kan ikke fastsætte database indstillingerne baseret på forbindelsen strengen du angav.';
|
||||
$lang['db_unable_to_connect'] = 'Kan ikke forbinde til din database server udfra de angivne indstillinger.';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['email_must_be_array'] = 'Email valideringsmetoden kræver at modtage et array.';
|
||||
$lang['email_invalid_address'] = 'Ugyldig email adresse: %s';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['migration_none_found'] = 'Ingen migrationer blev fundet.';
|
||||
$lang['migration_not_found'] = 'Ingen migrationer blev fundet med versionsnummeret: %s.';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// Danish
|
||||
$lang['page_title'] = 'Book tid ved ...';
|
||||
$lang['service_and_provider'] = 'Vælg tjeneste og leverandør';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('Directe toegang tot scripts is niet toegestaan');
|
||||
defined('BASEPATH') or exit('Directe toegang tot scripts is niet toegestaan');
|
||||
|
||||
$lang['db_invalid_connection_str'] = 'Het lukt niet om de instellingen voor de database te kunnen bepalen via de connectiegegevens.';
|
||||
$lang['db_unable_to_connect'] = 'Het lukt niet om een verbinding naar de database te maken met de opgegeven informatie.';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('Directe toegang tot scripts is niet toegestaan');
|
||||
defined('BASEPATH') or exit('Directe toegang tot scripts is niet toegestaan');
|
||||
|
||||
$lang['email_must_be_array'] = 'De e-mail validatie methode moet de array passeren.';
|
||||
$lang['email_invalid_address'] = 'De opgegeven waarde is geen geldig e-mailadres: %s';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('Directe toegang tot scripts is niet toegestaan');
|
||||
defined('BASEPATH') or exit('Directe toegang tot scripts is niet toegestaan');
|
||||
|
||||
$lang['migration_none_found'] = 'Er is geen enkele migratie gevonden.';
|
||||
$lang['migration_not_found'] = 'Een migratie met dit versienummer is onvindbaar. %s.';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// Dutch
|
||||
$lang['page_title'] = 'Boek afspraak met';
|
||||
$lang['service_and_provider'] = 'Kies een dienst en een medewerker';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['db_invalid_connection_str'] = "Impossible de déterminer les paramètres d'accès à la base de données en se basant sur la chaîne de connexion que vous avez fournie.";
|
||||
$lang['db_unable_to_connect'] = "Impossible de se connecter à la base de données en utilisant les paramètres fournis.";
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['email_must_be_array'] = "La méthode de validation d'email n'accepte que les tableaux associatifs (array).";
|
||||
$lang['email_invalid_address'] = "Adresse email invalide : %s";
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['migration_none_found'] = "Aucune migration trouvée.";
|
||||
$lang['migration_not_found'] = "Aucune migration n'a été trouvée avec le numéro de version : %d.";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// French
|
||||
$lang['page_title'] = 'Prendre rendez-vous avec ...';
|
||||
$lang['service_and_provider'] = 'Choisissez une prestation et un exécutant';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['db_invalid_connection_str'] = 'Die Datenbank-Einstellungen sind anhand der vorliegenden Verbindungsdaten nicht zu ermitteln.';
|
||||
$lang['db_unable_to_connect'] = 'Mit den vorliegenden Einstellungen ist keine Verbindung zum Datenbank-Server möglich.';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['email_must_be_array'] = 'Die Methode zur Überprüfung der E-Mail muss in einem Array übergeben werden.';
|
||||
$lang['email_invalid_address'] = 'Ungültige E-Mail-Adresse: %s';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['migration_none_found'] = 'Es wurde keine Migration gefunden.';
|
||||
$lang['migration_not_found'] = 'Die Migration mit der Versionsnummer %s wurde nicht gefunden.';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// German
|
||||
$lang['page_title'] = 'Vereinbaren Sie einen Termin mit';
|
||||
$lang['service_and_provider'] = 'Dienstleistung & Anbieter';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['db_invalid_connection_str'] = 'Αδυναμία να ρυθμιστεί η βάση δεδομένων με τα στοιχεία σύνδεσης που υποβάλλονται.';
|
||||
$lang['db_unable_to_connect'] = 'Δεν είναι δυνατή η σύνδεση με την βάση δεδομένων σας, παρακαλώ ελέγξτε τα στοιχεία σύνδεσης.';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['email_must_be_array'] = 'Η μέθοδος email validation πρέπει να περάσει απο έναν πίνακα.';
|
||||
$lang['email_invalid_address'] = 'Μη έγκυρη διεύθυνση e-mail: %s';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['migration_none_found'] = 'Δεν βρέθηκαν migrations.';
|
||||
$lang['migration_not_found'] = 'Όχι migrations, θα μπορούσε να βρεθεί με τον αριθμό έκδοσης: %s.';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// Greek
|
||||
$lang['page_title'] = 'Κράτηση Ραντεβού Με';
|
||||
$lang['service_and_provider'] = 'Υπηρεσία & Πάροχος';
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['db_invalid_connection_str'] = 'לא ניתן לקבוע את הגדרות מסד הנתונים בהתבסס על מחרוזת החיבור שהגשת.';
|
||||
$lang['db_unable_to_connect'] = 'לא ניתן להתחבר לשרת מסד הנתונים שלך באמצעות ההגדרות שסופקו.';
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['email_must_be_array'] = 'שיטת אימות הדוא"ל חחיבת להיות במערך.';
|
||||
$lang['email_invalid_address'] = 'כתובת דוא"ל לא תקנית: %s';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['migration_none_found'] = 'מיזוג לא נמצא.';
|
||||
$lang['migration_not_found'] = 'לא נמצאה מיזוג למספר הגרסה: %s.';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('Directe toegang tot scripts is niet toegestaan');
|
||||
defined('BASEPATH') or exit('Directe toegang tot scripts is niet toegestaan');
|
||||
$lang['db_invalid_connection_str'] = 'मैं कनेक्शन डेटा का उपयोग कर डेटाबेस के लिए सेटिंग्स का निर्धारण करने में असमर्थ हूँ।';
|
||||
$lang['db_unable_to_connect'] = 'मैं निर्दिष्ट जानकारी के साथ डेटाबेस से कनेक्ट करने में असमर्थ हूँ।';
|
||||
$lang['db_unable_to_select'] = 'मैं डेटाबेस का उपयोग करने में असमर्थ हूँ:% s';
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* System messages translation for CodeIgniter(tm)
|
||||
*
|
||||
* @author CodeIgniter community
|
||||
* @copyright Copyright (c) 2014-2018, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @copyright Pieter Krul
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('Directe toegang tot scripts is niet toegestaan');
|
||||
* System messages translation for CodeIgniter(tm)
|
||||
*
|
||||
* @author CodeIgniter community
|
||||
* @copyright Copyright (c) 2014-2018, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @copyright Pieter Krul
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') or exit('Directe toegang tot scripts is niet toegestaan');
|
||||
$lang['email_must_be_array'] = 'ईमेल सत्यापन विधि को सरणी (array) भेजी जानी चाहिए।';
|
||||
$lang['email_invalid_address'] = 'अवैध ईमेल पता है:% s';
|
||||
$lang['email_attachment_missing'] = '% S: निम्नलिखित ईमेल संलग्नक (अटैचमेंट) पता लगाने में असमर्थ';
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* System messages translation for CodeIgniter(tm)
|
||||
*
|
||||
* @author CodeIgniter community
|
||||
* @copyright Copyright (c) 2014-2018, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
* System messages translation for CodeIgniter(tm)
|
||||
*
|
||||
* @author CodeIgniter community
|
||||
* @copyright Copyright (c) 2014-2018, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
*/
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$lang['migration_none_found'] = 'कोई माइग्रेशन नहीं पाए गए।';
|
||||
$lang['migration_not_found'] = 'कोई माइग्रेशन वर्जन नंबर के साथनहीं नहीं पाया जा सका:% s।';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// Hindi
|
||||
$lang['page_title'] = 'नअपॉइंटमेंट बुक करें';
|
||||
$lang['service_and_provider'] = 'प्रदान करनेवाला और सेवा का चयन करें';
|
||||
|
|
|
@ -32,17 +32,21 @@
|
|||
<span id="company-name"><?= $company_name ?></span>
|
||||
|
||||
<div id="steps">
|
||||
<div id="step-1" class="book-step active-step" data-tippy-content="<?= lang('service_and_provider') ?>">
|
||||
<div id="step-1" class="book-step active-step"
|
||||
data-tippy-content="<?= lang('service_and_provider') ?>">
|
||||
<strong>1</strong>
|
||||
</div>
|
||||
|
||||
<div id="step-2" class="book-step" data-toggle="tooltip" data-tippy-content="<?= lang('appointment_date_and_time') ?>">
|
||||
<div id="step-2" class="book-step" data-toggle="tooltip"
|
||||
data-tippy-content="<?= lang('appointment_date_and_time') ?>">
|
||||
<strong>2</strong>
|
||||
</div>
|
||||
<div id="step-3" class="book-step" data-toggle="tooltip" data-tippy-content="<?= lang('customer_information') ?>">
|
||||
<div id="step-3" class="book-step" data-toggle="tooltip"
|
||||
data-tippy-content="<?= lang('customer_information') ?>">
|
||||
<strong>3</strong>
|
||||
</div>
|
||||
<div id="step-4" class="book-step" data-toggle="tooltip" data-tippy-content="<?= lang('appointment_confirmation') ?>">
|
||||
<div id="step-4" class="book-step" data-toggle="tooltip"
|
||||
data-tippy-content="<?= lang('appointment_confirmation') ?>">
|
||||
<strong>4</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main" class="container">
|
||||
<div id="main" class="container">
|
||||
<div class="row wrapper">
|
||||
<div id="success-frame" class="col-12 border my-auto frame-container">
|
||||
<div>
|
||||
<img id="success-icon" class="mt-0 mb-2" src="<?= base_url('assets/img/success.png') ?>" />
|
||||
<img id="success-icon" class="mt-0 mb-2" src="<?= base_url('assets/img/success.png') ?>"/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
@ -42,7 +42,7 @@
|
|||
<?= lang('go_to_booking_page') ?>
|
||||
</a>
|
||||
|
||||
<?php if(config('google_sync_feature')): ?>
|
||||
<?php if (config('google_sync_feature')): ?>
|
||||
<button id="add-to-google-calendar" class="btn btn-primary">
|
||||
<i class="fas fa-plus"></i>
|
||||
<?= lang('add_to_google_calendar') ?>
|
||||
|
@ -53,7 +53,7 @@
|
|||
<div class="m-2">
|
||||
<h4><?= lang('unexpected_issues') ?></h4>
|
||||
|
||||
<?php foreach($exceptions as $exception): ?>
|
||||
<?php foreach ($exceptions as $exception): ?>
|
||||
<?= exceptionToHtml($exception) ?>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
@ -68,14 +68,14 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="<?= base_url('assets/ext/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= base_url('assets/ext/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
|
||||
<script src="<?= base_url('assets/ext/datejs/date.min.js') ?>"></script>
|
||||
<script src="https://apis.google.com/js/client.js"></script>
|
||||
<script src="<?= base_url('assets/ext/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= base_url('assets/ext/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
|
||||
<script src="<?= base_url('assets/ext/datejs/date.min.js') ?>"></script>
|
||||
<script src="https://apis.google.com/js/client.js"></script>
|
||||
|
||||
<script>
|
||||
<script>
|
||||
var GlobalVariables = {
|
||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||
appointmentData: <?= json_encode($appointment_data) ?>,
|
||||
|
@ -88,12 +88,12 @@
|
|||
};
|
||||
|
||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<script src="<?= asset_url('assets/js/frontend_book_success.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/polyfill.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/frontend_book_success.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/polyfill.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
|
||||
<?php google_analytics_script() ?>
|
||||
<?php google_analytics_script() ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div id="main" class="container">
|
||||
<div id="main" class="container">
|
||||
<div class="row wrapper">
|
||||
<div id="message-frame" class="col-12 border my-auto frame-container">
|
||||
<div>
|
||||
|
@ -40,7 +40,7 @@
|
|||
<?php if (isset($exceptions) && config('debug')): ?>
|
||||
<div>
|
||||
<h4><?= lang('unexpected_issues') ?></h4>
|
||||
<?php foreach($exceptions as $exception): ?>
|
||||
<?php foreach ($exceptions as $exception): ?>
|
||||
<?= exceptionToHtml($exception) ?>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
@ -55,8 +55,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php google_analytics_script() ?>
|
||||
<?php google_analytics_script() ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title"><?= lang('privacy_policy') ?></h4>
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><?= $privacy_policy_content ?></p>
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title"><?= lang('terms_and_conditions') ?></h4>
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><?= $terms_and_conditions_content ?></p>
|
||||
|
|
|
@ -91,18 +91,19 @@
|
|||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<button id="reload-appointments" class="btn btn-light" data-tippy-content="<?= lang('reload_appointments_hint') ?>">
|
||||
<button id="reload-appointments" class="btn btn-light"
|
||||
data-tippy-content="<?= lang('reload_appointments_hint') ?>">
|
||||
<i class="fas fa-sync-alt"></i>
|
||||
</button>
|
||||
|
||||
<?php if($calendar_view === 'default'): ?>
|
||||
<?php if ($calendar_view === 'default'): ?>
|
||||
<a class="btn btn-light" href="<?= site_url('backend?view=table') ?>"
|
||||
data-tippy-content="<?= lang('table') ?>">
|
||||
<i class="fas fa-table"></i>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($calendar_view === 'table'): ?>
|
||||
<?php if ($calendar_view === 'table'): ?>
|
||||
<a class="btn btn-light" href="<?= site_url('backend?view=default') ?>"
|
||||
data-tippy-content="<?= lang('default') ?>">
|
||||
<i class="fas fa-calendar-alt"></i>
|
||||
|
@ -325,7 +326,8 @@
|
|||
<span class="text-danger">*</span>
|
||||
<?php endif ?>
|
||||
</label>
|
||||
<input id="phone-number" class="form-control <?= $require_phone_number === '1' ? 'required' : '' ?>">
|
||||
<input id="phone-number"
|
||||
class="form-control <?= $require_phone_number === '1' ? 'required' : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6">
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
baseUrl: <?= json_encode($base_url) ?>,
|
||||
customers: <?= json_encode($customers) ?>,
|
||||
timezones: <?= json_encode($timezones) ?>,
|
||||
user : {
|
||||
user: {
|
||||
id: <?= $user_id ?>,
|
||||
email: <?= json_encode($user_email) ?>,
|
||||
timezone: <?= json_encode($timezone) ?>,
|
||||
|
@ -21,7 +21,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
$(function() {
|
||||
$(function () {
|
||||
BackendCustomers.initialize(true);
|
||||
});
|
||||
</script>
|
||||
|
@ -35,10 +35,12 @@
|
|||
|
||||
<div class="input-group-addon">
|
||||
<div>
|
||||
<button class="filter btn btn-outline-secondary" type="submit" data-tippy-content="<?= lang('filter') ?>">
|
||||
<button class="filter btn btn-outline-secondary" type="submit"
|
||||
data-tippy-content="<?= lang('filter') ?>">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
<button class="clear btn btn-outline-secondary" type="button" data-tippy-content="<?= lang('clear') ?>">
|
||||
<button class="clear btn btn-outline-secondary" type="button"
|
||||
data-tippy-content="<?= lang('clear') ?>">
|
||||
<i class="fas fa-redo-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
$(function() {
|
||||
$(function () {
|
||||
BackendServices.initialize(true);
|
||||
});
|
||||
</script>
|
||||
|
@ -51,10 +51,12 @@
|
|||
|
||||
<div class="input-group-addon">
|
||||
<div>
|
||||
<button class="filter btn btn-outline-secondary" type="submit" data-tippy-content="<?= lang('filter') ?>">
|
||||
<button class="filter btn btn-outline-secondary" type="submit"
|
||||
data-tippy-content="<?= lang('filter') ?>">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
<button class="clear btn btn-outline-secondary" type="button" data-tippy-content="<?= lang('clear') ?>">
|
||||
<button class="clear btn btn-outline-secondary" type="button"
|
||||
data-tippy-content="<?= lang('clear') ?>">
|
||||
<i class="fas fa-redo-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -192,10 +194,12 @@
|
|||
|
||||
<div class="input-group-addon">
|
||||
<div>
|
||||
<button class="filter btn btn-outline-secondary" type="submit" data-tippy-content="<?= lang('filter') ?>">
|
||||
<button class="filter btn btn-outline-secondary" type="submit"
|
||||
data-tippy-content="<?= lang('filter') ?>">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
<button class="clear btn btn-outline-secondary" type="button" data-tippy-content="<?= lang('clear') ?>">
|
||||
<button class="clear btn btn-outline-secondary" type="button"
|
||||
data-tippy-content="<?= lang('clear') ?>">
|
||||
<i class="fas fa-redo-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -68,10 +68,12 @@
|
|||
|
||||
<div class="input-group-addon">
|
||||
<div>
|
||||
<button class="filter btn btn-outline-secondary" type="submit" data-tippy-content="<?= lang('filter') ?>">
|
||||
<button class="filter btn btn-outline-secondary" type="submit"
|
||||
data-tippy-content="<?= lang('filter') ?>">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
<button class="clear btn btn-outline-secondary" type="button" data-tippy-content="<?= lang('clear') ?>">
|
||||
<button class="clear btn btn-outline-secondary" type="button"
|
||||
data-tippy-content="<?= lang('clear') ?>">
|
||||
<i class="fas fa-redo-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -374,10 +376,12 @@
|
|||
|
||||
<span class="input-group-addon">
|
||||
<div>
|
||||
<button class="filter btn btn-outline-secondary" type="submit" data-tippy-content="<?= lang('filter') ?>">
|
||||
<button class="filter btn btn-outline-secondary" type="submit"
|
||||
data-tippy-content="<?= lang('filter') ?>">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
<button class="clear btn btn-outline-secondary" type="button" data-tippy-content="<?= lang('clear') ?>">
|
||||
<button class="clear btn btn-outline-secondary" type="button"
|
||||
data-tippy-content="<?= lang('clear') ?>">
|
||||
<i class="fas fa-redo-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -580,10 +584,12 @@
|
|||
|
||||
<span class="input-group-addon">
|
||||
<div>
|
||||
<button class="filter btn btn-outline-secondary" type="submit" data-tippy-content="<?= lang('filter') ?>">
|
||||
<button class="filter btn btn-outline-secondary" type="submit"
|
||||
data-tippy-content="<?= lang('filter') ?>">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
<button class="clear btn btn-outline-secondary" type="button" data-tippy-content="<?= lang('clear') ?>">
|
||||
<button class="clear btn btn-outline-secondary" type="button"
|
||||
data-tippy-content="<?= lang('clear') ?>">
|
||||
<i class="fas fa-redo-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -51,7 +51,8 @@
|
|||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal"><?= lang('cancel') ?></button>
|
||||
<button type="button" class="btn btn-primary" id="working-plan-exceptions-save"><?= lang('save') ?></button>
|
||||
<button type="button" class="btn btn-primary"
|
||||
id="working-plan-exceptions-save"><?= lang('save') ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ", $heading, "\n\n", $message, "\n\n";
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ", $heading, "\n\n", $message, "\n\n";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed') ?>
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed') ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
|
@ -7,7 +7,7 @@ Message: <?= $message, "\n" ?>
|
|||
Filename: <?= $exception->getFile(), "\n" ?>
|
||||
Line Number: <?= $exception->getLine() ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === true): ?>
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ", $heading, "\n\n", $message, "\n\n";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed') ?>
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed') ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
|
@ -7,7 +7,7 @@ Message: <?= $message, "\n" ?>
|
|||
Filename: <?= $filepath, "\n" ?>
|
||||
Line Number: <?= $line ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === true): ?>
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
|
|
@ -1,27 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection{ background-color: #E13300; color: white; }
|
||||
::moz-selection{ background-color: #E13300; color: white; }
|
||||
::webkit-selection{ background-color: #E13300; color: white; }
|
||||
::selection {
|
||||
background-color: #E13300;
|
||||
color: white;
|
||||
}
|
||||
|
||||
body {
|
||||
::moz-selection {
|
||||
background-color: #E13300;
|
||||
color: white;
|
||||
}
|
||||
|
||||
::webkit-selection {
|
||||
background-color: #E13300;
|
||||
color: white;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
|
@ -29,9 +40,9 @@ h1 {
|
|||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
}
|
||||
|
||||
code {
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
|
@ -40,23 +51,23 @@ code {
|
|||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
#container {
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
-webkit-box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="container">
|
||||
<h1><?= $heading ?></h1>
|
||||
<?= $message ?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,27 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection{ background-color: #E13300; color: white; }
|
||||
::moz-selection{ background-color: #E13300; color: white; }
|
||||
::webkit-selection{ background-color: #E13300; color: white; }
|
||||
::selection {
|
||||
background-color: #E13300;
|
||||
color: white;
|
||||
}
|
||||
|
||||
body {
|
||||
::moz-selection {
|
||||
background-color: #E13300;
|
||||
color: white;
|
||||
}
|
||||
|
||||
::webkit-selection {
|
||||
background-color: #E13300;
|
||||
color: white;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
|
@ -29,9 +40,9 @@ h1 {
|
|||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
}
|
||||
|
||||
code {
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
|
@ -40,23 +51,23 @@ code {
|
|||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
#container {
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
-webkit-box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="container">
|
||||
<h1><?= $heading ?></h1>
|
||||
<?= $message ?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php defined('BASEPATH') OR exit('No direct script access allowed') ?>
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed') ?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
|||
<p>Filename: <?= $exception->getFile() ?></p>
|
||||
<p>Line Number: <?= $exception->getLine() ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === true): ?>
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
|
||||
|
|
|
@ -1,27 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection{ background-color: #E13300; color: white; }
|
||||
::moz-selection{ background-color: #E13300; color: white; }
|
||||
::webkit-selection{ background-color: #E13300; color: white; }
|
||||
::selection {
|
||||
background-color: #E13300;
|
||||
color: white;
|
||||
}
|
||||
|
||||
body {
|
||||
::moz-selection {
|
||||
background-color: #E13300;
|
||||
color: white;
|
||||
}
|
||||
|
||||
::webkit-selection {
|
||||
background-color: #E13300;
|
||||
color: white;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
|
@ -29,9 +40,9 @@ h1 {
|
|||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
}
|
||||
|
||||
code {
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
|
@ -40,23 +51,23 @@ code {
|
|||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
#container {
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
-webkit-box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="container">
|
||||
<h1><?= $heading ?></h1>
|
||||
<?= $message ?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="message-frame" class="frame-container">
|
||||
<div id="message-frame" class="frame-container">
|
||||
<h3><?= lang('page_not_found')
|
||||
. ' - ' . lang('error') . ' 404' ?></h3>
|
||||
<p>
|
||||
|
@ -51,8 +51,8 @@
|
|||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php google_analytics_script() ?>
|
||||
<?php google_analytics_script() ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -7,22 +7,22 @@
|
|||
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/ext/bootstrap/css/bootstrap.min.css') ?>">
|
||||
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url ('assets/ext/jquery-ui/jquery-ui.min.css')?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/ext/jquery-ui/jquery-ui.min.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/installation.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
||||
</head>
|
||||
<body>
|
||||
<div id="loading" class="d-none">
|
||||
<div id="loading" class="d-none">
|
||||
<img src="<?= base_url('assets/img/loading.gif') ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<header>
|
||||
<header>
|
||||
<div class="container">
|
||||
<h1 class="page-title">Easy!Appointments Installation</h1>
|
||||
</div>
|
||||
</header>
|
||||
</header>
|
||||
|
||||
<div class="content container">
|
||||
<div class="content container">
|
||||
<div class="welcome">
|
||||
<h3>Welcome to the Easy!Appointments installation page.</h3>
|
||||
<p>
|
||||
|
@ -48,37 +48,37 @@
|
|||
|
||||
<div class="form-group">
|
||||
<label for="first-name" class="control-label">First Name</label>
|
||||
<input type="text" id="first-name" class="form-control" />
|
||||
<input type="text" id="first-name" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="last-name" class="control-label">Last Name</label>
|
||||
<input type="text" id="last-name" class="form-control" />
|
||||
<input type="text" id="last-name" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email" class="control-label">Email</label>
|
||||
<input type="text" id="email" class="form-control" />
|
||||
<input type="text" id="email" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="phone-number" class="control-label">Phone Number</label>
|
||||
<input type="text" id="phone-number" class="form-control" />
|
||||
<input type="text" id="phone-number" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="username" class="control-label">Username</label>
|
||||
<input type="text" id="username" class="form-control" />
|
||||
<input type="text" id="username" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password" class="control-label">Password</label>
|
||||
<input type="password" id="password" class="form-control" />
|
||||
<input type="password" id="password" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="retype-password" class="control-label">Retype Password</label>
|
||||
<input type="password" id="retype-password" class="form-control" />
|
||||
<input type="password" id="retype-password" class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -87,17 +87,17 @@
|
|||
|
||||
<div class="form-group">
|
||||
<label for="company-name" class="control-label">Company Name</label>
|
||||
<input type="text" id="company-name" class="form-control" />
|
||||
<input type="text" id="company-name" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="company-email" class="control-label">Company Email</label>
|
||||
<input type="text" id="company-email" class="form-control" />
|
||||
<input type="text" id="company-email" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="company-link" class="control-label">Company Link</label>
|
||||
<input type="text" id="company-link" class="form-control" />
|
||||
<input type="text" id="company-link" class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -125,28 +125,29 @@
|
|||
|
||||
<button type="button" id="install" class="btn btn-success btn-large">
|
||||
<i class="icon-white icon-ok mr-2"></i>
|
||||
Install Easy!Appointments</button>
|
||||
</div>
|
||||
Install Easy!Appointments
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<footer>
|
||||
Powered by <a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</footer>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
<script>
|
||||
var GlobalVariables = {
|
||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||
baseUrl: <?= json_encode(config('base_url')) ?>
|
||||
};
|
||||
|
||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<script src="<?= asset_url('assets/ext/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/jquery-ui/jquery-ui.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/datejs/date.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/polyfill.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/installation.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/jquery-ui/jquery-ui.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/datejs/date.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/polyfill.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/installation.js') ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -69,6 +69,6 @@
|
|||
</footer>
|
||||
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<script src="<?= asset_url('assets/ext/datejs/date.min.js') ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="forgot-password-frame" class="frame-container">
|
||||
<div id="forgot-password-frame" class="frame-container">
|
||||
<h2><?= lang('forgot_your_password') ?></h2>
|
||||
<p><?= lang('type_username_and_email_for_new_password') ?></p>
|
||||
<hr>
|
||||
|
@ -41,11 +41,11 @@
|
|||
<form>
|
||||
<div class="form-group">
|
||||
<label for="username"><?= lang('username') ?></label>
|
||||
<input type="text" id="username" placeholder="<?= lang('enter_username_here') ?>" class="form-control" />
|
||||
<input type="text" id="username" placeholder="<?= lang('enter_username_here') ?>" class="form-control"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email"><?= lang('email') ?></label>
|
||||
<input type="text" id="email" placeholder="<?= lang('enter_email_here') ?>" class="form-control" />
|
||||
<input type="text" id="email" placeholder="<?= lang('enter_email_here') ?>" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
@ -65,11 +65,11 @@
|
|||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/polyfill.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/forgot_password.js') ?>"></script>
|
||||
</div>
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/polyfill.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/forgot_password.js') ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -33,13 +33,13 @@
|
|||
|
||||
var availableLanguages = <?= json_encode(config('available_languages')) ?>;
|
||||
|
||||
$(function() {
|
||||
$(function () {
|
||||
GeneralFunctions.enableLanguageSelection($('#select-language'));
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="login-frame" class="frame-container">
|
||||
<div id="login-frame" class="frame-container">
|
||||
<h2><?= lang('backend_section') ?></h2>
|
||||
<p><?= lang('you_need_to_login') ?></p>
|
||||
<hr>
|
||||
|
@ -49,13 +49,13 @@
|
|||
<label for="username"><?= lang('username') ?></label>
|
||||
<input type="text" id="username"
|
||||
placeholder="<?= lang('enter_username_here') ?>"
|
||||
class="form-control" />
|
||||
class="form-control"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password"><?= lang('password') ?></label>
|
||||
<input type="password" id="password"
|
||||
placeholder="<?= lang('enter_password_here') ?>"
|
||||
class="form-control" />
|
||||
class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
@ -79,12 +79,12 @@
|
|||
</small>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/polyfill.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/login.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/polyfill.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/login.js') ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
|
@ -25,7 +25,7 @@
|
|||
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="logout-frame" class="frame-container">
|
||||
<div id="logout-frame" class="frame-container">
|
||||
<h3><?= lang('log_out') ?></h3>
|
||||
<p>
|
||||
<?= lang('logout_success') ?>
|
||||
|
@ -49,6 +49,6 @@
|
|||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<script src="<?= asset_url('assets/ext/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="no-priv-frame" class="frame-container">
|
||||
<div id="no-priv-frame" class="frame-container">
|
||||
<h3><?= lang('no_privileges') ?></h3>
|
||||
<p>
|
||||
<?= lang('no_privileges_message') ?>
|
||||
|
@ -38,6 +38,6 @@
|
|||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -498,7 +498,7 @@ body .form-horizontal .controls {
|
|||
#calendar .select2-container--default.select2-container--focus .select2-selection--multiple {
|
||||
border-color: #80bdff;
|
||||
outline: 0;
|
||||
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
|
||||
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
|
||||
}
|
||||
|
||||
#calendar .select2-container--default .select2-selection--multiple .select2-selection__choice {
|
||||
|
|
|
@ -18,7 +18,7 @@ body {
|
|||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@media(max-width: 640px) {
|
||||
@media (max-width: 640px) {
|
||||
body {
|
||||
display: block;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ body {
|
|||
margin-left: 20px;
|
||||
}
|
||||
|
||||
@media(max-width: 640px) {
|
||||
@media (max-width: 640px) {
|
||||
#forgot-password-frame {
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
|
|
|
@ -398,7 +398,7 @@ body .popover {
|
|||
|
||||
body .popover-body strong {
|
||||
min-width: 90px;
|
||||
display:inline-block;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
body .popover-body button {
|
||||
|
|
|
@ -14,7 +14,7 @@ body {
|
|||
padding: 70px;
|
||||
}
|
||||
|
||||
@media(max-width: 640px) {
|
||||
@media (max-width: 640px) {
|
||||
#login-frame {
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
|
|
|
@ -18,7 +18,7 @@ body {
|
|||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@media(max-width: 640px) {
|
||||
@media (max-width: 640px) {
|
||||
#logout-frame {
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
|
|
|
@ -18,7 +18,7 @@ body {
|
|||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@media(max-width: 640px) {
|
||||
@media (max-width: 640px) {
|
||||
#no-priv-frame {
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
|
|
|
@ -129,7 +129,7 @@ window.Backend = window.Backend || {};
|
|||
})
|
||||
.appendTo($notification);
|
||||
|
||||
actions.forEach(function(action) {
|
||||
actions.forEach(function (action) {
|
||||
$('<button/>', {
|
||||
'class': 'btn btn-outline-secondary btn-xs',
|
||||
'text': action.label,
|
||||
|
|
|
@ -25,7 +25,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
function updateTimezone() {
|
||||
var providerId = $('#select-provider').val();
|
||||
|
||||
var provider = GlobalVariables.availableProviders.find(function(availableProvider) {
|
||||
var provider = GlobalVariables.availableProviders.find(function (availableProvider) {
|
||||
return Number(availableProvider.id) === Number(providerId);
|
||||
});
|
||||
|
||||
|
@ -144,7 +144,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
|
||||
var serviceId = $dialog.find('#select-service').val();
|
||||
|
||||
var service = GlobalVariables.availableServices.find(function(availableService) {
|
||||
var service = GlobalVariables.availableServices.find(function (availableService) {
|
||||
return Number(availableService.id) === Number(serviceId);
|
||||
});
|
||||
|
||||
|
@ -250,7 +250,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
.appendTo($list);
|
||||
|
||||
// Verify if this customer is on the old customer list.
|
||||
var result = GlobalVariables.customers.filter(function(globalVariablesCustomer) {
|
||||
var result = GlobalVariables.customers.filter(function (globalVariablesCustomer) {
|
||||
return Number(globalVariablesCustomer.id) === Number(customer.id);
|
||||
});
|
||||
|
||||
|
@ -264,7 +264,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
// If there is any error on the request, search by the local client database.
|
||||
$list.empty();
|
||||
|
||||
GlobalVariables.customers.forEach(function(customer, index) {
|
||||
GlobalVariables.customers.forEach(function (customer, index) {
|
||||
if (customer.first_name.toLowerCase().indexOf(key) !== -1
|
||||
|| customer.last_name.toLowerCase().indexOf(key) !== -1
|
||||
|| customer.email.toLowerCase().indexOf(key) !== -1
|
||||
|
@ -366,7 +366,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
|
||||
var serviceId = $dialog.find('#select-service').val();
|
||||
|
||||
var canProvideService = provider.services.filter(function(providerServiceId) {
|
||||
var canProvideService = provider.services.filter(function (providerServiceId) {
|
||||
return Number(providerServiceId) === Number(serviceId)
|
||||
}).length > 0;
|
||||
|
||||
|
@ -385,7 +385,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
// Get the selected service duration. It will be needed in order to calculate the appointment end datetime.
|
||||
var serviceId = $dialog.find('#select-service').val();
|
||||
|
||||
var service = GlobalVariables.availableServices.forEach(function(service) {
|
||||
var service = GlobalVariables.availableServices.forEach(function (service) {
|
||||
return Number(service.id) === Number(serviceId);
|
||||
});
|
||||
|
||||
|
|
|
@ -1085,7 +1085,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
* @param {Event} event
|
||||
*/
|
||||
function getEventNotes(event) {
|
||||
if (!event.data || !event.data.notes) {
|
||||
if (!event.data || !event.data.notes) {
|
||||
return '-';
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ window.BackendCalendarWorkingPlanExceptionsModal = window.BackendCalendarWorking
|
|||
$('#manage-working-plan-exceptions').modal('hide');
|
||||
|
||||
var providerId = $('#working-plan-exception-provider').val();
|
||||
var provider = GlobalVariables.availableProviders.find(function(availableProvider) {
|
||||
var provider = GlobalVariables.availableProviders.find(function (availableProvider) {
|
||||
return Number(availableProvider.id) === Number(providerId);
|
||||
});
|
||||
|
||||
|
|
|
@ -224,17 +224,17 @@ window.BackendSettings = window.BackendSettings || {};
|
|||
/**
|
||||
* Event: Apply Global Working Plan
|
||||
*/
|
||||
$('#apply-global-working-plan').on('click', function() {
|
||||
$('#apply-global-working-plan').on('click', function () {
|
||||
var buttons = [
|
||||
{
|
||||
text: EALang.cancel,
|
||||
click: function() {
|
||||
click: function () {
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
},
|
||||
{
|
||||
text: 'OK',
|
||||
click: function() {
|
||||
click: function () {
|
||||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_apply_global_working_plan';
|
||||
|
||||
var data = {
|
||||
|
@ -246,7 +246,7 @@ window.BackendSettings = window.BackendSettings || {};
|
|||
.done(function () {
|
||||
Backend.displayNotification(EALang.working_plans_got_updated);
|
||||
})
|
||||
.always(function() {
|
||||
.always(function () {
|
||||
$('#message-box').dialog('close');
|
||||
});
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
helper.bindEventHandlers();
|
||||
|
||||
// Fill the services and providers list boxes.
|
||||
GlobalVariables.services.forEach(function(service) {
|
||||
GlobalVariables.services.forEach(function (service) {
|
||||
$('<div/>', {
|
||||
'class': 'checkbox',
|
||||
'html': [
|
||||
|
@ -89,7 +89,7 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
.appendTo('#provider-services');
|
||||
});
|
||||
|
||||
GlobalVariables.providers.forEach(function(provider) {
|
||||
GlobalVariables.providers.forEach(function (provider) {
|
||||
$('<div/>', {
|
||||
'class': 'checkbox',
|
||||
'html': [
|
||||
|
@ -159,7 +159,7 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
|
||||
$('#secretary-providers').empty();
|
||||
|
||||
GlobalVariables.providers.forEach(function(provider) {
|
||||
GlobalVariables.providers.forEach(function (provider) {
|
||||
$('<div/>', {
|
||||
'class': 'checkbox',
|
||||
'html': [
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
/**
|
||||
* Remove the previously registered event handlers.
|
||||
*/
|
||||
AdminsHelper.prototype.unbindEventHandlers = function() {
|
||||
AdminsHelper.prototype.unbindEventHandlers = function () {
|
||||
$('#admins')
|
||||
.off('submit', '#filter-admins form')
|
||||
.off('click', '#filter-admins .clear')
|
||||
|
|
|
@ -222,7 +222,7 @@
|
|||
/**
|
||||
* Remove the previously registered event handlers.
|
||||
*/
|
||||
ProvidersHelper.prototype.unbindEventHandlers = function() {
|
||||
ProvidersHelper.prototype.unbindEventHandlers = function () {
|
||||
$('#providers')
|
||||
.off('submit', '#filter-providers form')
|
||||
.off('click', '#filter-providers .clear')
|
||||
|
|
|
@ -199,7 +199,7 @@
|
|||
/**
|
||||
* Remove the previously registered event handlers.
|
||||
*/
|
||||
SecretariesHelper.prototype.unbindEventHandlers = function() {
|
||||
SecretariesHelper.prototype.unbindEventHandlers = function () {
|
||||
$('#secretaries')
|
||||
.off('submit', '#filter-secretaries form')
|
||||
.off('click', '#filter-secretaries .clear')
|
||||
|
|
|
@ -724,7 +724,7 @@ window.FrontendBook = window.FrontendBook || {};
|
|||
|
||||
$serviceDescription.empty();
|
||||
|
||||
var service = GlobalVariables.availableServices.find(function(availableService) {
|
||||
var service = GlobalVariables.availableServices.find(function (availableService) {
|
||||
return Number(availableService.id) === Number(serviceId);
|
||||
});
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
|||
// Default value of duration (in minutes).
|
||||
var serviceDuration = 15;
|
||||
|
||||
var service = GlobalVariables.availableServices.find(function(availableService) {
|
||||
var service = GlobalVariables.availableServices.find(function (availableService) {
|
||||
return Number(availableService.id) === Number(serviceId);
|
||||
});
|
||||
|
||||
|
@ -78,7 +78,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
|||
providerId = GlobalVariables.availableProviders[0].id; // Use first available provider.
|
||||
}
|
||||
|
||||
var provider = GlobalVariables.availableProviders.find(function(availableProvider) {
|
||||
var provider = GlobalVariables.availableProviders.find(function (availableProvider) {
|
||||
return Number(providerId) === Number(availableProvider.id);
|
||||
});
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
/**
|
||||
* Register global error handler.
|
||||
*/
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
$(document).ajaxError(function (event, jqxhr, settings, thrownError) {
|
||||
GeneralFunctions.ajaxFailureHandler(jqxhr, settings, thrownError);
|
||||
});
|
||||
|
@ -300,7 +300,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
});
|
||||
});
|
||||
|
||||
$(document).on('click', function() {
|
||||
$(document).on('click', function () {
|
||||
$element.popover('hide');
|
||||
});
|
||||
};
|
||||
|
@ -319,8 +319,8 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
|
||||
try {
|
||||
response = JSON.parse(jqXHR.responseText); // JSON response
|
||||
} catch(error) {
|
||||
response = { message: jqXHR.responseText }; // String response
|
||||
} catch (error) {
|
||||
response = {message: jqXHR.responseText}; // String response
|
||||
}
|
||||
|
||||
if (!response) {
|
||||
|
@ -496,9 +496,9 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
* @return {Object} Returns a sorted dictionary
|
||||
*/
|
||||
exports.sortWeekDictionary = function (weekDictionary, startDayId) {
|
||||
var sortedWeekDictionary={};
|
||||
var sortedWeekDictionary = {};
|
||||
|
||||
for (var i = startDayId; i < startDayId+7; i++) {
|
||||
for (var i = startDayId; i < startDayId + 7; i++) {
|
||||
var weekdayName = GeneralFunctions.getWeekdayName(i % 7);
|
||||
sortedWeekDictionary[weekdayName] = weekDictionary[weekdayName];
|
||||
}
|
||||
|
@ -623,7 +623,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
date = dayArray[2] + '-' + dayArray[0] + '-' + dayArray[1];
|
||||
break;
|
||||
case 'YMD':
|
||||
date = date.replace('/','-');
|
||||
date = date.replace('/', '-');
|
||||
break;
|
||||
default:
|
||||
throw new Error('Invalid date format setting provided:' + dateFormatSetting);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// https://tc39.github.io/ecma262/#sec-array.prototype.find
|
||||
if (!Array.prototype.find) {
|
||||
Object.defineProperty(Array.prototype, 'find', {
|
||||
value: function(predicate) {
|
||||
value: function (predicate) {
|
||||
// 1. Let O be ? ToObject(this value).
|
||||
if (this == null) {
|
||||
throw TypeError('"this" is null or not defined');
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue