PageRenderTime 397ms queryFilters 1ms Sphinxql 252ms GetByIds 122ms meta 0ms repositoryFilters 9ms languageFilters 0ms sourceFilters 1ms

36,578 results for 'php mt_rand repo:dlorenso/dazlo' (397 ms)

Source

Language

Repository

strings.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 884 lines
213 * Creates an URL for the page calling this function, using either the PHP global
214 * REQUEST_URI, or the PHP global PHP_SELF with QUERY_STRING added.
215 *
227
228    if ( sqgetGlobalVar('PHP_SELF', $php_self, SQ_SERVER) && !empty($php_self) ) {
229
235
236      return $php_self;
237    }
282    if(strpos(php_self(), '?')) {
283        $path = substr(php_self(), 0, strpos(php_self(), '?'));
284    } else {
882
883$PHP_SELF = php_self();
884
kind_of_blue.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 64 lines
1<?php
2
3/**
4 * kind_of_blue.php
5 * Name:    Kind of Blue
11 * @copyright &copy; 2000-2006 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: kind_of_blue.php 10559 2006-01-23 18:46:41Z tokul $
18/** seed the random number generator */
19sq_mt_randomize();
20
24        /* background */
25        $b = mt_rand(248,255);
26        $r = mt_rand(180,255);
26        $r = mt_rand(180,255);
27        $g = mt_rand(178,$r);
28    } else {
in_the_pink.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 60 lines
1<?php
2
3/**
4 * in_the_pink.php
5 * Name:    In the Pink
11 * @copyright &copy; 2000-2006 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: in_the_pink.php 10559 2006-01-23 18:46:41Z tokul $
18/* seed the random number generator */
19sq_mt_randomize();
20
24        /* background */
25        $r = mt_rand(248,255);
26        $b = mt_rand(140,255);
26        $b = mt_rand(140,255);
27        $g = mt_rand(128,$b);
28    } else {
kind_of_blue.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 64 lines
1<?php
2
3/**
4 * kind_of_blue.php
5 * Name:    Kind of Blue
11 * @copyright &copy; 2000-2005 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: kind_of_blue.php 10326 2005-11-10 21:22:45Z jervfors $
18/** seed the random number generator */
19sq_mt_randomize();
20
24        /* background */
25        $b = mt_rand(248,255);
26        $r = mt_rand(180,255);
26        $r = mt_rand(180,255);
27        $g = mt_rand(178,$r);
28    } else {
in_the_pink.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 60 lines
1<?php
2
3/**
4 * in_the_pink.php
5 * Name:    In the Pink
11 * @copyright &copy; 2000-2005 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: in_the_pink.php 10326 2005-11-10 21:22:45Z jervfors $
18/* seed the random number generator */
19sq_mt_randomize();
20
24        /* background */
25        $r = mt_rand(248,255);
26        $b = mt_rand(140,255);
26        $b = mt_rand(140,255);
27        $g = mt_rand(128,$b);
28    } else {
strings.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,076 lines
477 * Creates an URL for the page calling this function, using either the PHP global
478 * REQUEST_URI, or the PHP global PHP_SELF with QUERY_STRING added.
479 *
486
487    if ( sqgetGlobalVar('PHP_SELF', $php_self, SQ_SERVER) && !empty($php_self) ) {
488
494
495      return $php_self;
496    }
520    if(strpos(php_self(), '?')) {
521        $path = substr(php_self(), 0, strpos(php_self(), '?'));
522    } else {
1074
1075$PHP_SELF = php_self();
1076?>
strings.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,290 lines
1<?php
2
3/**
4 * strings.php
5 *
9 * @copyright &copy; 1999-2007 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @version $Id: strings.php 12128 2007-01-13 20:15:44Z kink $
56/**
57 * Checks for spaces in strings - only used if PHP doesn't have native ctype support
58 *
69 *
70 * I don't see any charset/nbsp options in php ctype either.
71 *
476    if(strpos(php_self(), '?')) {
477        $path = substr(php_self(), 0, strpos(php_self(), '?'));
478    } else {
greenhouse_effect.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 50 lines
1<?php
2
10 * @copyright &copy; 2000-2007 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id: greenhouse_effect.php 12271 2007-02-18 12:46:47Z kink $
21
22/** load sq_mt_randomize() */
23include_once(SM_PATH . 'functions/strings.php');
25/** seed the random number generator **/
26sq_mt_randomize();
27
32        /* background */
33        $g = mt_rand(248,255);
34        $r = mt_rand(110,248);
34        $r = mt_rand(110,248);
35        $b = mt_rand(109,$r);
36    } else {
kind_of_blue.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 44 lines
1<?php
2
3/**
4 * kind_of_blue.php
5 * Name:    Kind of Blue
11 * @copyright 2000-2012 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: kind_of_blue.php 14249 2012-01-02 02:09:17Z pdontthink $
26        /* background */
27        $b = mt_rand(248,255);
28        $r = mt_rand(180,255);
28        $r = mt_rand(180,255);
29        $g = mt_rand(178,$r);
30    } else {
35        /** generate random color **/
36        $b = mt_rand($cmin,$cmax);
37        $g = mt_rand($cmin,$cmax);
in_the_pink.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 40 lines
1<?php
2
3/**
4 * in_the_pink.php
5 * Name:    In the Pink
11 * @copyright 2000-2012 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: in_the_pink.php 14249 2012-01-02 02:09:17Z pdontthink $
26        /* background */
27        $r = mt_rand(248,255);
28        $b = mt_rand(140,255);
28        $b = mt_rand(140,255);
29        $g = mt_rand(128,$b);
30    } else {
31        /* text */
32        $b = mt_rand(2,128);
33        $r = mt_rand(1,$b);
kind_of_blue.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | text | 0 lines
1<?php
2
3/**
4 * kind_of_blue.php
5 * Name:    Kind of Blue
11 * @copyright &copy; 2000-2005 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: kind_of_blue.php 10326 2005-11-10 21:22:45Z jervfors $
18/** seed the random number generator */
19sq_mt_randomize();
20
24        /* background */
25        $b = mt_rand(248,255);
26        $r = mt_rand(180,255);
26        $r = mt_rand(180,255);
27        $g = mt_rand(178,$r);
28    } else {
kind_of_blue.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | text | 0 lines
1<?php
2
3/**
4 * kind_of_blue.php
5 * Name:    Kind of Blue
11 * @copyright 2000-2011 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: kind_of_blue.php 14085 2011-01-06 03:16:21Z pdontthink $
26        /* background */
27        $b = mt_rand(248,255);
28        $r = mt_rand(180,255);
28        $r = mt_rand(180,255);
29        $g = mt_rand(178,$r);
30    } else {
35        /** generate random color **/
36        $b = mt_rand($cmin,$cmax);
37        $g = mt_rand($cmin,$cmax);
helper.php http://vinaora-3d-slideshow.googlecode.com/svn/trunk/ | PHP | 747 lines
1<?php
2/**
2/**
3 * @version		$Id: helper.php 2011-08-08 vinaora $
4 * @package		Vinaora Cu3er 3D Slideshow
61		}
62		// Load from URL if it is .xml.php
63		elseif ( $ext == '.php' ) {
416
417			$nodeL1->addAttribute('num',		mt_rand(1, 5) );
418			$nodeL1->addAttribute('slicing',	$a_slicing[mt_rand(0, count($a_slicing)-1)] );
418			$nodeL1->addAttribute('slicing',	$a_slicing[mt_rand(0, count($a_slicing)-1)] );
419			$nodeL1->addAttribute('direction',	$a_direction[mt_rand(0, count($a_direction)-1)] );
420			$nodeL1->addAttribute('duration',	mt_rand(1, 5) / 10);
420			$nodeL1->addAttribute('duration',	mt_rand(1, 5) / 10);
421			$nodeL1->addAttribute('delay',		mt_rand(1, 5) / 10);
422			$nodeL1->addAttribute('shader',		$a_shader[mt_rand(0, count($a_shader)-1)] );
LocalTableTest.php https://PHPAzure.svn.codeplex.com/svn | PHP | 945 lines
1<?php
2
3if (! defined ( 'PHPUnit_MAIN_METHOD' )) {
4	define ( 'PHPUnit_MAIN_METHOD', 'Microsoft_WindowsAzure_LocalTableTest::main' );
5}
6
7require_once 'PHPUnit/Framework.php';
8
8
9//require_once 'TableTest.php';
10
11
12require_once 'Microsoft/WindowsAzure/Storage/Table.php';
13require_once 'TestTableEntity.php';
14
15class Microsoft_WindowsAzure_LocalTableTest extends PHPUnit_Framework_TestCase {
16	protected static $tablePrefix = "phptabletest";
helper.php http://kak.googlecode.com/svn/trunk/ | PHP | 342 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 - 2010 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				}
functions.php https://code.google.com/p/phpbbex/ | PHP | 4,905 lines
254*
255* PHP does not allow us to swap the order of the arguments for mt_rand() anymore.
256* (since PHP 5.3.4, see http://bugs.php.net/46587)
625*
626* See http://www.php.net/manual/en/function.version-compare.php
627*
695			// Determine owner/group of common.php file and the filename we want to change here
696			$common_php_owner = @fileowner($phpbb_root_path . 'common.' . $phpEx);
697			$common_php_group = @filegroup($phpbb_root_path . 'common.' . $phpEx);
703			// If we are unable to get owner/group, then do not try to set them by guessing
704			if (!$php_uid || empty($php_gids) || !$common_php_owner || !$common_php_group)
705			{
2180* append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=1&amp;f=2');
2181* append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=1&f=2', false);
2182* append_sid("{$phpbb_root_path}viewtopic.$phpEx", array('t' => 1, 'f' => 2));
captcha.php http://it-manager.googlecode.com/svn/trunk/ | PHP | 510 lines
1<?php
2/**
6 * @license GPLv3
7 * @link    http://code.google.com/p/cool-php-captcha
8 * @package captcha
22// OPTIONAL Change configuration...
23//$captcha->wordsFile = 'words/es.php';
24//$captcha->session_var = 'secretword';
26//$captcha->scale = 3; $captcha->blur = true;
27//$captcha->resourcesPath = "/var/cool-php-captcha/resources";
28
34    if (in_array($lang, $langs)) {
35        $captcha->wordsFile = "words/$lang.php";
36    }
85    /** Dictionary word file (empty for randnom text) */
86    public $wordsFile = 'words/en.php';
87
captcha.php http://cool-php-captcha.googlecode.com/svn/trunk/ | PHP | 540 lines
1<?php
2/**
6 * @license GPLv3
7 * @link    http://code.google.com/p/cool-php-captcha
8 * @package captcha
22// OPTIONAL Change configuration...
23//$captcha->wordsFile = 'words/es.php';
24//$captcha->session_var = 'secretword';
27//$captcha->scale = 3; $captcha->blur = true;
28//$captcha->resourcesPath = "/var/cool-php-captcha/resources";
29
35    if (in_array($lang, $langs)) {
36        $captcha->wordsFile = "words/$lang.php";
37    }
86    /** Dictionary word file (empty for random text) */
87    public $wordsFile = 'words/en.php';
88
simple-php-captcha.php git://github.com/claviska/simple-php-captcha.git | PHP | 176 lines
1<?php
2//
8//
9function simple_php_captcha($config = array()) {
10
64        $captcha_config['code'] = '';
65        $length = mt_rand($captcha_config['min_length'], $captcha_config['max_length']);
66        while( strlen($captcha_config['code']) < $length ) {
66        while( strlen($captcha_config['code']) < $length ) {
67            $captcha_config['code'] .= substr($captcha_config['characters'], mt_rand() % (strlen($captcha_config['characters'])), 1);
68        }
119    if( isset($_GET['_RENDER']) ) {
120        $_SESSION['_CAPTCHA'] = simple_php_captcha();
121    } else {
134    // Determine text angle
135    $angle = mt_rand( $captcha_config['angle_min'], $captcha_config['angle_max'] ) * (mt_rand(0, 1) == 1 ? -1 : 1);
136
CSecurityManager.js git://github.com/phpnode/YiiJS.git | JavaScript | 246 lines
1/*global Yii, php, sjcl, $, jQuery, alert, clearInterval, clearTimeout, document, event, frames, history, Image, location, name, navigator, Option, parent, screen, setInterval, setTimeout, window, XMLHttpRequest */
2/**
20 * To encrypt and decrypt data, call {@link encrypt()} and {@link decrypt()}
21 * respectively, which uses 3DES encryption algorithm.  Note, the PHP Mcrypt
22 * extension must be installed and loaded.
27 * @originalAuthor Qiang Xue <qiang.xue@gmail.com>
28 * @version $Id: CSecurityManager.php 3001 2011-02-24 16:42:44Z alexander.makarow $
29 * @package system.base
60Yii.CSecurityManager.prototype.generateRandomKey = function () {
61		return php.sprintf('%08x%08x%08x%08x',php.mt_rand(),php.mt_rand(),php.mt_rand(),php.mt_rand());
62	};
88Yii.CSecurityManager.prototype.setValidationKey = function (value) {
89		if(!php.empty(value)) {
90			this._validationKey=value;
121Yii.CSecurityManager.prototype.setEncryptionKey = function (value) {
122		if(!php.empty(value)) {
123			this._encryptionKey=value;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21