diff --git a/.bowerrc b/.bowerrc index 80a0422f2..7b707d10a 100644 --- a/.bowerrc +++ b/.bowerrc @@ -1,4 +1,5 @@ { + "directory": "public/bower_components", "scripts": { "postinstall": "grunt default genlicense", "postuninstall": "grunt default genlicense" diff --git a/.gitignore b/.gitignore index 0b17ff268..ed59cec7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ node_modules -bower_components -tmp +public/bower_components +tmp/ application/config/email.php application/config/database.php *.patch @@ -19,4 +19,5 @@ git-svn-diff.py *.~ *.log application/sessions/* -license/.licenses +public/license/.licenses +vendor/mikey179 diff --git a/Dockerfile b/Dockerfile index 709ef980e..fe671a15c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN echo "date.timezone = \"UTC\"" > /usr/local/etc/php/conf.d/timezone.ini WORKDIR /app COPY . /app -RUN ln -s /app/* /var/www/html +RUN rm -rf /var/www && ln -s /app/*[^public] /var/www && ln -nsf /app/public /var/www/html RUN cp application/config/database.php.tmpl application/config/database.php && \ sed -i -e "s/\(localhost\)/web/g" test/ospos.js && \ diff --git a/Gruntfile.js b/Gruntfile.js index 8b0ca7898..c3e2acb23 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -37,10 +37,29 @@ module.exports = function(grunt) { }, targetdist: { options: { - destPrefix: 'dist' + destPrefix: 'public/dist' }, files: { - 'jquery-ui.css': 'jquery-ui/themes/base/jquery-ui.css' + 'login.css': '../../css/login.css', + 'style.css': '../../css/style.css', + 'invoice_email.css': '../../css/invoice_email.css', + 'barcode_font.css': '../../css/barcode_font.css', + 'jquery-ui.css': 'jquery-ui/themes/base/jquery-ui.css', + 'bootswatch/cerulean/bootstrap.min.css': 'bootswatch/cerulean/bootstrap.min.css', + 'bootswatch/cosmo/bootstrap.min.css': 'bootswatch/cosmo/bootstrap.min.css', + 'bootswatch/cyborg/bootstrap.min.css': 'bootswatch/cyborg/bootstrap.min.css', + 'bootswatch/darkly/bootstrap.min.css': 'bootswatch/darkly/bootstrap.min.css', + 'bootswatch/flatly/bootstrap.min.css': 'bootswatch/flatly/bootstrap.min.css', + 'bootswatch/journal/bootstrap.min.css': 'bootswatch/journal/bootstrap.min.css', + 'bootswatch/paper/bootstrap.min.css': 'bootswatch/paper/bootstrap.min.css', + 'bootswatch/readable/bootstrap.min.css': 'bootswatch/readable/bootstrap.min.css', + 'bootswatch/sandstone/bootstrap.min.css': 'bootswatch/sandstone/bootstrap.min.css', + 'bootswatch/slate/bootstrap.min.css': 'bootswatch/slate/bootstrap.min.css', + 'bootswatch/spacelab/bootstrap.min.css': 'bootswatch/spacelab/bootstrap.min.css', + 'bootswatch/superhero/bootstrap.min.css': 'bootswatch/superhero/bootstrap.min.css', + 'bootswatch/united/bootstrap.min.css': 'bootswatch/united/bootstrap.min.css', + 'bootswatch/yeti/bootstrap.min.css': 'bootswatch/yeti/bootstrap.min.css', + 'bootswatch/fonts': 'bootswatch/fonts' } }, targetdistbootswatch: { @@ -70,7 +89,7 @@ module.exports = function(grunt) { cssmin: { target: { files: { - 'dist/<%= pkg.name %>.min.css': ['tmp/opensourcepos_bower.css', 'css/*.css', '!css/login.css', '!css/invoice_email.css', '!css/barcode_font.css', '!css/style.css'] + 'public/dist/<%= pkg.name %>.min.css': ['tmp/opensourcepos_bower.css', 'css/*.css', '!css/login.css', '!css/invoice_email.css', '!css/barcode_font.css', '!css/style.css'] } } }, @@ -80,7 +99,7 @@ module.exports = function(grunt) { separator: ';' }, files: { - 'dist/<%= pkg.name %>.js': ['tmp/opensourcepos_bower.js', 'js/jquery*', 'js/*.js'] + 'tmp/<%= pkg.name %>.js': ['tmp/opensourcepos_bower.js', 'js/jquery*', 'js/*.js'] } }, sql: { @@ -99,7 +118,7 @@ module.exports = function(grunt) { }, dist: { files: { - 'dist/<%= pkg.name %>.min.js': ['dist/<%= pkg.name %>.js'] + 'public/dist/<%= pkg.name %>.min.js': ['tmp/<%= pkg.name %>.js'] } } }, @@ -121,7 +140,7 @@ module.exports = function(grunt) { scriptTemplate: '', openTag: '', closeTag: '', - absolutePath: true + ignorePath: '../../../' }, src: ['css/*.css', '!css/login.css', '!css/invoice_email.css', '!css/barcode_font.css'], dest: 'application/views/partial/header.php', @@ -131,9 +150,9 @@ module.exports = function(grunt) { scriptTemplate: '', openTag: '', closeTag: '', - absolutePath: true + ignorePath: '../../../public/' }, - src: ['dist/*.css', '!dist/login.css', '!dist/invoice_email.css', '!dist/barcode_font.css'], + src: ['public/dist/*.css', '!public/dist/login.css', '!public/dist/invoice_email.css', '!public/dist/barcode_font.css'], dest: 'application/views/partial/header.php', }, css_login: { @@ -141,9 +160,9 @@ module.exports = function(grunt) { scriptTemplate: '', openTag: '', closeTag: '', - absolutePath: true + ignorePath: '../../public/' }, - src: ['dist/login.css'], + src: ['public/dist/login.css'], dest: 'application/views/login.php' }, js: { @@ -151,7 +170,7 @@ module.exports = function(grunt) { scriptTemplate: '', openTag: '', closeTag: '', - absolutePath: true + ignorePath: '../../../' }, src: ['js/jquery*', 'js/*.js'], dest: 'application/views/partial/header.php' @@ -161,9 +180,9 @@ module.exports = function(grunt) { scriptTemplate: '', openTag: '', closeTag: '', - absolutePath: true + ignorePath: '../../../public/' }, - src: ['dist/*min.js'], + src: ['public/dist/*min.js'], dest: 'application/views/partial/header.php' } }, @@ -187,8 +206,8 @@ module.exports = function(grunt) { dev: { options: { match: [ { - 'opensourcepos.min.js': 'dist/opensourcepos.min.js', - 'opensourcepos.min.css': 'dist/opensourcepos.min.css' + 'opensourcepos.min.js': 'public/dist/opensourcepos.min.js', + 'opensourcepos.min.css': 'public/dist/opensourcepos.min.css' } ], replacement: 'md5' }, @@ -202,8 +221,8 @@ module.exports = function(grunt) { // Target-specific file lists and/or options go here. options: { // Target-specific options go here. - directory: 'bower_components', - output: 'license/LICENSES' + directory: 'public/bower_components', + output: 'publiclicense/LICENSES' }, }, }, diff --git a/application/config/config.php b/application/config/config.php index 840336996..eaefb1c35 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -1,43 +1,4 @@ -load(strtr($file, '', '_lang.php')); + $this->load(strtr($file, '', '_lang.php')); } } } diff --git a/application/hooks/load_config.php b/application/hooks/load_config.php index e13d0dc1d..2e32b5222 100644 --- a/application/hooks/load_config.php +++ b/application/hooks/load_config.php @@ -23,7 +23,7 @@ function load_config() $CI->config->set_item('language', $language); - $map = directory_map('./application/language/' . $language); + $map = directory_map('../application/language/' . $language); foreach($map as $file) { if(!is_array($file) && substr(strrchr($file,'.'), 1) == "php") diff --git a/system/language/ar-EG/calendar_lang.php b/application/language/arabic/calendar_lang.php similarity index 100% rename from system/language/ar-EG/calendar_lang.php rename to application/language/arabic/calendar_lang.php diff --git a/system/language/ar-EG/date_lang.php b/application/language/arabic/date_lang.php similarity index 100% rename from system/language/ar-EG/date_lang.php rename to application/language/arabic/date_lang.php diff --git a/system/language/ar-EG/db_lang.php b/application/language/arabic/db_lang.php similarity index 100% rename from system/language/ar-EG/db_lang.php rename to application/language/arabic/db_lang.php diff --git a/system/language/ar-EG/email_lang.php b/application/language/arabic/email_lang.php similarity index 100% rename from system/language/ar-EG/email_lang.php rename to application/language/arabic/email_lang.php diff --git a/system/language/ar-EG/form_validation_lang.php b/application/language/arabic/form_validation_lang.php similarity index 100% rename from system/language/ar-EG/form_validation_lang.php rename to application/language/arabic/form_validation_lang.php diff --git a/system/language/ar-EG/ftp_lang.php b/application/language/arabic/ftp_lang.php similarity index 100% rename from system/language/ar-EG/ftp_lang.php rename to application/language/arabic/ftp_lang.php diff --git a/system/language/ar-EG/imglib_lang.php b/application/language/arabic/imglib_lang.php similarity index 100% rename from system/language/ar-EG/imglib_lang.php rename to application/language/arabic/imglib_lang.php diff --git a/system/core/compat/index.html b/application/language/arabic/index.html similarity index 100% rename from system/core/compat/index.html rename to application/language/arabic/index.html diff --git a/system/language/ar-EG/migration_lang.php b/application/language/arabic/migration_lang.php similarity index 100% rename from system/language/ar-EG/migration_lang.php rename to application/language/arabic/migration_lang.php diff --git a/system/language/ar-EG/number_lang.php b/application/language/arabic/number_lang.php similarity index 100% rename from system/language/ar-EG/number_lang.php rename to application/language/arabic/number_lang.php diff --git a/system/language/ar-EG/pagination_lang.php b/application/language/arabic/pagination_lang.php similarity index 100% rename from system/language/ar-EG/pagination_lang.php rename to application/language/arabic/pagination_lang.php diff --git a/system/language/ar-EG/profiler_lang.php b/application/language/arabic/profiler_lang.php similarity index 100% rename from system/language/ar-EG/profiler_lang.php rename to application/language/arabic/profiler_lang.php diff --git a/system/language/ar-EG/unit_test_lang.php b/application/language/arabic/unit_test_lang.php similarity index 100% rename from system/language/ar-EG/unit_test_lang.php rename to application/language/arabic/unit_test_lang.php diff --git a/system/language/ar-EG/upload_lang.php b/application/language/arabic/upload_lang.php similarity index 100% rename from system/language/ar-EG/upload_lang.php rename to application/language/arabic/upload_lang.php diff --git a/application/language/armenian/calendar_lang.php b/application/language/armenian/calendar_lang.php new file mode 100644 index 000000000..dc51823dc --- /dev/null +++ b/application/language/armenian/calendar_lang.php @@ -0,0 +1,56 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/application/language/bengali/migration_lang.php b/application/language/bengali/migration_lang.php new file mode 100644 index 000000000..3595f7743 --- /dev/null +++ b/application/language/bengali/migration_lang.php @@ -0,0 +1,19 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/language/filipino/migration_lang.php b/application/language/filipino/migration_lang.php new file mode 100644 index 000000000..736f3cb92 --- /dev/null +++ b/application/language/filipino/migration_lang.php @@ -0,0 +1,19 @@ + + + +403 Forbidden + + +

Directory access is forbidden.

+ + diff --git a/application/language/greek/migration_lang.php b/application/language/greek/migration_lang.php new file mode 100644 index 000000000..f230a530d --- /dev/null +++ b/application/language/greek/migration_lang.php @@ -0,0 +1,20 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/application/language/hindi/migration_lang.php b/application/language/hindi/migration_lang.php new file mode 100644 index 000000000..cd269d585 --- /dev/null +++ b/application/language/hindi/migration_lang.php @@ -0,0 +1,19 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/system/language/hu-HU/migration_lang.php b/application/language/hungarian/migration_lang.php similarity index 100% rename from system/language/hu-HU/migration_lang.php rename to application/language/hungarian/migration_lang.php diff --git a/system/language/hu-HU/number_lang.php b/application/language/hungarian/number_lang.php similarity index 100% rename from system/language/hu-HU/number_lang.php rename to application/language/hungarian/number_lang.php diff --git a/system/language/hu-HU/pagination_lang.php b/application/language/hungarian/pagination_lang.php similarity index 100% rename from system/language/hu-HU/pagination_lang.php rename to application/language/hungarian/pagination_lang.php diff --git a/system/language/hu-HU/profiler_lang.php b/application/language/hungarian/profiler_lang.php similarity index 100% rename from system/language/hu-HU/profiler_lang.php rename to application/language/hungarian/profiler_lang.php diff --git a/system/language/hu-HU/unit_test_lang.php b/application/language/hungarian/unit_test_lang.php similarity index 100% rename from system/language/hu-HU/unit_test_lang.php rename to application/language/hungarian/unit_test_lang.php diff --git a/system/language/hu-HU/upload_lang.php b/application/language/hungarian/upload_lang.php similarity index 100% rename from system/language/hu-HU/upload_lang.php rename to application/language/hungarian/upload_lang.php diff --git a/system/language/id/calendar_lang.php b/application/language/indonesian/calendar_lang.php similarity index 100% rename from system/language/id/calendar_lang.php rename to application/language/indonesian/calendar_lang.php diff --git a/system/language/id/date_lang.php b/application/language/indonesian/date_lang.php similarity index 100% rename from system/language/id/date_lang.php rename to application/language/indonesian/date_lang.php diff --git a/system/language/id/db_lang.php b/application/language/indonesian/db_lang.php similarity index 100% rename from system/language/id/db_lang.php rename to application/language/indonesian/db_lang.php diff --git a/system/language/id/email_lang.php b/application/language/indonesian/email_lang.php similarity index 100% rename from system/language/id/email_lang.php rename to application/language/indonesian/email_lang.php diff --git a/system/language/id/form_validation_lang.php b/application/language/indonesian/form_validation_lang.php similarity index 100% rename from system/language/id/form_validation_lang.php rename to application/language/indonesian/form_validation_lang.php diff --git a/system/language/id/ftp_lang.php b/application/language/indonesian/ftp_lang.php similarity index 100% rename from system/language/id/ftp_lang.php rename to application/language/indonesian/ftp_lang.php diff --git a/system/language/id/imglib_lang.php b/application/language/indonesian/imglib_lang.php similarity index 100% rename from system/language/id/imglib_lang.php rename to application/language/indonesian/imglib_lang.php diff --git a/system/database/drivers/odbc/index.html b/application/language/indonesian/index.html similarity index 100% rename from system/database/drivers/odbc/index.html rename to application/language/indonesian/index.html diff --git a/system/language/id/migration_lang.php b/application/language/indonesian/migration_lang.php similarity index 100% rename from system/language/id/migration_lang.php rename to application/language/indonesian/migration_lang.php diff --git a/system/language/id/number_lang.php b/application/language/indonesian/number_lang.php similarity index 100% rename from system/language/id/number_lang.php rename to application/language/indonesian/number_lang.php diff --git a/system/language/id/pagination_lang.php b/application/language/indonesian/pagination_lang.php similarity index 100% rename from system/language/id/pagination_lang.php rename to application/language/indonesian/pagination_lang.php diff --git a/system/language/id/profiler_lang.php b/application/language/indonesian/profiler_lang.php similarity index 100% rename from system/language/id/profiler_lang.php rename to application/language/indonesian/profiler_lang.php diff --git a/system/language/id/unit_test_lang.php b/application/language/indonesian/unit_test_lang.php similarity index 100% rename from system/language/id/unit_test_lang.php rename to application/language/indonesian/unit_test_lang.php diff --git a/system/language/id/upload_lang.php b/application/language/indonesian/upload_lang.php similarity index 100% rename from system/language/id/upload_lang.php rename to application/language/indonesian/upload_lang.php diff --git a/application/language/italian/calendar_lang.php b/application/language/italian/calendar_lang.php new file mode 100644 index 000000000..2d24b2d66 --- /dev/null +++ b/application/language/italian/calendar_lang.php @@ -0,0 +1,57 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/language/khmer/migration_lang.php b/application/language/khmer/migration_lang.php new file mode 100644 index 000000000..af8c756e5 --- /dev/null +++ b/application/language/khmer/migration_lang.php @@ -0,0 +1,20 @@ + + + + 403 Zabranjeno + + + +

Zabranjen je pristup direktorijumu.

+ + + diff --git a/application/language/serbian/migration_lang.php b/application/language/serbian/migration_lang.php new file mode 100644 index 000000000..e67d2447e --- /dev/null +++ b/application/language/serbian/migration_lang.php @@ -0,0 +1,20 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['cal_su'] = 'Ne'; +$lang['cal_mo'] = 'Po'; +$lang['cal_tu'] = 'Ut'; +$lang['cal_we'] = 'St'; +$lang['cal_th'] = 'Št'; +$lang['cal_fr'] = 'Pi'; +$lang['cal_sa'] = 'So'; +$lang['cal_sun'] = 'Ne'; +$lang['cal_mon'] = 'Po'; +$lang['cal_tue'] = 'Ut'; +$lang['cal_wed'] = 'St'; +$lang['cal_thu'] = 'Št'; +$lang['cal_fri'] = 'Pi'; +$lang['cal_sat'] = 'So'; +$lang['cal_sunday'] = 'Nedeľa'; +$lang['cal_monday'] = 'Pondelok'; +$lang['cal_tuesday'] = 'Utorok'; +$lang['cal_wednesday'] = 'Streda'; +$lang['cal_thursday'] = 'Štvrtok'; +$lang['cal_friday'] = 'Piatok'; +$lang['cal_saturday'] = 'Sobota'; +$lang['cal_jan'] = 'Jan'; +$lang['cal_feb'] = 'Feb'; +$lang['cal_mar'] = 'Mar'; +$lang['cal_apr'] = 'Apr'; +$lang['cal_may'] = 'Máj'; +$lang['cal_jun'] = 'Jún'; +$lang['cal_jul'] = 'Júl'; +$lang['cal_aug'] = 'Aug'; +$lang['cal_sep'] = 'Sep'; +$lang['cal_oct'] = 'Okt'; +$lang['cal_nov'] = 'Nov'; +$lang['cal_dec'] = 'Dec'; +$lang['cal_january'] = 'Január'; +$lang['cal_february'] = 'Február'; +$lang['cal_march'] = 'Marec'; +$lang['cal_april'] = 'Apríl'; +$lang['cal_mayl'] = 'Máj'; +$lang['cal_june'] = 'Jún'; +$lang['cal_july'] = 'Júl'; +$lang['cal_august'] = 'August'; +$lang['cal_september'] = 'September'; +$lang['cal_october'] = 'Október'; +$lang['cal_november'] = 'November'; +$lang['cal_december'] = 'December'; diff --git a/application/language/slovak/date_lang.php b/application/language/slovak/date_lang.php new file mode 100644 index 000000000..24dd51bd9 --- /dev/null +++ b/application/language/slovak/date_lang.php @@ -0,0 +1,67 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['date_year'] = 'Rok'; +$lang['date_years'] = 'Roky'; +$lang['date_month'] = 'Mesiac'; +$lang['date_months'] = 'Mesiace'; +$lang['date_week'] = 'Týždeň'; +$lang['date_weeks'] = 'Týždne'; +$lang['date_day'] = 'Deň'; +$lang['date_days'] = 'Dni'; +$lang['date_hour'] = 'Hodina'; +$lang['date_hours'] = 'Hodiny'; +$lang['date_minute'] = 'Minúta'; +$lang['date_minutes'] = 'Minúty'; +$lang['date_second'] = 'Sekunda'; +$lang['date_seconds'] = 'Sekundy'; + +$lang['UM12'] = '(UTC -12:00) Bakerov/Howlandov ostrov'; +$lang['UM11'] = '(UTC -11:00) Niue'; +$lang['UM10'] = '(UTC -10:00) Hawajsko-Aleutianský Štandardný čas, Cookove ostrovy, Tahiti'; +$lang['UM95'] = '(UTC -9:30) Markézy'; +$lang['UM9'] = '(UTC -9:00) Aljašský Štandardní čas, Gambierovy ostrovy'; +$lang['UM8'] = '(UTC -8:00) Pacifický Štandardný čas, Clippertonove ostrovy'; +$lang['UM7'] = '(UTC -7:00) Horský Štandardný čas'; +$lang['UM6'] = '(UTC -6:00) Centrálny Štandardný čas'; +$lang['UM5'] = '(UTC -5:00) Východný Štandardný čas, Západný Karibský Štandardný čas'; +$lang['UM45'] = '(UTC -4:30) Venezuelský Štandardný čas'; +$lang['UM4'] = '(UTC -4:00) Atlantický Štandardný čas, Východný Karibský Štandardný čas'; +$lang['UM35'] = '(UTC -3:30) Novofundlandský Štandardný čas'; +$lang['UM3'] = '(UTC -3:00) Argentína, Brazília, Francúzska Guiana, Uruguay'; +$lang['UM2'] = '(UTC -2:00) Južná Georgia a Južné Sandwichove ostrovy'; +$lang['UM1'] = '(UTC -1:00) Azory, Ostrovy Cape Verde'; +$lang['UTC'] = '(UTC) Greenwichský poludník, Západoeurópsky Čas'; +$lang['UP1'] = '(UTC +1:00) Stredoeurópsky Čas, Západoafrický Čas'; +$lang['UP2'] = '(UTC +2:00) Stredoafrický Čas, Východoeurópsky Čas, Kaliningradský Čas'; +$lang['UP3'] = '(UTC +3:00) Moskva, Východoafrický Čas, Arabský Štandardný čas'; +$lang['UP35'] = '(UTC +3:30) Íránsky Štandardný čas'; +$lang['UP4'] = '(UTC +4:00) Azerbajdžanský Štandardný čas, Samarský čas'; +$lang['UP45'] = '(UTC +4:30) Afganistan'; +$lang['UP5'] = '(UTC +5:00) Pakistanský Štandardný čas, Yekaterinburgský Čas'; +$lang['UP55'] = '(UTC +5:30) Indický Štandardný čas, Srí Lanka'; +$lang['UP575'] = '(UTC +5:45) Nepál'; +$lang['UP6'] = '(UTC +6:00) Bangladéšský Štandardný čas, Bhutan, Omsk'; +$lang['UP65'] = '(UTC +6:30) Kokosové Ostrovy, Myanmar'; +$lang['UP7'] = '(UTC +7:00) Krasnoyarský Čas, Kambodža, Laos, Thajsko, Vietnam'; +$lang['UP8'] = '(UTC +8:00) Západoaustrálsky Štandardný čas, Pekingský Čas, Irkutsk'; +$lang['UP875'] = '(UTC +8:45) Stredoaustrálsky Štandardný čas'; +$lang['UP9'] = '(UTC +9:00) Japonský Štandardný čas, Kórejský Štandardný čas, Yakutský Čas'; +$lang['UP95'] = '(UTC +9:30) Austrálsky Centrálny Štandardný čas'; +$lang['UP10'] = '(UTC +10:00) Východoaustrálsky Štandardný čas, Vladivostok'; +$lang['UP105'] = '(UTC +10:30) Ostrov lorda Howa'; +$lang['UP11'] = '(UTC +11:00) Srednokolymský Čas, Solomonovy Ostrovy, Vanuatu'; +$lang['UP115'] = '(UTC +11:30) Norfol (Ostrov)'; +$lang['UP12'] = '(UTC +12:00) Fidži, Gilbertove Ostrovy, Kamčatský Čas, Novozélandský Štandardný čas'; +$lang['UP1275'] = '(UTC +12:45) Chathamove ostrovy'; +$lang['UP13'] = '(UTC +13:00) Samoa Časová Zóna, Fénixove Ostrovy, Tonga'; +$lang['UP14'] = '(UTC +14:00) Liniové ostrovy'; diff --git a/application/language/slovak/db_lang.php b/application/language/slovak/db_lang.php new file mode 100644 index 000000000..0ea8c1fe1 --- /dev/null +++ b/application/language/slovak/db_lang.php @@ -0,0 +1,36 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['db_invalid_connection_str'] = 'Nebolo možné zistiť databázové nastavenie podľa vloženého reťazca'; +$lang['db_unable_to_connect'] = 'Nepodarilo sa pripojiť k databáze s daným nastavením'; +$lang['db_unable_to_select'] = 'Nepodarilo sa vybrať (select) databázu: %s'; +$lang['db_unable_to_create'] = 'Nepodarilo sa vytvoriť danú databázu: %s'; +$lang['db_invalid_query'] = 'Odoslaná požiadavka nie je platná.'; +$lang['db_must_set_table'] = 'Musíte určiť databázovú tabuľku, ktorej sa požiadavka týka.'; +$lang['db_must_use_set'] = 'Musíte nastaviť metódu "set" pre úpravu záznamu.'; +$lang['db_must_use_index'] = 'Je nutné určiť párový index pre dávkový update).'; +$lang['db_batch_missing_index'] = 'Pre jeden alebo viac daných riadkov určených k dávkovému updatu chýba špecifikovaný index.'; +$lang['db_must_use_where'] = 'Nie je možné upravovať záznamy bez podmienky "where".'; +$lang['db_del_must_use_where'] = 'Nie je možné mazať záznamy bez podmienky "where".'; +$lang['db_field_param_missing'] = 'Spracovanie polí vyžaduje ako parameter názov tabuľky.'; +$lang['db_unsupported_function'] = 'Táto funkcia nie je dostupná v tomto type databázy.'; +$lang['db_transaction_failure'] = 'Chyba transakcie: aplikovaný Rollback'; +$lang['db_unable_to_drop'] = 'Nie je možné odstrániť požadovanú databázu.'; +$lang['db_unsupported_feature'] = 'Táto vlastnosť nie je dostupná pri aktuálnej platforme.'; +$lang['db_unsupported_compression'] = 'Zvolená kompresia súborov nie je podporovaná serverom.'; +$lang['db_filepath_error'] = 'Nepodarilo sa zapísať dáta do zadanej cesty.'; +$lang['db_invalid_cache_path'] = 'Zadaná cesta pre kešovanie nie je platná alebo do nej nemožno zapisovať.'; +$lang['db_table_name_required'] = 'Táto operácia potrebuje názov tabuľky.'; +$lang['db_column_name_required'] = 'Táto operácia potrebuje názov stĺpca.'; +$lang['db_column_definition_required'] = 'Táto operácia potrebuje definíciu stĺpca.'; +$lang['db_unable_to_set_charset'] = 'Nie je možné nastaviť znakovú sadu pripojenia: %s'; +$lang['db_error_heading'] = 'Nastala chyba databázy'; \ No newline at end of file diff --git a/application/language/slovak/email_lang.php b/application/language/slovak/email_lang.php new file mode 100644 index 000000000..bd4b7c2de --- /dev/null +++ b/application/language/slovak/email_lang.php @@ -0,0 +1,31 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['email_must_be_array'] = 'Metóde na kontrolu e-mailu musí byť poslané pole.'; +$lang['email_invalid_address'] = 'Neplatná e-mailová adresa: %s'; +$lang['email_attachment_missing'] = 'Nie je možné nájsť prílohu e-mailu: %s'; +$lang['email_attachment_unreadable'] = 'Nepodarilo sa otvoriť prílohu: %s'; +$lang['email_no_from'] = 'Nie je možné odoslať e-mail bez odosielateľa.'; +$lang['email_no_recipients'] = 'Musíte uviesť príjemcu: Komu, Cc, alebo Bcc'; +$lang['email_send_failure_phpmail'] = 'Nie je možné poslať e-mail pomocou PHP funkcie mail(). Server nemusí byť nastavený pre posielanie e-mailov touto metódou.'; +$lang['email_send_failure_sendmail'] = 'Nie je možné poslať e-mail pomocou programu Sendmail. Server nemusí byť nastavený pre posielanie e-mailov touto metódou.'; +$lang['email_send_failure_smtp'] = 'Nie je možné poslať e-mail pomocou PHP funkcie pre SMTP. Server nemusí byť nastavený pre posielanie e-mailov touto metódou.'; +$lang['email_sent'] = 'Správa bola úspešne odoslaná pomocou protokolu: %s'; +$lang['email_no_socket'] = 'Nie je možné otvoriť prístup k programu Sendmail. Skontrolujte nastavenia.'; +$lang['email_no_hostname'] = 'Nie je nastavené meno SMTP servera'; +$lang['email_smtp_error'] = 'Bola zaznamenaná chyba SMTP: %s'; +$lang['email_no_smtp_unpw'] = 'Chyba: Musíte nastaviť užívateľské meno a heslo pre SMTP.'; +$lang['email_failed_smtp_login'] = 'Zlyhalo odoslanie príkazu AUTH LOGIN. Chyba: %s'; +$lang['email_smtp_auth_un'] = 'Zlyhalo overenie užívateľského mena. Chyba: %s'; +$lang['email_smtp_auth_pw'] = 'Zlyhalo overenie hesla. Chyba: %s'; +$lang['email_smtp_data_failure'] = 'Nie je možné odoslať dáta: %s'; +$lang['email_exit_status'] = 'Stav pri ukončení: %s'; diff --git a/application/language/slovak/form_validation_lang.php b/application/language/slovak/form_validation_lang.php new file mode 100644 index 000000000..3221a1ec4 --- /dev/null +++ b/application/language/slovak/form_validation_lang.php @@ -0,0 +1,41 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['form_validation_required'] = 'Pole {field} je povinné.'; +$lang['form_validation_isset'] = 'Pole {field} musí obsahovať hodnotu.'; +$lang['form_validation_valid_email'] = 'Pole {field} musí obsahovať platnú emailovú adresu.'; +$lang['form_validation_valid_emails'] = 'Pole {field} musí obsahovať platné emailové adresy.'; +$lang['form_validation_valid_url'] = 'Pole {field} musí obsahovať platnú URL.'; +$lang['form_validation_valid_ip'] = 'Pole {field} musí obsahovať platnú IP.'; +$lang['form_validation_min_length'] = 'Pole {field} musí obsahovať aspoň {param} znakov.'; +$lang['form_validation_max_length'] = 'Pole {field} nesmie obsahovať viac než {param} znakov.'; +$lang['form_validation_exact_length'] = 'Pole {field} musí obsahovať presne {param} znakov.'; +$lang['form_validation_alpha'] = 'Pole {field} môže obsahovať iba znaky abecedy.'; +$lang['form_validation_alpha_numeric'] = 'Pole {field} môže obsahovať iba znaky abecedy a čísla.'; +$lang['form_validation_alpha_numeric_spaces'] = 'Pole {field} môže obsahovať iba znaky abecedy, čísla a mezery.'; +$lang['form_validation_alpha_dash'] = 'Pole {field} môže obsahovať iba znaky abecedy, čísla, podtržítka a pomlčky.'; +$lang['form_validation_numeric'] = 'Pole {field} môže obsahovať iba čísla.'; +$lang['form_validation_is_numeric'] = 'Pole {field} môže obsahovať iba číselné znaky.'; +$lang['form_validation_integer'] = 'Pole {field} musí být celé číslo.'; +$lang['form_validation_regex_match'] = 'Pole {field} nie je v správnom formáte.'; +$lang['form_validation_matches'] = 'Pole {field} nie je zhodné s poľom {param}.'; +$lang['form_validation_differs'] = 'Pole {field} musí být rôzne od poľa {param}.'; +$lang['form_validation_is_unique'] = 'Pole {field} musí obsahovať unikátnu hodnotu.'; +$lang['form_validation_is_natural'] = 'Pole {field} môže obsahovať iba prirodzené čísla a nulu.'; +$lang['form_validation_is_natural_no_zero'] = 'Pole {field} môže obsahovať iba prirodzené čísla.'; +$lang['form_validation_decimal'] = 'Pole {field} musí obsahovať desatinné čislo.'; +$lang['form_validation_less_than'] = 'Pole {field} musí být menšie než pole {param}.'; +$lang['form_validation_less_than_equal_to'] = 'Pole {field} musí být menšie alebo rovnaké ako pole {param}.'; +$lang['form_validation_greater_than'] = 'Pole {field} musí být väčšie než pole {param}.'; +$lang['form_validation_greater_than_equal_to'] = 'Pole {field} musí být väčšie alebo rovnaké ako pole {param}.'; +$lang['form_validation_error_message_not_set'] = 'Pre pole {field} nie je nastavená chybová hláška.'; +$lang['form_validation_in_list'] = 'Pole {field} musí být jedným z: {param}.'; diff --git a/application/language/slovak/ftp_lang.php b/application/language/slovak/ftp_lang.php new file mode 100644 index 000000000..f7506dc77 --- /dev/null +++ b/application/language/slovak/ftp_lang.php @@ -0,0 +1,24 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['ftp_no_connection'] = 'Nebolo nájdené platné ID spojenia. Uistite sa, že máte otvorené pripojenie predtým ako začnete akúkoľvek manipuláciu so súbormi.'; +$lang['ftp_unable_to_connect'] = 'Nie je možné pripojiť sa k FTP serveru zo zadanou adresou.'; +$lang['ftp_unable_to_login'] = 'Nie je možné pripojiť sa k FTP serveru. Skontrolujte zadané užívateľské meno a heslo.'; +$lang['ftp_unable_to_mkdir'] = 'Požadovaný adresár nie je možné vytvoriť.'; +$lang['ftp_unable_to_changedir'] = 'Adresáre nie je možné zmeniť.'; +$lang['ftp_unable_to_chmod'] = 'Nie je možné nastaviť práva k súboru. Skontrolujte cestu. Poznámka: Táto funkcia je dostupná iba v PHP verzie 5 a vyšších.'; +$lang['ftp_unable_to_upload'] = 'Požadovaný súbor nemožno nahrať. Skontrolujte cestu.'; +$lang['ftp_unable_to_download'] = 'Nepodařilo se stáhnout soubor. Zkontrolujte prosím cestu.'; +$lang['ftp_no_source_file'] = 'Zrojový súbor nebol nájdený. Skontrolujte cestu.'; +$lang['ftp_unable_to_rename'] = 'Súbor sa nedá premenovať.'; +$lang['ftp_unable_to_delete'] = 'Súbor sa nedá zmazať.'; +$lang['ftp_unable_to_move'] = 'Súbor sa nedá presunúť. Uistite sa, že cieľový adresár existuje.'; diff --git a/application/language/slovak/imglib_lang.php b/application/language/slovak/imglib_lang.php new file mode 100644 index 000000000..275fc37b9 --- /dev/null +++ b/application/language/slovak/imglib_lang.php @@ -0,0 +1,29 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['imglib_source_image_required'] = 'V nastaveniach musíte určiť zdrojový obrázok.'; +$lang['imglib_gd_required'] = 'GD knižnica je povinná pre túto funkciu.'; +$lang['imglib_gd_required_for_props'] = 'Server musí podporovať GD knižnicu, aby mohol zistiť vlastnosti obrázku.'; +$lang['imglib_unsupported_imagecreate'] = 'Server nepodporuje funkcie GD knižnice pre prácu s týmto typom obrázku.'; +$lang['imglib_gif_not_supported'] = 'Obrázky GIF nie sú často podporované kvôli problémom s licenčnými obmedzeniami. Zvážte používanie JPG alebo PNG.'; +$lang['imglib_jpg_not_supported'] = 'JPG obrázky nie sú podporované.'; +$lang['imglib_png_not_supported'] = 'PNG obrázky nie sú podporované.'; +$lang['imglib_jpg_or_png_required'] = 'Protokol pre zmenšenie obrázkov určený v nastaveniach pracuje iba s obrázkami typu JPG a PNG.'; +$lang['imglib_copy_error'] = 'Pri pokuse o prepísanie súboru nastala chyba. Uistite sa, že je adresár je otvorený pre zápis.'; +$lang['imglib_rotate_unsupported'] = 'Otáčanie obrázkov pravdepodobne nie je podporované serverom.'; +$lang['imglib_libpath_invalid'] = 'Cesta ku knižnici pre prácu s obrazkami nie je správna. Nastavte správnu cestu v nastaveniach obrázkov.'; +$lang['imglib_image_process_failed'] = 'Spracovanie obrázku zlyhalo. Uistite sa, že server podporuje zvolený protokol a cesta ku knižnici je správna.'; +$lang['imglib_rotation_angle_required'] = 'Je potrebné zadať uhol rotácie pre otáčanie obrázku.'; +$lang['imglib_invalid_path'] = 'Cesta k obrázku nie je platná.'; +$lang['imglib_copy_failed'] = 'Kopírovanie obrázkov zlyhalo.'; +$lang['imglib_missing_font'] = 'Nie je možné nájsť požadované písmo.'; +$lang['imglib_save_failed'] = 'Nie je možné uložiť obrázok. Uistite sa prosím, že je možné zapisovať do adresára.'; diff --git a/system/language/en/index.html b/application/language/slovak/index.html similarity index 100% rename from system/language/en/index.html rename to application/language/slovak/index.html diff --git a/application/language/slovak/migration_lang.php b/application/language/slovak/migration_lang.php new file mode 100644 index 000000000..c8f60f779 --- /dev/null +++ b/application/language/slovak/migration_lang.php @@ -0,0 +1,20 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['migration_none_found'] = 'Žiadne migrácie neboli nájdené.'; +$lang['migration_not_found'] = 'Migrácia s číslom tejto verzie nebola nájdená: %s.'; +$lang['migration_sequence_gap'] = 'Chýbajúca migrácia v sekvencii blízko: %s.'; +$lang['migration_multiple_version'] = 'Existuje viacej migracií s rovnakým číslom verzie: %s.'; +$lang['migration_class_doesnt_exist'] = 'Trieda pre migráciu "%s" nebola nájdená.'; +$lang['migration_missing_up_method'] = 'V migračnej triede "%s" chýba "up" metoda.'; +$lang['migration_missing_down_method'] = 'V migračnej triede "%s" chýba "down" metoda.'; +$lang['migration_invalid_filename'] = 'Migrácia "%s" má chybné meno.'; diff --git a/application/language/slovak/number_lang.php b/application/language/slovak/number_lang.php new file mode 100644 index 000000000..333328760 --- /dev/null +++ b/application/language/slovak/number_lang.php @@ -0,0 +1,17 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['terabyte_abbr'] = 'TB'; +$lang['gigabyte_abbr'] = 'GB'; +$lang['megabyte_abbr'] = 'MB'; +$lang['kilobyte_abbr'] = 'KB'; +$lang['bytes'] = 'Bajtov'; diff --git a/application/language/slovak/pagination_lang.php b/application/language/slovak/pagination_lang.php new file mode 100644 index 000000000..09d3955b9 --- /dev/null +++ b/application/language/slovak/pagination_lang.php @@ -0,0 +1,16 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['pagination_first_link'] = '‹ Prvá'; +$lang['pagination_next_link'] = '>'; +$lang['pagination_prev_link'] = '<'; +$lang['pagination_last_link'] = 'Posledná ›'; diff --git a/application/language/slovak/profiler_lang.php b/application/language/slovak/profiler_lang.php new file mode 100644 index 000000000..0f7e55804 --- /dev/null +++ b/application/language/slovak/profiler_lang.php @@ -0,0 +1,33 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['profiler_database'] = 'DATABÁZA'; +$lang['profiler_controller_info'] = 'TRIEDA/METÓDA'; +$lang['profiler_benchmarks'] = 'ZROVNÁVACIE TESTY'; +$lang['profiler_queries'] = 'POŽIADAVKY'; +$lang['profiler_get_data'] = 'GET DATA'; +$lang['profiler_post_data'] = 'POST DATA'; +$lang['profiler_uri_string'] = 'REŤAZEC URI'; +$lang['profiler_memory_usage'] = 'POUŽITÁ Pamäť'; +$lang['profiler_config'] = 'PREMENNÉ V KONFIGURAČNOM SÚBORE'; +$lang['profiler_session_data'] = 'DÁTA TÝKAJÚCE SA SEDENÍ'; +$lang['profiler_headers'] = 'HTTP HLAVIČKY'; +$lang['profiler_no_db'] = 'Ovládač databázy nie je práve načítaný'; +$lang['profiler_no_queries'] = 'Neboli spustené žiadne požiadavky'; +$lang['profiler_no_post'] = 'Žiadne POST dáta'; +$lang['profiler_no_get'] = 'Žiadne GET dáta'; +$lang['profiler_no_uri'] = 'Žiadne URI dáta'; +$lang['profiler_no_memory'] = 'Neznáme množstvo pamäti'; +$lang['profiler_no_profiles'] = 'Žiadne dáta na profilovanie - všetky profilovacie sekcie boli vypnuté'; +$lang['profiler_section_hide'] = 'Skryť'; +$lang['profiler_section_show'] = 'Zobraziť'; +$lang['profiler_seconds'] = 'sekúnd'; diff --git a/application/language/slovak/unit_test_lang.php b/application/language/slovak/unit_test_lang.php new file mode 100644 index 000000000..938d8ab1e --- /dev/null +++ b/application/language/slovak/unit_test_lang.php @@ -0,0 +1,31 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['ut_test_name'] = 'Názov Testu'; +$lang['ut_test_datatype'] = 'Dátový typ testu'; +$lang['ut_res_datatype'] = 'očakávaný dátový typ'; +$lang['ut_result'] = 'Výsledok'; +$lang['ut_undefined'] = 'Nešpecifikované meno testu'; +$lang['ut_file'] = 'Meno súboru'; +$lang['ut_line'] = 'Číslo riadku'; +$lang['ut_passed'] = 'Prešlo'; +$lang['ut_failed'] = 'Neprešlo'; +$lang['ut_boolean'] = 'Logické 1/0'; +$lang['ut_integer'] = 'Celé číslo'; +$lang['ut_float'] = 'Desatinné číslo'; +$lang['ut_double'] = 'Presné desatinné číslo'; // can be the same as float +$lang['ut_string'] = 'Reťazec'; +$lang['ut_array'] = 'Pole'; +$lang['ut_object'] = 'Objekt'; +$lang['ut_resource'] = 'Zdroj'; +$lang['ut_null'] = 'Null'; +$lang['ut_notes'] = 'Poznámky'; diff --git a/application/language/slovak/upload_lang.php b/application/language/slovak/upload_lang.php new file mode 100644 index 000000000..7b1429dd1 --- /dev/null +++ b/application/language/slovak/upload_lang.php @@ -0,0 +1,28 @@ + + * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) + * @license http://opensource.org/licenses/MIT MIT License + * @link http://codeigniter.com + */ +defined('BASEPATH') OR exit('No direct script access allowed'); + +$lang['upload_userfile_not_set'] = 'Nie je možné nájsť POST promennú userfile.'; +$lang['upload_file_exceeds_limit'] = 'Nahrávaný súbor prekročil limit veľkosti daný konfiguráciou PHP.'; +$lang['upload_file_exceeds_form_limit'] = 'Nahrávaný súbor prekročil limit veľkosti daný odoslaným formulárom.'; +$lang['upload_file_partial'] = 'Súbor bol nahratý iba čiastočne.'; +$lang['upload_no_temp_directory'] = 'Chýba dočasný adresár.'; +$lang['upload_unable_to_write_file'] = 'Súbor nemohol byť zapísaný na disk.'; +$lang['upload_stopped_by_extension'] = 'Nahrávanie súboru bolo zastavené rozšírením.'; +$lang['upload_no_file_selected'] = 'Nebol vybraný žiadny súbor na nahrávanie.'; +$lang['upload_invalid_filetype'] = 'Pokúšate sa nahrať nepovolený typ súboru.'; +$lang['upload_invalid_filesize'] = 'Pokúšate sa nahrať súbor prekračujúci povolenú veľkosť.'; +$lang['upload_invalid_dimensions'] = 'Pokúšate sa nahrať obrázok prekračujúci povolenú veľkosť aspoň v jednom rozmere.'; +$lang['upload_destination_error'] = 'Nastal problém pri pokuse o presun súboru do konečného umiestnenia.'; +$lang['upload_no_filepath'] = 'Cesta pre nahrávanie pravdepodobne nie je platná.'; +$lang['upload_no_file_types'] = 'Nie sú nastavené žiadne povolené typy súborov.'; +$lang['upload_bad_filename'] = 'Súbor s rovnakým názvom je už nahratý na serveri.'; +$lang['upload_not_writable'] = 'Cesta pre nahrávanie pravdepodobne nie je zapisovateľná.'; diff --git a/system/language/hr-HR/calendar_lang.php b/application/language/slovenian/calendar_lang.php similarity index 57% rename from system/language/hr-HR/calendar_lang.php rename to application/language/slovenian/calendar_lang.php index cb5c1e914..e1f74beae 100644 --- a/system/language/hr-HR/calendar_lang.php +++ b/application/language/slovenian/calendar_lang.php @@ -28,57 +28,57 @@ * * @package CodeIgniter * @author EllisLab Dev Team - * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/) + * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) * @license http://opensource.org/licenses/MIT MIT License - * @link https://codeigniter.com + * @link http://codeigniter.com * @since Version 1.0.0 * @filesource */ -defined('BASEPATH') OR exit('Nije dozvoljen direktan pristup'); +defined('BASEPATH') OR exit('No direct script access allowed'); $lang['cal_su'] = 'Ne'; $lang['cal_mo'] = 'Po'; -$lang['cal_tu'] = 'Ut'; +$lang['cal_tu'] = 'To'; $lang['cal_we'] = 'Sr'; $lang['cal_th'] = 'Če'; $lang['cal_fr'] = 'Pe'; -$lang['cal_sa'] = 'Su'; +$lang['cal_sa'] = 'So'; $lang['cal_sun'] = 'Ned'; $lang['cal_mon'] = 'Pon'; -$lang['cal_tue'] = 'Uto'; -$lang['cal_wed'] = 'Sri'; +$lang['cal_tue'] = 'Tor'; +$lang['cal_wed'] = 'Sre'; $lang['cal_thu'] = 'Čet'; -$lang['cal_fri'] = 'Fet'; -$lang['cal_sat'] = 'Sub'; -$lang['cal_sunday'] = 'Nedjelja'; -$lang['cal_monday'] = 'ponedjeljak'; -$lang['cal_tuesday'] = 'Utorak'; -$lang['cal_wednesday'] = 'Srijed'; -$lang['cal_thursday'] = 'Četvrtak'; -$lang['cal_friday'] = 'Fetak'; -$lang['cal_saturday'] = 'Subota'; -$lang['cal_jan'] = 'Sij'; -$lang['cal_feb'] = 'Velj'; -$lang['cal_mar'] = 'Ožu'; -$lang['cal_apr'] = 'Tra'; -$lang['cal_may'] = 'Svi'; -$lang['cal_jun'] = 'Lip'; -$lang['cal_jul'] = 'Srp'; -$lang['cal_aug'] = 'Kol'; -$lang['cal_sep'] = 'Ruj'; -$lang['cal_oct'] = 'Lis'; -$lang['cal_nov'] = 'Stu'; -$lang['cal_dec'] = 'Pro'; -$lang['cal_january'] = 'Siječanj'; -$lang['cal_february'] = 'Veljača'; -$lang['cal_march'] = 'Ožujak'; -$lang['cal_april'] = 'Travanj'; -$lang['cal_mayl'] = 'Svibanj'; -$lang['cal_june'] = 'Lipanj'; -$lang['cal_july'] = 'Srpanj'; -$lang['cal_august'] = 'Kolovoz'; -$lang['cal_september'] = 'Rujan'; -$lang['cal_october'] = 'Listopad'; -$lang['cal_november'] = 'Studeni'; -$lang['cal_december'] = 'Prosinac'; +$lang['cal_fri'] = 'Pet'; +$lang['cal_sat'] = 'Sob'; +$lang['cal_sunday'] = 'Nedelja'; +$lang['cal_monday'] = 'Ponedeljek'; +$lang['cal_tuesday'] = 'Torek'; +$lang['cal_wednesday'] = 'Sreda'; +$lang['cal_thursday'] = 'Četrtek'; +$lang['cal_friday'] = 'Petek'; +$lang['cal_saturday'] = 'Sobota'; +$lang['cal_jan'] = 'Jan'; +$lang['cal_feb'] = 'Feb'; +$lang['cal_mar'] = 'Mar'; +$lang['cal_apr'] = 'Apr'; +$lang['cal_may'] = 'Maj'; +$lang['cal_jun'] = 'Jun'; +$lang['cal_jul'] = 'Jul'; +$lang['cal_aug'] = 'Avg'; +$lang['cal_sep'] = 'Sep'; +$lang['cal_oct'] = 'Okt'; +$lang['cal_nov'] = 'Nov'; +$lang['cal_dec'] = 'Dec'; +$lang['cal_january'] = 'Januar'; +$lang['cal_february'] = 'Februar'; +$lang['cal_march'] = 'Marec'; +$lang['cal_april'] = 'April'; +$lang['cal_mayl'] = 'Maj'; +$lang['cal_june'] = 'Junij'; +$lang['cal_july'] = 'Julij'; +$lang['cal_august'] = 'Avgust'; +$lang['cal_september'] = 'September'; +$lang['cal_october'] = 'Oktober'; +$lang['cal_november'] = 'November'; +$lang['cal_december'] = 'December'; diff --git a/system/language/hr-HR/date_lang.php b/application/language/slovenian/date_lang.php similarity index 90% rename from system/language/hr-HR/date_lang.php rename to application/language/slovenian/date_lang.php index 49165568e..5a3620e84 100644 --- a/system/language/hr-HR/date_lang.php +++ b/application/language/slovenian/date_lang.php @@ -28,25 +28,25 @@ * * @package CodeIgniter * @author EllisLab Dev Team - * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/) + * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) * @license http://opensource.org/licenses/MIT MIT License - * @link https://codeigniter.com + * @link http://codeigniter.com * @since Version 1.0.0 * @filesource */ -defined('BASEPATH') OR exit('Nije dozvoljen direktan pristup'); +defined('BASEPATH') OR exit('No direct script access allowed'); -$lang['date_year'] = 'Godina'; -$lang['date_years'] = 'Godine'; -$lang['date_month'] = 'Mjesec'; -$lang['date_months'] = 'Mjeseci'; -$lang['date_week'] = 'Tjedan'; -$lang['date_weeks'] = 'Tjedni'; +$lang['date_year'] = 'Let'; +$lang['date_years'] = 'Leta'; +$lang['date_month'] = 'Mesec'; +$lang['date_months'] = 'Meseci'; +$lang['date_week'] = 'Teden'; +$lang['date_weeks'] = 'Tedni'; $lang['date_day'] = 'Dan'; -$lang['date_days'] = 'Dani'; -$lang['date_hour'] = 'Sat'; -$lang['date_hours'] = 'Sati'; +$lang['date_days'] = 'Dni'; +$lang['date_hour'] = 'Ura'; +$lang['date_hours'] = 'Ure'; $lang['date_minute'] = 'Minuta'; $lang['date_minutes'] = 'Minute'; $lang['date_second'] = 'Sekunda'; diff --git a/application/language/slovenian/db_lang.php b/application/language/slovenian/db_lang.php new file mode 100644 index 000000000..6e41de86b --- /dev/null +++ b/application/language/slovenian/db_lang.php @@ -0,0 +1,63 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/application/language/tamil/migration_lang.php b/application/language/tamil/migration_lang.php new file mode 100644 index 000000000..57056e7c0 --- /dev/null +++ b/application/language/tamil/migration_lang.php @@ -0,0 +1,19 @@ +
- lang->line('config_tax_decimals'), 'language', array('class' => 'control-label col-xs-2')); ?> + lang->line('config_tax_decimals'), 'tax_decimals', array('class' => 'control-label col-xs-2')); ?>
'0', diff --git a/application/views/partial/header.php b/application/views/partial/header.php index 873d5d59d..044715455 100644 --- a/application/views/partial/header.php +++ b/application/views/partial/header.php @@ -8,15 +8,15 @@ input->cookie('debug') == "true" || $this->input->get("debug") == "true") : ?> - - - - - - - - - + + + + + + + + + @@ -30,31 +30,31 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -71,7 +71,7 @@ - + diff --git a/dist/style.css b/bin/.placeholder similarity index 100% rename from dist/style.css rename to bin/.placeholder diff --git a/bin/check-diff.sh b/bin/check-diff.sh new file mode 100755 index 000000000..4a3873b73 --- /dev/null +++ b/bin/check-diff.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +## Part of CodeIgniter Composer Installer +## +## @author Kenji Suzuki +## @license MIT License +## @copyright 2015 Kenji Suzuki +## @link https://github.com/kenjis/codeigniter-composer-installer + +cd `dirname $0` +cd .. + +diff -urN vendor/codeigniter/framework/application application +diff -u vendor/codeigniter/framework/index.php public/index.php diff --git a/bin/install.php b/bin/install.php new file mode 100755 index 000000000..2b9741501 --- /dev/null +++ b/bin/install.php @@ -0,0 +1,286 @@ +#!/usr/bin/env php +install($package, $version); +} else { + echo $installer->usage($argv[0]); +} + + +class Installer +{ + protected $tmp_dir; + protected $packages = array(); + + public function __construct() { + $this->tmp_dir = __DIR__ . '/tmp'; + @mkdir($this->tmp_dir); + + $this->packages = array( + 'translations' => array( + 'site' => 'github', + 'user' => 'bcit-ci', + 'repos' => 'codeigniter3-translations', + 'name' => 'Translations for CodeIgniter System Messages', + 'dir' => 'application', + 'example_branch' => '3.0.0', + ), + 'restserver' => array( + 'site' => 'github', + 'user' => 'chriskacerguis', + 'repos' => 'codeigniter-restserver', + 'name' => 'CodeIgniter Rest Server', + 'dir' => array('config', 'controllers', 'language', 'libraries', 'views'), + 'pre' => 'application/', + 'msg' => 'See https://github.com/chriskacerguis/codeigniter-restserver', + 'example_branch' => '2.7.2', + ), + 'matches-cli' => array( + 'site' => 'github', + 'user' => 'avenirer', + 'repos' => 'codeigniter-matches-cli', + 'name' => 'Codeigniter Matches CLI', + 'dir' => array('config', 'controllers', 'views'), + 'msg' => 'See http://avenirer.github.io/codeigniter-matches-cli/', + 'example_branch' => 'master', + ), + 'hmvc-modules' => array( + 'site' => 'github', + 'user' => 'jenssegers', + 'repos' => 'codeigniter-hmvc-modules', + 'name' => 'CodeIgniter HMVC Modules (jenssegers)', + 'dir' => array('core', 'third_party'), + 'msg' => 'See https://github.com/jenssegers/codeigniter-hmvc-modules#installation', + 'example_branch' => 'master', + ), + 'modular-extensions-hmvc' => array( + 'site' => 'bitbucket', + 'user' => 'wiredesignz', + 'repos' => 'codeigniter-modular-extensions-hmvc', + 'name' => 'Modular Extensions - HMVC (wiredesignz)', + 'dir' => array('core', 'third_party'), + 'msg' => 'See https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc', + 'example_branch' => 'codeigniter-3.x', + ), + 'ion-auth' => array( + 'site' => 'github', + 'user' => 'benedmunds', + 'repos' => 'CodeIgniter-Ion-Auth', + 'name' => 'Codeigniter Ion Auth', + 'dir' => array( + 'config', 'controllers', 'language', 'libraries', + 'migrations', 'models', 'sql', 'views' + ), + 'msg' => 'See http://benedmunds.com/ion_auth/', + 'example_branch' => '2', + ), + 'filename-checker' => array( + 'site' => 'github', + 'user' => 'kenjis', + 'repos' => 'codeigniter3-filename-checker', + 'name' => 'CodeIgniter3 Filename Checker', + 'dir' => 'controllers', + 'msg' => 'See https://github.com/kenjis/codeigniter3-filename-checker', + 'example_branch' => 'master', + ), + ); + } + + public function usage($self) + { + $msg = 'You can install:' . PHP_EOL; + + foreach ($this->packages as $key => $value) { + $msg .= ' ' . $value['name'] . ' (' . $key . ')' . PHP_EOL; + } + + $msg .= PHP_EOL; + $msg .= 'Usage:' . PHP_EOL; + $msg .= ' php install.php ' . PHP_EOL; + $msg .= PHP_EOL; + $msg .= 'Examples:' . PHP_EOL; + + foreach ($this->packages as $key => $value) { + $msg .= " php $self $key " . $value['example_branch'] . PHP_EOL; + } + + return $msg; + } + + public function install($package, $version) + { + if (! isset($this->packages[$package])) + { + return 'Error! no such package: ' . $package . PHP_EOL; + } + + // github + if ($this->packages[$package]['site'] === 'github') { + $method = 'downloadFromGithub'; + } elseif ($this->packages[$package]['site'] === 'bitbucket') { + $method = 'downloadFromBitbucket'; + } else { + throw new LogicException( + 'Error! no such repos type: ' . $this->packages[$package]['site'] + ); + } + + list($src, $dst) = $this->$method($package, $version); + + $this->recursiveCopy($src, $dst); + $this->recursiveUnlink($this->tmp_dir); + + $msg = 'Installed: ' . $package .PHP_EOL; + if (isset($this->packages[$package]['msg'])) { + $msg .= $this->packages[$package]['msg'] . PHP_EOL; + } + return $msg; + } + + private function downloadFromGithub($package, $version) + { + $user = $this->packages[$package]['user']; + $repos = $this->packages[$package]['repos']; + $url = "https://github.com/$user/$repos/archive/$version.zip"; + $filepath = $this->download($url); + $this->unzip($filepath); + + $dir = $this->packages[$package]['dir']; + $pre = isset($this->packages[$package]['pre']) ? $this->packages[$package]['pre'] : ''; + + if (is_string($dir)) { + $src = realpath(dirname($filepath) . "/$repos-$version/$pre$dir"); + $dst = realpath(__DIR__ . "/../application/$dir"); + return array($src, $dst); + } + + foreach ($dir as $directory) { + $src[] = realpath(dirname($filepath) . "/$repos-$version/$pre$directory"); + @mkdir(__DIR__ . "/../application/$directory"); + $dst[] = realpath(__DIR__ . "/../application/$directory"); + } + return array($src, $dst); + } + + private function downloadFromBitbucket($package, $version) + { + $user = $this->packages[$package]['user']; + $repos = $this->packages[$package]['repos']; + // https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/get/codeigniter-3.x.zip + $url = "https://bitbucket.org/$user/$repos/get/$version.zip"; + $filepath = $this->download($url); + $dirname = $this->unzip($filepath); + + $dir = $this->packages[$package]['dir']; + + if (is_string($dir)) { + $src = realpath(dirname($filepath) . "/$dirname/$dir"); + $dst = realpath(__DIR__ . "/../application/$dir"); + return array($src, $dst); + } + + foreach ($dir as $directory) { + $src[] = realpath(dirname($filepath) . "/$dirname/$directory"); + @mkdir(__DIR__ . "/../application/$directory"); + $dst[] = realpath(__DIR__ . "/../application/$directory"); + } + return array($src, $dst); + } + + private function download($url) + { + $file = file_get_contents($url); + if ($file === false) { + throw new RuntimeException("Can't download: $url"); + } + echo 'Downloaded: ' . $url . PHP_EOL; + + $urls = parse_url($url); + $filepath = $this->tmp_dir . '/' . basename($urls['path']); + file_put_contents($filepath, $file); + + return $filepath; + } + + private function unzip($filepath) + { + $zip = new ZipArchive(); + if ($zip->open($filepath) === TRUE) { + $tmp = explode('/', $zip->getNameIndex(0)); + $dirname = $tmp[0]; + $zip->extractTo($this->tmp_dir . '/'); + $zip->close(); + } else { + throw new RuntimeException('Failed to unzip: ' . $filepath); + } + + return $dirname; + } + + /** + * Recursive Copy + * + * @param string $src + * @param string $dst + */ + private function recursiveCopy($src, $dst) + { + if ($src === false) { + return; + } + + if (is_array($src)) { + foreach ($src as $key => $source) { + $this->recursiveCopy($source, $dst[$key]); + } + + return; + } + + @mkdir($dst, 0755); + + $iterator = new \RecursiveIteratorIterator( + new \RecursiveDirectoryIterator($src, \RecursiveDirectoryIterator::SKIP_DOTS), + \RecursiveIteratorIterator::SELF_FIRST + ); + + foreach ($iterator as $file) { + if ($file->isDir()) { + @mkdir($dst . '/' . $iterator->getSubPathName()); + } else { + $success = copy($file, $dst . '/' . $iterator->getSubPathName()); + if ($success) { + echo 'copied: ' . $dst . '/' . $iterator->getSubPathName() . PHP_EOL; + } + } + } + } + + /** + * Recursive Unlink + * + * @param string $dir + */ + private function recursiveUnlink($dir) + { + $iterator = new \RecursiveIteratorIterator( + new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS), + \RecursiveIteratorIterator::CHILD_FIRST + ); + + foreach ($iterator as $file) { + if ($file->isDir()) { + rmdir($file); + } else { + unlink($file); + } + } + + rmdir($dir); + } +} diff --git a/bin/my-codeigniter.sh b/bin/my-codeigniter.sh new file mode 100755 index 000000000..0c3b38a20 --- /dev/null +++ b/bin/my-codeigniter.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +cd `dirname $0` +cd .. + +# Install translations +php bin/install.php translations develop + +# Install Roave Security Advisories +composer require roave/security-advisories:dev-master + +# Install CodeIgniter Simple and Secure Twig +composer require kenjis/codeigniter-ss-twig:1.0.x@dev +php vendor/kenjis/codeigniter-ss-twig/install.php + +# Install Codeigniter Matches CLI +php bin/install.php matches-cli master + +# Install Cli for CodeIgniter +composer require kenjis/codeigniter-cli --dev +php vendor/kenjis/codeigniter-cli/install.php + +# Install CI PHPUnit Test +composer require kenjis/ci-phpunit-test --dev +php vendor/kenjis/ci-phpunit-test/install.php + +# Install CodeIgniter Deployer +composer require kenjis/codeigniter-deployer:1.0.x@dev --dev +php vendor/kenjis/codeigniter-deployer/install.php diff --git a/bin/router.php b/bin/router.php new file mode 100644 index 000000000..5b481643a --- /dev/null +++ b/bin/router.php @@ -0,0 +1,28 @@ + + * @license MIT License + * @copyright 2015 Kenji Suzuki + * @link https://github.com/kenjis/codeigniter-composer-installer + */ + +/** + * Router script for PHP built-in server + */ +$_SERVER = array_merge($_SERVER, $_ENV); + +$file = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_NAME']; +//echo $file, PHP_EOL; + +if (is_file($file)) { + return false; +} + +$_SERVER['SCRIPT_NAME'] = '/index.php'; +$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'] . '/index.php'; +//echo $_SERVER['SCRIPT_FILENAME'], PHP_EOL; + +chdir($_SERVER['DOCUMENT_ROOT']); +require $_SERVER['SCRIPT_FILENAME']; diff --git a/bin/server.sh b/bin/server.sh new file mode 100755 index 000000000..b3d9c4879 --- /dev/null +++ b/bin/server.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +## Part of CodeIgniter Composer Installer +## +## @author Kenji Suzuki +## @license MIT License +## @copyright 2015 Kenji Suzuki +## @link https://github.com/kenjis/codeigniter-composer-installer + +cd `dirname $0` +cd .. + +php -S 127.0.0.1:8000 -t public/ bin/router.php diff --git a/composer.json b/composer.json new file mode 100644 index 000000000..587f42b6c --- /dev/null +++ b/composer.json @@ -0,0 +1,11 @@ +{ + "description" : "The CodeIgniter Application with Composer", + "license": "MIT", + "require": { + "php": ">=5.5", + "codeigniter/framework": "3.1.*" + }, + "require-dev": { + "mikey179/vfsStream": "1.1.*" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 000000000..92c67796b --- /dev/null +++ b/composer.lock @@ -0,0 +1,84 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "966cecf2df654d1dfd70cd43fb003733", + "content-hash": "78b53221cd4c9fba3f05b27dd71cbb88", + "packages": [ + { + "name": "codeigniter/framework", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/bcit-ci/CodeIgniter.git", + "reference": "6ae943a4cea2434ccc582766724af21191e14fcd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bcit-ci/CodeIgniter/zipball/6ae943a4cea2434ccc582766724af21191e14fcd", + "reference": "6ae943a4cea2434ccc582766724af21191e14fcd", + "shasum": "" + }, + "require": { + "php": ">=5.2.4" + }, + "require-dev": { + "mikey179/vfsstream": "1.1.*" + }, + "suggest": { + "paragonie/random_compat": "Provides better randomness in PHP 5.x" + }, + "type": "project", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "The CodeIgniter framework", + "homepage": "https://codeigniter.com", + "time": "2016-07-26 17:36:48" + } + ], + "packages-dev": [ + { + "name": "mikey179/vfsStream", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/mikey179/vfsStream.git", + "reference": "fc0fe8f4d0b527254a2dc45f0c265567c881d07e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mikey179/vfsStream/zipball/fc0fe8f4d0b527254a2dc45f0c265567c881d07e", + "reference": "fc0fe8f4d0b527254a2dc45f0c265567c881d07e", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "org\\bovigo\\vfs": "src/main/php" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD" + ], + "homepage": "http://vfs.bovigo.org/", + "time": "2012-08-25 12:49:29" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.5" + }, + "platform-dev": [] +} diff --git a/docker-compose.yml b/docker-compose.yml index fb3a74795..edde4ab15 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: ports: - "80:80" volumes: - - uploads:/app/uploads + - .:/app environment: - MYSQL_USERNAME=admin - MYSQL_PASSWORD=pointofsale diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 000000000..e90dff92a --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ index.php/$1 [L] diff --git a/dist/barcode_font.css b/public/dist/barcode_font.css similarity index 100% rename from dist/barcode_font.css rename to public/dist/barcode_font.css diff --git a/dist/bootswatch/cerulean/bootstrap.min.css b/public/dist/bootswatch/cerulean/bootstrap.min.css similarity index 100% rename from dist/bootswatch/cerulean/bootstrap.min.css rename to public/dist/bootswatch/cerulean/bootstrap.min.css diff --git a/dist/bootswatch/cosmo/bootstrap.min.css b/public/dist/bootswatch/cosmo/bootstrap.min.css similarity index 100% rename from dist/bootswatch/cosmo/bootstrap.min.css rename to public/dist/bootswatch/cosmo/bootstrap.min.css diff --git a/dist/bootswatch/cyborg/bootstrap.min.css b/public/dist/bootswatch/cyborg/bootstrap.min.css similarity index 100% rename from dist/bootswatch/cyborg/bootstrap.min.css rename to public/dist/bootswatch/cyborg/bootstrap.min.css diff --git a/dist/bootswatch/darkly/bootstrap.min.css b/public/dist/bootswatch/darkly/bootstrap.min.css similarity index 100% rename from dist/bootswatch/darkly/bootstrap.min.css rename to public/dist/bootswatch/darkly/bootstrap.min.css diff --git a/dist/bootswatch/flatly/bootstrap.min.css b/public/dist/bootswatch/flatly/bootstrap.min.css similarity index 100% rename from dist/bootswatch/flatly/bootstrap.min.css rename to public/dist/bootswatch/flatly/bootstrap.min.css diff --git a/dist/bootswatch/fonts/glyphicons-halflings-regular.eot b/public/dist/bootswatch/fonts/glyphicons-halflings-regular.eot similarity index 100% rename from dist/bootswatch/fonts/glyphicons-halflings-regular.eot rename to public/dist/bootswatch/fonts/glyphicons-halflings-regular.eot diff --git a/dist/bootswatch/fonts/glyphicons-halflings-regular.svg b/public/dist/bootswatch/fonts/glyphicons-halflings-regular.svg similarity index 100% rename from dist/bootswatch/fonts/glyphicons-halflings-regular.svg rename to public/dist/bootswatch/fonts/glyphicons-halflings-regular.svg diff --git a/dist/bootswatch/fonts/glyphicons-halflings-regular.ttf b/public/dist/bootswatch/fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from dist/bootswatch/fonts/glyphicons-halflings-regular.ttf rename to public/dist/bootswatch/fonts/glyphicons-halflings-regular.ttf diff --git a/dist/bootswatch/fonts/glyphicons-halflings-regular.woff b/public/dist/bootswatch/fonts/glyphicons-halflings-regular.woff similarity index 100% rename from dist/bootswatch/fonts/glyphicons-halflings-regular.woff rename to public/dist/bootswatch/fonts/glyphicons-halflings-regular.woff diff --git a/dist/bootswatch/fonts/glyphicons-halflings-regular.woff2 b/public/dist/bootswatch/fonts/glyphicons-halflings-regular.woff2 similarity index 100% rename from dist/bootswatch/fonts/glyphicons-halflings-regular.woff2 rename to public/dist/bootswatch/fonts/glyphicons-halflings-regular.woff2 diff --git a/dist/bootswatch/journal/bootstrap.min.css b/public/dist/bootswatch/journal/bootstrap.min.css similarity index 100% rename from dist/bootswatch/journal/bootstrap.min.css rename to public/dist/bootswatch/journal/bootstrap.min.css diff --git a/dist/bootswatch/paper/bootstrap.min.css b/public/dist/bootswatch/paper/bootstrap.min.css similarity index 100% rename from dist/bootswatch/paper/bootstrap.min.css rename to public/dist/bootswatch/paper/bootstrap.min.css diff --git a/dist/bootswatch/readable/bootstrap.min.css b/public/dist/bootswatch/readable/bootstrap.min.css similarity index 100% rename from dist/bootswatch/readable/bootstrap.min.css rename to public/dist/bootswatch/readable/bootstrap.min.css diff --git a/dist/bootswatch/sandstone/bootstrap.min.css b/public/dist/bootswatch/sandstone/bootstrap.min.css similarity index 100% rename from dist/bootswatch/sandstone/bootstrap.min.css rename to public/dist/bootswatch/sandstone/bootstrap.min.css diff --git a/dist/bootswatch/slate/bootstrap.min.css b/public/dist/bootswatch/slate/bootstrap.min.css similarity index 100% rename from dist/bootswatch/slate/bootstrap.min.css rename to public/dist/bootswatch/slate/bootstrap.min.css diff --git a/dist/bootswatch/spacelab/bootstrap.min.css b/public/dist/bootswatch/spacelab/bootstrap.min.css similarity index 100% rename from dist/bootswatch/spacelab/bootstrap.min.css rename to public/dist/bootswatch/spacelab/bootstrap.min.css diff --git a/dist/bootswatch/superhero/bootstrap.min.css b/public/dist/bootswatch/superhero/bootstrap.min.css similarity index 100% rename from dist/bootswatch/superhero/bootstrap.min.css rename to public/dist/bootswatch/superhero/bootstrap.min.css diff --git a/dist/bootswatch/united/bootstrap.min.css b/public/dist/bootswatch/united/bootstrap.min.css similarity index 100% rename from dist/bootswatch/united/bootstrap.min.css rename to public/dist/bootswatch/united/bootstrap.min.css diff --git a/dist/bootswatch/yeti/bootstrap.min.css b/public/dist/bootswatch/yeti/bootstrap.min.css similarity index 100% rename from dist/bootswatch/yeti/bootstrap.min.css rename to public/dist/bootswatch/yeti/bootstrap.min.css diff --git a/dist/invoice_email.css b/public/dist/invoice_email.css similarity index 100% rename from dist/invoice_email.css rename to public/dist/invoice_email.css diff --git a/dist/jquery-ui.css b/public/dist/jquery-ui.css similarity index 100% rename from dist/jquery-ui.css rename to public/dist/jquery-ui.css diff --git a/dist/login.css b/public/dist/login.css similarity index 100% rename from dist/login.css rename to public/dist/login.css diff --git a/dist/opensourcepos.js b/public/dist/opensourcepos.js similarity index 100% rename from dist/opensourcepos.js rename to public/dist/opensourcepos.js diff --git a/dist/opensourcepos.min.css b/public/dist/opensourcepos.min.css similarity index 100% rename from dist/opensourcepos.min.css rename to public/dist/opensourcepos.min.css diff --git a/dist/opensourcepos.min.js b/public/dist/opensourcepos.min.js similarity index 99% rename from dist/opensourcepos.min.js rename to public/dist/opensourcepos.min.js index 1c584fcbd..3fcafa9ae 100644 --- a/dist/opensourcepos.min.js +++ b/public/dist/opensourcepos.min.js @@ -1,4 +1,4 @@ -/*! opensourcepos 11-08-2016 */ +/*! opensourcepos 12-08-2016 */ function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}if(function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=!!a&&"length"in a&&a.length,c=na.type(a);return"function"===c||na.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(na.isFunction(b))return na.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return na.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(xa.test(b))return na.filter(b,a,c);b=na.filter(b,a)}return na.grep(a,function(a){return na.inArray(a,b)>-1!==c})}function e(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}function f(a){var b={};return na.each(a.match(Da)||[],function(a,c){b[c]=!0}),b}function g(){da.addEventListener?(da.removeEventListener("DOMContentLoaded",h),a.removeEventListener("load",h)):(da.detachEvent("onreadystatechange",h),a.detachEvent("onload",h))}function h(){(da.addEventListener||"load"===a.event.type||"complete"===da.readyState)&&(g(),na.ready())}function i(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(Ia,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:Ha.test(c)?na.parseJSON(c):c}catch(e){}na.data(a,b,c)}else c=void 0}return c}function j(a){var b;for(b in a)if(("data"!==b||!na.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function k(a,b,c,d){if(Ga(a)){var e,f,g=na.expando,h=a.nodeType,i=h?na.cache:a,j=h?a[g]:a[g]&&g;if(j&&i[j]&&(d||i[j].data)||void 0!==c||"string"!=typeof b)return j||(j=h?a[g]=ca.pop()||na.guid++:g),i[j]||(i[j]=h?{}:{toJSON:na.noop}),("object"==typeof b||"function"==typeof b)&&(d?i[j]=na.extend(i[j],b):i[j].data=na.extend(i[j].data,b)),f=i[j],d||(f.data||(f.data={}),f=f.data),void 0!==c&&(f[na.camelCase(b)]=c),"string"==typeof b?(e=f[b],null==e&&(e=f[na.camelCase(b)])):e=f,e}}function l(a,b,c){if(Ga(a)){var d,e,f=a.nodeType,g=f?na.cache:a,h=f?a[na.expando]:na.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){na.isArray(b)?b=b.concat(na.map(b,na.camelCase)):b in d?b=[b]:(b=na.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;for(;e--;)delete d[b[e]];if(c?!j(d):!na.isEmptyObject(d))return}(c||(delete g[h].data,j(g[h])))&&(f?na.cleanData([a],!0):la.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}function m(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return na.css(a,b,"")},i=h(),j=c&&c[3]||(na.cssNumber[b]?"":"px"),k=(na.cssNumber[b]||"px"!==j&&+i)&&Ka.exec(na.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,na.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function n(a){var b=Sa.split("|"),c=a.createDocumentFragment();if(c.createElement)for(;b.length;)c.createElement(b.pop());return c}function o(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||na.nodeName(d,b)?f.push(d):na.merge(f,o(d,b));return void 0===b||b&&na.nodeName(a,b)?na.merge([a],f):f}function p(a,b){for(var c,d=0;null!=(c=a[d]);d++)na._data(c,"globalEval",!b||na._data(b[d],"globalEval"))}function q(a){Oa.test(a.type)&&(a.defaultChecked=a.checked)}function r(a,b,c,d,e){for(var f,g,h,i,j,k,l,m=a.length,r=n(b),s=[],t=0;m>t;t++)if(g=a[t],g||0===g)if("object"===na.type(g))na.merge(s,g.nodeType?[g]:g);else if(Ua.test(g)){for(i=i||r.appendChild(b.createElement("div")),j=(Pa.exec(g)||["",""])[1].toLowerCase(),l=Ta[j]||Ta._default,i.innerHTML=l[1]+na.htmlPrefilter(g)+l[2],f=l[0];f--;)i=i.lastChild;if(!la.leadingWhitespace&&Ra.test(g)&&s.push(b.createTextNode(Ra.exec(g)[0])),!la.tbody)for(g="table"!==j||Va.test(g)?""!==l[1]||Va.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;f--;)na.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k);for(na.merge(s,i.childNodes),i.textContent="";i.firstChild;)i.removeChild(i.firstChild);i=r.lastChild}else s.push(b.createTextNode(g));for(i&&r.removeChild(i),la.appendChecked||na.grep(o(s,"input"),q),t=0;g=s[t++];)if(d&&na.inArray(g,d)>-1)e&&e.push(g);else if(h=na.contains(g.ownerDocument,g),i=o(r.appendChild(g),"script"),h&&p(i),c)for(f=0;g=i[f++];)Qa.test(g.type||"")&&c.push(g);return i=null,r}function s(){return!0}function t(){return!1}function u(){try{return da.activeElement}catch(a){}}function v(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)v(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=t;else if(!e)return a;return 1===f&&(g=e,e=function(a){return na().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=na.guid++)),a.each(function(){na.event.add(this,b,e,d,c)})}function w(a,b){return na.nodeName(a,"table")&&na.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function x(a){return a.type=(null!==na.find.attr(a,"type"))+"/"+a.type,a}function y(a){var b=eb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function z(a,b){if(1===b.nodeType&&na.hasData(a)){var c,d,e,f=na._data(a),g=na._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)na.event.add(b,c,h[c][d])}g.data&&(g.data=na.extend({},g.data))}}function A(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!la.noCloneEvent&&b[na.expando]){e=na._data(b);for(d in e.events)na.removeEvent(b,d,e.handle);b.removeAttribute(na.expando)}"script"===c&&b.text!==a.text?(x(b).text=a.text,y(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),la.html5Clone&&a.innerHTML&&!na.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Oa.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}function B(a,b,c,d){b=fa.apply([],b);var e,f,g,h,i,j,k=0,l=a.length,m=l-1,n=b[0],p=na.isFunction(n);if(p||l>1&&"string"==typeof n&&!la.checkClone&&db.test(n))return a.each(function(e){var f=a.eq(e);p&&(b[0]=n.call(this,e,f.html())),B(f,b,c,d)});if(l&&(j=r(b,a[0].ownerDocument,!1,a,d),e=j.firstChild,1===j.childNodes.length&&(j=e),e||d)){for(h=na.map(o(j,"script"),x),g=h.length;l>k;k++)f=j,k!==m&&(f=na.clone(f,!0,!0),g&&na.merge(h,o(f,"script"))),c.call(a[k],f,k);if(g)for(i=h[h.length-1].ownerDocument,na.map(h,y),k=0;g>k;k++)f=h[k],Qa.test(f.type||"")&&!na._data(f,"globalEval")&&na.contains(i,f)&&(f.src?na._evalUrl&&na._evalUrl(f.src):na.globalEval((f.text||f.textContent||f.innerHTML||"").replace(fb,"")));j=e=null}return a}function C(a,b,c){for(var d,e=b?na.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||na.cleanData(o(d)),d.parentNode&&(c&&na.contains(d.ownerDocument,d)&&p(o(d,"script")),d.parentNode.removeChild(d));return a}function D(a,b){var c=na(b.createElement(a)).appendTo(b.body),d=na.css(c[0],"display");return c.detach(),d}function E(a){var b=da,c=jb[a];return c||(c=D(a,b),"none"!==c&&c||(ib=(ib||na("