Reformatted code files

This commit is contained in:
Alex Tselegidis 2020-12-09 14:17:45 +02:00
parent cc44f3e0c6
commit 8a68e97f94
116 changed files with 1252 additions and 1198 deletions

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
| ------------------------------------------------------------------- | -------------------------------------------------------------------

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
| ------------------------------------------------------------------- | -------------------------------------------------------------------

View file

@ -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 = [ $_doctypes = [
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',

View file

@ -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. // Add custom values by settings them to the $config array.
// Example: $config['smtp_host'] = 'smtp.gmail.com'; // Example: $config['smtp_host'] = 'smtp.gmail.com';

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
| ------------------------------------------------------------------- | -------------------------------------------------------------------

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
| ------------------------------------------------------------------------- | -------------------------------------------------------------------------

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View file

@ -1,5 +1,5 @@
<?php <?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. | Upload class to help identify allowed file types.
| |
*/ */
return array( return [
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'), 'hqx' => ['application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'],
'cpt' => 'application/mac-compactpro', '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'), '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' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'), 'bin' => ['application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'],
'dms' => 'application/octet-stream', 'dms' => 'application/octet-stream',
'lha' => 'application/octet-stream', 'lha' => 'application/octet-stream',
'lzh' => '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', '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', 'so' => 'application/octet-stream',
'sea' => 'application/octet-stream', 'sea' => 'application/octet-stream',
'dll' => 'application/octet-stream', 'dll' => 'application/octet-stream',
'oda' => 'application/oda', 'oda' => 'application/oda',
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'), 'pdf' => ['application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'],
'ai' => array('application/pdf', 'application/postscript'), 'ai' => ['application/pdf', 'application/postscript'],
'eps' => 'application/postscript', 'eps' => 'application/postscript',
'ps' => 'application/postscript', 'ps' => 'application/postscript',
'smi' => 'application/smil', 'smi' => 'application/smil',
'smil' => 'application/smil', 'smil' => 'application/smil',
'mif' => 'application/vnd.mif', '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'), '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' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'), 'ppt' => ['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'), 'pptx' => ['application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'],
'wbxml' => 'application/wbxml', 'wbxml' => 'application/wbxml',
'wmlc' => 'application/wmlc', 'wmlc' => 'application/wmlc',
'dcr' => 'application/x-director', 'dcr' => 'application/x-director',
@ -43,88 +43,88 @@ return array(
'gtar' => 'application/x-gtar', 'gtar' => 'application/x-gtar',
'gz' => 'application/x-gzip', 'gz' => 'application/x-gzip',
'gzip' => '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', 'php4' => 'application/x-httpd-php',
'php3' => 'application/x-httpd-php', 'php3' => 'application/x-httpd-php',
'phtml' => 'application/x-httpd-php', 'phtml' => 'application/x-httpd-php',
'phps' => 'application/x-httpd-php-source', 'phps' => 'application/x-httpd-php-source',
'js' => array('application/x-javascript', 'text/plain'), 'js' => ['application/x-javascript', 'text/plain'],
'swf' => 'application/x-shockwave-flash', 'swf' => 'application/x-shockwave-flash',
'sit' => 'application/x-stuffit', 'sit' => 'application/x-stuffit',
'tar' => 'application/x-tar', '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', 'z' => 'application/x-compress',
'xhtml' => 'application/xhtml+xml', 'xhtml' => 'application/xhtml+xml',
'xht' => 'application/xhtml+xml', 'xht' => 'application/xhtml+xml',
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'), 'zip' => ['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'), 'rar' => ['application/x-rar', 'application/rar', 'application/x-rar-compressed'],
'mid' => 'audio/midi', 'mid' => 'audio/midi',
'midi' => 'audio/midi', 'midi' => 'audio/midi',
'mpga' => 'audio/mpeg', 'mpga' => 'audio/mpeg',
'mp2' => 'audio/mpeg', 'mp2' => 'audio/mpeg',
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'), 'mp3' => ['audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'],
'aif' => array('audio/x-aiff', 'audio/aiff'), 'aif' => ['audio/x-aiff', 'audio/aiff'],
'aiff' => array('audio/x-aiff', 'audio/aiff'), 'aiff' => ['audio/x-aiff', 'audio/aiff'],
'aifc' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff',
'ram' => 'audio/x-pn-realaudio', 'ram' => 'audio/x-pn-realaudio',
'rm' => 'audio/x-pn-realaudio', 'rm' => 'audio/x-pn-realaudio',
'rpm' => 'audio/x-pn-realaudio-plugin', 'rpm' => 'audio/x-pn-realaudio-plugin',
'ra' => 'audio/x-realaudio', 'ra' => 'audio/x-realaudio',
'rv' => 'video/vnd.rn-realvideo', 'rv' => 'video/vnd.rn-realvideo',
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'), 'wav' => ['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'), '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', 'gif' => 'image/gif',
'jpeg' => array('image/jpeg', 'image/pjpeg'), 'jpeg' => ['image/jpeg', 'image/pjpeg'],
'jpg' => array('image/jpeg', 'image/pjpeg'), 'jpg' => ['image/jpeg', 'image/pjpeg'],
'jpe' => array('image/jpeg', 'image/pjpeg'), 'jpe' => ['image/jpeg', 'image/pjpeg'],
'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'jp2' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'j2k' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'jpf' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'jpg2' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'jpx' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'jpm' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'mj2' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'mjp2' => ['image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'],
'png' => array('image/png', 'image/x-png'), 'png' => ['image/png', 'image/x-png'],
'tiff' => 'image/tiff', 'tiff' => 'image/tiff',
'tif' => 'image/tiff', 'tif' => 'image/tiff',
'css' => array('text/css', 'text/plain'), 'css' => ['text/css', 'text/plain'],
'html' => array('text/html', 'text/plain'), 'html' => ['text/html', 'text/plain'],
'htm' => array('text/html', 'text/plain'), 'htm' => ['text/html', 'text/plain'],
'shtml' => array('text/html', 'text/plain'), 'shtml' => ['text/html', 'text/plain'],
'txt' => 'text/plain', 'txt' => 'text/plain',
'text' => 'text/plain', 'text' => 'text/plain',
'log' => array('text/plain', 'text/x-log'), 'log' => ['text/plain', 'text/x-log'],
'rtx' => 'text/richtext', 'rtx' => 'text/richtext',
'rtf' => 'text/rtf', 'rtf' => 'text/rtf',
'xml' => array('application/xml', 'text/xml', 'text/plain'), 'xml' => ['application/xml', 'text/xml', 'text/plain'],
'xsl' => array('application/xml', 'text/xsl', 'text/xml'), 'xsl' => ['application/xml', 'text/xsl', 'text/xml'],
'mpeg' => 'video/mpeg', 'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg', 'mpg' => 'video/mpeg',
'mpe' => 'video/mpeg', 'mpe' => 'video/mpeg',
'qt' => 'video/quicktime', 'qt' => 'video/quicktime',
'mov' => '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', 'movie' => 'video/x-sgi-movie',
'doc' => array('application/msword', 'application/vnd.ms-office'), 'doc' => ['application/msword', 'application/vnd.ms-office'],
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'), 'docx' => ['application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'],
'dot' => array('application/msword', 'application/vnd.ms-office'), 'dot' => ['application/msword', 'application/vnd.ms-office'],
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'), 'dotx' => ['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'), 'xlsx' => ['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'],
'word' => array('application/msword', 'application/octet-stream'), 'word' => ['application/msword', 'application/octet-stream'],
'xl' => 'application/excel', 'xl' => 'application/excel',
'eml' => 'message/rfc822', 'eml' => 'message/rfc822',
'json' => array('application/json', 'text/json'), 'json' => ['application/json', 'text/json'],
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'), 'pem' => ['application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'],
'p10' => array('application/x-pkcs10', 'application/pkcs10'), 'p10' => ['application/x-pkcs10', 'application/pkcs10'],
'p12' => 'application/x-pkcs12', 'p12' => 'application/x-pkcs12',
'p7a' => 'application/x-pkcs7-signature', 'p7a' => 'application/x-pkcs7-signature',
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), 'p7c' => ['application/pkcs7-mime', 'application/x-pkcs7-mime'],
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), 'p7m' => ['application/pkcs7-mime', 'application/x-pkcs7-mime'],
'p7r' => 'application/x-pkcs7-certreqresp', 'p7r' => 'application/x-pkcs7-certreqresp',
'p7s' => 'application/pkcs7-signature', 'p7s' => 'application/pkcs7-signature',
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'), 'crt' => ['application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'],
'crl' => array('application/pkix-crl', 'application/pkcs-crl'), 'crl' => ['application/pkix-crl', 'application/pkcs-crl'],
'der' => 'application/x-x509-ca-cert', 'der' => 'application/x-x509-ca-cert',
'kdb' => 'application/octet-stream', 'kdb' => 'application/octet-stream',
'pgp' => 'application/pgp', 'pgp' => 'application/pgp',
@ -132,12 +132,12 @@ return array(
'sst' => 'application/octet-stream', 'sst' => 'application/octet-stream',
'csr' => 'application/octet-stream', 'csr' => 'application/octet-stream',
'rsa' => 'application/x-pkcs7', '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', '3g2' => 'video/3gpp2',
'3gp' => array('video/3gp', 'video/3gpp'), '3gp' => ['video/3gp', 'video/3gpp'],
'mp4' => 'video/mp4', 'mp4' => 'video/mp4',
'm4a' => 'audio/x-m4a', 'm4a' => 'audio/x-m4a',
'f4v' => array('video/mp4', 'video/x-f4v'), 'f4v' => ['video/mp4', 'video/x-f4v'],
'flv' => 'video/x-flv', 'flv' => 'video/x-flv',
'webm' => 'video/webm', 'webm' => 'video/webm',
'aac' => 'audio/x-acc', 'aac' => 'audio/x-acc',
@ -145,26 +145,26 @@ return array(
'm3u' => 'text/plain', 'm3u' => 'text/plain',
'xspf' => 'application/xspf+xml', 'xspf' => 'application/xspf+xml',
'vlc' => 'application/videolan', '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', 'au' => 'audio/x-au',
'ac3' => 'audio/ac3', 'ac3' => 'audio/ac3',
'flac' => 'audio/x-flac', 'flac' => 'audio/x-flac',
'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'), 'ogg' => ['audio/ogg', 'video/ogg', 'application/ogg'],
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'), 'kmz' => ['application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'],
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'), 'kml' => ['application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'],
'ics' => 'text/calendar', 'ics' => 'text/calendar',
'ical' => 'text/calendar', 'ical' => 'text/calendar',
'zsh' => 'text/x-scriptzsh', 'zsh' => 'text/x-scriptzsh',
'7z' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'), '7z' => ['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'), '7zip' => ['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'), 'cdr' => ['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'), 'wma' => ['audio/x-ms-wma', 'video/x-ms-asf'],
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'), 'jar' => ['application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'],
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'), 'svg' => ['image/svg+xml', 'application/xml', 'text/xml'],
'vcf' => 'text/x-vcard', 'vcf' => 'text/x-vcard',
'srt' => array('text/srt', 'text/plain'), 'srt' => ['text/srt', 'text/plain'],
'vtt' => array('text/vtt', 'text/plain'), 'vtt' => ['text/vtt', 'text/plain'],
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'), 'ico' => ['image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'],
'odc' => 'application/vnd.oasis.opendocument.chart', 'odc' => 'application/vnd.oasis.opendocument.chart',
'otc' => 'application/vnd.oasis.opendocument.chart-template', 'otc' => 'application/vnd.oasis.opendocument.chart-template',
'odf' => 'application/vnd.oasis.opendocument.formula', 'odf' => 'application/vnd.oasis.opendocument.formula',
@ -181,4 +181,4 @@ return array(
'odm' => 'application/vnd.oasis.opendocument.text-master', 'odm' => 'application/vnd.oasis.opendocument.text-master',
'ott' => 'application/vnd.oasis.opendocument.text-template', 'ott' => 'application/vnd.oasis.opendocument.text-template',
'oth' => 'application/vnd.oasis.opendocument.text-web' 'oth' => 'application/vnd.oasis.opendocument.text-web'
); ];

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
| ------------------------------------------------------------------------- | -------------------------------------------------------------------------

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
| ------------------------------------------------------------------------- | -------------------------------------------------------------------------

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
| ------------------------------------------------------------------- | -------------------------------------------------------------------

View file

@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); <?php defined('BASEPATH') or exit('No direct script access allowed');
/* /*
| ------------------------------------------------------------------- | -------------------------------------------------------------------

View file

@ -52,7 +52,7 @@ class Backend extends EA_Controller {
*/ */
public function index($appointment_hash = '') 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)) 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_providers'] = $this->providers_model->get_available_providers();
$view['available_services'] = $this->services_model->get_available_services(); $view['available_services'] = $this->services_model->get_available_services();
$view['customers'] = $this->customers_model->get_batch(); $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(); $view['timezones'] = $this->timezones->to_array();
$this->set_user_data($view); $this->set_user_data($view);

