This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected function _execute($action) | |
| { | |
| try | |
| { | |
| try | |
| { | |
| $this->{$action}(); | |
| } | |
| catch (\ResourceBundle\Model\Exception\NotFound $e) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <h1 id="message"></h1> | |
| <script type="text/javascript"> | |
| var now = new Date, | |
| hoursFloat = now.getHours()+(now.getMinutes()/60), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Timer</title> | |
| </head> | |
| <body> | |
| <h2>Current Time: </h2> | |
| <div id="time"></div> | |
| <script type="text/javascript"> | |
| var now, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <h1 id="message"></h1> | |
| <script type="text/javascript"> | |
| var now = new Date, | |
| hours_float = now.getHours()+(now.getMinutes()/60), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Timer</title> | |
| </head> | |
| <body> | |
| <h2>Current Time: </h2> | |
| <div id="time"></div> | |
| <script type="text/javascript"> | |
| var now; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function post_collection() | |
| { | |
| $result = | |
| ( | |
| new Context_Installer_Geo_Create( | |
| $this->_request_payload, | |
| new Repository_Product, | |
| new Repository_Installer, | |
| new Repository_Installer_Geo, | |
| new Repository_Installer_Geo_Step, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| try | |
| { | |
| $length = 8; | |
| $start_time = microtime(TRUE); | |
| for ($i = 1; $i <= 10000; $i++) | |
| { | |
| $token = $this->rand_alphanumeric($length); | |
| if (strlen($token) !== $length) | |
| throw new Exception('Token "'.$token.'" length is invalid. token length is '.(strlen($token)).' instead of '.$length); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document) | |
| // ----------- Submit filters form when ----------- // | |
| // - changing text inputs | |
| .on('keyup', 'form.filters input[type="text"]', function() { | |
| $(this).parents('form:first').trigger('submit'); | |
| }) | |
| // - changing select-box option | |
| // - toggling checkboxes | |
| .on('change', 'form.filters select, form.filters input[type="checkbox"]', function() { | |
| $(this).parents('form:first').trigger('submit'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Join Accounts table | |
| $select | |
| ->join('accounts', 'INNER') | |
| ->on('accounts.id', '=', 'domains.account_id') | |
| ->group_by($this->table_name.'.id', 'accounts.id'); | |
| // Count select query records | |
| $total_count = $this->get_query_total_count($select); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (this.model.metadata.active_installers.length) { | |
| var dialogView = new ItemView({ | |
| model: template, | |
| template: tplTitle, | |
| form: { | |
| className: 'form-horizontal', | |
| buttons: false | |
| }, |
NewerOlder