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
| Validate('#new_user', { | |
| 'username' : { | |
| 'minimum' : 5, | |
| 'maximum' : 20, | |
| 'presence' : true | |
| }, | |
| 'password' : { | |
| 'minimum' : 8, | |
| 'maximum' : 32, | |
| 'presence' : true |
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
| diff --git a/Gemfile b/Gemfile | |
| index ec7a4ff..e86cc9d 100644 | |
| --- a/Gemfile | |
| +++ b/Gemfile | |
| @@ -10,6 +10,8 @@ gem 'mime-types', :require => 'mime/types' | |
| gem 'rdiscount' | |
| gem 'RedCloth' | |
| +gem 'backports', :platforms => 'ruby_18' | |
| + |
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
| function makeCounter() { | |
| // `i` is only accessible inside the closure created when the | |
| // `makeCounter` function is invoked. | |
| var i = 0; | |
| return function() { | |
| console.log( ++i ); | |
| }; | |
| } |
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
| Internet: | |
| Destination Gateway Flags Refs Use Netif Expire | |
| default 172.22.0.1 UGSc 40 0 en0 | |
| default 172.22.0.1 UGScI 0 0 en1 | |
| default 172.22.25.2 UGScI 0 0 ppp0 | |
| 66.64.23.42 172.22.0.1 UGHS 0 0 en0 | |
| 127 127.0.0.1 UCS 0 0 lo0 | |
| 127.0.0.1 127.0.0.1 UH 13 2473371 lo0 | |
| 169.254 link#4 UCS 0 0 en0 | |
| 172.22 link#4 UCS 6 0 en0 |
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 | |
| global $options; | |
| foreach ($options as $value) { | |
| if (get_settings( $value['id'] ) === FALSE) { | |
| $$value['id'] = stripslashes( $value['std'] ); | |
| } else { | |
| $$value['id'] = stripslashes( get_settings( $value['id'] ) ); | |
| } | |
| } | |
| ?> |
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
| (default) 13 queries took 18 ms Nr Query Error Affected Num. rows Took (ms) | |
| 1 SHOW FULL COLUMNS FROM `cake_programs` 4 4 2 | |
| 2 SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'latin1_swedish_ci'; 1 1 1 | |
| 3 SHOW FULL COLUMNS FROM `cake_dispensing_solutions` 8 8 5 | |
| 4 SHOW FULL COLUMNS FROM `cake_patient_buildings` 9 9 2 | |
| 5 SHOW FULL COLUMNS FROM `cake_practice_operations` 9 9 3 | |
| 6 SHOW FULL COLUMNS FROM `cake_team_training_educations` 13 13 2 | |
| 7 SHOW FULL COLUMNS FROM `cake_locations` 22 22 2 | |
| 8 START TRANSACTION 0 0 | |
| 9 INSERT INTO `cake_programs` (`goals`, `modified`, `created`, `id`) VALUES ('{\"year_1\":\"1,111\",\"year_2\":\"$11.11\",\"year_3\":\"3000\"}', '2010-12-21 15:44:34', '2010-12-21 15:44:34', '4d111fc2-61d4-40de-8154-0309e0943fa0') 1 1 |
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
| Array | |
| ( | |
| [Location] => Array | |
| ( | |
| [doc_first_name] => Ryan | |
| [doc_last_name] => Gibbons | |
| [practice_name] => Ryan Gibbons | |
| [address_1] => 9999 Ridglea Place | |
| [address_2] => Suite 408 | |
| [city] => Fort Worth |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <registration> | |
| <status code="200">Ok</status> | |
| <request> | |
| <param name="unknown">1</param> | |
| </request> | |
| <data> | |
| <locations> | |
| <location> | |
| <id type="practice|location">LOCA-123</id> |
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 | |
| function beforeFilter(){ | |
| parent::beforeFilter(); | |
| if ($this->action != 'index'){ | |
| if (!$this->Session->check('location')) { | |
| $this->Session->setFlash(__('Need to enter your location ID and password first')); | |
| $this->redirect(array('action' => 'index')); | |
| } | |
| } | |
| } |
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 | |
| function add() { | |
| if (!$this->Session->check('location')) { | |
| $this->Session->setFlash(__('Need to enter your location ID and password first')); | |
| $this->redirect(array('action' => 'signin')); | |
| } else { | |
| //set data from session to pre-populate form | |
| $location = $this->Session->read('location.Segmentation'); | |
| pr($location); | |
| if (!empty($this->data)) { |