View file

@ -14,7 +14,6 @@
use EA\Engine\Notifications\Email as EmailClient; use EA\Engine\Notifications\Email as EmailClient;
use EA\Engine\Types\Email; use EA\Engine\Types\Email;
use EA\Engine\Types\Text; use EA\Engine\Types\Text;
use EA\Engine\Types\Url;
/** /**
* Backend API Controller * Backend API Controller
@ -420,9 +419,9 @@ class Backend_api extends EA_Controller {
// Notify admins // Notify admins
$admins = $this->admins_model->get_batch(); $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; continue;
} }
@ -435,9 +434,9 @@ class Backend_api extends EA_Controller {
// Notify secretaries // Notify secretaries
$secretaries = $this->secretaries_model->get_batch(); $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; continue;
} }
@ -562,7 +561,7 @@ class Backend_api extends EA_Controller {
$limit = 1000; $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) foreach ($customers as &$customer)
{ {
@ -1319,7 +1318,7 @@ class Backend_api extends EA_Controller {
$result = $this->providers_model->delete($this->input->post('provider_id')); $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) catch (Exception $exception)
{ {
@ -1393,7 +1392,7 @@ class Backend_api extends EA_Controller {
$secretary_id = $this->secretaries_model->add($secretary); $secretary_id = $this->secretaries_model->add($secretary);
$response =[ $response = [
'status' => AJAX_SUCCESS, 'status' => AJAX_SUCCESS,
'id' => $secretary_id 'id' => $secretary_id
]; ];
@ -1427,7 +1426,7 @@ class Backend_api extends EA_Controller {
$result = $this->secretaries_model->delete($this->input->post('secretary_id')); $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) catch (Exception $exception)
{ {
@ -1605,7 +1604,7 @@ class Backend_api extends EA_Controller {
} }
else else
{ {
$response =AJAX_FAILURE; $response = AJAX_FAILURE;
} }
} }
catch (Exception $exception) catch (Exception $exception)
@ -1679,7 +1678,7 @@ class Backend_api extends EA_Controller {
$this->providers_model->set_setting('working_plan', $working_plan, $provider['id']); $this->providers_model->set_setting('working_plan', $working_plan, $provider['id']);
} }
$response =AJAX_SUCCESS; $response = AJAX_SUCCESS;
} }
catch (Exception $exception) catch (Exception $exception)
{ {

View file

@ -41,6 +41,22 @@ class Console extends EA_Controller {
$this->load->model('settings_model'); $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. * 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. * Create a backup file.
* *

View file

@ -29,67 +29,6 @@ class Google extends EA_Controller {
$this->load->model('providers_model'); $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. * Complete synchronization of appointments between Google Calendar and Easy!Appointments.
* *
@ -288,5 +227,66 @@ class Google extends EA_Controller {
->set_output(json_encode($response)); ->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.');
}
}
} }

View file

@ -74,7 +74,7 @@ class Installation extends EA_Controller {
$admin['timezone'] = 'UTC'; $admin['timezone'] = 'UTC';
$admin['settings']['username'] = $admin['username']; $admin['settings']['username'] = $admin['username'];
$admin['settings']['password'] = $admin['password']; $admin['settings']['password'] = $admin['password'];
$admin['settings']['notifications'] = true; $admin['settings']['notifications'] = TRUE;
$admin['settings']['calendar_view'] = CALENDAR_VIEW_DEFAULT; $admin['settings']['calendar_view'] = CALENDAR_VIEW_DEFAULT;
unset($admin['username'], $admin['password']); unset($admin['username'], $admin['password']);
$admin['id'] = $this->admins_model->add($admin); $admin['id'] = $this->admins_model->add($admin);

View file

@ -49,7 +49,7 @@ class Unavailabilities extends API_V1_Controller {
{ {
try try
{ {
$where = $id !== NULL ? ['id' => $id] : ['is_unavailable' => true]; $where = $id !== NULL ? ['id' => $id] : ['is_unavailable' => TRUE];
$unavailabilities = $this->appointments_model->get_batch($where); $unavailabilities = $this->appointments_model->get_batch($where);

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_invalid_connection_str'] = 'غير قادر على إيجاد إعدادات الإتصال بقواعد البيانات بناء على البيانات المرسلة.';
$lang['db_unable_to_connect'] = 'غير قادر على الإتصال بقواعد البيانات بناء على الإعدادات المقدمة.'; $lang['db_unable_to_connect'] = 'غير قادر على الإتصال بقواعد البيانات بناء على الإعدادات المقدمة.';

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_must_be_array'] = 'يجب تمرير مصفوفة إلى دالة التحقق من البريد الإلكتروني.';
$lang['email_invalid_address'] = 'عنوان بريد إلكتروني خاطئ: %s'; $lang['email_invalid_address'] = 'عنوان بريد إلكتروني خاطئ: %s';

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_none_found'] = "لا يوجد أي عمليات ترحيل.";
$lang['migration_not_found'] = "تعذر العثور على عملية الترحيل هذه."; $lang['migration_not_found'] = "تعذر العثور على عملية الترحيل هذه.";

View file

@ -35,7 +35,7 @@
* @since Version 1.0.0 * @since Version 1.0.0
* @filesource * @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_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.'; $lang['db_unable_to_connect'] = 'Se zadanými nastaveními se není možné připojit k databázovému serveru.';

View file

@ -35,7 +35,7 @@
* @since Version 1.0.0 * @since Version 1.0.0
* @filesource * @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_must_be_array'] = 'Metoda validace emailu musí být předána jako pole.';
$lang['email_invalid_address'] = 'Neplatná emailová adresa: %s'; $lang['email_invalid_address'] = 'Neplatná emailová adresa: %s';

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_none_found'] = 'Nebyla nalezena žádná migrace.';
$lang['migration_not_found'] = 'Migrace s číslem verze %s nebyla nalezena.'; $lang['migration_not_found'] = 'Migrace s číslem verze %s nebyla nalezena.';

View file

@ -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 // Czech
$lang['page_title'] = 'Rezervace schůzky s'; $lang['page_title'] = 'Rezervace schůzky s';
$lang['service_and_provider'] = 'Výběr služby & poskytovatele'; $lang['service_and_provider'] = 'Výběr služby & poskytovatele';

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_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.'; $lang['db_unable_to_connect'] = 'Kan ikke forbinde til din database server udfra de angivne indstillinger.';

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_must_be_array'] = 'Email valideringsmetoden kræver at modtage et array.';
$lang['email_invalid_address'] = 'Ugyldig email adresse: %s'; $lang['email_invalid_address'] = 'Ugyldig email adresse: %s';

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_none_found'] = 'Ingen migrationer blev fundet.';
$lang['migration_not_found'] = 'Ingen migrationer blev fundet med versionsnummeret: %s.'; $lang['migration_not_found'] = 'Ingen migrationer blev fundet med versionsnummeret: %s.';

View file

@ -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 // Danish
$lang['page_title'] = 'Book tid ved ...'; $lang['page_title'] = 'Book tid ved ...';
$lang['service_and_provider'] = 'Vælg tjeneste og leverandør'; $lang['service_and_provider'] = 'Vælg tjeneste og leverandør';

View file

@ -8,7 +8,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_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.'; $lang['db_unable_to_connect'] = 'Het lukt niet om een verbinding naar de database te maken met de opgegeven informatie.';

View file

@ -8,7 +8,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_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'; $lang['email_invalid_address'] = 'De opgegeven waarde is geen geldig e-mailadres: %s';

View file

@ -8,7 +8,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_none_found'] = 'Er is geen enkele migratie gevonden.';
$lang['migration_not_found'] = 'Een migratie met dit versienummer is onvindbaar. %s.'; $lang['migration_not_found'] = 'Een migratie met dit versienummer is onvindbaar. %s.';

View file

@ -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 // Dutch
$lang['page_title'] = 'Boek afspraak met'; $lang['page_title'] = 'Boek afspraak met';
$lang['service_and_provider'] = 'Kies een dienst en een medewerker'; $lang['service_and_provider'] = 'Kies een dienst en een medewerker';

View file

@ -6,7 +6,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_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."; $lang['db_unable_to_connect'] = "Impossible de se connecter à la base de données en utilisant les paramètres fournis.";

View file

@ -6,7 +6,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_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"; $lang['email_invalid_address'] = "Adresse email invalide : %s";

View file

@ -6,7 +6,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_none_found'] = "Aucune migration trouvée.";
$lang['migration_not_found'] = "Aucune migration n'a été trouvée avec le numéro de version : %d."; $lang['migration_not_found'] = "Aucune migration n'a été trouvée avec le numéro de version : %d.";

View file

@ -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 // French
$lang['page_title'] = 'Prendre rendez-vous avec ...'; $lang['page_title'] = 'Prendre rendez-vous avec ...';
$lang['service_and_provider'] = 'Choisissez une prestation et un exécutant'; $lang['service_and_provider'] = 'Choisissez une prestation et un exécutant';

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_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.'; $lang['db_unable_to_connect'] = 'Mit den vorliegenden Einstellungen ist keine Verbindung zum Datenbank-Server möglich.';

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_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'; $lang['email_invalid_address'] = 'Ungültige E-Mail-Adresse: %s';

View file

@ -7,7 +7,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_none_found'] = 'Es wurde keine Migration gefunden.';
$lang['migration_not_found'] = 'Die Migration mit der Versionsnummer %s wurde nicht gefunden.'; $lang['migration_not_found'] = 'Die Migration mit der Versionsnummer %s wurde nicht gefunden.';

View file

@ -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 // German
$lang['page_title'] = 'Vereinbaren Sie einen Termin mit'; $lang['page_title'] = 'Vereinbaren Sie einen Termin mit';
$lang['service_and_provider'] = 'Dienstleistung & Anbieter'; $lang['service_and_provider'] = 'Dienstleistung & Anbieter';

View file

@ -8,7 +8,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_invalid_connection_str'] = 'Αδυναμία να ρυθμιστεί η βάση δεδομένων με τα στοιχεία σύνδεσης που υποβάλλονται.';
$lang['db_unable_to_connect'] = 'Δεν είναι δυνατή η σύνδεση με την βάση δεδομένων σας, παρακαλώ ελέγξτε τα στοιχεία σύνδεσης.'; $lang['db_unable_to_connect'] = 'Δεν είναι δυνατή η σύνδεση με την βάση δεδομένων σας, παρακαλώ ελέγξτε τα στοιχεία σύνδεσης.';

View file

@ -8,7 +8,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_must_be_array'] = 'Η μέθοδος email validation πρέπει να περάσει απο έναν πίνακα.';
$lang['email_invalid_address'] = 'Μη έγκυρη διεύθυνση e-mail: %s'; $lang['email_invalid_address'] = 'Μη έγκυρη διεύθυνση e-mail: %s';

View file

@ -8,7 +8,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_none_found'] = 'Δεν βρέθηκαν migrations.';
$lang['migration_not_found'] = 'Όχι migrations, θα μπορούσε να βρεθεί με τον αριθμό έκδοσης: %s.'; $lang['migration_not_found'] = 'Όχι migrations, θα μπορούσε να βρεθεί με τον αριθμό έκδοσης: %s.';

View file

@ -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 // Greek
$lang['page_title'] = 'Κράτηση Ραντεβού Με'; $lang['page_title'] = 'Κράτηση Ραντεβού Με';
$lang['service_and_provider'] = 'Υπηρεσία & Πάροχος'; $lang['service_and_provider'] = 'Υπηρεσία & Πάροχος';

View file

@ -35,7 +35,7 @@
* @since Version 1.0.0 * @since Version 1.0.0
* @filesource * @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_invalid_connection_str'] = 'לא ניתן לקבוע את הגדרות מסד הנתונים בהתבסס על מחרוזת החיבור שהגשת.';
$lang['db_unable_to_connect'] = 'לא ניתן להתחבר לשרת מסד הנתונים שלך באמצעות ההגדרות שסופקו.'; $lang['db_unable_to_connect'] = 'לא ניתן להתחבר לשרת מסד הנתונים שלך באמצעות ההגדרות שסופקו.';

View file

@ -35,7 +35,7 @@
* @since Version 1.0.0 * @since Version 1.0.0
* @filesource * @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_must_be_array'] = 'שיטת אימות הדוא"ל חחיבת להיות במערך.';
$lang['email_invalid_address'] = 'כתובת דוא"ל לא תקנית: %s'; $lang['email_invalid_address'] = 'כתובת דוא"ל לא תקנית: %s';

View file

@ -8,7 +8,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_none_found'] = 'מיזוג לא נמצא.';
$lang['migration_not_found'] = 'לא נמצאה מיזוג למספר הגרסה: %s.'; $lang['migration_not_found'] = 'לא נמצאה מיזוג למספר הגרסה: %s.';

View file

@ -8,7 +8,7 @@
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_invalid_connection_str'] = 'मैं कनेक्शन डेटा का उपयोग कर डेटाबेस के लिए सेटिंग्स का निर्धारण करने में असमर्थ हूँ।';
$lang['db_unable_to_connect'] = 'मैं निर्दिष्ट जानकारी के साथ डेटाबेस से कनेक्ट करने में असमर्थ हूँ।'; $lang['db_unable_to_connect'] = 'मैं निर्दिष्ट जानकारी के साथ डेटाबेस से कनेक्ट करने में असमर्थ हूँ।';
$lang['db_unable_to_select'] = 'मैं डेटाबेस का उपयोग करने में असमर्थ हूँ:% s'; $lang['db_unable_to_select'] = 'मैं डेटाबेस का उपयोग करने में असमर्थ हूँ:% s';

View file

@ -1,14 +1,14 @@
<?php <?php
/** /**
* System messages translation for CodeIgniter(tm) * System messages translation for CodeIgniter(tm)
* *
* @author CodeIgniter community * @author CodeIgniter community
* @copyright Copyright (c) 2014-2018, British Columbia Institute of Technology (http://bcit.ca/) * @copyright Copyright (c) 2014-2018, British Columbia Institute of Technology (http://bcit.ca/)
* @copyright Pieter Krul * @copyright Pieter Krul
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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'] = 'ईमेल सत्यापन विधि को सरणी (array) भेजी जानी चाहिए।'; $lang['email_must_be_array'] = 'ईमेल सत्यापन विधि को सरणी (array) भेजी जानी चाहिए।';
$lang['email_invalid_address'] = 'अवैध ईमेल पता है:% s'; $lang['email_invalid_address'] = 'अवैध ईमेल पता है:% s';
$lang['email_attachment_missing'] = '% S: निम्नलिखित ईमेल संलग्नक (अटैचमेंट) पता लगाने में असमर्थ'; $lang['email_attachment_missing'] = '% S: निम्नलिखित ईमेल संलग्नक (अटैचमेंट) पता लगाने में असमर्थ';

View file

@ -1,13 +1,13 @@
<?php <?php
/** /**
* System messages translation for CodeIgniter(tm) * System messages translation for CodeIgniter(tm)
* *
* @author CodeIgniter community * @author CodeIgniter community
* @copyright Copyright (c) 2014-2018, British Columbia Institute of Technology (http://bcit.ca/) * @copyright Copyright (c) 2014-2018, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://opensource.org/licenses/MIT MIT License * @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com * @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_none_found'] = 'कोई माइग्रेशन नहीं पाए गए।';
$lang['migration_not_found'] = 'कोई माइग्रेशन वर्जन नंबर के साथनहीं नहीं पाया जा सका:% s।'; $lang['migration_not_found'] = 'कोई माइग्रेशन वर्जन नंबर के साथनहीं नहीं पाया जा सका:% s।';

View file

@ -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 // Hindi
$lang['page_title'] = 'नअपॉइंटमेंट बुक करें'; $lang['page_title'] = 'नअपॉइंटमेंट बुक करें';
$lang['service_and_provider'] = 'प्रदान करनेवाला और सेवा का चयन करें'; $lang['service_and_provider'] = 'प्रदान करनेवाला और सेवा का चयन करें';

View file

@ -32,17 +32,21 @@
<span id="company-name"><?= $company_name ?></span> <span id="company-name"><?= $company_name ?></span>
<div id="steps"> <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> <strong>1</strong>
</div> </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> <strong>2</strong>
</div> </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> <strong>3</strong>
</div> </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> <strong>4</strong>
</div> </div>
</div> </div>

View file

@ -17,11 +17,11 @@
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script> <script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
</head> </head>
<body> <body>
<div id="main" class="container"> <div id="main" class="container">
<div class="row wrapper"> <div class="row wrapper">
<div id="success-frame" class="col-12 border my-auto frame-container"> <div id="success-frame" class="col-12 border my-auto frame-container">
<div> <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>
<div> <div>
@ -42,7 +42,7 @@
<?= lang('go_to_booking_page') ?> <?= lang('go_to_booking_page') ?>
</a> </a>
<?php if(config('google_sync_feature')): ?> <?php if (config('google_sync_feature')): ?>
<button id="add-to-google-calendar" class="btn btn-primary"> <button id="add-to-google-calendar" class="btn btn-primary">
<i class="fas fa-plus"></i> <i class="fas fa-plus"></i>
<?= lang('add_to_google_calendar') ?> <?= lang('add_to_google_calendar') ?>
@ -53,7 +53,7 @@
<div class="m-2"> <div class="m-2">
<h4><?= lang('unexpected_issues') ?></h4> <h4><?= lang('unexpected_issues') ?></h4>
<?php foreach($exceptions as $exception): ?> <?php foreach ($exceptions as $exception): ?>
<?= exceptionToHtml($exception) ?> <?= exceptionToHtml($exception) ?>
<?php endforeach ?> <?php endforeach ?>
</div> </div>
@ -68,14 +68,14 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script src="<?= base_url('assets/ext/jquery/jquery.min.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/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
<script src="<?= base_url('assets/ext/datejs/date.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="https://apis.google.com/js/client.js"></script>
<script> <script>
var GlobalVariables = { var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>, csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
appointmentData: <?= json_encode($appointment_data) ?>, appointmentData: <?= json_encode($appointment_data) ?>,
@ -88,12 +88,12 @@
}; };
var EALang = <?= json_encode($this->lang->language) ?>; 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/frontend_book_success.js') ?>"></script>
<script src="<?= asset_url('assets/js/polyfill.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/general_functions.js') ?>"></script>
<?php google_analytics_script() ?> <?php google_analytics_script() ?>
</body> </body>
</html> </html>

View file

@ -26,7 +26,7 @@
</head> </head>
<body> <body>
<div id="main" class="container"> <div id="main" class="container">
<div class="row wrapper"> <div class="row wrapper">
<div id="message-frame" class="col-12 border my-auto frame-container"> <div id="message-frame" class="col-12 border my-auto frame-container">
<div> <div>
@ -40,7 +40,7 @@
<?php if (isset($exceptions) && config('debug')): ?> <?php if (isset($exceptions) && config('debug')): ?>
<div> <div>
<h4><?= lang('unexpected_issues') ?></h4> <h4><?= lang('unexpected_issues') ?></h4>
<?php foreach($exceptions as $exception): ?> <?php foreach ($exceptions as $exception): ?>
<?= exceptionToHtml($exception) ?> <?= exceptionToHtml($exception) ?>
<?php endforeach ?> <?php endforeach ?>
</div> </div>
@ -55,8 +55,8 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<?php google_analytics_script() ?> <?php google_analytics_script() ?>
</body> </body>
</html> </html>

View file

@ -3,7 +3,8 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h4 class="modal-title"><?= lang('privacy_policy') ?></h4> <h4 class="modal-title"><?= lang('privacy_policy') ?></h4>
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span>
</button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p><?= $privacy_policy_content ?></p> <p><?= $privacy_policy_content ?></p>

View file

@ -3,7 +3,8 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h4 class="modal-title"><?= lang('terms_and_conditions') ?></h4> <h4 class="modal-title"><?= lang('terms_and_conditions') ?></h4>
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span>
</button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p><?= $terms_and_conditions_content ?></p> <p><?= $terms_and_conditions_content ?></p>

View file

@ -91,18 +91,19 @@
</div> </div>
<?php endif ?> <?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> <i class="fas fa-sync-alt"></i>
</button> </button>
<?php if($calendar_view === 'default'): ?> <?php if ($calendar_view === 'default'): ?>
<a class="btn btn-light" href="<?= site_url('backend?view=table') ?>" <a class="btn btn-light" href="<?= site_url('backend?view=table') ?>"
data-tippy-content="<?= lang('table') ?>"> data-tippy-content="<?= lang('table') ?>">
<i class="fas fa-table"></i> <i class="fas fa-table"></i>
</a> </a>
<?php endif ?> <?php endif ?>
<?php if($calendar_view === 'table'): ?> <?php if ($calendar_view === 'table'): ?>
<a class="btn btn-light" href="<?= site_url('backend?view=default') ?>" <a class="btn btn-light" href="<?= site_url('backend?view=default') ?>"
data-tippy-content="<?= lang('default') ?>"> data-tippy-content="<?= lang('default') ?>">
<i class="fas fa-calendar-alt"></i> <i class="fas fa-calendar-alt"></i>
@ -325,7 +326,8 @@
<span class="text-danger">*</span> <span class="text-danger">*</span>
<?php endif ?> <?php endif ?>
</label> </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> </div>
<div class="col-12 col-sm-6"> <div class="col-12 col-sm-6">

View file

@ -12,7 +12,7 @@
baseUrl: <?= json_encode($base_url) ?>, baseUrl: <?= json_encode($base_url) ?>,
customers: <?= json_encode($customers) ?>, customers: <?= json_encode($customers) ?>,
timezones: <?= json_encode($timezones) ?>, timezones: <?= json_encode($timezones) ?>,
user : { user: {
id: <?= $user_id ?>, id: <?= $user_id ?>,
email: <?= json_encode($user_email) ?>, email: <?= json_encode($user_email) ?>,
timezone: <?= json_encode($timezone) ?>, timezone: <?= json_encode($timezone) ?>,
@ -21,7 +21,7 @@
} }
}; };
$(function() { $(function () {
BackendCustomers.initialize(true); BackendCustomers.initialize(true);
}); });
</script> </script>
@ -35,10 +35,12 @@
<div class="input-group-addon"> <div class="input-group-addon">
<div> <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> <i class="fas fa-search"></i>
</button> </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> <i class="fas fa-redo-alt"></i>
</button> </button>
</div> </div>

View file

@ -19,7 +19,7 @@
} }
}; };
$(function() { $(function () {
BackendServices.initialize(true); BackendServices.initialize(true);
}); });
</script> </script>
@ -51,10 +51,12 @@
<div class="input-group-addon"> <div class="input-group-addon">
<div> <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> <i class="fas fa-search"></i>
</button> </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> <i class="fas fa-redo-alt"></i>
</button> </button>
</div> </div>
@ -192,10 +194,12 @@
<div class="input-group-addon"> <div class="input-group-addon">
<div> <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> <i class="fas fa-search"></i>
</button> </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> <i class="fas fa-redo-alt"></i>
</button> </button>
</div> </div>

View file

@ -68,10 +68,12 @@
<div class="input-group-addon"> <div class="input-group-addon">
<div> <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> <i class="fas fa-search"></i>
</button> </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> <i class="fas fa-redo-alt"></i>
</button> </button>
</div> </div>
@ -374,10 +376,12 @@
<span class="input-group-addon"> <span class="input-group-addon">
<div> <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> <i class="fas fa-search"></i>
</button> </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> <i class="fas fa-redo-alt"></i>
</button> </button>
</div> </div>
@ -580,10 +584,12 @@
<span class="input-group-addon"> <span class="input-group-addon">
<div> <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> <i class="fas fa-search"></i>
</button> </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> <i class="fas fa-redo-alt"></i>
</button> </button>
</div> </div>

View file

@ -51,7 +51,8 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal"><?= lang('cancel') ?></button> <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> </div>
</div> </div>

View file

@ -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"; echo "\nERROR: ", $heading, "\n\n", $message, "\n\n";

View file

@ -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"; echo "\nDatabase error: ", $heading, "\n\n", $message, "\n\n";

View file

@ -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 An uncaught Exception was encountered
@ -7,7 +7,7 @@ Message: <?= $message, "\n" ?>
Filename: <?= $exception->getFile(), "\n" ?> Filename: <?= $exception->getFile(), "\n" ?>
Line Number: <?= $exception->getLine() ?> 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: Backtrace:
<?php foreach ($exception->getTrace() as $error): ?> <?php foreach ($exception->getTrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> <?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>

View file

@ -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"; echo "\nERROR: ", $heading, "\n\n", $message, "\n\n";

View file

@ -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 A PHP Error was encountered
@ -7,7 +7,7 @@ Message: <?= $message, "\n" ?>
Filename: <?= $filepath, "\n" ?> Filename: <?= $filepath, "\n" ?>
Line Number: <?= $line ?> Line Number: <?= $line ?>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === true): ?> <?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
Backtrace: Backtrace:
<?php foreach (debug_backtrace() as $error): ?> <?php foreach (debug_backtrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> <?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>

View file

@ -1,27 +1,38 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>404 Page Not Found</title> <title>404 Page Not Found</title>
<style type="text/css"> <style type="text/css">
::selection{ background-color: #E13300; color: white; } ::selection {
::moz-selection{ background-color: #E13300; color: white; } background-color: #E13300;
::webkit-selection{ background-color: #E13300; color: white; } color: white;
}
body { ::moz-selection {
background-color: #E13300;
color: white;
}
::webkit-selection {
background-color: #E13300;
color: white;
}
body {
background-color: #fff; background-color: #fff;
margin: 40px; margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif; font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155; color: #4F5155;
} }
a { a {
color: #003399; color: #003399;
background-color: transparent; background-color: transparent;
font-weight: normal; font-weight: normal;
} }
h1 { h1 {
color: #444; color: #444;
background-color: transparent; background-color: transparent;
border-bottom: 1px solid #D0D0D0; border-bottom: 1px solid #D0D0D0;
@ -29,9 +40,9 @@ h1 {
font-weight: normal; font-weight: normal;
margin: 0 0 14px 0; margin: 0 0 14px 0;
padding: 14px 15px 10px 15px; padding: 14px 15px 10px 15px;
} }
code { code {
font-family: Consolas, Monaco, Courier New, Courier, monospace; font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px; font-size: 12px;
background-color: #f9f9f9; background-color: #f9f9f9;
@ -40,23 +51,23 @@ code {
display: block; display: block;
margin: 14px 0 14px 0; margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px; padding: 12px 10px 12px 10px;
} }
#container { #container {
margin: 10px; margin: 10px;
border: 1px solid #D0D0D0; border: 1px solid #D0D0D0;
-webkit-box-shadow: 0 0 8px #D0D0D0; -webkit-box-shadow: 0 0 8px #D0D0D0;
} }
p { p {
margin: 12px 15px 12px 15px; margin: 12px 15px 12px 15px;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="container"> <div id="container">
<h1><?= $heading ?></h1> <h1><?= $heading ?></h1>
<?= $message ?> <?= $message ?>
</div> </div>
</body> </body>
</html> </html>

View file

@ -1,27 +1,38 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Database Error</title> <title>Database Error</title>
<style type="text/css"> <style type="text/css">
::selection{ background-color: #E13300; color: white; } ::selection {
::moz-selection{ background-color: #E13300; color: white; } background-color: #E13300;
::webkit-selection{ background-color: #E13300; color: white; } color: white;
}
body { ::moz-selection {
background-color: #E13300;
color: white;
}
::webkit-selection {
background-color: #E13300;
color: white;
}
body {
background-color: #fff; background-color: #fff;
margin: 40px; margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif; font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155; color: #4F5155;
} }
a { a {
color: #003399; color: #003399;
background-color: transparent; background-color: transparent;
font-weight: normal; font-weight: normal;
} }
h1 { h1 {
color: #444; color: #444;
background-color: transparent; background-color: transparent;
border-bottom: 1px solid #D0D0D0; border-bottom: 1px solid #D0D0D0;
@ -29,9 +40,9 @@ h1 {
font-weight: normal; font-weight: normal;
margin: 0 0 14px 0; margin: 0 0 14px 0;
padding: 14px 15px 10px 15px; padding: 14px 15px 10px 15px;
} }
code { code {
font-family: Consolas, Monaco, Courier New, Courier, monospace; font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px; font-size: 12px;
background-color: #f9f9f9; background-color: #f9f9f9;
@ -40,23 +51,23 @@ code {
display: block; display: block;
margin: 14px 0 14px 0; margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px; padding: 12px 10px 12px 10px;
} }
#container { #container {
margin: 10px; margin: 10px;
border: 1px solid #D0D0D0; border: 1px solid #D0D0D0;
-webkit-box-shadow: 0 0 8px #D0D0D0; -webkit-box-shadow: 0 0 8px #D0D0D0;
} }
p { p {
margin: 12px 15px 12px 15px; margin: 12px 15px 12px 15px;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="container"> <div id="container">
<h1><?= $heading ?></h1> <h1><?= $heading ?></h1>
<?= $message ?> <?= $message ?>
</div> </div>
</body> </body>
</html> </html>

View file

@ -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;"> <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
@ -9,7 +9,7 @@
<p>Filename: <?= $exception->getFile() ?></p> <p>Filename: <?= $exception->getFile() ?></p>
<p>Line Number: <?= $exception->getLine() ?></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> <p>Backtrace:</p>

View file

@ -1,27 +1,38 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Error</title> <title>Error</title>
<style type="text/css"> <style type="text/css">
::selection{ background-color: #E13300; color: white; } ::selection {
::moz-selection{ background-color: #E13300; color: white; } background-color: #E13300;
::webkit-selection{ background-color: #E13300; color: white; } color: white;
}
body { ::moz-selection {
background-color: #E13300;
color: white;
}
::webkit-selection {
background-color: #E13300;
color: white;
}
body {
background-color: #fff; background-color: #fff;
margin: 40px; margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif; font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155; color: #4F5155;
} }
a { a {
color: #003399; color: #003399;
background-color: transparent; background-color: transparent;
font-weight: normal; font-weight: normal;
} }
h1 { h1 {
color: #444; color: #444;
background-color: transparent; background-color: transparent;
border-bottom: 1px solid #D0D0D0; border-bottom: 1px solid #D0D0D0;
@ -29,9 +40,9 @@ h1 {
font-weight: normal; font-weight: normal;
margin: 0 0 14px 0; margin: 0 0 14px 0;
padding: 14px 15px 10px 15px; padding: 14px 15px 10px 15px;
} }
code { code {
font-family: Consolas, Monaco, Courier New, Courier, monospace; font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px; font-size: 12px;
background-color: #f9f9f9; background-color: #f9f9f9;
@ -40,23 +51,23 @@ code {
display: block; display: block;
margin: 14px 0 14px 0; margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px; padding: 12px 10px 12px 10px;
} }
#container { #container {
margin: 10px; margin: 10px;
border: 1px solid #D0D0D0; border: 1px solid #D0D0D0;
-webkit-box-shadow: 0 0 8px #D0D0D0; -webkit-box-shadow: 0 0 8px #D0D0D0;
} }
p { p {
margin: 12px 15px 12px 15px; margin: 12px 15px 12px 15px;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="container"> <div id="container">
<h1><?= $heading ?></h1> <h1><?= $heading ?></h1>
<?= $message ?> <?= $message ?>
</div> </div>
</body> </body>
</html> </html>

View file

@ -28,7 +28,7 @@
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script> <script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
</head> </head>
<body> <body>
<div id="message-frame" class="frame-container"> <div id="message-frame" class="frame-container">
<h3><?= lang('page_not_found') <h3><?= lang('page_not_found')
. ' - ' . lang('error') . ' 404' ?></h3> . ' - ' . lang('error') . ' 404' ?></h3>
<p> <p>
@ -51,8 +51,8 @@
<a href="https://easyappointments.org">Easy!Appointments</a> <a href="https://easyappointments.org">Easy!Appointments</a>
</small> </small>
</div> </div>
</div> </div>
<?php google_analytics_script() ?> <?php google_analytics_script() ?>
</body> </body>
</html> </html>

View file

@ -7,22 +7,22 @@
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/ext/bootstrap/css/bootstrap.min.css') ?>"> <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="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/installation.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>"> <link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
</head> </head>
<body> <body>
<div id="loading" class="d-none"> <div id="loading" class="d-none">
<img src="<?= base_url('assets/img/loading.gif') ?>"> <img src="<?= base_url('assets/img/loading.gif') ?>">
</div> </div>
<header> <header>
<div class="container"> <div class="container">
<h1 class="page-title">Easy!Appointments Installation</h1> <h1 class="page-title">Easy!Appointments Installation</h1>
</div> </div>
</header> </header>
<div class="content container"> <div class="content container">
<div class="welcome"> <div class="welcome">
<h3>Welcome to the Easy!Appointments installation page.</h3> <h3>Welcome to the Easy!Appointments installation page.</h3>
<p> <p>
@ -48,37 +48,37 @@
<div class="form-group"> <div class="form-group">
<label for="first-name" class="control-label">First Name</label> <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>
<div class="form-group"> <div class="form-group">
<label for="last-name" class="control-label">Last Name</label> <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>
<div class="form-group"> <div class="form-group">
<label for="email" class="control-label">Email</label> <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>
<div class="form-group"> <div class="form-group">
<label for="phone-number" class="control-label">Phone Number</label> <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>
<div class="form-group"> <div class="form-group">
<label for="username" class="control-label">Username</label> <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>
<div class="form-group"> <div class="form-group">
<label for="password" class="control-label">Password</label> <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>
<div class="form-group"> <div class="form-group">
<label for="retype-password" class="control-label">Retype Password</label> <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>
</div> </div>
@ -87,17 +87,17 @@
<div class="form-group"> <div class="form-group">
<label for="company-name" class="control-label">Company Name</label> <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>
<div class="form-group"> <div class="form-group">
<label for="company-email" class="control-label">Company Email</label> <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>
<div class="form-group"> <div class="form-group">
<label for="company-link" class="control-label">Company Link</label> <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> </div>
</div> </div>
@ -125,28 +125,29 @@
<button type="button" id="install" class="btn btn-success btn-large"> <button type="button" id="install" class="btn btn-success btn-large">
<i class="icon-white icon-ok mr-2"></i> <i class="icon-white icon-ok mr-2"></i>
Install Easy!Appointments</button> Install Easy!Appointments
</div> </button>
</div>
<footer> <footer>
Powered by <a href="https://easyappointments.org">Easy!Appointments</a> Powered by <a href="https://easyappointments.org">Easy!Appointments</a>
</footer> </footer>
<script> <script>
var GlobalVariables = { var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>, csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
baseUrl: <?= json_encode(config('base_url')) ?> baseUrl: <?= json_encode(config('base_url')) ?>
}; };
var EALang = <?= json_encode($this->lang->language) ?>; 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/jquery.min.js') ?>"></script>
<script src="<?= asset_url('assets/ext/jquery-ui/jquery-ui.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/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
<script src="<?= asset_url('assets/ext/datejs/date.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/polyfill.js') ?>"></script>
<script src="<?= asset_url('assets/js/general_functions.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/js/installation.js') ?>"></script>
</body> </body>
</html> </html>

View file

@ -69,6 +69,6 @@
</footer> </footer>
<script src="<?= asset_url('assets/ext/fontawesome/js/fontawesome.min.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/ext/fontawesome/js/solid.min.js') ?>"></script>
</body> </body>
</html> </html>

View file

@ -33,7 +33,7 @@
<script src="<?= asset_url('assets/ext/datejs/date.min.js') ?>"></script> <script src="<?= asset_url('assets/ext/datejs/date.min.js') ?>"></script>
</head> </head>
<body> <body>
<div id="forgot-password-frame" class="frame-container"> <div id="forgot-password-frame" class="frame-container">
<h2><?= lang('forgot_your_password') ?></h2> <h2><?= lang('forgot_your_password') ?></h2>
<p><?= lang('type_username_and_email_for_new_password') ?></p> <p><?= lang('type_username_and_email_for_new_password') ?></p>
<hr> <hr>
@ -41,11 +41,11 @@
<form> <form>
<div class="form-group"> <div class="form-group">
<label for="username"><?= lang('username') ?></label> <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>
<div class="form-group"> <div class="form-group">
<label for="email"><?= lang('email') ?></label> <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> </div>
<br> <br>
@ -65,11 +65,11 @@
<a href="https://easyappointments.org">Easy!Appointments</a> <a href="https://easyappointments.org">Easy!Appointments</a>
</small> </small>
</div> </div>
</div> </div>
<script src="<?= asset_url('assets/ext/fontawesome/js/fontawesome.min.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/ext/fontawesome/js/solid.min.js') ?>"></script>
<script src="<?= asset_url('assets/js/polyfill.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/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/forgot_password.js') ?>"></script> <script src="<?= asset_url('assets/js/forgot_password.js') ?>"></script>
</body> </body>
</html> </html>

View file

@ -33,13 +33,13 @@
var availableLanguages = <?= json_encode(config('available_languages')) ?>; var availableLanguages = <?= json_encode(config('available_languages')) ?>;
$(function() { $(function () {
GeneralFunctions.enableLanguageSelection($('#select-language')); GeneralFunctions.enableLanguageSelection($('#select-language'));
}); });
</script> </script>
</head> </head>
<body> <body>
<div id="login-frame" class="frame-container"> <div id="login-frame" class="frame-container">
<h2><?= lang('backend_section') ?></h2> <h2><?= lang('backend_section') ?></h2>
<p><?= lang('you_need_to_login') ?></p> <p><?= lang('you_need_to_login') ?></p>
<hr> <hr>
@ -49,13 +49,13 @@
<label for="username"><?= lang('username') ?></label> <label for="username"><?= lang('username') ?></label>
<input type="text" id="username" <input type="text" id="username"
placeholder="<?= lang('enter_username_here') ?>" placeholder="<?= lang('enter_username_here') ?>"
class="form-control" /> class="form-control"/>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="password"><?= lang('password') ?></label> <label for="password"><?= lang('password') ?></label>
<input type="password" id="password" <input type="password" id="password"
placeholder="<?= lang('enter_password_here') ?>" placeholder="<?= lang('enter_password_here') ?>"
class="form-control" /> class="form-control"/>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -79,12 +79,12 @@
</small> </small>
</div> </div>
</form> </form>
</div> </div>
<script src="<?= asset_url('assets/ext/fontawesome/js/fontawesome.min.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/ext/fontawesome/js/solid.min.js') ?>"></script>
<script src="<?= asset_url('assets/js/polyfill.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/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/login.js') ?>"></script> <script src="<?= asset_url('assets/js/login.js') ?>"></script>
</body> </body>
</html> </html>

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#35A768"> <meta name="theme-color" content="#35A768">
@ -25,7 +25,7 @@
<script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script> <script src="<?= asset_url('assets/ext/fontawesome/js/solid.min.js') ?>"></script>
</head> </head>
<body> <body>
<div id="logout-frame" class="frame-container"> <div id="logout-frame" class="frame-container">
<h3><?= lang('log_out') ?></h3> <h3><?= lang('log_out') ?></h3>
<p> <p>
<?= lang('logout_success') ?> <?= lang('logout_success') ?>
@ -49,6 +49,6 @@
<a href="https://easyappointments.org">Easy!Appointments</a> <a href="https://easyappointments.org">Easy!Appointments</a>
</small> </small>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View file

@ -19,7 +19,7 @@
<script src="<?= asset_url('assets/ext/bootstrap/js/bootstrap.bundle.min.js') ?>"></script> <script src="<?= asset_url('assets/ext/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
</head> </head>
<body> <body>
<div id="no-priv-frame" class="frame-container"> <div id="no-priv-frame" class="frame-container">
<h3><?= lang('no_privileges') ?></h3> <h3><?= lang('no_privileges') ?></h3>
<p> <p>
<?= lang('no_privileges_message') ?> <?= lang('no_privileges_message') ?>
@ -38,6 +38,6 @@
<a href="https://easyappointments.org">Easy!Appointments</a> <a href="https://easyappointments.org">Easy!Appointments</a>
</small> </small>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View file

@ -498,7 +498,7 @@ body .form-horizontal .controls {
#calendar .select2-container--default.select2-container--focus .select2-selection--multiple { #calendar .select2-container--default.select2-container--focus .select2-selection--multiple {
border-color: #80bdff; border-color: #80bdff;
outline: 0; 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 { #calendar .select2-container--default .select2-selection--multiple .select2-selection__choice {

View file

@ -18,7 +18,7 @@ body {
margin-right: 10px; margin-right: 10px;
} }
@media(max-width: 640px) { @media (max-width: 640px) {
body { body {
display: block; display: block;
} }

View file

@ -18,7 +18,7 @@ body {
margin-left: 20px; margin-left: 20px;
} }
@media(max-width: 640px) { @media (max-width: 640px) {
#forgot-password-frame { #forgot-password-frame {
width: 100%; width: 100%;
padding: 20px; padding: 20px;

View file

@ -398,7 +398,7 @@ body .popover {
body .popover-body strong { body .popover-body strong {
min-width: 90px; min-width: 90px;
display:inline-block; display: inline-block;
} }
body .popover-body button { body .popover-body button {

View file

@ -14,7 +14,7 @@ body {
padding: 70px; padding: 70px;
} }
@media(max-width: 640px) { @media (max-width: 640px) {
#login-frame { #login-frame {
width: 100%; width: 100%;
padding: 20px; padding: 20px;

View file

@ -18,7 +18,7 @@ body {
margin-right: 10px; margin-right: 10px;
} }
@media(max-width: 640px) { @media (max-width: 640px) {
#logout-frame { #logout-frame {
width: 100%; width: 100%;
padding: 20px; padding: 20px;

View file

@ -18,7 +18,7 @@ body {
margin-right: 10px; margin-right: 10px;
} }
@media(max-width: 640px) { @media (max-width: 640px) {
#no-priv-frame { #no-priv-frame {
width: 100%; width: 100%;
padding: 20px; padding: 20px;

View file

@ -129,7 +129,7 @@ window.Backend = window.Backend || {};
}) })
.appendTo($notification); .appendTo($notification);
actions.forEach(function(action) { actions.forEach(function (action) {
$('<button/>', { $('<button/>', {
'class': 'btn btn-outline-secondary btn-xs', 'class': 'btn btn-outline-secondary btn-xs',
'text': action.label, 'text': action.label,

View file

@ -25,7 +25,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
function updateTimezone() { function updateTimezone() {
var providerId = $('#select-provider').val(); 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); return Number(availableProvider.id) === Number(providerId);
}); });
@ -144,7 +144,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
var serviceId = $dialog.find('#select-service').val(); 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); return Number(availableService.id) === Number(serviceId);
}); });
@ -250,7 +250,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
.appendTo($list); .appendTo($list);
// Verify if this customer is on the old customer 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); 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. // If there is any error on the request, search by the local client database.
$list.empty(); $list.empty();
GlobalVariables.customers.forEach(function(customer, index) { GlobalVariables.customers.forEach(function (customer, index) {
if (customer.first_name.toLowerCase().indexOf(key) !== -1 if (customer.first_name.toLowerCase().indexOf(key) !== -1
|| customer.last_name.toLowerCase().indexOf(key) !== -1 || customer.last_name.toLowerCase().indexOf(key) !== -1
|| customer.email.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 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) return Number(providerServiceId) === Number(serviceId)
}).length > 0; }).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. // 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 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); return Number(service.id) === Number(serviceId);
}); });

View file

@ -1085,7 +1085,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
* @param {Event} event * @param {Event} event
*/ */
function getEventNotes(event) { function getEventNotes(event) {
if (!event.data || !event.data.notes) { if (!event.data || !event.data.notes) {
return '-'; return '-';
} }

View file

@ -81,7 +81,7 @@ window.BackendCalendarWorkingPlanExceptionsModal = window.BackendCalendarWorking
$('#manage-working-plan-exceptions').modal('hide'); $('#manage-working-plan-exceptions').modal('hide');
var providerId = $('#working-plan-exception-provider').val(); 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); return Number(availableProvider.id) === Number(providerId);
}); });

