PageRenderTime 460ms queryFilters 1ms Sphinxql 254ms GetByIds 172ms meta 0ms repositoryFilters 5ms languageFilters 1ms sourceFilters 1ms

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

Source

Language

Repository

class_digicode.php http://malleo-cms.googlecode.com/svn/trunk/ | PHP | 262 lines
25
26require_once($root.'class/class_image.php');
27class digicode extends image
84		$couleur_motifs = ImageColorAllocate($this->image, $rgb[0],$rgb[1],$rgb[2]);
85		$position = mt_rand(0,$this->largeur_cases);
86		imagefilledrectangle($this->image, $position, $position, ($position+20), ($position+10), $couleur_motifs);
96			$couleur_motifs = ImageColorAllocate($this->image, $rgb[0],$rgb[1],$rgb[2]);
97			imageline($this->image, mt_rand(0,$this->largeur_cases), mt_rand(0,$this->largeur_cases), mt_rand(0,$this->largeur_cases), mt_rand(0,$this->largeur_cases), $couleur_motifs);
98			$couleur_motifs = ImageColorAllocate($this->image, $rgb[0],$rgb[1],$rgb[2]);
98			$couleur_motifs = ImageColorAllocate($this->image, $rgb[0],$rgb[1],$rgb[2]);
99			imageline($this->image, mt_rand(0,$this->largeur_cases), mt_rand(0,$this->largeur_cases), mt_rand(0,$this->largeur_cases), mt_rand(0,$this->largeur_cases), $couleur_motifs);
100			$couleur_motifs = ImageColorAllocate($this->image, $rgb[0],$rgb[1],$rgb[2]);
100			$couleur_motifs = ImageColorAllocate($this->image, $rgb[0],$rgb[1],$rgb[2]);
101			imageline($this->image, mt_rand(0,$this->largeur_cases), mt_rand(0,$this->largeur_cases), mt_rand(0,$this->largeur_cases), mt_rand(0,$this->largeur_cases), $couleur_motifs);
102		}
test_album.type.policy.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 997 lines
1<?php
2
47
48			$current_type = $valid_types[mt_rand(0,6)];
49		}
66
67				$val = mt_rand(0,1);
68				$val = (bool)$val;
73
74				$val = mt_rand(-100,100);
75				$val = (int)$val;
80
81				$val = (mt_rand(-100,100) / 17);
82				$val = (float)$val;
87
88				$width = mt_rand(0, 87);
89				$val = BPM_sUtil::random_string($width);
Image.class.php http://nblog-thinkphp.googlecode.com/svn/trunk/ | PHP | 794 lines
235				for($i=0;$i<10;$i++){
236					imagearc($im,mt_rand(-10,$width),mt_rand(-10,$height),mt_rand(30,300),mt_rand(20,200),55,44,$pointColor);
237				}
284			$fontcolor=imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
285			imagearc($im,mt_rand(-10,$width),mt_rand(-10,$height),mt_rand(30,300),mt_rand(20,200),55,44,$fontcolor);
286		}*/
310			$fontcolor=imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
311			imagearc($im,mt_rand(-10,$width),mt_rand(-10,$height),mt_rand(30,300),mt_rand(20,200),55,44,$fontcolor);
312		}
322			$codex= msubstr($code,$i,1);
323			imagettftext($im,mt_rand(16,20),mt_rand(-60,60),40*$i+20,mt_rand(30,35),$fontcolor,$fontface,$codex);
324		}
406			$fontcolor=imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
407			imagearc($im,mt_rand(-10,$width),mt_rand(-10,$height),mt_rand(30,300),mt_rand(20,200),55,44,$fontcolor);
408		}
Image.class.php http://nblog-thinkphp.googlecode.com/svn/trunk/ | PHP | 540 lines
235				for($i=0;$i<10;$i++){
236					imagearc($im,mt_rand(-10,$width),mt_rand(-10,$height),mt_rand(30,300),mt_rand(20,200),55,44,$pointColor);
237				}
284			$fontcolor=imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
285			imagearc($im,mt_rand(-10,$width),mt_rand(-10,$height),mt_rand(30,300),mt_rand(20,200),55,44,$fontcolor);
286		}
310			$fontcolor=imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
311			imagearc($im,mt_rand(-10,$width),mt_rand(-10,$height),mt_rand(30,300),mt_rand(20,200),55,44,$fontcolor);
312		}
313		for($i=0;$i<255;$i++){
314			$fontcolor=imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
315			imagesetpixel($im,mt_rand(0,$width),mt_rand(0,$height),$fontcolor);
406			$fontcolor=imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
407			imagearc($im,mt_rand(-10,$width),mt_rand(-10,$height),mt_rand(30,300),mt_rand(20,200),55,44,$fontcolor);
408		}
Image.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 569 lines
299                for ($i = 0; $i < 10; $i++) {
300                    imagearc($im, mt_rand(-10, $width), mt_rand(-10, $height), mt_rand(30, 300), mt_rand(20, 200), 55, 44, $pointColor);
301                }
344        for ($i = 0; $i < 10; $i++) {
345            imagearc($im, mt_rand(-10, $width), mt_rand(-10, $height), mt_rand(30, 300), mt_rand(20, 200), 55, 44, $stringColor);
346        }
369            $fontcolor = imagecolorallocate($im, mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255));
370            imagearc($im, mt_rand(-10, $width), mt_rand(-10, $height), mt_rand(30, 300), mt_rand(20, 200), 55, 44, $fontcolor);
371        }
379        for ($i = 0; $i < $length; $i++) {
380            $fontcolor = imagecolorallocate($im, mt_rand(0, 120), mt_rand(0, 120), mt_rand(0, 120)); //??????????????
381            $codex = String::msubstr($code, $i, 1);
463          $fontcolor=imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
464          imagearc($im,mt_rand(-10,$width),mt_rand(-10,$height),mt_rand(30,300),mt_rand(20,200),55,44,$fontcolor);
465          }
ZarafaBridge.php http://sabre-zarafa.googlecode.com/svn/trunk/ | PHP | 692 lines
1<?php
2/*
28	include (BASE_PATH . "config.inc.php");
29	include (BASE_PATH . "version.inc.php");
30	include (BASE_PATH . "common.inc.php");
32	// Logging
33	include_once ("log4php/Logger.php");
34	Logger::configure("log4php.xml");
35	
36	// PHP-MAPI
37	require_once("mapi/mapi.util.php");
37	require_once("mapi/mapi.util.php");
38	require_once("mapi/mapicode.php");
39	require_once("mapi/mapidefs.php");
39	require_once("mapi/mapidefs.php");
40	require_once("mapi/mapitags.php");
41	require_once("mapi/mapiguid.php");
captcha_helper.php git://github.com/claudehohl/Stikked.git | PHP | 412 lines
1<?php if (!defined('BASEPATH')) {
2    exit('No direct script access allowed');
113            for ($i = 0; $i < 8; $i++) {
114                $str .= substr($pool, mt_rand(0, strlen($pool) - 1), 1);
115            }
133
134        // PHP.net recommends imagecreatetruecolor(), but it isn't always available
135
282            for ($i = 0; $i < 4; $i++) {
283                $str .= substr($pool, mt_rand(0, strlen($pool) - 1), 1);
284            }
293        $length = strlen($word);
294        $angle = ($length >= 6) ? mt_rand(-($length - 6), ($length - 6)) : 0;
295        $angle = 10;
296        $x_axis = mt_rand(6, (360 / $length) - 16);
297        $y_axis = ($angle >= 0) ? mt_rand($img_height, $img_width) : mt_rand(6, $img_height);
298
Client.php git://github.com/getsentry/raven-php.git | PHP | 967 lines
1<?php
2/*
240    {
241        $has_chained_exceptions = version_compare(PHP_VERSION, '5.3.0', '>=');
242
281
282            // manually trigger autoloading, as it's not done in some edge cases due to PHP bugs (see #60149)
283            if (!class_exists('Raven_Stacktrace')) {
336    {
337        return isset($_SERVER['REQUEST_METHOD']) && PHP_SAPI !== 'cli';
338    }
786            // 32 bits for "time_low"
787            mt_rand(0, 0xffff), mt_rand(0, 0xffff),
788
801            // 48 bits for "node"
802            mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
803        );
fsource_PHPExcel__PHPExcelSharedJAMAexamplespolyfit.php.html git://github.com/shimondoodkin/node_spreadsheet.git | HTML | 148 lines
109<li><div class="src-line"><a name="a47"></a><span class="src-var">$points</span><span class="src-sym">-&gt;</span><span class="src-id">toHTML</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
110<li><div class="src-line"><a name="a48"></a><a href="../PHPExcel/_PHPExcel---Shared---JAMA---examples---polyfit.php.html#functionprintpoly">printpoly</a><span class="src-sym">(</span><a href="../PHPExcel/_PHPExcel---Shared---JAMA---examples---polyfit.php.html#functionpolyfit">polyfit</a><span class="src-sym">(</span><span class="src-var">$X</span><span class="src-sym">,&nbsp;</span><span class="src-var">$Y</span><span class="src-sym">,&nbsp;</span><span class="src-num">4</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
111<li><div class="src-line"><a name="a49"></a>&nbsp;</div></li>
117<li><div class="src-line"><a name="a55"></a><span class="src-var">$points</span><span class="src-sym">-&gt;</span><span class="src-id">toHTML</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
118<li><div class="src-line"><a name="a56"></a><a href="../PHPExcel/_PHPExcel---Shared---JAMA---examples---polyfit.php.html#functionprintpoly">printpoly</a><span class="src-sym">(</span><a href="../PHPExcel/_PHPExcel---Shared---JAMA---examples---polyfit.php.html#functionpolyfit">polyfit</a><span class="src-sym">(</span><span class="src-var">$X</span><span class="src-sym">,&nbsp;</span><span class="src-var">$Y</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
119<li><div class="src-line"><a name="a57"></a>&nbsp;</div></li>
125<li><div class="src-line"><a name="a63"></a><span class="src-var">$points</span><span class="src-sym">-&gt;</span><span class="src-id">toHTML</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
126<li><div class="src-line"><a name="a64"></a><a href="../PHPExcel/_PHPExcel---Shared---JAMA---examples---polyfit.php.html#functionprintpoly">printpoly</a><span class="src-sym">(</span><a href="../PHPExcel/_PHPExcel---Shared---JAMA---examples---polyfit.php.html#functionpolyfit">polyfit</a><span class="src-sym">(</span><span class="src-var">$X</span><span class="src-sym">,&nbsp;</span><span class="src-var">$Y</span><span class="src-sym">,&nbsp;</span><span class="src-num">5</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
127<li><div class="src-line"><a name="a65"></a>&nbsp;</div></li>
130<li><div class="src-line"><a name="a68"></a><span class="src-var">$X&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">,</span><span class="src-num">1</span><span class="src-sym">,</span><span class="src-num">2</span><span class="src-sym">,</span><span class="src-num">3</span><span class="src-sym">,</span><span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
131<li><div class="src-line"><a name="a69"></a><span class="src-var">$Y&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><a href="http://www.php.net/mt_rand">mt_rand</a><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">10</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/mt_rand">mt_rand</a><span class="src-sym">(</span><span class="src-num">40</span><span class="src-sym">,&nbsp;</span><span class="src-num">80</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/mt_rand">mt_rand</a><span class="src-sym">(</span><span class="src-num">240</span><span class="src-sym">,&nbsp;</span><span class="src-num">400</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/mt_rand">mt_rand</a><span class="src-sym">(</span><span class="src-num">1800</span><span class="src-sym">,&nbsp;</span><span class="src-num">2215</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/mt_rand">mt_rand</a><span class="src-sym">(</span><span class="src-num">8000</span><span class="src-sym">,&nbsp;</span><span class="src-num">9000</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
132<li><div class="src-line"><a name="a70"></a><span class="src-var">$points&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../JAMA/Matrix.html">Matrix</a></span><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-var">$X</span><span class="src-sym">,&nbsp;</span><span class="src-var">$Y</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
133<li><div class="src-line"><a name="a71"></a><span class="src-var">$points</span><span class="src-sym">-&gt;</span><span class="src-id">toHTML</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
134<li><div class="src-line"><a name="a72"></a><a href="../PHPExcel/_PHPExcel---Shared---JAMA---examples---polyfit.php.html#functionprintpoly">printpoly</a><span class="src-sym">(</span><a href="../PHPExcel/_PHPExcel---Shared---JAMA---examples---polyfit.php.html#functionpolyfit">polyfit</a><span class="src-sym">(</span><span class="src-var">$X</span><span class="src-sym">,&nbsp;</span><span class="src-var">$Y</span><span class="src-sym">,&nbsp;</span><span class="src-num">3</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
135<li><div class="src-line"><a name="a73"></a><span class="src-php">?&gt;</span></div></li>
export_utils.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 819 lines
325        }
326        elseif(!empty($_SESSION['export_where'])) { //bug 26026, sometimes some module doesn't have a metadata/SearchFields.php, the searchfrom is generated in the ListView.php.
327        // Currently, massupdate will not generate the where sql. It will use the sql stored in the SESSION. But this will cause bug 24722, and it cannot be avoided now.
468                       $count = count($sugar_demodata['first_name_array']) - 1;
469                        $returnContent .= '"'.$sugar_demodata['last_name_array'][mt_rand(0,$count)].'_'.mt_rand(1,111).'",';
470                     }else{
521
522                     $returnContent .= '"'.$sugar_demodata['teams'][mt_rand(0,$teams_count)]['name'].','.$sugar_demodata['users'][mt_rand(0,$users_count)]['user_name'].'",';
523
565                case "phone":
566                    $value = '('.mt_rand(300,999).') '.mt_rand(300,999).'-'.mt_rand(1000,9999);
567                      $returnContent .= '"'.$value.'",';
578                                       $count = count($sugar_demodata['first_name_array']) - 1;
579                                        $returnContent .= '"'.$sugar_demodata['last_name_array'][mt_rand(0,$count)].'_'.mt_rand(1,111).'",';
580                                     }elseif($field['name'] == 'title'){
Subs-Graphics.php https://github.com/dekoza/openshift-smf-2.0.7.git | PHP | 1,045 lines
877			elseif ($fontColorType == 'random')
878				$char_fg_color = array(mt_rand(max($foreground_color[0] - 2, 0), $foreground_color[0]), mt_rand(max($foreground_color[1] - 2, 0), $foreground_color[1]), mt_rand(max($foreground_color[2] - 2, 0), $foreground_color[2]));
879			else
891				$font_x = $fontHorSpace == 'minus' && $cur_x > 0 ? $cur_x - 3 : $cur_x + 5;
892				$font_y = $max_height - ($fontVerPos == 'vrandom' ? mt_rand(2, 8) : ($fontVerPos == 'random' ? mt_rand(3, 5) : 5));
893
954		for ($i = mt_rand(0, 2); $i < $max_height; $i += mt_rand(1, 2))
955			for ($j = mt_rand(0, 10); $j < $total_width; $j += mt_rand(1, 10))
956				imagesetpixel($code_image, $j, $i, mt_rand(0, 1) ? $fg_color : $randomness_color);
960		{
961			$num_lines = $noiseType == 'high' ? mt_rand(3, 7) : mt_rand(2, 5);
962			for ($i = 0; $i < $num_lines; $i++)
982			// Put in some ellipse
983			$num_ellipse = $noiseType == 'extreme' ? mt_rand(6, 12) : mt_rand(2, 6);
984			for ($i = 0; $i < $num_ellipse; $i++)
cmd.php https://github.com/dlimuratdj/kyphp2.0.git | PHP | 590 lines
349spl_autoload_register("__autoload");
350require_once(KYPHP_PATH.'kyclass/kyphp_base/Action.php');
351require_once(KYPHP_PATH.'kyclass/kyphp_base/Cache.php');
364require_once(KYPHP_PATH.'kyclass/kyphp_base/runtime.php');
365require_once(KYPHP_PATH.'kyclass/kyphp_base/Session.php');
366require_once(KYPHP_PATH.'kyclass/kyphp_base/templete.php');
441    $j = !$i ? 4 : $j+15; //绘字符位置
442    $color3 = ImageColorAllocate($im, mt_rand(0,100), mt_rand(0,100), mt_rand(0,100)); //字符随即颜色
443    ImageChar($im, $fontsize, $j, 3, $code, $color3); //绘字符
452    $color1 = ImageColorAllocate($im, mt_rand(0,255), mt_rand(0,255), mt_rand(0,255)); //干扰线颜色
453    ImageArc($im, mt_rand(-5,$w), mt_rand(-5,$h), mt_rand(20,300), mt_rand(20,200), 55, 44, $color1); //干扰线
454}   
456{   
457    $color2 = ImageColorAllocate($im, mt_rand(0,255), mt_rand(0,255), mt_rand(0,255)); //干扰点颜色 
458    ImageSetPixel($im, mt_rand(0,$w), mt_rand(0,$h), $color2); //干扰点
load.php https://github.com/gintsmurans/staticphp.git | PHP | 731 lines
1<?php
2
163     *
164     * @author http://php.net/manual/en/function.uniqid.php#94959
165     * @access public
172            // 32 bits for "time_low"
173            mt_rand(0, 0xffff), mt_rand(0, 0xffff),
174
179            // four most significant bits holds version number 4
180            mt_rand(0, 0x0fff) | 0x4000,
181
184            // two most significant bits holds zero and one for variant DCE1.1
185            mt_rand(0, 0x3fff) | 0x8000,
186
187            // 48 bits for "node"
188            mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
189        );
Framework.Functions.php https://github.com/dinotest/vanilla-test.git | PHP | 1,010 lines
1<?php
2/**
47/**
48 * Appends code to a php file, typically used for configuration.
49 *
49 *
50 * The php ending tag "?>" should be either on its own line,
51 * or be ommited all together
92
93// Make sure objects can be cloned in PHP 4 and 5.
94// Example: $NewObject = clone ($ObjectName);
97// doesn't break.
98if (version_compare(phpversion(), '5.0') < 0) {
99	eval('
695		if (!$Handle) {
696			$Context->WarningCollector->Add(str_replace('\\1', $Host, $Context->GetDefinition("ErrorFopen")).($php_errormsg ? str_replace('\\1', $php_errormsg, $Context->GetDefinition('ErrorFromPHP')) : ''));
697		} else {
inc.php https://github.com/aaronpk/GraphThis.git | PHP | 94 lines
6{
7	die('Setup not complete: Copy config.template.php to config.php and modify the configuration settings to match your environment.');
8}
22require_once('Model/Graph.php');
23require_once('Model/GraphSeries.php');
24require_once('Model/GraphData.php');
54	// Redirect to the login page if they're not logged in now
55	if(($user == FALSE || $user->id == FALSE) && !in_array($_SERVER['SCRIPT_NAME'], array('/login.php', '/index.php', '/help.php'))) {
56		header('Location: /login');
88    return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
89        mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),
90        mt_rand( 0, 0x0fff ) | 0x4000,
91        mt_rand( 0, 0x3fff ) | 0x8000,
92        mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ) );
93}
SugarControllerTest.php https://github.com/item/sugarcrm_dev.git | PHP | 181 lines
1<?php
2require_once 'include/MVC/Controller/SugarController.php';
3
4class SugarControllerTest extends Sugar_PHPUnit_Framework_TestCase
5{
18    {
19        $module_name = 'TestModule'.mt_rand();
20        sugar_mkdir("modules/$module_name/",null,true);
20        sugar_mkdir("modules/$module_name/",null,true);
21        sugar_touch("modules/$module_name/ListView.php");
22        
35    {
36        $module_name = 'TestModule'.mt_rand();
37        sugar_mkdir("modules/$module_name/views",null,true);
37        sugar_mkdir("modules/$module_name/views",null,true);
38        sugar_touch("modules/$module_name/views/view.list.php");
39        
imagebuilder.php https://bitbucket.org/udfr/uc3-udfr-ontowiki | PHP | 132 lines
83	$vertices = array (
84		mt_rand(-0.25*$width,$width*1.25),mt_rand(-0.25*$width,$width*1.25),
85		mt_rand(-0.25*$width,$width*1.25),mt_rand(-0.25*$width,$width*1.25),
87	);
88	$color = imagecolorallocatealpha ($image, mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), $object_alpha);
89	imagefilledpolygon($image, $vertices, 3, $color);  
96	$color = imagecolorallocatealpha ($image, mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), $object_alpha);
97//	$color = imagecolorallocate($image, mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast));
98	imagefilledellipse($image, $x1, $y1, mt_rand($min_radius,$max_radius), mt_rand($min_radius,$max_radius), $color);  
106	$y2 = mt_rand(-$height*0.25,$height*1.25);
107	$color = imagecolorallocatealpha ($image, mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), $object_alpha);
108	imagesetthickness ($image, mt_rand($min_thickness,$max_thickness));
115	$y1 = mt_rand(0,$height);
116	$color = imagecolorallocatealpha ($image, mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast),$object_alpha);
117	imagesetpixel($image, $x1, $y1, $color);
MissionCaseExpedition.class.php https://bitbucket.org/VolCh/2moons.git | PHP | 547 lines
1<?php
2
68
69		$GetEvent       = mt_rand(1, 9);
70
70
71        $Message        = $LNG['sys_expe_nothing_'.mt_rand(1,8)];
72
75			case 1:
76				$eventSize		= mt_rand(0, 100);
77                $factor			= 0;
80				{
81					$Message	= $LNG['sys_expe_found_ress_1_'.mt_rand(1,4)];
82					$factor		= mt_rand(10, 50);
85				{
86					$Message	= $LNG['sys_expe_found_ress_2_'.mt_rand(1,3)];
87					$factor		= mt_rand(50, 100);
PortalUtil.php http://pradoportal.googlecode.com/svn/trunk/ | PHP | 898 lines
144				$path_parts = pathinfo($file);
145				if($path_parts['extension'] == "php")
146				{
147
148					$clsName = basename($path_parts['basename'],".php");
149
366				{
367					$layouts[] = array("name" => "Admin." . basename($path_parts['basename'],".php"));
368				}
703		return sprintf(/*'%04x%04x-%04x-%03x4-%04x-%04x%04x%04x'*/ '%04x%04x-%04x-4%03x-%04x-%04x%04x%04x',
704				        mt_rand(0, 65535), mt_rand(0, 65535), // 32 bits for "time_low"
705				        mt_rand(0, 65535), // 16 bits for "time_mid"
710        	    		// 8 bits for "clk_seq_low"
711	    			    mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535) // 48 bits for "node"
712    				);
captcha_gd.php http://seo-phpbb.googlecode.com/svn/trunk/ | PHP | 1,567 lines
1<?php
2/**
6* @copyright (c) 2006 phpBB Group
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
8*
13*/
14if (!defined('IN_PHPBB'))
15{
51
52		$bg_colours = array_splice($scheme, mt_rand(6, 12));
53
87				$current_colour = $scheme[array_rand($scheme)];
88				imageline($img, mt_rand(0,4), mt_rand($y - 3, $y), mt_rand($this->width - 5, $this->width), mt_rand($y - 3, $y), $current_colour);
89			}
97				$current_colour = $scheme[array_rand($scheme)];
98				imagedashedline($img, mt_rand($x -3, $x + 3), mt_rand(0, 4), mt_rand($x -3, $x + 3), mt_rand($this->height - 5, $this->height), $current_colour);
99			}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21