100+ results results for 'php mt_rand repo:ShakeNBake/gallery3' (244 ms)
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 4 * 5 * @author Anthony Ferrara <ircmaxell@php.net> 6 * @license http://www.opensource.org/licenses/mit-license.html MIT License 13 /** 14 * PHPUnit Process isolation caches constants, but not function declarations. 15 * So we need to check if the constants are defined separately from 132 if ($i < $bl) { 133 $buffer[$i] = $buffer[$i] ^ chr(mt_rand(0, 255)); 134 } else { 134 } else { 135 $buffer .= chr(mt_rand(0, 255)); 136 }acl0005Test.php https://bitbucket.org/talueses/joomla-cms.git | PHP | 428 lines
1<?php 2/** 7 */ 8require_once 'SeleniumJoomlaTestCase.php'; 9 18 //Set random salt 19 $salt = mt_rand(); 20 50 $this->assertTrue($this->isElementPresent("link=Log out")); 51 } catch (PHPUnit_Framework_AssertionFailedError $e){ 52 array_push($this->verificationErrors, $this->getTraceFiles($e)); 87 $this->assertTrue($this->isElementPresent("link=Log out")); 88 } catch (PHPUnit_Framework_AssertionFailedError $e){ 89 array_push($this->verificationErrors, $this->getTraceFiles($e)); 123 $this->assertTrue($this->isElementPresent("link=Log out")); 124 } catch (PHPUnit_Framework_AssertionFailedError $e){ 125 array_push($this->verificationErrors, $this->getTraceFiles($e));firstdata.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 251 lines
1<?php 2class ControllerPaymentFirstdata extends Controller { 24 $data['timestamp'] = date('Y:m:d-H:i:s'); 25 $data['order_id'] = 'CON-' . $this->session->data['order_id'] . 'T' . $data['timestamp'] . mt_rand(1, 999); 26 $data['url_success'] = $this->url->link('checkout/success', '', 'SSL');Encrypt.php https://github.com/elsewares/tinderbox.git | PHP | 547 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 242 { 243 $rand .= mt_rand(0, mt_getrandmax()); 244 } 545 546/* End of file Encrypt.php */ 547/* Location: ./system/libraries/Encrypt.php */Validation.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 415 lines
1<?php 2 3/** 4 * @file classes/security/Validation.inc.php 5 * 245 for ($i=0; $i<$length; $i++) { 246 $password .= mt_rand(1, 4) == 4 ? $numbers[mt_rand(0,strlen($numbers)-1)] : $letters[mt_rand(0, strlen($letters)-1)]; 247 }index.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 172 lines
15 <?php if (wptouch_get_comment_count() && !is_archive() && !is_search() && bnc_can_show_comments() ) { ?> 16 <div class="<?php if ($wptouch_settings['post-cal-thumb'] == 'nothing-shown') { echo 'nothing-shown ';} ?>comment-bubble<?php if ( wptouch_get_comment_count() > 99 ) echo '-big'; ?>"> 17 <?php comments_number('0','1','%'); ?> 37 <div id="arc-top" class="archive-top-left month-<?php echo get_the_time('m') ?>"> 38 <?php echo get_the_time('M') ?> <?php echo get_the_time('j') ?>, <?php echo get_the_time('Y') ?> 39 </div> 126 <div class="post-author"> 127 <?php if ($wptouch_settings['post-cal-thumb'] != 'calendar-icons') { ?><span class="lead"><?php _e("Written on", "wptouch"); ?></span> <?php echo get_the_time('d.m.Y') ?> <?php _e("at", "wptouch"); ?> <?php echo get_the_time('G:i') ?><br /><?php if (!bnc_show_author()) { echo '<br />';} ?><?php } ?> 128 <?php if (bnc_show_author()) { ?><span class="lead"><?php _e("By", "wptouch"); ?></span> <?php the_author(); ?><br /><?php } ?> 132 <div class="clearer"></div> 133 <div id="entry-<?php the_ID(); ?>" <?php if (bnc_excerpt_enabled()) { ?>style="display:none"<?php } ?> class="mainentry <?php echo $wptouch_settings['style-text-justify']; ?>"> 134 <?php the_excerpt(); ?> 144 <div id="spinner<?php echo md5($_SERVER['REQUEST_URI']); ?>" class="spin" style="display:none"></div> 145 <a class="ajax" href="javascript:return false;" onclick="$wpt('#spinner<?php echo md5($_SERVER['REQUEST_URI']); ?>').fadeIn(200); $wpt('#ajaxentries<?php echo md5($_SERVER['REQUEST_URI']); ?>').load('<?php echo get_next_posts_page_link(); ?>', {}, function(){ $wpt('#call<?php echo md5($_SERVER['REQUEST_URI']); ?>').fadeOut();});"> 146 <?php _e( "Load more entries...", "wptouch" ); ?>php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();VarCloner.php https://gitlab.com/riandy_db/self-monitoring | PHP | 324 lines
1<?php 2 40 $cookie = (object) array(); // Unique object used to detect hard references 41 $gid = uniqid(mt_rand(), true); // Unique string used to detect the special $GLOBALS variable 42 $a = null; // Array cast for nested structures 148 case 'object': 149 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 150 $stub = new Stub(); 164 } else { 165 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 166 } 300 $obj = (object) array(); 301 self::$hashOffset = 16 - PHP_INT_SIZE; 302 self::$hashMask = -1; 321 322 self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE)); 323 }Common.php https://bitbucket.org/myockey/clearcreek-chapel-website.git | PHP | 503 lines
41*/ 42 function is_php($version = '5.0.0') 43 { 48 { 49 $_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE; 50 } 78 { 79 $file = rtrim($file, '/').'/'.md5(mt_rand(1,100).mt_rand(1,100)); 80 160 set_status_header(503); 161 exit('Unable to locate the specified class: '.$class.'.php'); 162 } 453 { 454 $_error->show_php_error($severity, $message, $filepath, $line); 455 }OAuth1.php https://gitlab.com/itlboy/yii2-starter-installed | PHP | 402 lines
1<?php 2/** 19 * 20 * ```php 21 * use yii\authclient\OAuth1; 263 { 264 return md5(microtime() . mt_rand()); 265 } 344 $url, 345 http_build_query($params, '', '&', PHP_QUERY_RFC3986) 346 ];DirectoryResourceTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 166 lines
1<?php 2 15 16class DirectoryResourceTest extends \PHPUnit_Framework_TestCase 17{ 70 71 $resource = new DirectoryResource('/____foo/foobar'.mt_rand(1, 999999)); 72 $this->assertFalse($resource->isFresh(time()), '->isFresh() returns false if the resource does not exist');NodeSaveTest.php https://gitlab.com/reasonat/test8 | PHP | 182 lines
1<?php 2 51 $max_nid = reset($nids); 52 $test_nid = $max_nid + mt_rand(1000, 1000000); 53 $title = $this->randomMachineName(8);file.php https://github.com/grekker/core.git | PHP | 349 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP5 framework. 4 * 9 * @copyright 2010 - 2011 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 165 // do some garbage collection 166 if (mt_rand(0,100) < $this->config['gc_probability']) 167 {captcha_helper.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 246 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 115 { 116 $str .= substr($pool, mt_rand(0, strlen($pool) -1), 1); 117 } 134 135 // PHP.net recommends imagecreatetruecolor(), but it isn't always available 136 if (function_exists('imagecreatetruecolor')) 244 245/* End of file captcha_helper.php */ 246/* Location: ./system/heleprs/captcha_helper.php */file.php https://github.com/dwoodard/fuel.git | PHP | 351 lines
1<?php 2/** 4 * 5 * Fuel is a fast, lightweight, community driven PHP5 framework. 6 * 11 * @copyright 2010 - 2011 Fuel Development Team 12 * @link http://fuelphp.com 13 */ 167 // do some garbage collection 168 if (mt_rand(0,100) < $this->config['gc_probability']) 169 { 350 351/* End of file file.php */ 352runner.php https://github.com/gaiaops/gaia_core_php.git | PHP | 421 lines
1<?php 2namespace Gaia\Job; 197 foreach( $config->queueRates() as $pattern => $rate){ 198 if( $rate >= mt_rand(1, 100) ) continue; 199 $block_patterns[] = $pattern;PwFindPassword.php https://gitlab.com/wuhang2003/phpwind | PHP | 323 lines
1<?php 2Wind::import('LIB:utility.PwMail'); 7 * @author xiaoxia.xu <xiaoxia.xuxx@aliyun-inc.com> 8 * @copyright ©2003-2103 phpwind.com 9 * @license http://www.phpwind.com 9 * @license http://www.phpwind.com 10 * @version $Id: PwFindPassword.php 24177 2013-01-22 10:36:09Z xiaoxia.xuxx $ 11 * @package src.service.user.srv 70 //TODO 产生激活码的方法 71 $code = substr(md5(Pw::getTime()), mt_rand(1, 8), 8); 72 $url = WindUrlHelper::createUrl('u/findPwd/resetpwd', array('code' => $code, '_statu' => $state));Google_MediaFileUpload.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 262 lines
1<?php 2/** 125 // This is a multipart/related upload. 126 $boundary = isset($params['boundary']['value']) ? $params['boundary']['value'] : mt_rand(); 127 $boundary = str_replace('"', '', $boundary);helper.php https://bitbucket.org/asosso/joomla15.git | PHP | 391 lines
1<?php 2/** 2/** 3* @version $Id:helper.php 6961 2007-03-15 16:06:53Z tcp $ 4* @package Joomla.Framework 6* @copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved. 7* @license GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 210 } else { 211 return substr(md5(mt_rand()), 0, 2); 212 } 218 } else { 219 return '$1$'.substr(md5(mt_rand()), 0, 8).'$'; 220 }SessionManager.inc.php https://github.com/mbehiels/pkp-lib.git | PHP | 256 lines
1<?php 2 3/** 4 * @file classes/session/SessionManager.inc.php 5 * 11 * 12 * @brief Implements PHP methods for a custom session storage handler (see http://php.net/session). 13 */ 25 * Constructor. 26 * Initialize session configuration and set PHP session handlers. 27 * Attempts to rejoin a user's session if it exists, or create a new session otherwise. 33 34 // Configure PHP session parameters 35 ini_set('session.use_trans_sid', 0); 36 ini_set('session.save_handler', 'user'); 37 ini_set('session.serialize_handler', 'php'); 38 ini_set('session.use_cookies', 1);FancyCaptcha.class.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 249 lines
1<?php 2 103 104 $place = mt_rand( 0, count( $dirs ) - 1 ); 105 // In case all dirs are not filled, 124 } 125 $n = mt_rand( 0, $this->countFiles( $directory ) - 1 ); 126 $dir = opendir( $directory ); 193 global $IP; 194 require_once "$IP/includes/StreamFile.php"; 195 header( "Cache-Control: private, s-maxage=0, max-age=3600" );DooTextHelper.php http://doophp.googlecode.com/svn/trunk/ | PHP | 320 lines
1<?php 2/** 14 * @author Leng Sheng Hong <darkredz@gmail.com> 15 * @version $Id: DooTextHelper.php 1000 2009-08-4 11:17:22 16 * @package doo.helper 30 for( $i=0; $i<$length; $i++ ) 31 $str .= substr( $allchar, mt_rand (0,36), 1 ) ; 32 return date("YmdHis").rand(1000,9999).$str ; 53 * @param bool $convertEmail Convert email address into links. Default true. 54 * @param string $emailHide Change this if you want to hide the email. eg. leng[AT]doophp.com, value = '[AT]' 55 * @return string 178 $str = str_replace(array('<', '>'), array('<', '>'), $str); 179 $str = str_replace(array('<?php', '?>', '\\'), array('phptagopen', 'phptagclose', 'backslashtmp'), $str); 180 $str = '<?php //tempstart' . "\n" . $str . '//tempend ?>'; 188 $str = preg_replace("#//tempend.+#is", "</span>\n</code>", $str); 189 $str = str_replace(array('phptagopen', 'phptagclose', 'backslashtmp'), array('<?php', '?>', '\\'), $str); 190 return $str;CommentItem.php https://gitlab.com/reasonat/test8 | PHP | 212 lines
1<?php 2 207 return [ 208 'status' => $statuses[mt_rand(0, count($statuses) - 1)], 209 ];CFileCache.php https://github.com/sassman/django-benchmark.git | PHP | 217 lines
1<?php 2/** 20 * @author Qiang Xue <qiang.xue@gmail.com> 21 * @version $Id: CFileCache.php 1942 2010-03-21 00:48:04Z alexander.makarow $ 22 * @package system.caching 121 { 122 if(!$this->_gced && mt_rand(0,1000000)<$this->_gcProbability) 123 {ldap.php https://github.com/Studio182/Crystal-Mail.git | PHP | 186 lines
1<?php 2 6 * Driver for passwords stored in LDAP 7 * This driver use the PEAR Net_LDAP2 class (http://pear.php.net/package/Net_LDAP2). 8 * 11 * 12 * function hashPassword based on code from the phpLDAPadmin development team (http://phpldapadmin.sourceforge.net/). 13 * function randomSalt based on code from the phpLDAPadmin development team (http://phpldapadmin.sourceforge.net/). 19 $cmail = cmail::get_instance(); 20 require_once ('Net/LDAP2.php'); 21 74 * Code originaly from the phpLDAPadmin development team 75 * http://phpldapadmin.sourceforge.net/ 76 * 115 if( function_exists('sha1') ) { 116 // use php 4.3.0+ sha1 function, if it is available. 117 $cryptedPassword = '{SHA}' . base64_encode( pack( 'H*' , sha1( $passwordClear) ) );HttpClient.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 352 lines
1<?php 2/** 25 */ 26require_once 'Zend/Http/Client.php'; 27 100 if (!$fp) { 101 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 102 throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.'); 115 * 116 * In order to call this method, openssl must be enabled in your PHP 117 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 126 if ($key != null && !function_exists('openssl_pkey_get_private')) { 127 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 128 throw new Zend_Gdata_App_InvalidArgumentException( 129 'You cannot enable secure AuthSub if the openssl module ' . 130 'is not enabled in your PHP installation.'); 131 }Cache.php https://github.com/cawago/ci_campusync_auth.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 229 { 230 $rand = (mt_rand() / mt_getrandmax()); 231 287 288 $rand = (mt_rand() / mt_getrandmax()); 289db.php https://github.com/enygma/fuel.git | PHP | 260 lines
1<?php 2/** 4 * 5 * Fuel is a fast, lightweight, community driven PHP5 framework. 6 * 11 * @copyright 2010 Dan Horrigan 12 * @link http://fuelphp.com 13 */ 157 // do some garbage collection 158 if (mt_rand(0,100) < $this->config['gc_probability']) 159 { 259 260/* End of file db.php */ 261LoginController.php https://gitlab.com/yutdhidev_labs/webku | PHP | 165 lines
1<?php 2namespace App\Http\Controllers; 37 // $characters = '0123456789'; 38 // $pin = mt_rand(1, 999); 39 126 $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; 127 $pin = mt_rand(1000000, 9999999).$characters[rand(0, strlen($characters) - 1)]; 128 $string = str_shuffle($pin);WaxSession.php https://gitlab.com/sheldonels/phpwax | PHP | 163 lines
1<?php 2 9 //garbage collection 10 $cmd = "php ".__FILE__." "; 11 $run_garbage_collection = true; 49 } 50 }else $this->id = $this->safe_encrypt($_SERVER['REMOTE_ADDR'].microtime().mt_rand()); 51 115 $itoa64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789./'; 116 $random = substr(md5(mt_rand()), 0, 16); 117 if($iterations < 4 || $iterations > 31) $iterations = 8;FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
1<?php 2 6 * @copyright Copyright (c) 2004, 2010 David Grudl 7 * @license http://nettephp.com/license Nette license 8 * @link http://nettephp.com 90 91 if (mt_rand() / mt_getrandmax() < self::$gcProbability) { 92 $this->clean(array()); 228 $head = serialize($meta) . '?>'; 229 $head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head; 230 $headLen = strlen($head); 358 if (is_array($meta)) { 359 fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6 360 $meta[self::FILE] = $file;criterias_document.test.php https://github.com/cgajardo/repositorium.git | PHP | 238 lines
1<?php 2/* CriteriasDocument Test cases generated on: 2011-08-06 19:00:58 : 1312671658*/ 59 function testGetRandomDocumentsValidated() { 60 $criteria_id = mt_rand(1,$this->criteria_qty); 61 $confirmado = true; 81 function testGetRandomDocumentsNonValidated() { 82 $criteria_id = mt_rand(1,$this->criteria_qty); 83 $confirmado = false;Encrypt.php https://bitbucket.org/kurniawanchan83/codeigniter.git | PHP | 507 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 246 { 247 $rand .= mt_rand(0, mt_getrandmax()); 248 } 505 506/* End of file Encrypt.php */ 507/* Location: ./system/libraries/Encrypt.php */PseudoClass.php https://bitbucket.org/mkalkbrenner/querypath.git | PHP | 420 lines
1<?php 2/** 70 // Because sometimes screwing with people is fun. 71 return (boolean) mt_rand(0, 1); 72 case 'lang': 415 $url = $node->getAttribute('href'); 416 $scheme = parse_url($url, PHP_URL_SCHEME); 417 return empty($scheme) || $scheme == 'file';template.php https://gitlab.com/fbi/razyo-api-server | PHP | 467 lines
1<?php 2 3/** 4 Template engine for the PHP Fat-Free Framework 5 47 } 48 if (PHP_SAPI!='cli' && !headers_sent()) 49 // Send HTTP header with appropriate character set 55 if (self::$vars['CACHE']) 56 // Retrieve PHP-compiled template from cache 57 $text=Cache::get($hash); 63 if (self::$vars['CACHE'] && $doc->cache) 64 // Save PHP-compiled template to cache 65 Cache::set($hash,$text); 73 else { 74 // Save PHP-equivalent file in temporary folder 75 if (!is_dir(self::$vars['TEMP']))item_problem.class.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 342 lines
1<?php 2/* 118 $canedit = $problem->canEdit($instID); 119 $rand = mt_rand(); 120Session.class.php http://dyhb-frame.googlecode.com/svn/trunk/ | PHP | 298 lines
1<?php 2/* [DoYouHaoBaby!] (C)Dianniu From 2010. 2/* [DoYouHaoBaby!] (C)Dianniu From 2010. 3 ? PHP ??Session ??????($)*/ 4 41 if(is_null($this->detectId())) { 42 $this->id(uniqid(dechex(mt_rand()))); 43 }ezuseroperationcollection.php https://github.com/eeggenberger/ezpublish.git | PHP | 370 lines
1<?php 2/** 11/*! 12 \class eZUserOperationCollection ezuseroperationcollection.php 13 \brief The class eZUserOperationCollection does 99 // Create enable account hash and send it to the newly registered user 100 $hash = md5( mt_rand() . time() . $userID ); 101Word.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 396 lines
1<?php 2/** 22/** @see Zend_Captcha_Base */ 23require_once 'Zend/Captcha/Base.php'; 24 34 * @license http://framework.zend.com/license/new-bsd New BSD License 35 * @version $Id: Word.php 20096 2010-01-06 02:05:09Z bkarwin $ 36 */ 241 if (!class_exists($this->_sessionClass)) { 242 require_once 'Zend/Loader.php'; 243 Zend_Loader::loadClass($this->_sessionClass); 339 { 340 return md5(mt_rand(0, 1000) . microtime(true)); 341 }Cache.php https://github.com/icz/OpenPNE3.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5801 2009-06-02 17:30:27Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 229 { 230 $rand = (mt_rand() / mt_getrandmax()); 231 287 288 $rand = (mt_rand() / mt_getrandmax()); 289Hash.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 271 lines
1<?php 2/** 22/** Zend_Form_Element_Xhtml */ 23require_once 'Zend/Form/Element/Xhtml.php'; 24 32 * @license http://framework.zend.com/license/new-bsd New BSD License 33 * @version $Id: Hash.php 24593 2012-01-05 20:35:02Z matthew $ 34 */ 110 if (null === $this->_session) { 111 require_once 'Zend/Session/Namespace.php'; 112 $this->_session = new Zend_Session_Namespace( $this->getSessionName() ); 263 $this->_hash = md5( 264 mt_rand(1, 1000000) 265 . $this->getSalt() 266 . $this->getName() 267 . mt_rand(1, 1000000) 268 );simple.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 288 lines
1<?php 2/** 144 { 145 $key .= $salt[mt_rand(0, $saltLength - 1)]; 146 }CryptUtil.php https://github.com/Emaratilicious/Garden.git | PHP | 109 lines
1<?php 2 6 * 7 * PHP versions 4 and 5 8 * 59 for ($i = 0; $i < $num_bytes; $i += 4) { 60 $bytes .= pack('L', mt_rand()); 61 }functions.php http://xtraupload.googlecode.com/svn/trunk/ | PHP | 280 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * A turn-key open source web 2.0 PHP file uploading package requiring PHP v5 6 * 38 { 39 $num = mt_rand() % strlen($vals); 40 42 { 43 $num = mt_rand(0, 60); 44 } 132 { 133 return '"3gp", "7z", "aca", "ai", "api", "app", "as", "ascx", "asmx", "asp", "aspx", "avi", "avs", "axt", "bash", "bat", "bmp", "c", "cab", "cal", "cat", "cda", "cf", "chm", "cnf", "conf", "config", "cpl", "cpp", "crt", "cs", "csproj", "css", "csv", "cue", "dar", "db", "dbp", "dem", "disco", "dll", "dng", "doc", "dot", "dpk", "dpr", "dps", "dtq", "dun", "etp", "exe", "fdb", "fhf", "fla", "flv", "fnd", "fon", "gif", "gz", "h", "hlp", "hol", "htm", "html", "htt", "hxc", "hxi", "hxk", "hxs", "hxt", "icm", "ini", "ins", "iqy", "iso", "its", "jar", "java", "jbf", "job", "jpeg", "jpf", "jpg", "js", "lnk", "m3u", "m3v", "m4a", "m4p", "m4v", "mad", "map", "mapup", "mat", "mdb", "mdf", "mht", "mml", "mov", "mp3", "mp4", "mpeg", "mpg", "msc", "msg", "msi", "ncd", "nfo", "none", "nrg", "ogg", "ost", "otf", "pas", "pdf", "pdi", "pet", "pfm", "php", "pif", "plg", "pmc", "", "pot", "ppk", "pps", "ppt", "prf", "psd", "psp", "pub", "qbb", "rar", "rb", "rc", "rct", "rdp", "refresh", "reg", "res", "resx", "rmvb", "rss", "rtf", "sdl", "sea", "sh", "shs", "sln", "sql", "suo", "swf", "tar", "tdf", "tdl", "theme", "tiff", "ttf", "txt", "url", "vb", "vbproj", "vbs", "vcard", "vcf", "vob", "vsmacros", "wab", "wma", "wmv", "wpl", "wri", "wsc", "xhtml", "xla", "xls", "xml", "xpi", "xsd", "xsl", "xslt", "xsn", "zip"'; 134 }log.php https://github.com/koto/blog-kotowicz-net-examples.git | PHP | 95 lines
1<?php 2require_once 'Upload_Client.php'; 64 if (!empty($_FILES['contents']) && array_key_exists('fileid', $_POST) && $client->hasFile($_POST['fileid'])) { // process file upload 65 $uniq = "file-" . md5(mt_rand() . uniqid()); 66 $match = array();Random.php https://gitlab.com/mohamed_hussein/prodt | PHP | 304 lines
1<?php 2 67 for ($i = 0; $i < $length; $i++) { 68 $str .= chr(mt_rand(32, 126)); 69 } 118 } 119 $str = chr(mt_rand(97, 122)); 120 for ($i = 1; $i < $length; $i++) { 120 for ($i = 1; $i < $length; $i++) { 121 $str .= chr($values[mt_rand(0, $max)]); 122 } 152 while (strlen($word) < $length) { 153 $word .= $cons[mt_rand(0, $num_cons - 1)] . $vowels[mt_rand(0, $num_vowels - 1)]; 154 } 159 /** 160 * Generates a random PHP object. 161 *email.reservation.php https://gitlab.com/Nightprince/Warcry-CMS | PHP | 235 lines
1<?php 2if (!defined('init_engine')) 18 //generate the key 19 $key = uniqid(mt_rand(), true) . uniqid(mt_rand(), true); 20CHAP.php https://github.com/kpike/moodle.git | PHP | 464 lines
1<?php 2/* 34 35require_once 'PEAR.php'; 36 105 for ($i = 0; $i < $size; $i++) { 106 $this->$varname .= pack('C', 1 + mt_rand() % 255); 107 }twitter.php https://bitbucket.org/jonphipps/elefant-vocabhub.git | PHP | 111 lines
1<?php 2 16 17$here = tmhUtilities::php_self (); 18if (strpos ($here, '?redirect=') === false) { 39 // already have an account, log them in 40 $u->session_id = md5 (uniqid (mt_rand (), 1)); 41 $u->expires = gmdate ('Y-m-d H:i:s', time () + 2592000); 43 while (! $u->put ()) { 44 $u->session_id = md5 (uniqid (mt_rand (), 1)); 45 $try++;FileStorage.php https://github.com/premiumcombination/nts.git | PHP | 405 lines
1<?php 2 78 79 if (mt_rand() / mt_getrandmax() < self::$gcProbability) { 80 $this->clean(array()); 209 $head = serialize($meta) . '?>'; 210 $head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head; 211 $headLen = strlen($head); 326 if (is_array($meta)) { 327 fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6 328 $meta[self::FILE] = $file;php.js https://github.com/KenBoyer/CompactCMS.git | JavaScript | 155 lines
1editAreaLoader.load_syntax["php"] = { 2 'DISPLAY_NAME' : 'Php' 16 'null', '__LINE__', '__FILE__', 17 'false', '<?php', '?>', '<?', 18 '<script language', '</script>', 20 'function', 'class', 'new', '&new', 'this', 21 '__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION', 22 'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR', 22 'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR', 23 'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR', 24 'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT', 24 'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT', 25 'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE', 26 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR', 32 'extension_loaded', 'get_extension_funcs', 'debug_backtrace', 33 'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv', 34 'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime',test.php https://github.com/md-tech/openemr.git | PHP | 422 lines
1<?php 2$debug=1; 2$debug=1; 3require_once("gacl_admin.inc.php"); 4 146/* 147//require_once('../Cache_Lite.php'); 148require_once('./profiler.inc'); 152 'caching' => true, 153 'cacheDir' => '/tmp/phpgacl_cache', 154 'lifeTime' => 100 271 //Get random ACO IDS 272 $rand_aco_keys = array_rand($aco_ids, mt_rand($min_rand_aco, $max_rand_aco) ); 273 279 //Get random ARO IDS 280 $rand_aro_keys = array_rand($aro_ids, mt_rand($min_rand_aro, $max_rand_aro)); 281WCCitation.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 326 lines
1<?php 2/** 101 # Construct a random marker for storage and later replacement by the citation: 102 $this->marker = 'wC-' . mt_rand(); 103ajax.function.php https://github.com/ardowz/Thesis-SideB.git | PHP | 302 lines
1<?php 2/* 2/* 3 * @version $Id: ajax.function.php 14684 2011-06-11 06:32:40Z remi $ 4 ------------------------------------------------------------------------- 45 if ($rand==0) { 46 $rand = mt_rand(); 47 }ProductsDemoDataMaker.php https://bitbucket.org/zurmo/zurmo/ | PHP | 162 lines
1<?php 2 /********************************************************************************* 96 $model->name = $name; 97 $model->quantity = mt_rand(1, 95); 98 $model->productTemplate = $productTemplate;AdsConversionAction.php https://gitlab.com/remyvianne/krowkaramel | PHP | 177 lines
1<?php 2declare( strict_types=1 ); 56 try { 57 $unique = sprintf( '%04x', mt_rand( 0, 0xffff ) ); 58PrettyPrinterAbstract.php https://gitlab.com/techniconline/kmc | PHP | 285 lines
1<?php 2 2 3namespace PhpParser; 4 4 5use PhpParser\Node\Expr; 6use PhpParser\Node\Stmt; 81 { 82 $this->noIndentToken = '_NO_INDENT_' . mt_rand(); 83 } 111 /** 112 * Pretty prints a file of statements (includes the opening <?php tag if it is required). 113 * 122 $p = preg_replace('/^\?>\n?/', '', $p, -1, $count); 123 $p = preg_replace('/<\?php$/', '', $p); 124voucher.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 263 lines
1<?php 2class ControllerAccountVoucher extends Controller { 14 if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { 15 $this->session->data['vouchers'][mt_rand()] = array( 16 'description' => sprintf($this->language->get('text_for'), $this->currency->format($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency'))), $this->request->post['to_name']),drupal_i18n_test_case.php https://github.com/tommeir/mifgaim.git | PHP | 294 lines
1<?php 2// $Id: drupal_i18n_test_case.php,v 1.1.2.5 2010/03/31 21:13:06 jareyero Exp $ 2// $Id: drupal_i18n_test_case.php,v 1.1.2.5 2010/03/31 21:13:06 jareyero Exp $ 3// Core: Id: drupal_web_test_case.php,v 1.96 2009/04/22 09:57:10 dries Exp 4/** 11 12require_once drupal_get_path('module', 'simpletest') . '/drupal_web_test_case.php'; 13 99 // Generate temporary prefixed database to ensure that tests have a clean starting point. 100 $db_prefix = 'simpletest' . mt_rand(1000, 1000000); 101class.ShowFleetACSPage.php https://github.com/jstar88/LibreTitan.git | PHP | 379 lines
1<?php 2 65 { 66 exit ( header ( "Location: game.php?page=fleet" ) ); 67 } 97 { 98 exit ( header ( "Location: game.php?page=fleet" ) ); 99 } 106 { 107 exit ( header ( "Location: game.php?page=fleet" ) ); 108 } 115 { 116 $rand = mt_rand ( 100000 , 999999999 ); 117 $acs_code = "AG" . $rand; 173 { 174 exit ( header ( "Location: game.php?page=fleet" ) ); 175 }RatedPages_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 169 lines
1<?php 2if ( !defined( 'MEDIAWIKI' ) ) { 29 // Purge expired entries on one in every 10 queries 30 if( 0 == mt_rand( 0, 10 ) ) { 31 ReaderFeedback::purgeExpiredAverages();string_helper.php https://github.com/holsinger/openfloor.git | PHP | 154 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 57 * 58 * http://www.some-site.com//index.php 59 * 61 * 62 * http://www.some-site.com/index.php 63 * 105 { 106 $str .= substr($pool, mt_rand(0, strlen($pool) -1), 1); 107 } 109 break; 110 case 'unique' : return md5(uniqid(mt_rand())); 111 break;string.test.php https://github.com/t73biz/BaseApp.git | PHP | 292 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs 17 * @since CakePHP(tm) v 1.2.0.5432 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 50 $check = array(); 51 $count = mt_rand(10, 1000); 52 $pattern = "/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/";Parser.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 395 lines
1<?php 2 52 { 53 return sprintf('__internal_%s', hash('sha1', uniqid(mt_rand(), true), false)); 54 } 288 { 289 $template->setIndex(mt_rand()); 290class.wp-pass.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 141 lines
1<?php 2// Last sync [WP10712] - Refactored into a class from wp-incldues/pluggable.php 11 * @since WP 2.5 12 * @global object $wp_hasher PHPass object 13 * @uses PasswordHash::HashPassword 21 if ( empty($wp_hasher) ) { 22 require_once( BACKPRESS_PATH . 'class.passwordhash.php'); 23 // By default, use the portable hash from phpass 33 * Maintains compatibility between old version and the new cookie authentication 34 * protocol using PHPass library. The $hash parameter is the encrypted password 35 * and the function compares the plain text password when encypted similarly 41 * @since WP 2.5 42 * @global object $wp_hasher PHPass object used for checking the password 43 * against the $hash + $password 67 // If the stored hash is longer than an MD5, presume the 68 // new style phpass portable hash. 69 if ( empty($wp_hasher) ) {RUCommon.php https://bitbucket.org/mvdkleijn/registered_users.git | PHP | 312 lines
1<?php 2 213 for ($i=0; $i < $len; $i++) { 214 $str .= substr($pool, mt_rand(0, strlen($pool) -1), 1); 215 } 217 break; 218 case 'unique' : return md5(uniqid(mt_rand())); 219 break;peering2.php https://github.com/pjkundert/zguide.git | PHP | 202 lines
1<?php 2/* 6 */ 7include "zmsg.php"; 8 22 $reply = $client->recv(); 23 printf("I: client status: %s%s", $reply, PHP_EOL); 24 } 41 sleep(1); 42 $zmsg->body_fmt("OK - %04x", mt_rand(0, 0x10000)); 43 $zmsg->send(); 49if($_SERVER['argc'] < 2) { 50 echo "syntax: peering2 me {you}...", PHP_EOL; 51 exit(); 71 72printf ("I: preparing broker at %s... %s", $self, PHP_EOL); 73ajax.php https://gitlab.com/adwait.rise/guruautolines | PHP | 386 lines
56 ?> 57 <div id="<?php echo esc_attr( $this->get_uniqid( $id ) ) ?>" class="wpv_ed_column wpv_sortable inner-sortable column column-<?php echo esc_attr( preg_replace( '/column-(\d)(\d)/', '$1-$2', $id ) ) ?> expandable expanded" data-basename="column"> 58 <?php echo $this->getControls( 'size name add edit clone delete handle', preg_replace( '/column-(\d)(\d)/', '$1/$2', $id ), __( 'Column', 'auto-repair' ), $attributes ) // xss ok ?> 77 78 <div id="<?php echo esc_attr( $this->get_uniqid( $id ) ) ?>" class="wpved-<?php echo esc_attr( "$id $accepting $class" ) ?> wpv_sortable column <?php echo esc_attr( "$size_class $expandable" ) ?>" <?php echo $this->getCallbacks( $id ) ?> data-basename="<?php echo esc_attr( $id ) ?>"> 79 <?php echo $this->getControls( $controls, $size, $wpv_sc[$id]['name'], $attributes ) // xss ok ?> 249 <a class="accordion-clone icon-copy" title="<?php esc_attr_e( 'Clone', 'auto-repair' ) ?>"></a> 250 <a class="accordion-background-selector" data-background-image="<?php if ( isset( $params[$i]['background_image'] ) ) echo esc_attr( $params[$i]['background_image'] ) ?>" title="<?php esc_attr_e( 'Change Pane Background', 'auto-repair' ) ?>"><?php wpv_icon( 'image' ) ?></a> 251 </h3> 278 <a class="tab-clone icon-copy" title="<?php esc_attr_e( 'Clone', 'auto-repair' ) ?>"></a> 279 <a class="wpv-icon-selector-trigger tab-icon-selector vamtam-icon <?php echo esc_attr( wpv_get_icon_type( $p['icon'] ) ) ?> <?php if ( empty( $p['icon'] ) ) echo 'no-icon' ?>" data-icon-name="<?php echo esc_attr( $p['icon'] ) ?>" title="<?php esc_attr_e( 'Change Icon', 'auto-repair' ) ?>"><?php wpv_icon( $p['icon'] ) ?></a> 280 </li> 285 foreach ( $sub_contents as $i=>$text ) : ?> 286 <div id="tabs-<?php echo $suffix.$i ?>" class="clearfix inner-sortable"><?php echo $this->do_parse( $text ) // xss ok ?></div> 287 <?php endforeach;change_project.class.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 316 lines
1<?php 2/* 138 $canedit = $project->canEdit($ID); 139 $rand = mt_rand(); 140 $showentities = Session::isMultiEntitiesMode(); 233 $canedit = $change->canEdit($ID); 234 $rand = mt_rand(); 235 $showentities = Session::isMultiEntitiesMode();TeamDemoData.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 191 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 115 $team_list_size = count($team_list); 116 $random_index = mt_rand(0,$team_list_size-1); 117 127 $team_list_size = count($team_list); 128 $random_index = mt_rand(0,$team_list_size-1); 129File.php https://github.com/atk4/atk4-addons.git | PHP | 436 lines
1<?php 2namespace filestore; 134 if (! $m['original_filename']) { 135 $m->set('original_filename', mt_rand()); 136 } 197 if (!function_exists('finfo_open')) { 198 throw $this->exception('You have to enable php_fileinfo extension of PHP.'); 199 }password.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 220 lines
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 4 * 5 * @author Anthony Ferrara <ircmaxell@php.net> 6 * @license http://www.opensource.org/licenses/mit-license.html MIT License 38 case PASSWORD_BCRYPT: 39 // Note that this is a C constant, but not exposed to PHP, so we don't define it here. 40 $cost = 10; 114 if ($i < $bl) { 115 $buffer[$i] = $buffer[$i] ^ chr(mt_rand(0, 255)); 116 } else { 116 } else { 117 $buffer .= chr(mt_rand(0, 255)); 118 }bigbluebuttonlib.php https://gitlab.com/ElvisAns/tiki | PHP | 474 lines
1<?php 2 149 } else { 150 $request['voiceBridge'] = '7' . mt_rand(0, 9999); 151 }newsletter.php https://github.com/whiletrue/fluxcms.git | PHP | 370 lines
1<?php 2/** 173 // create a random activation id 174 $activation = $activation = mt_rand(10000000,99999999); 175 $data['activation'] = $activation;JobQueue.php https://github.com/daevid/MWFork.git | PHP | 394 lines
1<?php 2/** 162 $row = $dbw->selectRow( 'job', '*', 163 'job_id >= ' . mt_rand( $row->minjob, $row->maxjob ), __METHOD__ ); 164 if ( $row === false ) {admin.php https://gitlab.com/morganestes/wordpress-develop | PHP | 386 lines
73 */ 74 if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) == 1 ) ) { 75 require_once( ABSPATH . WPINC . '/http.php' ); 161 * Note, this does not just run on user-facing admin screens. 162 * It runs on admin-ajax.php and admin-post.php as well. 163 * 179 // Back-compat for plugins using add_management_page(). 180 if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook( $plugin_page, 'tools.php' ) ) { 181 // There could be plugin specific params on the URL, so we need the whole query string 263 if ( ! isset( $_GET['noheader'] ) ) { 264 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 265 } 368 } 369 } elseif ( 'term.php' === $pagenow ) { 370 do_action( 'load-edit-tags.php' );CacheBase.php https://bitbucket.org/royrutto/climatepal.git | PHP | 318 lines
4 * 5 * Copyright (c) 2006 - 2013 PHPExcel 6 * 22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_CachedObjectStorage 34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 47 * 48 * @var PHPExcel_Cell 49 */ 293 * 294 * @param PHPExcel_Worksheet $parent The new worksheet 295 * @return voidSession.php https://github.com/holsinger/openfloor.git | PHP | 488 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 297 { 298 $sessid .= mt_rand(0, mt_getrandmax()); 299 }function_happyhour.php https://github.com/cybernet/CyBerFuN-CoDeX.git | PHP | 101 lines
1<?php 2if(!defined('PUBLIC_ACCESS')) die('Fuck off - You cant access scripts directly fool !'); 9$nextDay = date("Y-m-d" , time()+86400 ); 10$nextHoura = mt_rand(0,2); 11if ($nextHoura == 2) 11if ($nextHoura == 2) 12$nextHourb = mt_rand(0,3); 13else 13else 14$nextHourb = mt_rand(0,9); 15$nextHour = $nextHoura.$nextHourb; 15$nextHour = $nextHoura.$nextHourb; 16$nextMina = mt_rand(0,5); 17$nextMinb = mt_rand(0,9);ext_spl.cpp https://gitlab.com/iranjith4/hhvm | C++ | 384 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+tw_search.blade.php https://bitbucket.org/funisimo/funisimo_cms.git | PHP | 203 lines
7 8 <?php 9/* 87 'oauth_token' => $token, 88 'oauth_nonce' => (string)mt_rand(), // a stronger nonce is recommended 89 'oauth_timestamp' => time(),file.php https://github.com/akutaktau/feedmalaya.git | PHP | 351 lines
1<?php 2/** 4 * 5 * Fuel is a fast, lightweight, community driven PHP5 framework. 6 * 11 * @copyright 2010 - 2011 Fuel Development Team 12 * @link http://fuelphp.com 13 */ 167 // do some garbage collection 168 if (mt_rand(0,100) < $this->config['gc_probability']) 169 { 350 351/* End of file file.php */ 352Profiler.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 295 lines
1<?php 2 177 * 178 * @see http://php.net/manual/en/datetime.formats.php for the supported date/time formats 179 */ 199 200 $profile = new Profile(substr(hash('sha256', uniqid(mt_rand(), true)), 0, 6)); 201 $profile->setTime(time());index.php https://code.google.com/p/maxsite/ | PHP | 148 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 141 $text = explode("\n", $text); 142 $out = trim($text[ mt_rand(0, count($text) - 1) ] ); 143PAN.generate.ts git://github.com/benkeen/generatedata.git | TypeScript | 250 lines
58 $jcbCards = array("jcb15", "jcb16"); 59 $selectedCard = $jcbCards[mt_rand(0, 1)]; 60 } 141 for ($i=0; $i<$len; $i++) { 142 if ($currFormat[$i] == "X") { // PHP version of a charAt 143 $count_X++; 153 } else { 154 $chosenFormat = $matchingFormats[mt_rand(0, count($matchingFormats)-1)]; 155 return trim($chosenFormat); 180 if (count($lengths) >= 1) { 181 $chosenLength = $lengths[mt_rand(0, count($lengths)-1)]; 182 } 214// while ($count < ($length - 1)) { 215// $ccNumber .= mt_rand(0, 9); 216// $count++;PrettyPrinterAbstract.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 262 lines
75 * 76 * @param PHPParser_Node[] $stmts Array of statements 77 * 88 * 89 * @param PHPParser_Node_Expr $node Expression node 90 * 119 * 120 * @param PHPParser_Node[] $nodes Array of nodes 121 */ 134 * 135 * @param PHPParser_Node[] $nodes Array of nodes 136 * @param bool $indent Whether to indent the printed nodes 169 170 protected function pInfixOp($type, PHPParser_Node $leftNode, $operatorString, PHPParser_Node $rightNode) { 171 list($precedence, $associativity) = $this->precedenceMap[$type];Tools.php https://bitbucket.org/thuctapgridy/muagium.git | PHP | 268 lines
1<?php 2 25 for ($i = 0; $i < $length; $i++) { 26 $str .= substr($chars, mt_rand(0, strlen($chars) - 1), 1); 27 }User.php https://gitlab.com/gothcon/cthulhu | PHP | 217 lines
1<?php 2require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "ReadWriteEntity.php"); 134 { 135 $string .= $allchar[mt_rand(0,$allCharCount-1)]; 136 }Database.php https://github.com/wokkie/sitellite.git | PHP | 665 lines
1<?php 2// 33 * <code> 34 * <?php 35 * 54 * @license http://www.sitellite.org/index/license Simian Open Software License 55 * @version 1.2, 2003-04-23, $Id: Database.php,v 1.4 2007/10/06 00:06:30 lux Exp $ 56 * @access public 160 * value that can be passed as a first parameter to the 161 * call_user_func() PHP function. The specified function 162 * must accept the challenging password as a first parameter, 213 if ($this->sessObj->useID) { 214 $id = md5 (uniqid(mt_rand(),1)); 215 while (! db_execute ( 226 )) { 227 $id = md5 (uniqid (mt_rand (), 1)); 228 }CacheBase.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 368 lines
3/** 4 * PHPExcel_CachedObjectStorage_CacheBase 5 * 21 * 22 * @category PHPExcel 23 * @package PHPExcel_CachedObjectStorage 23 * @package PHPExcel_CachedObjectStorage 24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 81 * 82 * @return PHPExcel_Worksheet 83 */ 311 * 312 * @param PHPExcel_Worksheet $parent The new worksheet 313 * @return voidbasic.php https://github.com/skyblue/qeephp2_x.git | PHP | 423 lines
1<?php 2// $Id: basic.php 2360 2009-04-01 15:35:38Z dualface $ 3 4require_once dirname(__FILE__) . '/_setup.php'; 5 44 $author = new Author(); 45 $author->name = 'name - ' . mt_rand(); 46 $author->save(); 65 { 66 $name = 'name - ' . mt_rand(); 67 $author = new Author(array('name' => $name)); 72 73 $new_name = 'name - new - ' . mt_rand(); 74 $author->name = $new_name; 89 $author = new Author(array( 90 'name' => 'congcong - ' . mt_rand(), 91 ));DiscISAM.php https://github.com/Borluse/ProjetOption.git | PHP | 143 lines
2/** 3 * PHPExcel 4 * 20 * 21 * @category PHPExcel 22 * @package PHPExcel_CachedObjectStorage 22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_CachedObjectStorage 34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_DiscISAM extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37simplecrypt.class.inc.php https://github.com/adiakin/itop.git | PHP | 235 lines
1<?php 2// Copyright (C) 2010 Combodo SARL 18 * SimpleCrypt Class - crypto helpers 19 * Simple encryption of strings, uses mcrypt or degrades to a pure PHP 20 * implementation when mcrypt is not present. 92 { 93 // Copied from http://www.php.net/manual/en/function.mt-rand.php#83655 94 // get 128 pseudorandom bits in a string of 16 bytes 116 117 // if we ask for binary data PHP munges it, so we 118 // request base64 return value. We squeeze out the 133 { 134 // No "strong" random generator available, use PHP's built-in mechanism 135 //echo "Random bits generated from mt_rand<br/>\n"; 139 { 140 $sRandomBits .= sprintf('%04x', mt_rand(0, 65535)); 141 }servicelib.php https://github.com/pauln/moodle.git | PHP | 300 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 27 28require_once($CFG->dirroot.'/mod/lti/OAuthBody.php'); 29 43 $headerinfo->addChild('imsx_version', 'V1.0'); 44 $headerinfo->addChild('imsx_messageIdentifier', (string)mt_rand()); 45 168 global $CFG, $DB; 169 require_once($CFG->libdir . '/gradelib.php'); 170 214 global $CFG; 215 require_once($CFG->libdir . '/gradelib.php'); 216 232 global $CFG; 233 require_once($CFG->libdir . '/gradelib.php'); 234knowbaseitemtranslation.class.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 337 lines
1<?php 2/* 111 $canedit = $item->can($item->getID(), UPDATE); 112 $rand = mt_rand(); 113 if ($canedit) { 121 Ajax::updateItemJsCode("viewtranslation" . $item->getID() . "$rand", 122 $CFG_GLPI["root_doc"]."/ajax/viewsubitem.php", 123 $params); 168 Ajax::updateItemJsCode("viewtranslation" . $item->getID() . "$rand", 169 $CFG_GLPI["root_doc"]."/ajax/viewsubitem.php", 170 $params);HttpClient.php https://github.com/kervin/kyzstudio.git | PHP | 352 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: HttpClient.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 25 */ 26#require_once 'Zend/Http/Client.php'; 27 100 if (!$fp) { 101 #require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 102 throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.'); 115 * 116 * In order to call this method, openssl must be enabled in your PHP 117 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 126 if ($key != null && !function_exists('openssl_pkey_get_private')) { 127 #require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 128 throw new Zend_Gdata_App_InvalidArgumentException(Word.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 443 lines
1<?php 2/** 22/** @see Zend_Captcha_Base */ 23require_once 'Zend/Captcha/Base.php'; 24 34 * @license http://framework.zend.com/license/new-bsd New BSD License 35 * @version $Id: Word.php 24593 2012-01-05 20:35:02Z matthew $ 36 */ 275 if (!class_exists($this->_sessionClass)) { 276 require_once 'Zend/Loader.php'; 277 Zend_Loader::loadClass($this->_sessionClass); 380 { 381 return md5(mt_rand(0, 1000) . microtime(true)); 382 }functions.php https://gitlab.com/pankajmohale/chef2go | PHP | 316 lines
1<?php 2/** 31 $res = ''; 32 $len = mt_rand($lenFrom, $lenTo); 33 if($len) { 34 for($i = 0; $i < $len; $i++) { 35 $res .= chr(mt_rand(97, 122)); /*rand symbol from a to z*/ 36 } 65 } 66 $path = GMP_CLASSES_DIR. $classFile. '.php'; 67 } 69 } else { //If such class already exist - let's check does this is our plugin class or someone else 70 /*if(class_exists('ReflectionClass')) { //ReflectionClass supported begining from php5 71 $reflection = new ReflectionClass($class);dmRecordLoremizer.php https://github.com/stephaneerard/diem.git | PHP | 262 lines
1<?php 2 84 // if the field can be null, set it to null sometimes 85 if (!dmArray::get($column, 'notnull') && !dmArray::get($column, 'unique') && !mt_rand(0, 3)) 86 { 112 113 if (mt_rand(0, 4)) 114 { 117 ->orderBy('rand') 118 ->limit(mt_rand(1, 6)) 119 ->fetchFlat(); 142 { 143 $val = (bool)mt_rand(0, 2); 144 } 146 { 147 $val = (bool)mt_rand(0, 1); 148 }Password.php https://bitbucket.org/blackriver/openx.git | PHP | 536 lines
11 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 19 * @copyright 2004-2005 Martin Jansen, Olivier Vanhoucke 20 * @license http://www.php.net/license/3_0.txt PHP License 3.0 21 * @version CVS: $Id: Password.php 6 2006-12-15 17:27:27Z $ 21 * @version CVS: $Id: Password.php 6 2006-12-15 17:27:27Z $ 22 * @link http://pear.php.net/package/Text_Password 23 */ 37 * @copyright 2004-2005 Martin Jansen, Olivier Vanhoucke 38 * @license http://www.php.net/license/3_0.txt PHP License 3.0 39 * @version Release: @package_version@ 462 for ($i = 0; $i < $length; $i++) { 463 $retVal .= $c[mt_rand(0, $c_count-1)] . $v[mt_rand(0, $v_count-1)]; 464 }37611.php https://bitbucket.org/DinoRex99/exploit-database.git | PHP | 196 lines
25 26PoC code follows. In PHP because lol. PoC works on at least 5.x (latest). 27*/ 28 29<?php 30// Impero Education Pro SYSTEM-RCE PoC 38 for ($i = 1; $i < $pad; $i++) 39 $padstr .= chr(mt_rand(0,255)); 40 return $str.$padstr.chr($pad);Word.php https://github.com/Exercise/zf2.git | PHP | 421 lines
1<?php 2/** 364 { 365 return md5(mt_rand(0, 1000) . microtime(true)); 366 }AdminController.php https://gitlab.com/sawmainek/528Express-Server | PHP | 423 lines
1<?php 2 235 'phone' => $request->phone, 236 'code' => mt_rand(100000, 999999), 237 'photo' => isset($safeName)?$safeName:$request->photo,account.php https://gitlab.com/oslc-cm-server/olbergers-ff5-oslc.git | PHP | 245 lines
1<?php 2/** 2/** 3 * account.php - A library of common account management functions. 4 * 127 mt_srand((double)microtime()*1000000); 128 $num = mt_rand(46,122); 129 return $num; 190 // ncommander: Support clear password hashing 191 // for usergroup_plain.php 192 global $unix_cipher;PHP.php https://gitlab.com/link233/bootmw | PHP | 241 lines
1<?php 2 9/** 10 * This is a port of D.J. Bernstein's CDB to PHP. It's based on the copy that 11 * appears in PHP 5.3. Changes are: 36 */ 37class PHP extends Writer { 38 protected $hplist; 48 $this->realFileName = $fileName; 49 $this->tmpFileName = $fileName . '.tmp.' . mt_rand( 0, 0x7fffffff ); 50 $this->handle = fopen( $this->tmpFileName, 'wb' );Liquid.php https://gitlab.com/Skull3x/ClearSky | PHP | 437 lines
1<?php 2namespace pocketmine\block; 214 215 if($this instanceof Lava and $decay < 8 and $k < 8 and $k > 1 and mt_rand(0, 4) !== 0){ 216 $k = $decay;HttpClient.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 352 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: HttpClient.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 25 */ 26require_once 'Zend/Http/Client.php'; 27 100 if (!$fp) { 101 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 102 throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.'); 115 * 116 * In order to call this method, openssl must be enabled in your PHP 117 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 126 if ($key != null && !function_exists('openssl_pkey_get_private')) { 127 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 128 throw new Zend_Gdata_App_InvalidArgumentException(misc2.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 302 lines
32 $vars=""; 33 if (!$to_include || $to_include==".php") $to_include="index"; 34 36 if (count($t)==2) { 37 $http=ZING_PHPLIST_URL.'/'.$t[0].'/api.php'; 38 } else { 38 } else { 39 $http=ZING_PHPLIST_URL.'/api.php'; 40 } 76 $wp['mode']='b'; 77 $wp['pageurl']=get_admin_url().'admin.php?page=bookings&'; 78 } else { 295 $f.='<center style="margin-top:0px;font-size:x-small">'; 296 $f.='Wordpress and <a href ="http://www.phplist.com/" target="_blank">phpList</a> integration by <a href="http://www.zingiri.com" target="_blank">Zingiri</a>'; 297 $f.='</center>';HttpClient.php https://github.com/vivid-planet/library.git | PHP | 352 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: HttpClient.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 25 */ 26require_once 'Zend/Http/Client.php'; 27 100 if (!$fp) { 101 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 102 throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.'); 115 * 116 * In order to call this method, openssl must be enabled in your PHP 117 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 126 if ($key != null && !function_exists('openssl_pkey_get_private')) { 127 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 128 throw new Zend_Gdata_App_InvalidArgumentException(HttpClient.php https://bitbucket.org/haichau59/manga.git | PHP | 352 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: HttpClient.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26//require_once 'Zend/Http/Client.php'; 27 100 if (!$fp) { 101 //require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 102 throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.'); 115 * 116 * In order to call this method, openssl must be enabled in your PHP 117 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 126 if ($key != null && !function_exists('openssl_pkey_get_private')) { 127 //require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 128 throw new Zend_Gdata_App_InvalidArgumentException(HttpClient.php https://github.com/oveach/tuto-zf-doctrine2.git | PHP | 352 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: HttpClient.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26require_once 'Zend/Http/Client.php'; 27 100 if (!$fp) { 101 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 102 throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.'); 115 * 116 * In order to call this method, openssl must be enabled in your PHP 117 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 126 if ($key != null && !function_exists('openssl_pkey_get_private')) { 127 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 128 throw new Zend_Gdata_App_InvalidArgumentException(HungerGamesScoreBoardTask.php https://gitlab.com/Skull3x/WorkingInProgress-Plugins-Sourcecode-For-Dev | PHP | 318 lines
1<?php 2 38 private function showHelpFloatingText() { 39 if ((mt_rand ( 1, 12 )) > 10) { 40 if ($this->plugin->showLobbyHelp) { 45 private function showHallOfFrameWinners() { 46 if ((mt_rand ( 1, 20 )) > 15) { 47 $builder = new StatueBuilder ( $this->plugin ); 52 private function showPortalParticles(GameLevelModel $lv) { 53 if ((mt_rand ( 1, 12 )) > 9) { 54 $px = round ( ($lv->gatePos2->x + $lv->gatePos1->x) / 2 ); 63 private function moveStatues(GameLevelModel $lv) { 64 $i = mt_rand ( 1, 16 ); 65 if ($i < 5) { 66 foreach ( $this->plugin->statueManager->npcs as $npc ) { 67 $i = mt_rand ( 1, 12 ); 68 if ($i === 2 || $i === 3 || $i === 5) {global.php https://github.com/messyo/rEmote.git | PHP | 197 lines
1<?php 2 41// What the hell? 42// Why can't this be php default? 43if(function_exists('date_default_timezone_set')) 46 47require_once(TO_ROOT.'config.php'); 48require_once(TO_ROOT.'inc/render.php'); 48require_once(TO_ROOT.'inc/render.php'); 49require_once(TO_ROOT.'inc/sql/database.php'); 50require_once(TO_ROOT.'inc/sql/'.$sql['type'].'.php'); 50require_once(TO_ROOT.'inc/sql/'.$sql['type'].'.php'); 51require_once(TO_ROOT.'inc/functions/base.fun.php'); 52require_once(TO_ROOT.'inc/sessions.php'); 52require_once(TO_ROOT.'inc/sessions.php'); 53require_once(TO_ROOT.'inc/rpc.php'); 54mailer.php https://gitlab.com/eluar/infocus | PHP | 289 lines
1<?php 2//start the session 9//set the return URL 10$return_url = "../index.php"; 11 45 46//sets the PHP setting 'sendmail_from' for use on a windows server. 47$windows_server = false; 99 //set mime boundry. Needed to send the email. Mixed seperates text from attachments. 100 $mixed_mime_boundary = 'rms-mix-x'.md5(mt_rand()).'x'; 101 //alt seperates html from plain text. 101 //alt seperates html from plain text. 102 $alt_mime_boundary = 'rms-alt-x'.md5(mt_rand()).'x'; 103contacts.inc https://github.com/wrobel/horde-fw3.git | PHP | 203 lines
134</script> 135<form method="post" name="contacts" onsubmit="passAddresses();" action="contacts.php?nocache=<?php echo md5(mt_rand()) ?>"> 136<input type="hidden" name="sa" /> 149 <?php foreach ($source_list as $key => $select): ?> 150 <option value="<?php echo htmlspecialchars($key) ?>"<?php if ($key == $source) echo ' selected="selected"' ?>><?php echo htmlspecialchars($select) ?></option> 151 <?php endforeach; ?> 166 <?php else: ?> 167 <option value="<?php echo rawurlencode($addr['email']) ?>"><?php echo htmlspecialchars($addr['name']) ?></option> 168 <?php endif; endforeach; ?> 179 <?php foreach ($selected_addresses as $value => $text): ?> 180 <option value="<?php echo htmlspecialchars($value) ?>"><?php echo htmlspecialchars($text) ?></option> 181 <?php endforeach; ?> 189 <option value="name"<?php echo $display == 'name' ? ' selected="selected"' : '' ?>><?php echo _("Name") ?></option> 190 <option value="email"<?php echo $display == 'email' ? ' selected="selected"' : '' ?>><?php echo _("Email Address") ?></option> 191 </select>