100+ results results for 'php rand' (1698 ms)
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 }Store.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 707 lines
1<?php 2 190 /** 191 * Get a new, random session ID. 192 * 196 { 197 return sha1(uniqid('', true).Str::random(25).microtime(true)); 198 } 637 { 638 $this->put('_token', Str::random(40)); 639 }lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
1<?php 2 141 'sender_email' => 'Avsändarens e-postadress', 142 'php_mail' => 'PHP mail', 143 'smtp' => 'SMTP', 218 'plugin_author' => 'Skapare', 219 'core_current_build' => 'Nuvarande build', 220 'core_build' => 'Build :build', 229 'plugin_version_none' => 'Nytt tillägg', 230 'plugin_current_version' => 'Nuvarande version', 231 'theme_new_install' => 'Installation av nytt tema.', 262 'details_upgrades_missing' => 'Det finns inga uppgraderingsinstruktioner tillgängliga.', 263 'details_current_version' => 'Nuvarande version', 264 'details_author' => 'Författare', 323 'view_the_dashboard' => 'Visa kontrollpanelen', 324 'manage_branding' => 'Anpassa back-end', 325 ]PersistentTokenBasedRememberMeServicesTest.php https://github.com/jdewit/symfony.git | PHP | 329 lines
1<?php 2 24use Symfony\Component\Security\Core\Exception\CookieTheftException; 25use Symfony\Component\Security\Core\Util\SecureRandom; 26 26 27class PersistentTokenBasedRememberMeServicesTest extends \PHPUnit_Framework_TestCase 28{ 314 315 return new PersistentTokenBasedRememberMeServices(array($userProvider), 'fookey', 'fookey', $options, $logger, new SecureRandom(sys_get_temp_dir().'/_sf2.seed')); 316 }TestData.php https://github.com/orchestra-io/sample-openx.git | PHP | 301 lines
1<?php 2/* 23+---------------------------------------------------------------------------+ 24$Id: TestData.php 41443 2009-08-13 09:19:29Z matteo.beccati $ 25*/ 31 32require_once MAX_PATH . '/lib/OA/Dal.php'; 33require_once MAX_PATH . '/lib/OA/Dll.php'; 244 $doBanners->htmltemplate = "<script type='text/javascript'><!--//<![CDATA[ 245 var m3_u = (location.protocol=='https:'?'https://ads.openx.org/delivery/ajs.php':'http://ads.openx.org/delivery/ajs.php'); 246 var m3_r = Math.floor(Math.random()*99999999999); 257 document.write (\"'><\\/scr\"+\"ipt>\"); 258//]]>--></script><noscript><a href='http://ads.openx.org/delivery/ck.php?n=abc986b1&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ads.openx.org/delivery/avw.php?zoneid=9&cb=INSERT_RANDOM_NUMBER_HERE&n=abc986b1' border='0' alt='' /></a></noscript>"; 259 260 $doBanners->htmlcache = "<script type='text/javascript'><!--//<![CDATA[ 261 var m3_u = (location.protocol=='https:'?'https://ads.openx.org/delivery/ajs.php':'http://ads.openx.org/delivery/ajs.php'); 262 var m3_r = Math.floor(Math.random()*99999999999);index.php https://gitlab.com/Nilufarjahan/LabExam8 | PHP | 455 lines
135 <li> 136 <a href="../Birthday/create.php"> 137 <span class="title">Add New</span> 140 <li> 141 <a href="../Birthday/index.php"> 142 <span class="title">View List</span> 248 <li> 249 <a href="../SummaryOfOrganization/index.php"> 250 <span class="title">View List</span> 328 <td><?php echo $oneData->birthday?></td> 329 <?php echo "<td> <a href=\"edits.php?id=$oneData->id\"class=\"btn btn-info\" role=\"button\">Edit</a> ";?> 330 <?php echo " <a href=\"delete.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Delete</a> ";?> 331 332 <?php echo " <a href=\"trash.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Trash</a> </td> ";?> 333 </tr>sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
52 $this->headers .= "MIME-Version: 1.0\r\n"; 53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n"; 54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; 90 { 91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--"; 92 $this->msgBody .= $this->attachment; 232 private function sendPasswordResetToUser($property) { 233 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n"; 234 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n"; 246 /*$this->msgBody = $htmlCT . $this->msgBody; 247 $this->msgBody .= "--PHP-alt-" . $this->randomHash . "\r\n";*/ 248 $this->msgBody = wordwrap($this->msgBody, $this->wordwrap); 308 private function sendRedemptionSubmittedNotify($property) { 309 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n"; 310 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * usally called as form action from tbl_change.php to insert or update table rows 7 * 7 * 8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $ 9 * 54 */ 55require_once './libraries/common.inc.php'; 56 69 $GLOBALS['js_include'][] = 'tbl_change.js'; 70 require_once './libraries/header.inc.php'; 71 require './tbl_change.php'; 77 $url_params['after_insert'] = $_REQUEST['after_insert']; 78 //$GLOBALS['goto'] = 'tbl_change.php'; 79 $goto_include = 'tbl_change.php';install-location.php https://github.com/nsswaga/OSClass.git | PHP | 418 lines
1<?php 2//error_reporting(E_ALL); 10require_once LIB_PATH . 'osclass/db.php'; 11require_once LIB_PATH . 'osclass/classes/DAO.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 13require_once LIB_PATH . 'osclass/install-functions.php'; 14require_once LIB_PATH . 'osclass/formatting.php'; 15require_once LIB_PATH . 'osclass/compatibility.php'; 16require_once LIB_PATH . 'osclass/utils.php'; 17require_once LIB_PATH . 'osclass/helpers/hPreference.php' ; 96 try{ 97 require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ; 98 $mail = new PHPMailer(true) ; 113 } 114 }catch(phpmailerException $exception) { 115display-debug.page.php https://github.com/evadne/wp-e-commerce.git | PHP | 365 lines
1<?php 2/** 13 global $wpdb; 14 $fixpage = get_option('siteurl').'/wp-admin/admin.php?page=wpsc-sales-logs&subpage=upgrade-purchase-logs'; 15 ?> 49 <li> 50 <a href='?page=wpsc-debug&wpsc_debug_action=phpinfo'>Display phpinfo</a> 51 </li> 52 <li> 53 <a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a> 54 </li> 55 </ul> 56 <?php 57 if (defined('WPSC_ADD_DEBUG_PAGE') && (constant('WPSC_ADD_DEBUG_PAGE') == true)) { 82 ?> 83 <pre style='font-family:\"Lucida Grande\",Verdana,Arial,\"Bitstream Vera Sans\",sans-serif; font-size:8px;'><?php 84 switch($_GET['wpsc_debug_action']) {navbar.php https://gitlab.com/brownmestizo/design-sandbox | PHP | 234 lines
17 <li> 18 <a href="faqs.php"> 19 <span class="hidden-xs">FAQs</span> 29 <li> 30 <a href="terms-and-conditions.php"> 31 <span class="hidden-xs">Terms and Conditions</span> 45 <div class="col-sm-12 col-md-6"> 46 <a class="navbar-brand " href="index.php"> 47 <img src="{{ websiteVars.websiteSpecificImagePath }}logo.png" alt="Planearts"> 135 <li><a href="category.php?category=5">Early Aviation - Pre-1950 </a></li> 136 <li><a href="category.php?category=4">Helicopters </a></li> 137 <li><a href="category.php?category=9">Made to Order Models </a></li> 137 <li><a href="category.php?category=9">Made to Order Models </a></li> 138 <li><a href="category.php?category=16">Tanks & Armored Vehicles </a></li> 139 </ul>imsenterprise_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 327 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 20 * @package enrol_imsenterprise 21 * @category phpunit 22 * @copyright 2012 David Monllaó 28global $CFG; 29require_once($CFG->dirroot . '/enrol/imsenterprise/locallib.php'); 30require_once($CFG->dirroot . '/enrol/imsenterprise/lib.php'); 35 * @package enrol_imsenterprise 36 * @category phpunit 37 * @copyright 2012 David Monllaó 318 // Creating the XML file. 319 $filename = 'ims_' . rand(1000, 9999) . '.xml'; 320 $tmpdir = make_temp_directory('enrol_imsenterprise');test.php https://github.com/md-tech/openemr.git | PHP | 422 lines
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)); 281 360 //Get random ACO IDS 361 $rand_aco_keys = array_rand($aco_ids, mt_rand($min_rand_aco, $max_rand_aco) ); 362 368 //Get random ARO IDS 369 $rand_aro_keys = array_rand($aro_ids, mt_rand($min_rand_aro, $max_rand_aro)); 370 371 unset($rand_aro_ids); 372 foreach ($rand_aro_keys as $rand_aro_key) { 373 $rand_aro_ids[] = $aro_ids[$rand_aro_key];WCCitation.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 326 lines
1<?php 2/** 100 101 # Construct a random marker for storage and later replacement by the citation: 102 $this->marker = 'wC-' . mt_rand();ajax.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 ------------------------------------------------------------------------- 37 * @param $default Default datas t print in case of $use_ajax 38 * @param $rand Random parameter used 39 * 40 **/ 41function ajaxDropdown($use_ajax, $relativeurl, $params=array(), $default=" ", $rand=0) { 42 global $CFG_GLPI, $DB, $LANG; 45 if ($rand==0) { 46 $rand = mt_rand(); 47 } 50 ajaxDisplaySearchTextForDropdown($rand); 51 ajaxUpdateItemOnInputTextEvent("search_$rand", "results_$rand", 52 $CFG_GLPI["root_doc"].$relativeurl, $params);grid.subgrid.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 298 lines
3 * jqGrid extension for SubGrid Data 4 * Tony Tomov tony@trirand.com 5 * http://trirand.com/blog/ 6 * Dual licensed under the MIT and GPL licenses: 7 * http://www.opensource.org/licenses/mit-license.php 8 * http://www.gnu.org/licenses/gpl-2.0.htmlLiquid.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;about.php https://gitlab.com/Gashler/sg | PHP | 208 lines
87 'heading' => __( 'Template Hierarchy' ), 88 /* Translators: 1: singular.php; 2: single.php; 3:page.php */ 89 'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>.' ), 104 <h2 class="nav-tab-wrapper"> 105 <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What’s New' ); ?></a> 106 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 106 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 107 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a> 108 </h2> 171 <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?> 172 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"> 173 <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard → Updates' ); ?> 175 <?php endif; ?> 176 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?></a> 177 </div>ibase_driver.php https://gitlab.com/joshuacurci/swim-crm | PHP | 396 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 64 /** 65 * ORDER BY random keyword 66 * 68 */ 69 protected $_random_keyword = array('RAND()', 'RAND()'); 70DeleteComment.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 355 lines
1<?php 2 5 */ 6require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); 7 71 $_POST['_page'] = 1; 72 $_POST['_url'] = admin_url( 'edit-comments.php' ); 73 98 99 // The total is calculated based on a page break -OR- a random number. Let's look for both possible outcomes 100 $comment_count = wp_count_comments( 0 ); 128 $_POST['_page'] = 1; 129 $_POST['_url'] = admin_url( 'edit-comments.php' ); 130 158 $_POST['_page'] = 1; 159 $_POST['_url'] = admin_url( 'edit-comments.php' ); 160accreditations.sql https://bitbucket.org/juan_sanchez/aiyellow.git | SQL | 242 lines
1-- phpMyAdmin SQL Dump 2-- version 3.4.10.1deb1 2-- version 3.4.10.1deb1 3-- http://www.phpmyadmin.net 4-- 7-- Server version: 5.5.29 8-- PHP Version: 5.3.10-1ubuntu3.6 9 181(2, 'Argentina', 'Juan M. Sanchez', 'avatar_20130325032438.png', NULL, NULL, NULL, NULL, NULL, '2013-03-25 09:25:31', 'Este es un texto en español...', 'Este es un texto en ingles...', 'Este es un texto en portuges...'), 182(29, 'Deutschland', 'Nina Hagen', 'avatar_20130325032419.png', NULL, NULL, NULL, NULL, NULL, '2013-03-25 09:25:36', 'Nina Hagen was born in the former East Berlin, East Germany, the daughter of Hans Hagen (also known as Hans Oliva-Hagen), a scriptwriter, and Eva-Maria Hagen (née Buchholz), an actress and singer. Her paternal grandfather died in the Sachsenhausen concentration camp (her paternal grandparents were Jewish).[1] Her parents divorced when she was two years old, and growing up she saw her father infrequently. At age four, she began to study ballet, and was considered an opera prodigy by the time she was nine.', 'Nina Hagen was born in the former East Berlin, East Germany, the daughter of Hans Hagen (also known as Hans Oliva-Hagen), a scriptwriter, and Eva-Maria Hagen (née Buchholz), an actress and singer. Her paternal grandfather died in the Sachsenhausen concentration camp (her paternal grandparents were Jewish).[1] Her parents divorced when she was two years old, and growing up she saw her father infrequently. At age four, she began to study ballet, and was considered an opera prodigy by the time she was nine.', 'Nina Hagen was born in the former East Berlin, East Germany, the daughter of Hans Hagen (also known as Hans Oliva-Hagen), a scriptwriter, and Eva-Maria Hagen (née Buchholz), an actress and singer. Her paternal grandfather died in the Sachsenhausen concentration camp (her paternal grandparents were Jewish).[1] Her parents divorced when she was two years old, and growing up she saw her father infrequently. At age four, she began to study ballet, and was considered an opera prodigy by the time she was nine.'), 183(30, 'dssdds', 'aaaa', '/graduate_20130422010309.png', 'asd@mail.com', '', '', '', '', '2013-04-22 04:03:09', 'asd', 'asd', 'asd'),voucher.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']),Exception.php https://github.com/Br3nda/statusnet-debian.git | PHP | 397 lines
11 * the PHP License and are unable to obtain it through the web, please 12 * send a note to license@php.net so we can mail you a copy immediately. 13 * 20 * @copyright 1997-2008 The PHP Group 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 22 * @version CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $ 44 * 45 * 3) Inherited properties from PHP Exception Class: 46 * 96 * @copyright 1997-2008 The PHP Group 97 * @license http://www.php.net/license/3_0.txt PHP License 3.0 98 * @version Release: 1.7.2 154 /** 155 * @param mixed $callback - A valid php callback, see php func is_callable() 156 * - A PEAR_Exception::OBSERVER_* constantUnitTestCase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 282 lines
13use Drupal\TestTools\TestVarDumper; 14use PHPUnit\Framework\TestCase; 15use Symfony\Component\VarDumper\VarDumper; 27 28 use PhpUnitWarnings; 29 use PhpUnitCompatibilityTrait; 78 * @return string 79 * Randomly generated unique string. 80 * 82 */ 83 public function randomMachineName($length = 8) { 84 return $this->getRandomGenerator()->name($length, TRUE); 94 if (!is_object($this->randomGenerator)) { 95 $this->randomGenerator = new Random(); 96 }README.md https://gitlab.com/Sondages.Pro/Jirafeau | Markdown | 275 lines
52- Get your web browser and go to you install location (e.g. ```http://your-web-site.org/jirafeau/```) and follow instructions 53- Some options are not configured from the minimal installation wizard, you may take a look at option documentation in ```lib/config.original.php``` and customize your ```lib/config.local.php``` 54 56 57If you don't want to go through the installation wizard, you can just copy ```config.original.php``` to ```config.local.php``` and customize it. 58 134 135You can call the admin.php script from the command line (CLI) with the ```clean_expired``` or ```clean_async``` commands: ```sudo -u www-data php admin.php clean_expired```. 136 158For browsers who does not support HTML5 file API, the limitation come from PHP configuration. 159You have to set [post_max_size](https://php.net/manual/en/ini.core.php#ini.post-max-size) and [upload_max_filesize](https://php.net/manual/en/ini.core.php#ini.upload-max-filesize) in your php configuration. 160 2746. Add a rewrite rule in your web server configuration to rename file.php to f.php to make old url work again 2757. Go in you lib/config.local.php and lib/config.original.php to check new options and eventually change skin to 'courgette' 276ChartWrapper.html https://gitlab.com/kevinkhill/lavacharts-api | HTML | 342 lines
49 </button> 50 <a class="navbar-brand" href="../../../index.html"> 51 <img src="../../../images/lava-logo.gif" /> 83 <p> class 84 <strong>ChartWrapper</strong> extends <a href="../../../Khill/Lavacharts/Dashboards/Wrapper.html"><abbr title="Khill\Lavacharts\Dashboards\Wrapper">Wrapper</abbr></a> (<a href="https://github.com/khill/lavacharts/blob/master/src/Dashboards/ChartWrapper.php">View source</a>) 85</p>theme-support.php https://gitlab.com/ravenseyedesign/ravensegg | PHP | 367 lines
1<?php 2/** 345/** 346 * Display unlimited post types per page and sort by random. 347 * 362// $query->set( 'order', 'ASC' ); 363// $query->set( 'orderby', 'rand' ); 364// }Array.php https://github.com/grandison/budo16.git | PHP | 354 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 18701 2009-10-26 13:03:47Z matthew $ 21 */ 25 */ 26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 // require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 // require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());str.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 416 lines
1<?php 2/** 9 * @copyright 2010 - 2013 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 17 * 18 * PHP needs to be compiled with --enable-mbstring 19 * or a fallback without encoding support is used 244 /** 245 * Creates a random string of characters 246 * 248 * @param int the number of characters 249 * @return string the random string 250 */ 250 */ 251 public static function random($type = 'alnum', $length = 16) 252 {amap_fr.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 168 lines
1<?php 2// This is a SPIP language file -- Ceci est un fichier langue de SPIP 57 'gestion_amap' => 'Gestion AMAP', 58 'grand' => 'Grand', 59ARC2_SemHTMLParser.php https://github.com/mterenzio/FollowThis.git | PHP | 339 lines
1<?php 2/* 26 $this->skip_dupes = false; 27 $this->bnode_prefix = $this->v('bnode_prefix', 'arc'.substr(md5(uniqid(rand())), 0, 4).'b', $this->a); 28 $this->bnode_id = 0;class.jetpack-landing-page.php https://gitlab.com/thisishayat/itv-2016 | PHP | 299 lines
1<?php 2include_once( 'class.jetpack-admin-page.php' ); 49 add_action( "admin_footer-$hook", apply_filters( 'jetpack_landing_page_js_templates_callback', array( $this, 'js_templates' ), $hook ) ); 50 /** This action is documented in class.jetpack.php */ 51 do_action( 'jetpack_admin_menu', $hook ); 87 * The option can be of 4 things, and will be stored as such: 88 * new_connection : Brand new connection - Show 89 * jumpstart_activated : Jump Start has been activated - dismiss 144 function js_templates() { 145 Jetpack::init()->load_view( 'admin/landing-page-templates.php' ); 146 } 175 ); 176 Jetpack::init()->load_view( 'admin/admin-page.php', $data ); 177 } 203 <div class="squeezer"> 204 <h2><?php echo wp_kses( $message, array( 'strong' => array(), 'a' => array( 'href' => true ), 'br' => true ) ); ?></h2> 205 <?phpdav_ke.php https://gitlab.com/zenfork/vektor | PHP | 455 lines
1<?php 2/** 64 5 => 'Mori ghwa kasanu', 65 6 => 'Mori ghwa karandadu', 66 7 => 'Mori ghwa mfungade',style.css https://gitlab.com/github-cloud-corp/aws-sdk-php | CSS | 672 lines
8h1, h2, h3, h4, h5, h6 { 9 font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; 10 color: black; 438 439.php-keyword1 { 440 color: #468847; 443 444.php-keyword2 { 445 font-weight: bold; 447 448.php-var { 449 color: #c09853; 490 491span.l .php-var a:hover, span.l .php-var a:active, span.l .php-var a:focus { 492 color: #c09853 !important;str.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 416 lines
1<?php 2/** 9 * @copyright 2010 - 2012 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 17 * 18 * PHP needs to be compiled with --enable-mbstring 19 * or a fallback without encoding support is used 244 /** 245 * Creates a random string of characters 246 * 248 * @param int the number of characters 249 * @return string the random string 250 */ 250 */ 251 public static function random($type = 'alnum', $length = 16) 252 {bp-friends-template.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 434 lines
68 <div class="info-group"> 69 <h4><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> (<?php echo BP_Friends_Friendship::total_friend_count( bp_displayed_user_id() ) ?>) <span><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_friends_slug() ) ?>"><?php _e('See All', 'buddypress') ?></a></span></h4> 70 124 <li> 125 <a href="<?php echo bp_core_get_user_domain( $user_ids['users'][$i]->id ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $user_ids['users'][$i]->id, 'type' => 'thumb' ) ) ?></a> 126 <h5><?php echo bp_core_get_userlink( $user_ids['users'][$i]->id ) ?></h5> 129 130 <?php $random_data = xprofile_get_random_profile_data( $user_ids['users'][$i]->id, true ); ?> 131 158 <div id="message" class="info"> 159 <p><?php _e( "There aren't enough site members to show a random sample just yet.", 'buddypress' ) ?></p> 160 </div> 173 <label for="friend-search-box" id="friend-search-label"><?php echo $label ?></label> 174 <input type="search" name="friend-search-box" id="friend-search-box" value="<?php echo $value ?>"<?php echo $disabled ?> /> 175MangaController.php https://bitbucket.org/haichau59/manga.git | PHP | 343 lines
1<?php 2 64 65 $related = $asset->getRelatedManga("rand()", 0, 6); 66 $relatedManga = $related['data'];xbmc_alshain.php https://bitbucket.org/kaigoh/xbmc-php.git | PHP | 312 lines
1<?php 2 5 +-----------------------------------------------+ 6 | XBMC PHP Library - (C) Kai Gohegan, 2010 | 7 +-----------------------------------------------+ 8 9 A PHP library for interacting with XBMC using 10 JSON-RPC and XBMC's HTTP-API. Inspiration was 10 JSON-RPC and XBMC's HTTP-API. Inspiration was 11 drawn from Jason Bryant-Greene's php-json-rpc 12 (https://bitbucket.org/jbg/php-json-rpc/src). 76 $xbmcHttp->COMMAND('arg1,arg2'); 77 $xbmcHttp->ExecBuiltIn("Notification(XBMC-PHP, Hello!)"); 78 83 84 $xbmcHttp->ExecBuiltIn("Notification", array("XBMC-PHP", "Hello!")); 85Array.php https://bitbucket.org/haichau59/manga.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26//require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 //require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 //require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());Parser.php https://gitlab.com/ubrium/makeup | PHP | 399 lines
1<?php 2 51 { 52 return sprintf('__internal_%s', hash('sha256', uniqid(mt_rand(), true), false)); 53 } 292 { 293 $template->setIndex(mt_rand()); 294functions.inc.php https://bitbucket.org/vsposato/vivo-tools.git | PHP | 520 lines
26 * PHP License, version 3.0 or later. A copy of this license should have 27 * been distributed with this file in the file LICENSE.PHP . If this is not 28 * the case, you can obtain a copy at http://www.php.net/license/3_0.txt. 72 73 if ( php_sapi_name() !== "cli") 74 echo("</pre>"); 91function pre_var_dump($mixed) { 92 if ( php_sapi_name() !== "cli") 93 echo("<pre>"); 395 * 396 * @see http://www.php.net/manual/en/function.set-error_handler.php 397 * 506 * 507 * @link http://us.php.net/manual/en/function.sys-get-temp-dir.php#85261 508 */CreditCard.php https://github.com/michaelmcandrew/vaw.git | PHP | 297 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 5 * 6 * PHP Versions 4 and 5 7 * 10 * the world-wide-web at 11 * http://www.opensource.org/licenses/bsd-license.php 12 * If you did not receive a copy of the new BSDlicense and are unable 13 * to obtain it through the world-wide-web, please send a note to 14 * pajoye@php.net so we can mail you a copy immediately. 15 * 20 * @copyright 1997-2005 Stefan Neufeind 21 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 22 * @version CVS: $Id: CreditCard.php,v 1.13 2007/09/16 16:42:34 kguest Exp $ 22 * @version CVS: $Id: CreditCard.php,v 1.13 2007/09/16 16:42:34 kguest Exp $ 23 * @link http://pear.php.net/package/Validate_Finance_CreditCard 24 */NestedTreeRootTest.php https://github.com/kaiwa/DoctrineExtensions.git | PHP | 337 lines
1<?php 2 15 * @link http://www.gediminasm.org 16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 */ 38 $minutes = intval($took / 60); $seconds = $took % 60; 39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL; 40 }; 49 // siblings 50 $rnd = rand(0, 3); 51 for ($j = 0; $j < $rnd; $j++) {wp-background-process.php https://gitlab.com/campus-academy/krowkaramel | PHP | 503 lines
1<?php // @codingStandardsIgnoreLine. 2/** 146 protected function generate_key( $length = 64 ) { 147 $unique = md5( microtime() . rand() ); 148 $prepend = $this->identifier . '_batch_';AdapterChainTest.php https://gitlab.com/my-application.bjoernbartels.earth/ZfcUser | PHP | 311 lines
1<?php 2 8 9class AdapterChainTest extends \PHPUnit_Framework_TestCase 10{ 218 219 $lastResponse = 'random-value'; 220 $result->expects($this->atLeastOnce())->method('last')->will($this->returnValue($lastResponse));userpay.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 437 lines
36 $paycredit = key($db_creditpay); 37 $pay_link = "<span class=\"btn\"><span><button onClick=\"location.href='userpay.php?action=buy';\">馬上充值</button></span></span>"; 38 //* include_once pwCache::getPath(D_P.'data/bbscache/ol_config.php'); 118 'currency_code' => 'CNY', 119 'bn' => 'phpwind', 120 'charset' => $db_charset 141 strlen($ol_99bill) == 11 && $ol_99bill .= '01'; 142 //require_once(R_P.'require/header.php'); 143 !$db_rmbrate && $db_rmbrate=10; 145 'inputCharset' => ($db_charset == 'gbk' ? 2 : 1), 146 'pageUrl' => "{$db_bbsurl}/pay99bill.php", 147 'version' => 'v2.0', 182// $url = "https://www.tenpay.com/cgi-bin/v1.0/pay_gate.cgi?"; 183 $url = "http://pay.phpwind.net/pay/create_payurl.php?"; 184 $para = array(stats.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 569 lines
1<?php 2/** 13 * Statistics system plugin. This sends anonymous data back to the Joomla! Project about the 14 * PHP, SQL, Joomla and OS versions 15 * 324 'unique_id' => $this->getUniqueId(), 325 'php_version' => PHP_VERSION, 326 'db_type' => $this->db->name, 328 'cms_version' => JVERSION, 329 'server_os' => php_uname('s') . ' ' . php_uname('r') 330 ); 343 { 344 $this->uniqueId = $this->params->get('unique_id', hash('sha1', JUserHelper::genRandomPassword(28) . time())); 345 }info-table-design06.php https://gitlab.com/ezgonzalez/integral | PHP | 291 lines
1<?php 2/* 128 129 $info_table_id = 'Info-table-wrap-'.rand(1000, 9999); 130 $info_table_args = array( 198 199 $info_table_features_id= 'info_table_features_wrap-'.rand(1000, 9999); 200 246 247 $info_table_btn_id= 'info_table_btn_wrap-'.rand(1000, 9999); 248password.c https://gitlab.com/envieidoc/advancedtomato2 | C | 460 lines
27#include "php_password.h" 28#include "php_rand.h" 29#include "php_crypt.h" 48 49static char* php_password_get_algo_name(const php_password_algo algo) 50{ 59 60static php_password_algo php_password_determine_algo(const char *hash, const size_t len) 61{ 129 BYTE *iv_b = (BYTE *) buffer; 130 if (php_win32_get_random_bytes(iv_b, raw_length) == SUCCESS) { 131 buffer_valid = 1; 155 for (i = 0; i < raw_length; i++) { 156 buffer[i] ^= (char) (255.0 * php_rand(TSRMLS_C) / RAND_MAX); 157 }index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 428 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26require('../../config.php'); 27require_once($CFG->libdir . '/completionlib.php'); 66 67$url = new moodle_url('/report/progress/index.php', array('course'=>$id)); 68if ($sort !== '') { 92// nothing to display (no users or no activities) 93$reportsurl = $CFG->wwwroot.'/course/report.php?id='.$course->id; 94$completion = new completion_info($course); 114// Total user count 115$grandtotal = $completion->get_num_tracked_users('', array(), $group); 116 131 132if ($csv && $grandtotal && count($activities)>0) { // Only show CSV if there are some users/actvs 133class-wp-admin-bar.php https://github.com/vidor/vidor.me.git | PHP | 474 lines
355 356 ?><div id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="ab-group-container"><?php 357 foreach ( $node->children as $group ) { 371 372 ?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="<?php echo esc_attr( $class ); ?>"><?php 373 foreach ( $node->children as $item ) { 400 401 <li id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="<?php echo esc_attr( $menuclass ); ?>"><?php 402 if ( $has_link ): 402 if ( $has_link ): 403 ?><a class="ab-item" <?php echo $aria_attributes; ?> href="<?php echo esc_url( $node->href ) ?>"<?php 404 if ( ! empty( $node->meta['onclick'] ) ) : 416 if ( ! empty( $node->meta['title'] ) ) : 417 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php 418 endif;tigerslot.js https://gitlab.com/colin.luo/shbs | JavaScript | 458 lines
63$(function () { 64 // var url_rndprize = '/index.php?g=Wap&m=LuckyFruit&a=getajax'; 65 var url_getprize = '兑奖地址'; 80 lightFlicker.stop(); 81 lightRandom.stop(); 82 lightCycle.start(); 115 lightFlicker.start(); 116 lightRandom.stop(); 117 lightCycle.stop(); 247 }; 248 $.post('/index.php?g=Wap&m=Lottery&a=add', submitData, 249 function(data) { 278 }; 279 $.post('/index.php?g=Wap&m=Lottery&a=exchange', submitData, 280 function(data) {index.py https://gitlab.com/xiaok/SaltAdmin | Python | 237 lines
4import time 5import random 6import urllib2 13 for i in range(L): 14 Str += random.sample(CharLib,1) 15 return ''.join(Str) 67 # 这里要从公网去解析 68 url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=" + LoginHost 69 response = urllib2.urlopen(url)Collection.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 333 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 170 /** 171 * Add random sorting order 172 * 174 */ 175 public function setRandomOrder() 176 { 176 { 177 $this->getSelect()->orderRand('main_table.entity_id'); 178 return $this;key.cpp https://gitlab.com/yenny.prathivi/bitcoin | C++ | 330 lines
2// Distributed under the MIT software license, see the accompanying 3// file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 10#include "pubkey.h" 11#include "random.h" 12 126void CKey::MakeNewKey(bool fCompressedIn) { 127 RandAddSeedPerfmon(); 128 do { 128 do { 129 GetRandBytes(vch, sizeof(vch)); 130 } while (!Check(vch)); 189 std::string str = "Bitcoin key verification\n"; 190 GetRandBytes(rnd, sizeof(rnd)); 191 uint256 hash;DateTime.php https://gitlab.com/jjpa2018/dashboard | PHP | 381 lines
52 * 53 * @see http://php.net/manual/en/timezones.php 54 * @see http://php.net/manual/en/function.date-default-timezone-get.php 73 * 74 * @see http://php.net/manual/en/timezones.php 75 * @see http://php.net/manual/en/function.date-default-timezone-get.php 78 { 79 $min = (PHP_INT_SIZE > 4 ? -62135597361 : -PHP_INT_MAX); 80 143 * @see http://php.net/manual/en/timezones.php 144 * @see http://php.net/manual/en/function.date-default-timezone-get.php 145 */ 176 * @see http://php.net/manual/en/timezones.php 177 * @see http://php.net/manual/en/function.date-default-timezone-get.php 178 */template-bootstrap.php https://gitlab.com/danielortiz1982/spicer | PHP | 198 lines
15 <link rel="stylesheet" type="text/css" href="<?php echo PAGEDIR; ?>/machines/libraries/owlcarousel/owlcarousel.css"> 16 <link rel="stylesheet" type="text/css" href="<?php echo PAGEDIR; ?>/styles/styles.min.css"> 17 25 </head> 26 <body data-tempdir="<?php echo PAGEDIR; ?>" id="<?php echo get_post( $post )->post_name; ?>" <?=(returnMobile() == 'true')? 'class="mobileMode"' : 'class="desktopMode"';?>> 27 75 <a class="navbar-brand" href="<?php echo home_url(); ?>"> 76 <img src="<?php echo PAGEDIR; ?>/images/graphics/logo.png" alt="<?php bloginfo('name');?>" /> 77 </a> 172 <script src="<?php echo PAGEDIR; ?>/machines/libraries/owlcarousel/owlcarousel.js"></script> 173 <script src="<?php echo PAGEDIR; ?>/machines/libraries/modernizr/modernizr.js"></script> 174 <script src="<?php echo PAGEDIR; ?>/machines/libraries/backstretch/backstretch.js"></script> 174 <script src="<?php echo PAGEDIR; ?>/machines/libraries/backstretch/backstretch.js"></script> 175 <script src="<?php echo PAGEDIR; ?>/machines/libraries/validate/validate.js"></script> 176 <script src="<?php echo PAGEDIR; ?>/machines/libraries/boilerplate/boilerplate.js"></script>pmetis.c https://bitbucket.org/palday/fieldtrip.git | C | 341 lines
78 79 InitRandom(-1); 80 131 if (nparts > 2) { 132 SplitGraphPart(ctrl, graph, &lgraph, &rgraph); 133 /* printf("%d %d\n", lgraph.nvtxs, rgraph.nvtxs); */ 189**************************************************************************/ 190void SplitGraphPart(CtrlType *ctrl, GraphType *graph, GraphType *lgraph, GraphType *rgraph) 191{Parser.pm https://github.com/tokuhirom/rpc-xml.git | Perl | 326 lines
2# 3# This file copyright (c) 2001-2010 Randy J. Ray, all rights reserved 4# 5# Copying and distribution are permitted under the terms of the Artistic 6# License 2.0 (http://www.opensource.org/licenses/artistic-license-2.0.php) or 7# the GNU LGPL (http://www.opensource.org/licenses/lgpl-2.1.php). 305 306This file and the code within are copyright (c) 2010 by Randy J. Ray. 307 308Copying and distribution are permitted under the terms of the Artistic 309License 2.0 (L<http://www.opensource.org/licenses/artistic-license-2.0.php>) or 310the GNU LGPL 2.1 (L<http://www.opensource.org/licenses/lgpl-2.1.php>). 323 324Randy J. Ray <rjray@blackperl.com> 325redis.php https://github.com/cloudmanic/fuel.git | PHP | 525 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 */ 407 { 408 $key .= mt_rand(0, mt_getrandmax()); 409 } 524 525/* End of file file.php */ 526PerformanceScenarioTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 438 lines
231 232 float randomx = CCRANDOM_0_1(); 233 float randomy = CCRANDOM_0_1(); 233 float randomy = CCRANDOM_0_1(); 234 sprite->setPosition(origin + Vec2(randomx * s.width, randomy * s.height)); 235 236 ActionInterval* action; 237 float random = CCRANDOM_0_1(); 238 300 { 301 float randomIdx = CCRANDOM_0_1(); 302 int idx = (filesSize - 1) * randomIdx; 307 float randomy = CCRANDOM_0_1(); 308 par->setPosition(origin + Vec2(s.width * randomx, s.height * randomy)); 309 par->setTotalParticles(_particleNumber);Person.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 132 lines
1<?php 2 81 'Obol','Odeke','Okumu','Okumuringa','Opega','Opio','Orishaba','Osiki','Ouma', 82 'Sekandi','Semande','Serwanga','Ssebatta','Ssebugulu','Ssebunya','Ssebuuma','Ssebyala','Ssegawa','Ssekabira','Ssekanjako','Ssekate','Ssekibuule','Ssekidde','Ssekiranda','Ssekitooleko','Ssekubulwa','Ssempija','Ssempungu','Ssemwezi','Ssendege','Ssenjovu','Ssenkaali','Ssentezza','Ssentongo','Sserubiri','Sseruyinda','Ssettende', 83 ); 119 120 return static::randomElement(static::$lastName); 121 } 124 { 125 return static::randomElement(static::$lastNameMale); 126 } 129 { 130 return static::randomElement(static::$lastNameFemale); 131 }timesheet.php https://gitlab.com/haque.mdmanzurul/wp-archivefusetheme | PHP | 280 lines
1<?php 2/* 22 <div class="col-md-4" style="text-align:right"> 23 <?php 24 if ( has_post_thumbnail() ) { 27 ?> 28 <img src="<?php bloginfo('template_directory'); ?>/images/Timesheet.png" height="150"><?php } ?> 29 </div> 221 <tr> 222 <th class="text-nowrap">Grand Total</th> 223 <td class="RatesNumberColumn"><div id="summaryPayGrandTotal"></div></td> 223 <td class="RatesNumberColumn"><div id="summaryPayGrandTotal"></div></td> 224 <td class="RatesNumberColumn"><div id="summaryChargeGrandTotal"></div></td> 225 </tr> 278 <!-- End of Actions --> 279<?php get_footer(); ?> 280 <!-- /container -->Exception.php https://github.com/Getty/historical-php-rapidev.git | PHP | 397 lines
11 * the PHP License and are unable to obtain it through the web, please 12 * send a note to license@php.net so we can mail you a copy immediately. 13 * 20 * @copyright 1997-2008 The PHP Group 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 22 * @version CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $ 44 * 45 * 3) Inherited properties from PHP Exception Class: 46 * 96 * @copyright 1997-2008 The PHP Group 97 * @license http://www.php.net/license/3_0.txt PHP License 3.0 98 * @version Release: 1.7.1 154 /** 155 * @param mixed $callback - A valid php callback, see php func is_callable() 156 * - A PEAR_Exception::OBSERVER_* constantprovidex.php https://github.com/pixelpost/ultralite2_docs.git | PHP | 299 lines
1<?php 2/****************************************************************************** 2/****************************************************************************** 3 * providex.php 4 * ---------- 73 'precision', 'prefix', 'preinput', 'print', 'process', 'program', 74 'property', 'purge', 'quit', 'radio_button', 'randomize', 75 'read', 'record', 'redim', 'refile', 'release', 'rem', 'remove', 257 'URLS' => array( 258 1 => 'http://www.allbasic.info./wiki/index.php/PX:Directive_{FNAME}', 259 2 => 'http://www.allbasic.info./wiki/index.php/PX:System_function_{FNAME}', 259 2 => 'http://www.allbasic.info./wiki/index.php/PX:System_function_{FNAME}', 260 3 => 'http://www.allbasic.info./wiki/index.php/PX:System_variable_{FNAME}', 261 4 => 'http://www.allbasic.info./wiki/index.php/PX:Nomads_{FNAME}', 261 4 => 'http://www.allbasic.info./wiki/index.php/PX:Nomads_{FNAME}', 262 5 => 'http://www.allbasic.info./wiki/index.php/PX:Mnemonic_{FNAMEU}' 263 ),MessagesMyv.php https://gitlab.com/link233/bootmw | PHP | 186 lines
1<?php 2/** Erzya (эрзянь) 83 'Protectedtitles' => [ 'ВанстоньКонякст' ], 84 'Randompage' => [ 'КодамоПонгсьЛопа' ], 85 'Recentchanges' => [ 'ЧыяконьПолавтомат' ],Array.php https://github.com/skoop/Gesichtbuch.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 6352 2010-08-16 15:02:45Z tpater $ 21 */ 25 */ 26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 // require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 // require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());migration_tables_core_538.php https://bitbucket.org/blackriver/openx.git | PHP | 318 lines
1<?php 2 24+---------------------------------------------------------------------------+ 25$Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $ 26*/ 27 28require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php'); 29 309 if (PEAR::isError($result)) { 310 return $this->_logErrorAndReturnFalse('Cannot migrate '.$table); 311 }virtualhelixitem.py https://github.com/sdouglas/cadnano2.git | Python | 277 lines
22# 23# http://www.opensource.org/licenses/mit-license.php 24 32from model.virtualhelix import VirtualHelix 33from model.enum import Parity, StrandType 34from controllers.itemcontrollers.virtualhelixitemcontroller import VirtualHelixItemController 114 115 def strandAddedSlot(self, sender, strand): 116 passother.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 224 lines
1<?php 2/* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com> 148 'EnableGDLibraryDesc' => 'Deve activar ou instalar a Libraria GD no seu PHP para poder activar esta Opção', 149 'EnablePhpAVModuleDesc' => 'Deve instalar um módulo PHP compativel com o seu antivirus. (Clamav : php4-clamavlib ó php5-clamavlib)', 150 'ProfIdShortDesc' => '<b>Prof Id %s</b> é uma informação dePendente do país do Terceiro.<br>Por Exemplo, para o país <b>%s</b>, é o código <b>%s</b>.', 188 'CancelUpload' => 'Cancelar upload', 189 'FileIsTooBig' => 'Arquivos muito grandes', 190 'PleaseBePatient' => 'Please be patient...',eiffel.php https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | PHP | 395 lines
1<?php 2/************************************************************************************* 2/************************************************************************************* 3 * eiffel.php 4 * ---------- 155 'RAW_FILE', 156 'RANDOM', 157 'QUEUE',externallib_test.php https://github.com/Beedell/moodle.git | PHP | 286 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 30 31require_once($CFG->dirroot . '/webservice/tests/helpers.php'); 32 87 'tool_mobile_disabledfeatures' => '', 88 'launchurl' => "$CFG->wwwroot/$CFG->admin/tool/mobile/launch.php", 89 'warnings' => array() 122 global $CFG, $SITE; 123 require_once($CFG->dirroot . '/course/format/lib.php'); 124 128 129 // SITE summary is null in phpunit which gets transformed to an empty string by format_text. 130 list($sitesummary, $unused) = external_format_text($SITE->summary, $SITE->summaryformat, context_system::instance()->id); 204 $this->expectExceptionMessage(get_string('invalidprivatetoken', 'tool_mobile')); 205 $result = external::get_autologin_key(random_string('64')); 206 }atof_test.go https://gitlab.com/lobl.pavel/gcc-6.2.0 | Go | 430 lines
212 213 // Generate random inputs for tests and benchmarks 214 rand.Seed(time.Now().UnixNano()) 220 for i := range atofRandomTests { 221 n := uint64(rand.Uint32())<<32 | uint64(rand.Uint32()) 222 x := math.Float64frombits(n) 227 for i := range benchmarksRandomBits { 228 bits := uint64(rand.Uint32())<<32 | uint64(rand.Uint32()) 229 x := math.Float64frombits(bits) 229 x := math.Float64frombits(bits) 230 benchmarksRandomBits[i] = FormatFloat(x, 'g', -1, 64) 231 } 293 } 294 t.Logf("tested %d random numbers", len(atofRandomTests)) 295}font_container.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 298 lines
1<?php 2 211 'Lucida Sans Unicode' => '"Lucida Sans Unicode", "Lucida Grande", sans-serif', 212 'Lucida Grande' => '"Lucida Grande", sans-serif', 213 'Tahoma' => 'Tahoma, Geneva, sans-serif',utility.hh https://github.com/roboptim/roboptim-core.git | C++ Header | 361 lines
92 /// This solution comes from a post in the Eigen forums: 93 /// https://forum.kde.org/viewtopic.php?f=74&t=121280 94 /// 167 /// \brief Converts CLIST to a boost::mpl::vector to ensure a similar 168 /// behavior for codes using different random access sequences (vector, 169 /// list, etc.).index.html https://bitbucket.org/sprakdata/wright.git | HTML | 93 lines
25 <li><a href="#2f">Learning Javascript</a></li> 26 <li><a href="#2g">Learning PHP</a></li> 27 </ol> 32 <li><a href="#3d">Wright tags</a></li> 33 <li><a href="#3e">Adding custom PHP</a></li> 34 </ol> 64 <h5><a name="2g">2g. Learning PHP</a></h5> 65 PHP is the programming language that Joomla is built upon. It is a very popular and practical language, which is one of the easiest to learn. That said, it can also be easy to learn the basics and accidentally break more complex code. We recommend avoiding simple 'tweaking' to any PHP code unless you are properly trained in the language. If you want to learn, the best thing to do is to get a book. PHP5 is the current standard, and PHP6 has an uncertain future. So if you choose to get a book, realize PHP6 is not the standard, and publishers got ahead of themselves. However, PHP6 books are likely to sync well with PHP 5.3+, but on the other hand Joomla 1.5 has trouble running on 5.3. So in few words you see its not as simple as reading some basic tutorials online and changing code, so be prepared but don't be overwhelmed. Reading a lot of documentation on the Joomla documentation wiki will also shed light into PHP tips and tricks, especially how they relate to Joomla. Joomla 1.5 is somewhat of a legacy codebase. It works still on PHP4, but PHP4 has not been supported by PHP since end of 2007. Many servers still use PHP4, and that is the reason for the support. However Joomla 1.6 and beyond will require PHP 5.2 or greater.<br> 66 <h3><a name="3">3. Making Customizations</a></h3> 69 <h5><a name="3b">3b. Customizing HTML without altering the template</a></h5> 70 <div>This is the most common thing people do, and we have designed our templates for you to be able to edit your own template freely. If you look at the template directory, you will see template.php. This is the file that is loaded and handles the HTML output. Rather than making changes directly in this file, you can copy it and rename it to custom.php. If you include custom.php in your template directory, it will be used instead of template.php. This will prevent your changes from getting overridden.</div> 71 <h5><a name="3c">3c. Customizing CSS without altering the template</a></h5> 83 <h5><a name="3e">3e. Adding custom PHP</a></h5> 84 <div>We think it is bad practice to put a lot of PHP code into your template directly. It makes it hard to read. That is why you can use the functions.php file to write any PHP code you need. It will be loaded before the template, so any variables will be available in the template. For example, if you want to add some code to check what menu item the current page is in order to provide some unique functionality, you can put the PHP logic in the functions.php file and save a boolean variable to use in the template.</div> 85 <h3><a name="4">4. FAQs</a></h3>app.php https://gitlab.com/tuonglv/library_tuong | PHP | 217 lines
1<?php 2 34 | Here you may specify the default timezone for your application, which 35 | will be used by the PHP date and date-time functions. We have gone 36 | ahead and set this to a sensible default for you out of the box. 70 | This key is used by the Illuminate encrypter service and should be set 71 | to a random, 32 character string, otherwise these encrypted strings 72 | will not be safe. Please do this before deploying an application! 75 76 'key' => env('APP_KEY', 'SomeRandomString'), 77 'cipher' => 'AES-256-CBC', 83 | Here you may configure the log settings for your application. Out of 84 | the box, Laravel uses the Monolog PHP logging library. This gives 85 | you a variety of powerful log handlers / formatters to utilize.test_ext_stream.cpp https://github.com/diegoIta/hiphop-php.git | C++ | 440 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 73// so we run on different range of ports every time 74static int get_random_port() { 75 static int base = -1;index.php https://github.com/ddrl46/bugspray.git | PHP | 467 lines
1<?php 2/* 24 25// any function from functions.php would do 26$done = function_exists('db_query'); 51?> 52<?php if (!$done): ?> 53<!DOCTYPE html> 77 <body> 78<?php else: ?> 79 <script type="text/javascript"> 82 </script> 83<?php endif; ?> 84 <div id="installer_wrap1"> 84 <div id="installer_wrap1"> 85 <img src="<?php echo $done ? 'install/' : ''; ?>bg.jpg" id="installer_bg" alt="" /> 86 <table id="installer_wrap2">BlockList.cs https://github.com/jfcantin/monodevelop.git | C# | 407 lines
7accompanies this distribution, is reproduced below, and is 8available at http://www.eclipse.org/org/documents/edl-v10.php 9 49{ 50 /// <summary>Random access list that allocates entries in blocks.</summary> 51 /// <remarks> 51 /// <remarks> 52 /// Random access list that allocates entries in blocks. 53 /// <p>lang_bbcb_mg.php https://github.com/MightyGorgon/icy_phoenix_langs.git | PHP | 325 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 42 'C++' => 'C++', 43 'PhpCode' => 'Php', 44 57 'SC_smiliechooser' => 'Smiley auswählen', 58 'SC_random_smilie' => 'Zufälliger Smiley', 59 'SC_default_smilie' => 'Standard Smiley', 165 'bbcb_mg_code' => 'Code', 166 'bbcb_mg_phpbbmod' => 'phpBB Mod Template', 167 'bbcb_mg_quote' => 'Zitat', 262$js_lang['s_code_help'] = 'Code anzeigen: [code]Code[/code]'; 263$js_lang['s_phpbbmod_help'] = 'phpBB Mod Template'; 264$js_lang['s_highlight_help'] = 'Hervorheben: [highlight=#FFFFAA]Text[/highlight]';String.php https://github.com/ad2joe/php-framework-benchmarks.git | PHP | 374 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 6 * Copyright 2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 7 * @license http://opensource.org/licenses/mit-license.php The MIT License 8 */ 22 /** 23 * Generates a random UUID. 24 * 48 $pid = function_exists('zend_thread_id') ? zend_thread_id() : getmypid(); 49 $pid = (!$pid || $pid > 65535) ? mt_rand(0, 0xfff) | 0x4000 : $pid; 50 list($timeMid, $timeLow) = explode(' ', microtime()); 54 (integer) $timeLow, (integer) substr($timeMid, 2) & 0xffff, mt_rand(0, 0xfff) | 0x4000, 55 mt_rand(0, 0x3f) | 0x80, mt_rand(0, 0xff), $pid, $node 56 );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 }Account.php https://github.com/grandison/budo16.git | PHP | 317 lines
1<?php 2 9 * @license http://www.socialengine.net/license/ 10 * @version $Id: Account.php 8913 2011-05-02 18:03:07Z shaun $ 11 * @author John 71 72 if( $settings->getSetting('user.signup.random', 0) == 0 ) { 73Array.php https://github.com/Enrise/Zend.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 25 */ 26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 // require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 // require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());redis.php https://github.com/billortell/fuel-core.git | PHP | 523 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 */ 405 { 406 $key .= mt_rand(0, mt_getrandmax()); 407 } 522 523/* End of file file.php */ 524Exception.php https://github.com/richardmansfield/richardms-mahara.git | PHP | 397 lines
11 * the PHP License and are unable to obtain it through the web, please 12 * send a note to license@php.net so we can mail you a copy immediately. 13 * 20 * @copyright 1997-2006 The PHP Group 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 22 * @version CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $ 44 * 45 * 3) Inherited properties from PHP Exception Class: 46 * 96 * @copyright 1997-2006 The PHP Group 97 * @license http://www.php.net/license/3_0.txt PHP License 3.0 98 * @version Release: 1.6.2 154 /** 155 * @param mixed $callback - A valid php callback, see php func is_callable() 156 * - A PEAR_Exception::OBSERVER_* constantPdoStore.php https://github.com/FabienD/symfony.git | PHP | 244 lines
1<?php 2 113 114 $this->randomlyPrune(); 115 $this->checkNotExpired($key);collateral-form-common.php https://gitlab.com/eluar/infocus | PHP | 252 lines
93 <div class="small-1 medium-1 columns"> 94 <img class="lets-do-this" src="<?php echo $thumb ?>?<?php echo rand(199,9999);?>" data-big="<?php echo $src ?>?<?php echo rand(199,9999);?>" data-big2x="<?php echo $src ?>" width="40" height="40" /> 95 </div> 102 <label id="item1<?php echo ($key + 3) ?>_label_0"> 103 <input type="number" placeholder="Qty" id="item1<?php echo ($key + 3) ?>_number_1" class="form-control" autocomplete="off" min="0" max="999999999" step="1" data-hint="" name="qty_<?php echo $name ?>"> 104 </label> 107 <label id="item1<?php echo ($key + 3) ?>_label_0"> 108 <textarea id="item1<?php echo $key ?>_textarea_1" placeholder="Notes" class="form-control" maxlength="10000" placeholder="" data-hint="" name="notes_<?php echo $name ?>"></textarea> 109 </label> 162 <?php foreach ($costCenters as $costCenter): ?> 163 <option value="<?php echo $costCenter;?>"><?php echo $costCenter;?></option> 164 <?php endforeach; ?> 198 <label <?php echo ($key == 'state')? 'id="state_label"' : '' ?>> 199 <?php echo ($key !== 'province') ? '*' : ''?><?php echo $value ?> 200 <input type="text" id="item102_text_1" class="no-margin-bottom" maxlength="254" placeholder="" autocomplete="off" data-hint="" name="<?php echo $key ?>" required="">backupdb.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 484 lines
1<?php 2/** 52 53$page->add_breadcrumb_item($lang->database_backups, "index.php?module=tools-backupdb"); 54 61 flash_message($lang->error_file_not_specified, 'error'); 62 admin_redirect("index.php?module=tools-backupdb"); 63 } 90 flash_message($lang->error_invalid_backup, 'error'); 91 admin_redirect("index.php?module=tools-backupdb"); 92 } 98 { 99 admin_redirect("index.php?module=tools-backupdb"); 100 } 106 flash_message($lang->error_backup_doesnt_exist, 'error'); 107 admin_redirect("index.php?module=tools-backupdb"); 108 }adodb-session.php https://github.com/christopher444/clearhealth.git | PHP | 434 lines
1<?php 2/* 11 12 This file provides PHP4 session management using the ADODB database 13wrapper library. 18 GLOBAL $HTTP_SESSION_VARS; 19 include('adodb.inc.php'); 20 include('adodb-session.php'); 29 include('adodb.inc.php'); 30 include('adodb-session.php'); 31 adodb_sess_open(false,false,false); 70 3. Recommended is PHP 4.0.6 or later. There are documented 71 session bugs in earlier versions of PHP. 72 110 /* 111 Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1 112*/ox.market.css.php https://bitbucket.org/valmy/openx.git | PHP | 677 lines
651.iconAdvertiserSystem { 652 background-image: url("<?php echo $oMarketComponent->aBranding['assetPath']; ?>/icon-advertiser-openx.png"); 653} 663.iconCampaignSystemAdd { 664 background-image: url("<?php echo $oMarketComponent->aBranding['assetPath']; ?>/icon-campaign-openx-add.png"); 665} 667.iconCampaignSystemAddLarge { 668 background-image: url("<?php echo $oMarketComponent->aBranding['assetPath']; ?>/icon-campaign-openx-add-large.png"); 669} 671.iconCampaignsSystem { 672 background-image: url("<?php echo $oMarketComponent->aBranding['assetPath']; ?>/icon-campaigns-openx.png"); 673} 675.iconCampaignsSystemLarge { 676 background-image: url("<?php echo $oMarketComponent->aBranding['assetPath']; ?>/icon-campaigns-openx-large.png"); 677}PropertyPublicMatcher.php https://github.com/andreaswolf/TYPO3.CMS.git | PHP | 314 lines
1<?php 2return [ 198 'restFiles' => [ 199 'Breaking-82629-TceDbOptionsPrErrAndUPTRemoved.rst', 200 ], 203 'restFiles' => [ 204 'Breaking-82629-TceDbOptionsPrErrAndUPTRemoved.rst', 205 ],PaymentStatusFormTest.php https://gitlab.com/Drulenium-bot/payment | PHP | 310 lines
1<?php 2 29 * 30 * @var \Drupal\payment\Entity\PaymentStatus|\PHPUnit_Framework_MockObject_MockObject 31 */ 36 * 37 * @var \Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationManagerInterface|\PHPUnit_Framework_MockObject_MockObject 38 */ 43 * 44 * @var \Drupal\Core\Entity\EntityStorageInterface|\PHPUnit_Framework_MockObject_MockObject 45 */ 50 * 51 * @var \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorManagerInterface|\PHPUnit_Framework_MockObject_MockObject 52 */ 64 * 65 * @var \Drupal\Core\StringTranslation\TranslationInterface|\PHPUnit_Framework_MockObject_MockObject 66 */leocustomajax.js https://gitlab.com/elasa/shop2.elasa.ir | JavaScript | 253 lines
23 headers: {"cache-control": "no-cache"}, 24 url: baseDir + 'modules/leocustomajax/leoajax.php' + '?rand=' + new Date().getTime(), 25 async: true, 150 getProductListTran: function() { 151 //tranditional image 152 var leoAdditional = "";class-wp-customize-setting.php https://gitlab.com/Gashler/dp | PHP | 439 lines
1<?php 2/** 409 410 // If the value doesn't exist (removed or random), 411 // use the header_image value.AuthorizeNetIPN.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 361 lines
1<?php 2/* 162 } 163 $objects['contribution']->invoice_id = md5(uniqid(rand(), TRUE)); 164 $objects['contribution']->total_amount = $input['amount']; 253 $input['is_test'] = 1; 254 $input['trxn_id'] = md5(uniqid(rand(), TRUE)); 255 }de_de.lang.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 281 lines
1<?php 2/********************************************************************************* 67 'LBL_GENERATED_REPORT'=>'Erstellter Bericht', 68 'LBL_GRAND_TOTAL'=>'Gesamtsumme', 69BigMath.php https://gitlab.com/x33n/ampache | PHP | 451 lines
1<?php 2 6 * 7 * PHP versions 4 and 5 8 * 18/** 19 * Needed for random number generation 20 */ 20 */ 21require_once 'Auth/OpenID/CryptUtil.php'; 22 25 */ 26require_once 'Auth/OpenID.php'; 27 39 * 40 * @param integer $long The long number (can be a normal PHP 41 * integer or a number created by one of the available long numberCache.php https://github.com/cawago/ci_campusync_auth.git | PHP | 416 lines
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()); 289 320 if ( ! $data) { 321 $rand = (mt_rand() / mt_getrandmax()); 322 393 if ( ! $data) { 394 $rand = (mt_rand() / mt_getrandmax()); 395