├── adminweb ├── webroot │ ├── static │ │ ├── js │ │ │ ├── plugins │ │ │ │ ├── nvd3 │ │ │ │ │ └── src │ │ │ │ │ │ ├── outro.js │ │ │ │ │ │ └── intro.js │ │ │ │ ├── jquery-validation │ │ │ │ │ ├── additional │ │ │ │ │ │ ├── lettersonly.js │ │ │ │ │ │ ├── nowhitespace.js │ │ │ │ │ │ ├── integer.js │ │ │ │ │ │ ├── zipcodeUS.js │ │ │ │ │ │ ├── alphanumeric.js │ │ │ │ │ │ ├── postalcodeNL.js │ │ │ │ │ │ ├── letterswithbasicpunc.js │ │ │ │ │ │ ├── time.js │ │ │ │ │ │ ├── ziprange.js │ │ │ │ │ │ ├── postalcodeIT.js │ │ │ │ │ │ ├── dateNL.js │ │ │ │ │ │ ├── time12h.js │ │ │ │ │ │ ├── mobileNL.js │ │ │ │ │ │ ├── dateFA.js │ │ │ │ │ │ ├── giroaccountNL.js │ │ │ │ │ │ ├── ipv4.js │ │ │ │ │ │ ├── strippedminlength.js │ │ │ │ │ │ ├── bankorgiroaccountNL.js │ │ │ │ │ │ ├── phoneNL.js │ │ │ │ │ │ ├── extension.js │ │ │ │ │ │ ├── postcodeUK.js │ │ │ │ │ │ ├── postalCodeCA.js │ │ │ │ │ │ ├── pattern.js │ │ │ │ │ │ ├── phoneUS.js │ │ │ │ │ │ ├── nifES.js │ │ │ │ │ │ ├── bankaccountNL.js │ │ │ │ │ │ ├── nieES.js │ │ │ │ │ │ ├── mobileUK.js │ │ │ │ │ │ ├── ipv6.js │ │ │ │ │ │ ├── bic.js │ │ │ │ │ │ ├── phoneUK.js │ │ │ │ │ │ ├── additional.js │ │ │ │ │ │ ├── phonesUK.js │ │ │ │ │ │ ├── accept.js │ │ │ │ │ │ ├── dateITA.js │ │ │ │ │ │ ├── url2.js │ │ │ │ │ │ ├── currency.js │ │ │ │ │ │ ├── vinUS.js │ │ │ │ │ │ └── require_from_group.js │ │ │ │ │ └── localization │ │ │ │ │ │ ├── methods_pt.js │ │ │ │ │ │ ├── methods_nl.js │ │ │ │ │ │ ├── methods_fi.js │ │ │ │ │ │ ├── methods_de.js │ │ │ │ │ │ ├── methods_es_CL.js │ │ │ │ │ │ ├── messages_zh.js │ │ │ │ │ │ ├── messages_zh_TW.js │ │ │ │ │ │ ├── messages_ko.js │ │ │ │ │ │ ├── messages_sk.js │ │ │ │ │ │ ├── messages_ja.js │ │ │ │ │ │ ├── messages_da.js │ │ │ │ │ │ ├── messages_vi.js │ │ │ │ │ │ ├── messages_he.js │ │ │ │ │ │ ├── messages_is.js │ │ │ │ │ │ ├── messages_hu.js │ │ │ │ │ │ ├── messages_no.js │ │ │ │ │ │ ├── messages_ar.js │ │ │ │ │ │ ├── messages_th.js │ │ │ │ │ │ ├── messages_sv.js │ │ │ │ │ │ ├── messages_sr.js │ │ │ │ │ │ ├── messages_hr.js │ │ │ │ │ │ ├── messages_de.js │ │ │ │ │ │ ├── messages_sr_lat.js │ │ │ │ │ │ ├── messages_cs.js │ │ │ │ │ │ ├── messages_et.js │ │ │ │ │ │ ├── messages_si.js │ │ │ │ │ │ ├── messages_id.js │ │ │ │ │ │ ├── messages_bg.js │ │ │ │ │ │ ├── messages_sl.js │ │ │ │ │ │ ├── messages_lv.js │ │ │ │ │ │ ├── messages_my.js │ │ │ │ │ │ ├── messages_lt.js │ │ │ │ │ │ ├── messages_ka.js │ │ │ │ │ │ ├── messages_eu.js │ │ │ │ │ │ ├── messages_tj.js │ │ │ │ │ │ ├── messages_fa.js │ │ │ │ │ │ ├── messages_ca.js │ │ │ │ │ │ ├── messages_it.js │ │ │ │ │ │ ├── messages_pl.js │ │ │ │ │ │ ├── messages_uk.js │ │ │ │ │ │ ├── messages_kk.js │ │ │ │ │ │ ├── messages_ru.js │ │ │ │ │ │ ├── messages_el.js │ │ │ │ │ │ ├── messages_fi.js │ │ │ │ │ │ ├── messages_tr.js │ │ │ │ │ │ ├── messages_ro.js │ │ │ │ │ │ ├── messages_es.js │ │ │ │ │ │ ├── messages_es_AR.js │ │ │ │ │ │ ├── messages_gl.js │ │ │ │ │ │ ├── messages_pt_PT.js │ │ │ │ │ │ ├── messages_pt_BR.js │ │ │ │ │ │ └── messages_nl.js │ │ │ │ ├── codemirror │ │ │ │ │ └── mode │ │ │ │ │ │ ├── tiddlywiki │ │ │ │ │ │ └── tiddlywiki.css │ │ │ │ │ │ ├── ruby │ │ │ │ │ │ └── test.js │ │ │ │ │ │ ├── tiki │ │ │ │ │ │ └── tiki.css │ │ │ │ │ │ └── diff │ │ │ │ │ │ └── diff.js │ │ │ │ ├── bootstrap │ │ │ │ │ └── npm.js │ │ │ │ ├── noty │ │ │ │ │ └── layouts │ │ │ │ │ │ ├── inline.js │ │ │ │ │ │ ├── top.js │ │ │ │ │ │ ├── bottom.js │ │ │ │ │ │ ├── topCenter.js │ │ │ │ │ │ ├── bottomCenter.js │ │ │ │ │ │ ├── topLeft.js │ │ │ │ │ │ ├── topRight.js │ │ │ │ │ │ ├── bottomLeft.js │ │ │ │ │ │ └── bottomRight.js │ │ │ │ ├── fullcalendar │ │ │ │ │ └── lang │ │ │ │ │ │ ├── en-ca.js │ │ │ │ │ │ ├── ja.js │ │ │ │ │ │ ├── ko.js │ │ │ │ │ │ ├── zh-tw.js │ │ │ │ │ │ ├── en-au.js │ │ │ │ │ │ ├── ar-ma.js │ │ │ │ │ │ ├── da.js │ │ │ │ │ │ ├── en-gb.js │ │ │ │ │ │ ├── sv.js │ │ │ │ │ │ ├── id.js │ │ │ │ │ │ ├── fr-ca.js │ │ │ │ │ │ ├── fr.js │ │ │ │ │ │ └── it.js │ │ │ │ └── highlight │ │ │ │ │ └── jquery.highlight-4.js │ │ │ ├── demo_tables.js │ │ │ ├── demo_icons.js │ │ │ └── demo_tasks.js │ │ ├── img │ │ │ ├── bg.png │ │ │ ├── logo.png │ │ │ ├── bg-dot.png │ │ │ ├── logo@2x.png │ │ │ ├── icons │ │ │ │ ├── csv.png │ │ │ │ ├── json.png │ │ │ │ ├── pdf.png │ │ │ │ ├── png.png │ │ │ │ ├── ppt.png │ │ │ │ ├── sql.png │ │ │ │ ├── txt.png │ │ │ │ ├── word.png │ │ │ │ ├── xls.png │ │ │ │ └── xml.png │ │ │ ├── logo-grey.png │ │ │ ├── logo-small.png │ │ │ ├── filetree │ │ │ │ ├── css.png │ │ │ │ ├── db.png │ │ │ │ ├── doc.png │ │ │ │ ├── pdf.png │ │ │ │ ├── php.png │ │ │ │ ├── ppt.png │ │ │ │ ├── psd.png │ │ │ │ ├── txt.png │ │ │ │ ├── xls.png │ │ │ │ ├── zip.png │ │ │ │ ├── code.png │ │ │ │ ├── file.png │ │ │ │ ├── film.png │ │ │ │ ├── flash.png │ │ │ │ ├── html.png │ │ │ │ ├── java.png │ │ │ │ ├── linux.png │ │ │ │ ├── music.png │ │ │ │ ├── ruby.png │ │ │ │ ├── script.png │ │ │ │ ├── picture.png │ │ │ │ ├── spinner.gif │ │ │ │ ├── application.png │ │ │ │ ├── directory.png │ │ │ │ └── folder_open.png │ │ │ ├── icheck │ │ │ │ ├── grey.png │ │ │ │ └── grey@2x.png │ │ │ ├── logo-grey@2x.png │ │ │ ├── owl │ │ │ │ ├── grabbing.png │ │ │ │ └── AjaxLoader.gif │ │ │ ├── themes │ │ │ │ ├── black.jpg │ │ │ │ ├── blue.jpg │ │ │ │ ├── brown.jpg │ │ │ │ ├── light.jpg │ │ │ │ └── default.jpg │ │ │ ├── blueimp │ │ │ │ ├── error.png │ │ │ │ ├── loading.gif │ │ │ │ ├── play-pause.png │ │ │ │ ├── video-play.png │ │ │ │ ├── video-play.svg │ │ │ │ ├── error.svg │ │ │ │ └── play-pause.svg │ │ │ ├── colorpicker │ │ │ │ ├── hue.png │ │ │ │ ├── alpha.png │ │ │ │ └── saturation.png │ │ │ ├── loaders │ │ │ │ └── default.gif │ │ │ ├── logo-small-grey.png │ │ │ ├── logo-small@2x.png │ │ │ ├── fileinput │ │ │ │ └── loading.gif │ │ │ ├── backgrounds │ │ │ │ └── wall_1.jpg │ │ │ ├── dropzone │ │ │ │ ├── spritemap.png │ │ │ │ └── spritemap@2x.png │ │ │ ├── jquery │ │ │ │ ├── resize-icon.png │ │ │ │ ├── resize-icon@2x.png │ │ │ │ ├── animated-overlay.gif │ │ │ │ ├── ui-icons_222222_256x240.png │ │ │ │ ├── ui-icons_228ef1_256x240.png │ │ │ │ ├── ui-icons_ef8c08_256x240.png │ │ │ │ ├── ui-icons_ffd27a_256x240.png │ │ │ │ ├── ui-icons_ffffff_256x240.png │ │ │ │ ├── ui-bg_flat_10_000000_40x100.png │ │ │ │ ├── ui-bg_glass_100_f6f6f6_1x400.png │ │ │ │ ├── ui-bg_glass_100_fdf5ce_1x400.png │ │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png │ │ │ │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png │ │ │ │ ├── ui-bg_diagonals-thick_20_666666_40x40.png │ │ │ │ ├── ui-bg_highlight-soft_100_eeeeee_1x100.png │ │ │ │ └── ui-bg_highlight-soft_75_ffe45c_1x100.png │ │ │ └── logo-small-grey@2x.png │ │ ├── favicon.ico │ │ ├── audio │ │ │ ├── alert.mp3 │ │ │ └── fail.mp3 │ │ └── css │ │ │ ├── fonts │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ ├── fontawesome-webfont.woff │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ │ └── codemirror │ │ │ └── theme │ │ │ ├── ambiance-mobile.css │ │ │ ├── neat.css │ │ │ ├── elegant.css │ │ │ ├── neo.css │ │ │ ├── eclipse.css │ │ │ ├── cobalt.css │ │ │ ├── rubyblue.css │ │ │ ├── monokai.css │ │ │ ├── night.css │ │ │ ├── the-matrix.css │ │ │ ├── mbo.css │ │ │ ├── blackboard.css │ │ │ ├── 3024-day.css │ │ │ ├── paraiso-dark.css │ │ │ ├── 3024-night.css │ │ │ ├── paraiso-light.css │ │ │ ├── base16-dark.css │ │ │ └── vibrant-ink.css │ ├── phpinfo.php │ └── index.php ├── action │ ├── user_logout.php │ ├── task_list.php │ ├── task_delete.php │ ├── user_login.php │ ├── task_info.php │ ├── task_logcontent.php │ ├── task_create.php │ └── task_log.php ├── adapter │ ├── database.php │ └── user.php ├── entity │ ├── taskLogEntity.php │ ├── taskQueryEntity.php │ └── taskFormEntity.php └── template │ ├── error.html │ ├── task_logcontent.html │ ├── task_log.html │ └── footer.html ├── composer.json ├── script ├── classes │ ├── config.class.php │ ├── redis.class.php │ ├── base.class.php │ └── tasks.class.php └── cmd.php └── config.php /adminweb/webroot/static/js/plugins/nvd3/src/outro.js: -------------------------------------------------------------------------------- 1 | })(); -------------------------------------------------------------------------------- /adminweb/webroot/phpinfo.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/giroaccountNL.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Dutch giro account numbers (not bank numbers) have max 7 digits 3 | */ 4 | $.validator.addMethod("giroaccountNL", function(value, element) { 5 | return this.optional(element) || /^[0-9]{1,7}$/.test(value); 6 | }, "Please specify a valid giro account number"); 7 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/ipv4.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("ipv4", function(value, element) { 2 | return this.optional(element) || /^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(value); 3 | }, "Please enter a valid IP v4 address."); 4 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/strippedminlength.js: -------------------------------------------------------------------------------- 1 | // TODO check if value starts with <, otherwise don't try stripping anything 2 | $.validator.addMethod("strippedminlength", function(value, element, param) { 3 | return $(value).text().length >= param; 4 | }, $.validator.format("Please enter at least {0} characters")); 5 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/methods_pt.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: PT_BR 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value); 8 | } 9 | }); 10 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.css: -------------------------------------------------------------------------------- 1 | span.cm-underlined { 2 | text-decoration: underline; 3 | } 4 | span.cm-strikethrough { 5 | text-decoration: line-through; 6 | } 7 | span.cm-brace { 8 | color: #170; 9 | font-weight: bold; 10 | } 11 | span.cm-table { 12 | color: blue; 13 | font-weight: bold; 14 | } 15 | -------------------------------------------------------------------------------- /adminweb/webroot/index.php: -------------------------------------------------------------------------------- 1 | mapped($uri); 10 | $Route->callAction(); 11 | 12 | ?> -------------------------------------------------------------------------------- /adminweb/webroot/static/img/blueimp/error.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/methods_nl.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: NL 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(value); 8 | } 9 | }); 10 | -------------------------------------------------------------------------------- /adminweb/action/user_logout.php: -------------------------------------------------------------------------------- 1 | User->logout(); 12 | header("Location:index.php?r=user/login"); 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/bankorgiroaccountNL.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("bankorgiroaccountNL", function(value, element) { 2 | return this.optional(element) || 3 | ($.validator.methods.bankaccountNL.call(this, value, element)) || 4 | ($.validator.methods.giroaccountNL.call(this, value, element)); 5 | }, "Please specify a valid bank or giro account number"); 6 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/phoneNL.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Dutch phone numbers have 10 digits (or 11 and start with +31). 3 | */ 4 | $.validator.addMethod("phoneNL", function(value, element) { 5 | return this.optional(element) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(value); 6 | }, "Please specify a valid phone number."); 7 | -------------------------------------------------------------------------------- /script/classes/redis.class.php: -------------------------------------------------------------------------------- 1 | 'tcp', 8 | 'host' => $conf['redis_ip'], 9 | 'port' => $conf['redis_prot'], 10 | ]); 11 | return $redis; 12 | } 13 | 14 | } -------------------------------------------------------------------------------- /adminweb/webroot/static/js/demo_tables.js: -------------------------------------------------------------------------------- 1 | 2 | function delete_row(row){ 3 | 4 | var box = $("#mb-remove-row"); 5 | box.addClass("open"); 6 | 7 | box.find(".mb-control-yes").on("click",function(){ 8 | box.removeClass("open"); 9 | $("#"+row).hide("slow",function(){ 10 | $(this).remove(); 11 | }); 12 | }); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /adminweb/webroot/static/img/blueimp/play-pause.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /script/classes/base.class.php: -------------------------------------------------------------------------------- 1 | _time = time(); 10 | $this->_conf = TimingCall_Config::getInstance(); 11 | $this->_keys = $this->_conf['redis_keys']; 12 | $this->Redis = TimingCall_Redis::getConnect(); 13 | } 14 | } -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/methods_fi.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: FI 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d{1,2}\.\d{1,2}\.\d{4}$/.test(value); 8 | }, 9 | number: function(value, element) { 10 | return this.optional(element) || /^-?(?:\d+)(?:,\d+)?$/.test(value); 11 | } 12 | }); 13 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/methods_de.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: DE 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value); 8 | }, 9 | number: function(value, element) { 10 | return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value); 11 | } 12 | }); 13 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/extension.js: -------------------------------------------------------------------------------- 1 | // Older "accept" file extension method. Old docs: http://docs.jquery.com/Plugins/Validation/Methods/accept 2 | $.validator.addMethod("extension", function(value, element, param) { 3 | param = typeof param === "string" ? param.replace(/,/g, "|") : "png|jpe?g|gif"; 4 | return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); 5 | }, $.validator.format("Please enter a value with a valid extension.")); 6 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/methods_es_CL.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: ES_CL 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?\-\d\d?\-\d\d\d?\d?$/.test(value); 8 | }, 9 | number: function(value, element) { 10 | return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value); 11 | } 12 | }); 13 | -------------------------------------------------------------------------------- /config.php: -------------------------------------------------------------------------------- 1 | '127.0.0.1', 5 | 'redis_prot' => '6379', 6 | 'log_dir' => '/data/crontab_log', 7 | 8 | 'redis_keys' => array( 9 | 'last_time' => 'DAEMON:LAST_RUNTIME', 10 | 'task_list' => 'DAEMON:TASK_LIST', 11 | 'task_item' => 'DAEMON:TASK_ITME:' 12 | ), 13 | 'action_list' => array('ssh', 'curl'), 14 | 'task_type' => array('circle', 'once', 'timing'), 15 | 'execute_timeout' => 300 16 | ); -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/postcodeUK.js: -------------------------------------------------------------------------------- 1 | // Matches UK postcode. Does not match to UK Channel Islands that have their own postcodes (non standard UK) 2 | $.validator.addMethod("postcodeUK", function(value, element) { 3 | return this.optional(element) || /^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(value); 4 | }, "Please specify a valid UK postcode"); 5 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/bootstrap/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/codemirror/mode/ruby/test.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | (function() { 5 | var mode = CodeMirror.getMode({indentUnit: 2}, "ruby"); 6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } 7 | 8 | MT("divide_equal_operator", 9 | "[variable bar] [operator /=] [variable foo]"); 10 | 11 | MT("divide_equal_operator_no_spacing", 12 | "[variable foo][operator /=][number 42]"); 13 | 14 | })(); 15 | -------------------------------------------------------------------------------- /adminweb/action/task_list.php: -------------------------------------------------------------------------------- 1 | _readTasksList()); 14 | SimpleView::display('task_list.html'); 15 | } 16 | 17 | public function _readTasksList(){ 18 | return (new TaskQueryEntity())->getList(); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/codemirror/mode/tiki/tiki.css: -------------------------------------------------------------------------------- 1 | .cm-tw-syntaxerror { 2 | color: #FFF; 3 | background-color: #900; 4 | } 5 | 6 | .cm-tw-deleted { 7 | text-decoration: line-through; 8 | } 9 | 10 | .cm-tw-header5 { 11 | font-weight: bold; 12 | } 13 | .cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/ 14 | padding-left: 10px; 15 | } 16 | 17 | .cm-tw-box { 18 | border-top-width: 0px ! important; 19 | border-style: solid; 20 | border-width: 1px; 21 | border-color: inherit; 22 | } 23 | 24 | .cm-tw-underline { 25 | text-decoration: underline; 26 | } -------------------------------------------------------------------------------- /adminweb/action/task_delete.php: -------------------------------------------------------------------------------- 1 | _deleteById( $this->getUniqid() ); 14 | header("Location:index.php?r=task/list"); 15 | } 16 | 17 | private function _deleteById($uniqid){ 18 | $entity = new TaskEntity($uniqid); 19 | $entity->delete(); 20 | $entity->recordDeleted(); 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /adminweb/adapter/database.php: -------------------------------------------------------------------------------- 1 | 'tcp', 15 | 'host' => $config['redis_ip'], 16 | 'port' => $config['redis_prot'], 17 | ]); 18 | $this->_connect = $redis; 19 | } 20 | 21 | public function getConnect(){ 22 | return $this->_connect; 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /adminweb/action/user_login.php: -------------------------------------------------------------------------------- 1 | _ajaxPost($_POST['account'], $_POST['password']); 13 | $this->responseJson(1, 'login success'); 14 | } 15 | SimpleView::display('user_login.html'); 16 | } 17 | 18 | private function _ajaxPost($account, $password){ 19 | return (new User_Plugin())->login($account, $password); 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/postalCodeCA.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Matches a valid Canadian Postal Code 3 | * 4 | * @example jQuery.validator.methods.postalCodeCA( "H0H 0H0", element ) 5 | * @result true 6 | * 7 | * @example jQuery.validator.methods.postalCodeCA( "H0H0H0", element ) 8 | * @result false 9 | * 10 | * @name jQuery.validator.methods.postalCodeCA 11 | * @type Boolean 12 | * @cat Plugins/Validate/Methods 13 | */ 14 | $.validator.addMethod( "postalCodeCA", function( value, element ) { 15 | return this.optional( element ) || /^[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d$/.test( value ); 16 | }, "Please specify a valid postal code" ); 17 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/pattern.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Return true if the field value matches the given format RegExp 3 | * 4 | * @example $.validator.methods.pattern("AR1004",element,/^AR\d{4}$/) 5 | * @result true 6 | * 7 | * @example $.validator.methods.pattern("BR1004",element,/^AR\d{4}$/) 8 | * @result false 9 | * 10 | * @name $.validator.methods.pattern 11 | * @type Boolean 12 | * @cat Plugins/Validate/Methods 13 | */ 14 | $.validator.addMethod("pattern", function(value, element, param) { 15 | if (this.optional(element)) { 16 | return true; 17 | } 18 | if (typeof param === "string") { 19 | param = new RegExp(param); 20 | } 21 | return param.test(value); 22 | }, "Invalid format."); 23 | -------------------------------------------------------------------------------- /adminweb/webroot/static/css/codemirror/theme/neat.css: -------------------------------------------------------------------------------- 1 | .cm-s-neat span.cm-comment { color: #a86; } 2 | .cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; } 3 | .cm-s-neat span.cm-string { color: #a22; } 4 | .cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; } 5 | .cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; } 6 | .cm-s-neat span.cm-variable { color: black; } 7 | .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; } 8 | .cm-s-neat span.cm-meta {color: #555;} 9 | .cm-s-neat span.cm-link { color: #3a3; } 10 | 11 | .cm-s-neat .CodeMirror-activeline-background {background: #e8f2ff !important;} 12 | .cm-s-neat .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 13 | -------------------------------------------------------------------------------- /adminweb/action/task_info.php: -------------------------------------------------------------------------------- 1 | getUniqid(); 15 | $entity = new TaskEntity($uniqid); 16 | $info = $entity->getData(); 17 | $additional = $entity->getAdditional(); 18 | 19 | SimpleView::assign('info', $info); 20 | SimpleView::assign('runnum', $additional['runnum']); 21 | SimpleView::assign('lasttime', $additional['lasttime']); 22 | SimpleView::display('task_info.html'); 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/messages_zh.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "必须填写", 7 | remote: "请修正此栏位", 8 | email: "请输入有效的电子邮件", 9 | url: "请输入有效的网址", 10 | date: "请输入有效的日期", 11 | dateISO: "请输入有效的日期 (YYYY-MM-DD)", 12 | number: "请输入正确的数字", 13 | digits: "只可输入数字", 14 | creditcard: "请输入有效的信用卡号码", 15 | equalTo: "你的输入不相同", 16 | extension: "请输入有效的后缀", 17 | maxlength: $.validator.format("最多 {0} 个字"), 18 | minlength: $.validator.format("最少 {0} 个字"), 19 | rangelength: $.validator.format("请输入长度为 {0} 至 {1} 之間的字串"), 20 | range: $.validator.format("请输入 {0} 至 {1} 之间的数值"), 21 | max: $.validator.format("请输入不大于 {0} 的数值"), 22 | min: $.validator.format("请输入不小于 {0} 的数值") 23 | }); 24 | -------------------------------------------------------------------------------- /adminweb/webroot/static/css/codemirror/theme/elegant.css: -------------------------------------------------------------------------------- 1 | .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;} 2 | .cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;} 3 | .cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;} 4 | .cm-s-elegant span.cm-variable {color: black;} 5 | .cm-s-elegant span.cm-variable-2 {color: #b11;} 6 | .cm-s-elegant span.cm-qualifier {color: #555;} 7 | .cm-s-elegant span.cm-keyword {color: #730;} 8 | .cm-s-elegant span.cm-builtin {color: #30a;} 9 | .cm-s-elegant span.cm-link {color: #762;} 10 | .cm-s-elegant span.cm-error {background-color: #fdd;} 11 | 12 | .cm-s-elegant .CodeMirror-activeline-background {background: #e8f2ff !important;} 13 | .cm-s-elegant .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 14 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/phoneUS.js: -------------------------------------------------------------------------------- 1 | /** 2 | * matches US phone number format 3 | * 4 | * where the area code may not start with 1 and the prefix may not start with 1 5 | * allows '-' or ' ' as a separator and allows parens around area code 6 | * some people may want to put a '1' in front of their number 7 | * 8 | * 1(212)-999-2345 or 9 | * 212 999 2344 or 10 | * 212-999-0983 11 | * 12 | * but not 13 | * 111-123-5434 14 | * and not 15 | * 212 123 4567 16 | */ 17 | $.validator.addMethod("phoneUS", function(phone_number, element) { 18 | phone_number = phone_number.replace(/\s+/g, ""); 19 | return this.optional(element) || phone_number.length > 9 && 20 | phone_number.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]([02-9]\d|1[02-9])-?\d{4}$/); 21 | }, "Please specify a valid phone number"); 22 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/nifES.js: -------------------------------------------------------------------------------- 1 | /* 2 | * The Número de Identificación Fiscal ( NIF ) is the way tax identification used in Spain for individuals 3 | */ 4 | $.validator.addMethod( "nifES", function( value ) { 5 | "use strict"; 6 | 7 | value = value.toUpperCase(); 8 | 9 | // Basic format test 10 | if ( !value.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)") ) { 11 | return false; 12 | } 13 | 14 | // Test NIF 15 | if ( /^[0-9]{8}[A-Z]{1}$/.test( value ) ) { 16 | return ( "TRWAGMYFPDXBNJZSQVHLCKE".charAt( value.substring( 8, 0 ) % 23 ) === value.charAt( 8 ) ); 17 | } 18 | // Test specials NIF (starts with K, L or M) 19 | if ( /^[KLM]{1}/.test( value ) ) { 20 | return ( value[ 8 ] === String.fromCharCode( 64 ) ); 21 | } 22 | 23 | return false; 24 | 25 | }, "Please specify a valid NIF number." ); 26 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/messages_zh_TW.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: ZH (Chinese; 中文 (Zhōngwén), 汉语, 漢語) 4 | * Region: TW (Taiwan) 5 | */ 6 | $.extend($.validator.messages, { 7 | required: "必須填寫", 8 | remote: "請修正此欄位", 9 | email: "請輸入有效的電子郵件", 10 | url: "請輸入有效的網址", 11 | date: "請輸入有效的日期", 12 | dateISO: "請輸入有效的日期 (YYYY-MM-DD)", 13 | number: "請輸入正確的數值", 14 | digits: "只可輸入數字", 15 | creditcard: "請輸入有效的信用卡號碼", 16 | equalTo: "請重複輸入一次", 17 | extension: "請輸入有效的後綴", 18 | maxlength: $.validator.format("最多 {0} 個字"), 19 | minlength: $.validator.format("最少 {0} 個字"), 20 | rangelength: $.validator.format("請輸入長度為 {0} 至 {1} 之間的字串"), 21 | range: $.validator.format("請輸入 {0} 至 {1} 之間的數值"), 22 | max: $.validator.format("請輸入不大於 {0} 的數值"), 23 | min: $.validator.format("請輸入不小於 {0} 的數值") 24 | }); 25 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/bankaccountNL.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Dutch bank account numbers (not 'giro' numbers) have 9 digits 3 | * and pass the '11 check'. 4 | * We accept the notation with spaces, as that is common. 5 | * acceptable: 123456789 or 12 34 56 789 6 | */ 7 | $.validator.addMethod("bankaccountNL", function(value, element) { 8 | if (this.optional(element)) { 9 | return true; 10 | } 11 | if (!(/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(value))) { 12 | return false; 13 | } 14 | // now '11 check' 15 | var account = value.replace(/ /g, ""), // remove spaces 16 | sum = 0, 17 | len = account.length, 18 | pos, factor, digit; 19 | for ( pos = 0; pos < len; pos++ ) { 20 | factor = len - pos; 21 | digit = account.substring(pos, pos + 1); 22 | sum = sum + factor * digit; 23 | } 24 | return sum % 11 === 0; 25 | }, "Please specify a valid bank account number"); 26 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/messages_ko.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: KO (Korean; 한국어) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "필수 항목입니다.", 7 | remote: "항목을 수정하세요.", 8 | email: "유효하지 않은 E-Mail주소입니다.", 9 | url: "유효하지 않은 URL입니다.", 10 | date: "올바른 날짜를 입력하세요.", 11 | dateISO: "올바른 날짜(ISO)를 입력하세요.", 12 | number: "유효한 숫자가 아닙니다.", 13 | digits: "숫자만 입력 가능합니다.", 14 | creditcard: "신용카드 번호가 바르지 않습니다.", 15 | equalTo: "같은 값을 다시 입력하세요.", 16 | extension: "올바른 확장자가 아닙니다.", 17 | maxlength: $.validator.format("{0}자를 넘을 수 없습니다. "), 18 | minlength: $.validator.format("{0}자 이상 입력하세요."), 19 | rangelength: $.validator.format("문자 길이가 {0} 에서 {1} 사이의 값을 입력하세요."), 20 | range: $.validator.format("{0} 에서 {1} 사이의 값을 입력하세요."), 21 | max: $.validator.format("{0} 이하의 값을 입력하세요."), 22 | min: $.validator.format("{0} 이상의 값을 입력하세요.") 23 | }); 24 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/demo_icons.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | 3 | $(".icons-list li").on("click",function(){ 4 | if($(this).find("i").length > 0){ 5 | var iClass = $(this).find("i").attr("class"); 6 | }else{ 7 | var iClass = $(this).find("span").not("span[class=glyphicon-class]").attr("class"); 8 | } 9 | 10 | var icon_preview = $("").addClass(iClass); 11 | 12 | $("#iconPreview .icon-preview").html(icon_preview); 13 | 14 | $("#iconPreview .icon-preview-span").html('<span class="'+iClass+'"></span>'); 15 | $("#iconPreview .icon-preview-i").html('<i class="'+iClass+'"></i>'); 16 | $("#iconPreview .icon-preview-class").html(iClass); 17 | 18 | $("#iconPreview").modal("show"); 19 | 20 | 21 | }) 22 | 23 | }); -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/messages_sk.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: SK (Slovak; slovenčina, slovenský jazyk) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Povinné zadať.", 7 | maxlength: $.validator.format("Maximálne {0} znakov."), 8 | minlength: $.validator.format("Minimálne {0} znakov."), 9 | rangelength: $.validator.format("Minimálne {0} a Maximálne {1} znakov."), 10 | email: "E-mailová adresa musí byť platná.", 11 | url: "URL musí byť platný.", 12 | date: "Musí byť dátum.", 13 | number: "Musí byť číslo.", 14 | digits: "Môže obsahovať iba číslice.", 15 | equalTo: "Dva hodnoty sa musia rovnať.", 16 | range: $.validator.format("Musí byť medzi {0} a {1}."), 17 | max: $.validator.format("Nemôže byť viac ako{0}."), 18 | min: $.validator.format("Nemôže byť menej ako{0}."), 19 | creditcard: "Číslo platobnej karty musí byť platné." 20 | }); 21 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/messages_ja.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: JA (Japanese; 日本語) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "このフィールドは必須です。", 7 | remote: "このフィールドを修正してください。", 8 | email: "有効なEメールアドレスを入力してください。", 9 | url: "有効なURLを入力してください。", 10 | date: "有効な日付を入力してください。", 11 | dateISO: "有効な日付(ISO)を入力してください。", 12 | number: "有効な数字を入力してください。", 13 | digits: "数字のみを入力してください。", 14 | creditcard: "有効なクレジットカード番号を入力してください。", 15 | equalTo: "同じ値をもう一度入力してください。", 16 | extension: "有効な拡張子を含む値を入力してください。", 17 | maxlength: $.validator.format("{0} 文字以内で入力してください。"), 18 | minlength: $.validator.format("{0} 文字以上で入力してください。"), 19 | rangelength: $.validator.format("{0} 文字から {1} 文字までの値を入力してください。"), 20 | range: $.validator.format("{0} から {1} までの値を入力してください。"), 21 | max: $.validator.format("{0} 以下の値を入力してください。"), 22 | min: $.validator.format("{0} 以上の値を入力してください。") 23 | }); 24 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/additional/nieES.js: -------------------------------------------------------------------------------- 1 | /* 2 | * The número de identidad de extranjero ( NIE )is a code used to identify the non-nationals in Spain 3 | */ 4 | $.validator.addMethod( "nieES", function( value ) { 5 | "use strict"; 6 | 7 | value = value.toUpperCase(); 8 | 9 | // Basic format test 10 | if ( !value.match( "((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)" ) ) { 11 | return false; 12 | } 13 | 14 | // Test NIE 15 | //T 16 | if ( /^[T]{1}/.test( value ) ) { 17 | return ( value[ 8 ] === /^[T]{1}[A-Z0-9]{8}$/.test( value ) ); 18 | } 19 | 20 | //XYZ 21 | if ( /^[XYZ]{1}/.test( value ) ) { 22 | return ( 23 | value[ 8 ] === "TRWAGMYFPDXBNJZSQVHLCKE".charAt( 24 | value.replace( "X", "0" ) 25 | .replace( "Y", "1" ) 26 | .replace( "Z", "2" ) 27 | .substring( 0, 8 ) % 23 28 | ) 29 | ); 30 | } 31 | 32 | return false; 33 | 34 | }, "Please specify a valid NIE number." ); 35 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/jquery-validation/localization/messages_da.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: DA (Danish; dansk) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Dette felt er påkrævet.", 7 | maxlength: $.validator.format("Indtast højst {0} tegn."), 8 | minlength: $.validator.format("Indtast mindst {0} tegn."), 9 | rangelength: $.validator.format("Indtast mindst {0} og højst {1} tegn."), 10 | email: "Indtast en gyldig email-adresse.", 11 | url: "Indtast en gyldig URL.", 12 | date: "Indtast en gyldig dato.", 13 | number: "Indtast et tal.", 14 | digits: "Indtast kun cifre.", 15 | equalTo: "Indtast den samme værdi igen.", 16 | range: $.validator.format("Angiv en værdi mellem {0} og {1}."), 17 | max: $.validator.format("Angiv en værdi der højst er {0}."), 18 | min: $.validator.format("Angiv en værdi der mindst er {0}."), 19 | creditcard: "Indtast et gyldigt kreditkortnummer." 20 | }); 21 | -------------------------------------------------------------------------------- /adminweb/webroot/static/js/plugins/noty/layouts/inline.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | 3 | $.noty.layouts.inline = { 4 | name : 'inline', 5 | options : {}, 6 | container: { 7 | object : '