View file

@ -224,17 +224,17 @@ window.BackendSettings = window.BackendSettings || {};
/** /**
* Event: Apply Global Working Plan * Event: Apply Global Working Plan
*/ */
$('#apply-global-working-plan').on('click', function() { $('#apply-global-working-plan').on('click', function () {
var buttons = [ var buttons = [
{ {
text: EALang.cancel, text: EALang.cancel,
click: function() { click: function () {
$('#message-box').dialog('close'); $('#message-box').dialog('close');
} }
}, },
{ {
text: 'OK', text: 'OK',
click: function() { click: function () {
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_apply_global_working_plan'; var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_apply_global_working_plan';
var data = { var data = {
@ -246,7 +246,7 @@ window.BackendSettings = window.BackendSettings || {};
.done(function () { .done(function () {
Backend.displayNotification(EALang.working_plans_got_updated); Backend.displayNotification(EALang.working_plans_got_updated);
}) })
.always(function() { .always(function () {
$('#message-box').dialog('close'); $('#message-box').dialog('close');
}); });
} }

View file

@ -62,7 +62,7 @@ window.BackendUsers = window.BackendUsers || {};
helper.bindEventHandlers(); helper.bindEventHandlers();
// Fill the services and providers list boxes. // Fill the services and providers list boxes.
GlobalVariables.services.forEach(function(service) { GlobalVariables.services.forEach(function (service) {
$('<div/>', { $('<div/>', {
'class': 'checkbox', 'class': 'checkbox',
'html': [ 'html': [
@ -89,7 +89,7 @@ window.BackendUsers = window.BackendUsers || {};
.appendTo('#provider-services'); .appendTo('#provider-services');
}); });
GlobalVariables.providers.forEach(function(provider) { GlobalVariables.providers.forEach(function (provider) {
$('<div/>', { $('<div/>', {
'class': 'checkbox', 'class': 'checkbox',
'html': [ 'html': [
@ -159,7 +159,7 @@ window.BackendUsers = window.BackendUsers || {};
$('#secretary-providers').empty(); $('#secretary-providers').empty();
GlobalVariables.providers.forEach(function(provider) { GlobalVariables.providers.forEach(function (provider) {
$('<div/>', { $('<div/>', {
'class': 'checkbox', 'class': 'checkbox',
'html': [ 'html': [

View file

@ -185,7 +185,7 @@
/** /**
* Remove the previously registered event handlers. * Remove the previously registered event handlers.
*/ */
AdminsHelper.prototype.unbindEventHandlers = function() { AdminsHelper.prototype.unbindEventHandlers = function () {
$('#admins') $('#admins')
.off('submit', '#filter-admins form') .off('submit', '#filter-admins form')
.off('click', '#filter-admins .clear') .off('click', '#filter-admins .clear')

View file

@ -222,7 +222,7 @@
/** /**
* Remove the previously registered event handlers. * Remove the previously registered event handlers.
*/ */
ProvidersHelper.prototype.unbindEventHandlers = function() { ProvidersHelper.prototype.unbindEventHandlers = function () {
$('#providers') $('#providers')
.off('submit', '#filter-providers form') .off('submit', '#filter-providers form')
.off('click', '#filter-providers .clear') .off('click', '#filter-providers .clear')

View file

@ -199,7 +199,7 @@
/** /**
* Remove the previously registered event handlers. * Remove the previously registered event handlers.
*/ */
SecretariesHelper.prototype.unbindEventHandlers = function() { SecretariesHelper.prototype.unbindEventHandlers = function () {
$('#secretaries') $('#secretaries')
.off('submit', '#filter-secretaries form') .off('submit', '#filter-secretaries form')
.off('click', '#filter-secretaries .clear') .off('click', '#filter-secretaries .clear')

View file

@ -724,7 +724,7 @@ window.FrontendBook = window.FrontendBook || {};
$serviceDescription.empty(); $serviceDescription.empty();
var service = GlobalVariables.availableServices.find(function(availableService) { var service = GlobalVariables.availableServices.find(function (availableService) {
return Number(availableService.id) === Number(serviceId); return Number(availableService.id) === Number(serviceId);
}); });

View file

@ -43,7 +43,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
// Default value of duration (in minutes). // Default value of duration (in minutes).
var serviceDuration = 15; var serviceDuration = 15;
var service = GlobalVariables.availableServices.find(function(availableService) { var service = GlobalVariables.availableServices.find(function (availableService) {
return Number(availableService.id) === Number(serviceId); return Number(availableService.id) === Number(serviceId);
}); });
@ -78,7 +78,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
providerId = GlobalVariables.availableProviders[0].id; // Use first available provider. 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); return Number(providerId) === Number(availableProvider.id);
}); });

View file

@ -25,7 +25,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
/** /**
* Register global error handler. * Register global error handler.
*/ */
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function () {
$(document).ajaxError(function (event, jqxhr, settings, thrownError) { $(document).ajaxError(function (event, jqxhr, settings, thrownError) {
GeneralFunctions.ajaxFailureHandler(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'); $element.popover('hide');
}); });
}; };
@ -319,8 +319,8 @@ window.GeneralFunctions = window.GeneralFunctions || {};
try { try {
response = JSON.parse(jqXHR.responseText); // JSON response response = JSON.parse(jqXHR.responseText); // JSON response
} catch(error) { } catch (error) {
response = { message: jqXHR.responseText }; // String response response = {message: jqXHR.responseText}; // String response
} }
if (!response) { if (!response) {
@ -496,9 +496,9 @@ window.GeneralFunctions = window.GeneralFunctions || {};
* @return {Object} Returns a sorted dictionary * @return {Object} Returns a sorted dictionary
*/ */
exports.sortWeekDictionary = function (weekDictionary, startDayId) { 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); var weekdayName = GeneralFunctions.getWeekdayName(i % 7);
sortedWeekDictionary[weekdayName] = weekDictionary[weekdayName]; sortedWeekDictionary[weekdayName] = weekDictionary[weekdayName];
} }
@ -623,7 +623,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
date = dayArray[2] + '-' + dayArray[0] + '-' + dayArray[1]; date = dayArray[2] + '-' + dayArray[0] + '-' + dayArray[1];
break; break;
case 'YMD': case 'YMD':
date = date.replace('/','-'); date = date.replace('/', '-');
break; break;
default: default:
throw new Error('Invalid date format setting provided:' + dateFormatSetting); throw new Error('Invalid date format setting provided:' + dateFormatSetting);

View file

@ -1,7 +1,7 @@
// https://tc39.github.io/ecma262/#sec-array.prototype.find // https://tc39.github.io/ecma262/#sec-array.prototype.find
if (!Array.prototype.find) { if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', { Object.defineProperty(Array.prototype, 'find', {
value: function(predicate) { value: function (predicate) {
// 1. Let O be ? ToObject(this value). // 1. Let O be ? ToObject(this value).
if (this == null) { if (this == null) {
throw TypeError('"this" is null or not defined'); throw TypeError('"this" is null or not defined');

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