PageRenderTime 596ms queryFilters 41ms Sphinxql 202ms GetByIds 216ms meta 0ms repositoryFilters 108ms languageFilters 0ms sourceFilters 38ms

14,059 results for 'php mt_rand repo:dlorenso/dazlo' (596 ms)

Source

Language

Repository

php.js git://github.com/phpnode/YiiJS.git | JavaScript | 7,274 lines
1574    // END REDUNDANT
1575    strictForIn = this.php_js.ini['phpjs.strictForIn'] && this.php_js.ini['phpjs.strictForIn'].local_value && this.php_js.ini['phpjs.strictForIn'].local_value !== 'off';
1576    populateArr = strictForIn ? inputArr : populateArr;
1707    // END REDUNDANT
1708    strictForIn = this.php_js.ini['phpjs.strictForIn'] && this.php_js.ini['phpjs.strictForIn'].local_value && this.php_js.ini['phpjs.strictForIn'].local_value !== 'off';
1709    populateArr = strictForIn ? inputArr : populateArr;
2520    var targetObj = this.window;
2521    if (this.php_js && this.php_js.ini && this.php_js.ini['phpjs.extractTargetObj'] && this.php_js.ini['phpjs.extractTargetObj'].local_value) { // Allow designated object to be used instead of window
2522        targetObj = this.php_js.ini['phpjs.extractTargetObj'].local_value;
6920    // END REDUNDANT
6921    strictForIn = this.php_js.ini['phpjs.strictForIn'] && this.php_js.ini['phpjs.strictForIn'].local_value && this.php_js.ini['phpjs.strictForIn'].local_value !== 'off';
6922    populateArr = strictForIn ? inputArr : populateArr;
7157    // END REDUNDANT
7158    strictForIn = this.php_js.ini['phpjs.strictForIn'] && this.php_js.ini['phpjs.strictForIn'].local_value && this.php_js.ini['phpjs.strictForIn'].local_value !== 'off';
7159    populateArr = strictForIn ? inputArr : populateArr;
gui.php https://github.com/Drakekin/aVDR.git | PHP | 100 lines
1<?php
2	// Main GUI file
4	$bgr1 = mt_rand(0,15);
5	$bgg1 = mt_rand(0,15);
6	$bgb1 = mt_rand(0,15);
6	$bgb1 = mt_rand(0,15);
7	$bgr2 = mt_rand(0,15);
8	$bgg2 = mt_rand(0,15);
8	$bgg2 = mt_rand(0,15);
9	$bgb2 = mt_rand(0,15);
10	$colour = "#" . dechex($bgr1) . dechex($bgr2) . dechex($bgg1) . dechex($bgg2) . dechex($bgb1) . dechex($bgb2);
51			<span class="small">A <a href="http://random.org">random.org</a> based verifiable dice roller</span>
52			<p>aVDR is a verifiable (you can come back and check your rolls at any time, they don't change) dice roller. It uses <a href="http://random.org">random.org</a> to generate the random numbers using atmospheric noise. This means your dice rolls are truely random, unlike some other random number generators (such as PHP on Windows) which have a very low repeat rate. However, if our <a href="http://random.org">random.org</a> quota runs out, the dice roller will fall back to the built in linux random number generator, namely the PHP mt_rand() command.</p>
53			<p>Input a username (used to distinguish your rolls from everyone elses) and a dice roll (in the format <em>x</em>D<em>y</em> where <em>x</em> is the number of dice and <em>y</em> is the type up to a maximum of 20d100). There are several options. Any greyed out option is either out of order or not working yet.</p> 
53			<p>Input a username (used to distinguish your rolls from everyone elses) and a dice roll (in the format <em>x</em>D<em>y</em> where <em>x</em> is the number of dice and <em>y</em> is the type up to a maximum of 20d100). There are several options. Any greyed out option is either out of order or not working yet.</p> 
54			<form action="index.php" method="GET">
55				<strong class="big">Roll New Dice</strong><br />
php-math.el git://github.com/ejmr/php-mode.git | Lisp | 350 lines
21;; To install php-ext.el:
22;; You can add (load "path/php-ext/php-ext.el") to your .emacs
23
24;; Description:
25;; Php ext is some skeleton templates for extend php-mode
26
27;; Math functions
28;; http://php.net/manual/en/ref.math.php
29;; file:///usr/share/doc/php-doc/html/ref.math.html
30
31(define-skeleton php-abs
32  "Insert an abs statement"
174
175(define-skeleton php-mt_rand
176  "Insert an mt_rand statement"
phpToJS.php git://github.com/phpnode/YiiJS.git | PHP | 1,640 lines
3 * A woefully naive, context unaware PHP to JavaScript token transformer.
4 * Relies on php.js for a lot of the built in PHP functions.
5 * HERE BE DRAGONS!
121		"import" => "imports",
122		"mt_rand" => "php.mt_rand",
123		"rtrim" => "php.rtrim",
1414 */
1415class phpClass extends phpBase {
1416	
1512 */
1513class phpProperty extends phpBase {
1514	/**
1547 */
1548class phpMethod extends phpBase {
1549	/**
Image.php http://yurishop.googlecode.com/svn/trunk/ | PHP | 606 lines
453        if (!function_exists("imagepng")) {
454            #require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
Image.php http://display-ui.googlecode.com/svn/trunk/ | PHP | 606 lines
453        if (!function_exists("imagepng")) {
454            require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
Image.php http://simpleinvoices.googlecode.com/svn/trunk/ | PHP | 610 lines
453        if (!function_exists("imagepng")) {
454            require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
Image.php git://github.com/frapi/frapi.git | PHP | 600 lines
453        if (!function_exists("imagepng")) {
454            // require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
Image.php http://grupal.googlecode.com/svn/trunk/ | PHP | 610 lines
453        if (!function_exists("imagepng")) {
454            require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
Image.php http://firephp.googlecode.com/svn/trunk/ | text | 0 lines
447        if (!function_exists("imagepng")) {
448            require_once 'Zend/Captcha/Exception.php';
449            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
489        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
490           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
491        }
492        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
493           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
494        }
550        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
551            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
552        }
553        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
554           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
555        }
seccode.class.php https://zport.svn.codeplex.com/svn | PHP | 436 lines
158		for($i=0; $i <= $linenums; $i++) {
159			$color = $this->color ? imagecolorallocate($this->im, mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255)) : imagecolorallocate($this->im, $this->fontcolor[0], $this->fontcolor[1], $this->fontcolor[2]);
160			$x = mt_rand(0, $this->width);
162			if(mt_rand(0, 1)) {
163				imagearc($this->im, $x, $y, mt_rand(0, $this->width), mt_rand(0, $this->height), mt_rand(0, 360), mt_rand(0, 360), $color);
164			} else {
227			if($this->color) {
228				$this->fontcolor = array(mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255));
229				$this->shadow && $text_shadowcolor = imagecolorallocate($this->im, 255 - $this->fontcolor[0], 255 - $this->fontcolor[1], 255 - $this->fontcolor[2]);
270		for($i = 0; $i <= 3; $i++) {
271			$this->color && $this->fontcolor = array(mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255));
272			if($font[$i]['file']) {
313
314		$fontcolor = '0x'.(sprintf('%02s', dechex (mt_rand(0, 255)))).(sprintf('%02s', dechex (mt_rand(0, 128)))).(sprintf('%02s', dechex (mt_rand(0, 255))));
315		$strAction = "
seccode.class.php https://zport.svn.codeplex.com/svn | PHP | 422 lines
147		for($i=0; $i <= $linenums; $i++) {
148			$color = $this->color ? imagecolorallocate($this->im, mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255)) : imagecolorallocate($this->im, $this->fontcolor[0], $this->fontcolor[1], $this->fontcolor[2]);
149			$x = mt_rand(0, $this->width);
151			if(mt_rand(0, 1)) {
152				imagearc($this->im, $x, $y, mt_rand(0, $this->width), mt_rand(0, $this->height), mt_rand(0, 360), mt_rand(0, 360), $color);
153			} else {
213			if($this->color) {
214				$this->fontcolor = array(mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255));
215				$this->shadow && $text_shadowcolor = imagecolorallocate($this->im, 255 - $this->fontcolor[0], 255 - $this->fontcolor[1], 255 - $this->fontcolor[2]);
256		for($i = 0; $i <= 3; $i++) {
257			$this->color && $this->fontcolor = array(mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255));
258			if($font[$i]['file']) {
299
300		$fontcolor = '0x'.(sprintf('%02s', dechex (mt_rand(0, 255)))).(sprintf('%02s', dechex (mt_rand(0, 128)))).(sprintf('%02s', dechex (mt_rand(0, 255))));
301		$strAction = "
Image.php git://git.savannah.nongnu.org/tbk.git | PHP | 595 lines
447        if (!function_exists("imagepng")) {
448            require_once 'Zend/Captcha/Exception.php';
449            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
489        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
490           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
491        }
492        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
493           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
494        }
550        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
551            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
552        }
553        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
554           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
555        }
Image.php git://github.com/valentinbora/joobsbox-php.git | PHP | 600 lines
453        if (!function_exists("imagepng")) {
454            require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
Image.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 600 lines
453        if (!function_exists("imagepng")) {
454            require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
Captcha.php git://github.com/snytkine/LampCMS.git | PHP | 851 lines
1<?php
2
5/**
6 * PHP-Class hn_captcha_X1 Version 1.2.1, released 30-Apr-2009
7 *
7 *
8 * is an extension for PHP-Class hn_captcha, Version for PHP 5 !
9 *
14 *
15 * $Id: hn_captcha.class.x1.php5,v 1.4.2.2 2009/04/30 14:30:06 horst Exp $
16 *
16 *
17 * Download: http://hn273.users.phpclasses.org/browse/package/1569.html
18 *
40 *
41 * The class is a fork of the original released at www.phpclasses.org
42 * by Julien Pachet with the name ocr_captcha.
Auth.php git://pkgs.fedoraproject.org/horde | PHP | 1,376 lines
1<?php
2/**
68 *
69 * $Horde: framework/Auth/Auth.php,v 1.142.10.37 2009/10/26 11:58:58 jan Exp $
70 *
73 * See the enclosed file COPYING for license information (LGPL). If you
74 * did not receive this file, see http://opensource.org/licenses/lgpl-license.php.
75 *
306            } else {
307                return substr(md5(mt_rand()), 0, 2);
308            }
313            } else {
314                return '$1$' . substr(md5(mt_rand()), 0, 8) . '$';
315            }
320            } else {
321                return '$2$' . substr(md5(mt_rand()), 0, 12) . '$';
322            }
Image.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 605 lines
453        if (!function_exists("imagepng")) {
454            require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
Image.php https://bitbucket.org/Flightan/phpic.git | PHP | 601 lines
453        if (!function_exists("imagepng")) {
454            require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
Image.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 600 lines
453        if (!function_exists("imagepng")) {
454            require_once 'Zend/Captcha/Exception.php';
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
495        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
496           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
497        }
498        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
499           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
500        }
556        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
557            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
558        }
559        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
560           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
561        }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21