PageRenderTime 6879ms queryTime 438ms sortTime 831ms getByIdsTime 779ms findMatchingLines 232ms

100+ results results for 'php rand repo:ircmaxell/PHP-CryptLib' (6879 ms)

Not the results you expected?
Store.php https://gitlab.com/ealexis.t/trends | 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    }
                    
                
VarCloner.php https://gitlab.com/nzqadri/bejeep | PHP | 324 lines
                    
1<?php
                    
2
                    
40        $cookie = (object) array();     // Unique object used to detect hard references
                    
41        $gid = uniqid(mt_rand(), true); // Unique string used to detect the special $GLOBALS variable
                    
42        $a = null;                      // Array cast for nested structures
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
164                                } else {
                    
165                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
166                                }
                    
300        $obj = (object) array();
                    
301        self::$hashOffset = 16 - PHP_INT_SIZE;
                    
302        self::$hashMask = -1;
                    
321
                    
322        self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE));
                    
323    }
                    
                
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>
                    
                
lang.php https://gitlab.com/gideonmarked/PLCPortal | 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    ]
                    
                
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';
                    
                
display-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&amp;subpage=upgrade-purchase-logs';
                    
15	?>
                    
49			<li>
                    
50				<a href='?page=wpsc-debug&amp;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>
                    
                
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.html
                    
                
Liquid.php https://gitlab.com/Skull3x/ClearSky | PHP | 437 lines
                    
1<?php
                    
2namespace pocketmine\block;
                    
214
                    
215				if($this instanceof Lava and $decay < 8 and $k < 8 and $k > 1 and mt_rand(0, 4) !== 0){
                    
216					$k = $decay;
                    
                
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&#8217;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 &rarr; Updates' ); ?>
                    
175				<?php endif; ?>
                    
176				<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
                    
177			</div>
                    
                
ibase_driver.php https://gitlab.com/carlosambiado89/IntranetPlanEvalWeb | 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()');
                    
70
                    
                
DeleteComment.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' );
                    
160
                    
                
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_* constant
                    
                
UnitTestCase.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'
                    
276
                    
                
ChartWrapper.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// 	}
                    
                
test.php https://bitbucket.org/DenizYldrm/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];	
                    
                
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	{
                    
                
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					<?php
                    
                
dav_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	{
                    
                
Parser.php https://gitlab.com/matijabelec/bigpandadev | 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());
                    
294
                    
                
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 */
                    
                
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(
                    
                
info-table-design05.php https://gitlab.com/ezgonzalez/integral | PHP | 289 lines
                    
1<?php
                    
2/*
                    
126
                    
127			$info_table_id = 'Info-table-wrap-'.rand(1000, 9999);
                    
128			$info_table_args = array(
                    
199
                    
200			$info_table_features_id= 'info_table_features_wrap-'.rand(1000, 9999);
                    
201			
                    
244
                    
245			$info_table_btn_id= 'info_table_btn_wrap-'.rand(1000, 9999);
                    
246			
                    
                
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		}
                    
                
password.c https://gitlab.com/envieidoc/tomato | 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		}
                    
                
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)
                    
                
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>
                    
                
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>
                    
325
                    
                
pmetis.c https://bitbucket.org/pecchia/libnegf.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{
                    
                
redis.php https://github.com/plastic/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 */
                    
526
                    
                
ARC2_SemHTMLParser.php https://gitlab.com/klausmig/CloudSemanticWeb | 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;
                    
                
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    }
                    
                
providex.php https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | 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        ),
                    
                
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_* constant
                    
                
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());
                    
                
other.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/rk3188_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}
                    
                
class-wp-admin-bar.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | 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;
                    
                
virtualhelixitem.py https://github.com/scholer/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        pass
                    
                
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/zsj888/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">
                    
                
lang_bbcb_mg.php https://github.com/TheSteffen/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		);
                    
                
Array.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 */
                    
524
                    
                
Exception.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_* constant
                    
                
PdoStore.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	}
                    
                
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',
                    
69
                    
                
BigMath.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 number
                    
                
MantenimientosController.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 382 lines
                    
1<?php
                    
2
                    
186
                    
187			$rutalogo = asset('images/logo_grande.jpg');
                    
188
                    
190			    ob_start();
                    
191			    include(app_path().'/views/pdf/informemantenimiento.php');
                    
192			    $content = ob_get_clean();
                    
194			    // convert to PDF
                    
195			    require_once(public_path().'/packages/html2pdf/html2pdf.class.php');
                    
196		        $html2pdf = new HTML2PDF('P', 'A4', 'es');
                    
249
                    
250			$rutalogo = asset('images/logo_grande.jpg');
                    
251
                    
259			    ob_start();
                    
260			    include(app_path().'/views/pdf/informemantenimiento.php');
                    
261			    $content = ob_get_clean();
                    
                
Array.php https://github.com/FranckErnewein/citron.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
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());
                    
                
mssql_driver.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 517 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('NEWID()', 'RAND(%d)');
                    
70
                    
                
grid.locale-en.js https://gitlab.com/Mirros/cdnjs | JavaScript | 224 lines
                    
2 * jqGrid English Translation
                    
3 * Tony Tomov tony@trirand.com
                    
4 * modified by Oleg Kiriljuk oleg.kiriljuk@ok-soft-gmbh.com
                    
4 * modified by Oleg Kiriljuk oleg.kiriljuk@ok-soft-gmbh.com
                    
5 * http://trirand.com/blog/ 
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
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.html
                    
57            ],
                    
58            operandTitle: "Click to select search operation.",
                    
59            resetTitle: "Reset Search Value"
                    
158                masks: {
                    
159                    // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
                    
160                    // and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
                
CacheBase.php https://gitlab.com/hoanghung.dev/aloads | PHP | 368 lines
                    
3/**
                    
4 * PHPExcel_CachedObjectStorage_CacheBase
                    
5 *
                    
21 *
                    
22 * @category   PHPExcel
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
24 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
25 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
81     *
                    
82     * @return    PHPExcel_Worksheet
                    
83     */
                    
311     *
                    
312     * @param    PHPExcel_Worksheet    $parent        The new worksheet
                    
313     * @return    void
                    
                
Exception.php https://github.com/sitengine/sitengine.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.1
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
webhooks.php https://gitlab.com/0072016/woocommerce | PHP | 501 lines
                    
1<?php
                    
2
                    
274		$args = array(
                    
275			'secret' => rand_str(),
                    
276			'status' => 'paused',
                    
428		$defaults = array(
                    
429			'name'         => rand_str(),
                    
430			'topic'        => 'coupon.created',
                    
                
CFDBFilterParser.php https://gitlab.com/mattswann/launch-housing | PHP | 302 lines
                    
1<?php

                    
2/*

                    
21

                    
22include_once('CFDBEvaluator.php');

                    
23require_once('CFDBParserBase.php');

                    
28 * Individual expressions (like 'field1=value1') are of the form $name . $operator . $value where

                    
29 * $operator is any PHP comparison operator or '=' which is interpreted as '=='.

                    
30 * $value has a special case where if it is 'null' it is interpreted as the value null

                    
137     * @param  $comparisonExpression string in the form 'value1' . 'operator' . 'value2' where

                    
138     * operator is a php comparison operator or '='

                    
139     * @return array of string [ value1, operator, value2 ]

                    
185

                    
186            // Left operand

                    
187            $left = $andExpr[0];

                    
204

                    
205            // Right operand

                    
206            $right = $andExpr[2];

                    
                
array.idl.php https://github.com/zsj888/hiphop-php.git | PHP | 376 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'base.php';
                    
4
                    
120
                    
121f('array_rand', Variant,
                    
122  array('input' => Variant,
                    
                
Explosion.php https://gitlab.com/wesleyvanneck/ImagicalMine | PHP | 277 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * src/pocketmine/level/Explosion.php
                    
4 *
                    
53use pocketmine\block\RedstoneTools;
                    
54use pocketmine\utils\Random;
                    
55
                    
126
                    
127                        for ($blastForce = $this->size * (mt_rand(700, 1300) / 1000); $blastForce > 0; $blastForce -= $this->stepLen * 0.75) {
                    
128                            $x = (int) $pointerX;
                    
220            if ($block->getId() === Block::TNT) {
                    
221                $mot = (new Random())->nextSignedFloat() * M_PI * 2;
                    
222                $tnt = Entity::createEntity("PrimedTNT", $this->level->getChunk($block->x >> 4, $block->z >> 4), new CompoundTag("", [
                    
236                                ]),
                    
237                            "Fuse" => new ByteTag("Fuse", mt_rand(10, 30))
                    
238                        ]));
                    
                
scheduled_task.php https://github.com/kwiliarty/moodle.git | PHP | 466 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
125     * Setter for $minute. Accepts a special 'R' value
                    
126     * which will be translated to a random minute.
                    
127     * @param string $minute
                    
132        if ($minute === 'R' && $expandr) {
                    
133            $minute = mt_rand(self::HOURMIN, self::HOURMAX);
                    
134        }
                    
147     * Setter for $hour. Accepts a special 'R' value
                    
148     * which will be translated to a random hour.
                    
149     * @param string $hour
                    
154        if ($hour === 'R' && $expandr) {
                    
155            $hour = mt_rand(self::HOURMIN, self::HOURMAX);
                    
156        }
                    
207        if ($dayofweek === 'R' && $expandr) {
                    
208            $dayofweek = mt_rand(self::DAYOFWEEKMIN, self::DAYOFWEEKMAX);
                    
209        }
                    
                
sqlite_driver.php https://gitlab.com/venenux/codeigniterpower | PHP | 660 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
49	var $_count_string = "SELECT COUNT(*) AS ";
                    
50	var $_random_keyword = ' Random()'; // database specific random keyword
                    
51
                    
658
                    
659/* End of file sqlite_driver.php */
                    
660/* Location: ./system/database/drivers/sqlite/sqlite_driver.php */
                    
                
header.php https://gitlab.com/kaouech/theme | PHP | 198 lines
                    
1<?php include 'config.php' ?>
                    
2<!DOCTYPE html>
                    
56<body>
                    
57<?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?>
                    
58    <!-- topbar starts -->
                    
67            </button>
                    
68            <a class="navbar-brand" href="index.html"> <img alt="Charisma Logo" src="img/logo20.png" class="hidden-xs"/>
                    
69                <span>Charisma</span></a>
                    
131    <!-- topbar ends -->
                    
132<?php } ?>
                    
133<div class="ch-container">
                    
134    <div class="row">
                    
135        <?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?>
                    
136
                    
197            <!-- content starts -->
                    
198            <?php } ?>
                    
199
                    
                
wps-optimization.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 267 lines
                    
20			for ($i = 0; $i < 50; $i++) {
                    
21				$randomString .= $characters[rand(0, strlen($characters) - 1)];
                    
22			}
                    
242		<div id="resources">
                    
243		<?php include( dirname( __FILE__ ) . '/tabs/wps-optimization-resources.php' ); ?>
                    
244		</div>
                    
254		<div id="database">
                    
255		<?php include( dirname( __FILE__ ) . '/tabs/wps-optimization-database.php' ); ?>
                    
256		</div>
                    
258		<div id="updates">
                    
259		<?php include( dirname( __FILE__ ) . '/tabs/wps-optimization-updates.php' ); ?>
                    
260		</div>
                    
262		<div id="historical">
                    
263		<?php include( dirname( __FILE__ ) . '/tabs/wps-optimization-historical.php' ); ?>
                    
264		</div>
                    
                
EntityRevisionsTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 264 lines
                    
1<?php
                    
2
                    
213    $entity = EntityTestMulRev::create();
                    
214    $entity->setName($this->randomString());
                    
215    $entity->save();
                    
219    $pending_revision = EntityTestMulRev::load($entity->id());
                    
220    $pending_revision->setName($this->randomString());
                    
221    $pending_revision->setNewRevision(TRUE);
                    
250    $it_revision = $pending_revision->addTranslation('it');
                    
251    $it_revision->setName($this->randomString());
                    
252    $it_revision->setNewRevision(TRUE);
                    
                
resource.inc.php https://github.com/rostislav/revolution.git | PHP | 160 lines
                    
1<?php
                    
2/**
                    
59$_lang['resource_editedon'] = 'Gewijzigd op';
                    
60$_lang['resource_err_change_parent_to_folder'] = 'Er is een fout opgetreden tijdens het proberen te veranderen naar een map van het bovenliggend document.';
                    
61$_lang['resource_err_class'] = 'Dit is geen geldig document van [[+class]].';
                    
                
Array.php https://github.com/robeendey/ce.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());
                    
                
stylesheet.css https://github.com/VinDictive/Southern-Discomfort-Website.git | CSS | 670 lines
                    
5	Original author:	subBlue ( http://www.subBlue.com/ )
                    
6	Modified by:		psoTFX and the phpBB team ( http://www.phpbb.com )
                    
7	
                    
212
                    
213#phpbbforum-page .postreported, #phpbbforum-page .postreported a:visited, #phpbbforum-page .postreported a:hover, #phpbbforum-page .postreported a:link, #phpbbforum-page .postreported a:active {
                    
214	margin: 1px 0;
                    
218
                    
219#phpbbforum-page .postapprove, #phpbbforum-page .postapprove a:visited, #phpbbforum-page .postapprove a:hover, #phpbbforum-page .postapprove a:link, #phpbbforum-page .postapprove a:active {
                    
220	color: green;
                    
242
                    
243#phpbbforum-page .postbody li, #phpbbforum-page ol, #phpbbforum-page ul {
                    
244	margin: 0 0 0 1.5em;
                    
246
                    
247#phpbbforum-page .rtl .postbody li, #phpbbforum-page .rtl ol, #phpbbforum-page .rtl ul {
                    
248	margin: 0 1.5em 0 0;
                    
                
SmartDDDReport.php https://github.com/CORE-POS/IS4C.git | PHP | 254 lines
                    
1<?php
                    
2/*******************************************************************************
                    
114            SELECT t.upc,
                    
115                COALESCE(p.brand, '') AS brand,
                    
116                CASE WHEN p.description IS NULL THEN t.description ELSE p.description END as description, "
                    
129            GROUP BY t.upc,
                    
130                COALESCE(p.brand, ''),
                    
131                CASE WHEN p.description IS NULL THEN t.description ELSE p.description END,
                    
160                    $row['upc'],
                    
161                    $row['brand'],
                    
162                    $row['description'],
                    
197        ?>
                    
198        <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
                    
199        <div class="row">
                    
199        <div class="row">
                    
200            <?php echo FormLib::standardItemFields(); ?>
                    
201            <?php echo FormLib::standardDateFields(); ?>
                    
                
Controller.php https://github.com/imagesdesmaths/idm.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
129
                    
130        $view->linkTitle = Piwik::getRandomTitle();
                    
131
                    
150
                    
151        $currentUrl = 'index.php';
                    
152
                    
                
featured.php https://github.com/eosc/EosC-2.3.git | PHP | 153 lines
                    
1<?php
                    
2/*
                    
18<!-- featured_products //-->
                    
19<?php
                    
20if(FEATURED_PRODUCTS_DISPLAY == 'true')
                    
45list($usec, $sec) = explode(' ', microtime());
                    
46srand( (float) $sec + ((float) $usec * 100000) );
                    
47$mtm= rand();
                    
48
                    
49$featured_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, NULL as specstat, NULL as specials_new_products_price, p.products_price, pd.products_name from " . TABLE_PRODUCTS . " p left join " . TABLE_FEATURED . " f using(products_id) left join " . TABLE_PRODUCTS_DESCRIPTION . " pd using(products_id) where p.products_status = '1' and f.status = '1' and pd.language_id = '" . (int)$languages_id . "' order by rand($mtm) DESC limit " . MAX_DISPLAY_FEATURED_PRODUCTS);
                    
50} else {
                    
51$info_box_contents[] = array('align' => 'left', 'text' => sprintf(TABLE_HEADING_FEATURED_PRODUCTS_CATEGORY, $cat_name));
                    
52$featured_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, NULL as specstat, NULL as specials_new_products_price, p.products_price, pd.products_name from " . TABLE_PRODUCTS . " p left join " . TABLE_FEATURED . " f using(products_id) left join " . TABLE_PRODUCTS_DESCRIPTION . " pd using(products_id), " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . $featured_products_category_id . "' and p.products_status = '1' and f.status = '1' and pd.language_id = '" . (int)$languages_id . "' order by rand() DESC limit " . MAX_DISPLAY_FEATURED_PRODUCTS);
                    
53}
                    
                
slideshow.php https://gitlab.com/relacilia/cakra | PHP | 306 lines
                    
1<?php
                    
2
                    
91		<fieldset>
                    
92			<select name="<?php echo esc_attr( $name ); ?>" id="<?php esc_attr( $name ); ?>">
                    
93				<?php foreach ( $values as $key => $value ) : ?>
                    
93				<?php foreach ( $values as $key => $value ) : ?>
                    
94					<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $option ); ?>>
                    
95						<?php echo esc_html( $value ); ?>
                    
96					</option>
                    
97				<?php endforeach; ?>
                    
98			</select>
                    
98			</select>
                    
99			<?php if ( ! empty( $extra_text ) ) : ?>
                    
100				<p class="description"><?php echo esc_html( $extra_text ); ?></p>
                    
100				<p class="description"><?php echo esc_html( $extra_text ); ?></p>
                    
101			<?php endif; ?>
                    
102		</fieldset>
                    
                
FigletTest.php https://bitbucket.org/ksekar/campus.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: FigletTest.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main");
                    
27
                    
28require_once 'Zend/Form/Element/Captcha.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
30require_once 'Zend/Config.php';
                    
31
                    
39 */
                    
40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase
                    
41{
                    
                
GeneratedObjectLobTest.php https://gitlab.com/Isaki/le331.fr | PHP | 293 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreEmptyTestBase.php';
                    
12
                    
54     *
                    
55     * @param  string    $basename Basename of LOB filename to return (if left blank, will choose random file).
                    
56     * @return string
                    
61        if ($basename === null) {
                    
62            $basename = array_rand($this->sampleLobFiles);
                    
63        }
                    
213        // 4) Test isModified() behavior
                    
214        $fp = fopen("php://temp", "r+");
                    
215        fwrite($fp, file_get_contents($blob2_path));
                    
270
                    
271        $stream = fopen("php://memory", 'w');
                    
272        fwrite($stream, file_get_contents($blob2_path));
                    
                
index.php https://github.com/epsd/moodle.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
                    
133
                    
                
Createdat.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 260 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 */
                    
104                    sprintf('SUM((%s - %s) * %s)',
                    
105                        $adapter->getIfNullSql('o.base_grand_total', 0),
                    
106                        $adapter->getIfNullSql('o.base_total_canceled',0),
                    
                
FigletTest.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: FigletTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main");
                    
27
                    
28require_once 'Zend/Form/Element/Captcha.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
30require_once 'Zend/Config.php';
                    
31
                    
39 */
                    
40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase
                    
41{
                    
                
Tax.php https://github.com/gryzz/crystal_magento.git | PHP | 300 lines
                    
81        $allowTax = ($this->_source->getTaxAmount() > 0) || ($this->_config->displaySalesZeroTax($store));
                    
82        $grandTotal = (float) $this->_source->getGrandTotal();
                    
83        if (!$grandTotal || ($allowTax && !$this->_config->displaySalesTaxWithGrandTotal($store))) {
                    
252        $parent = $this->getParentBlock();
                    
253        $grandototal = $parent->getTotal('grand_total');
                    
254        if (!$grandototal || !(float)$this->_source->getGrandTotal()) {
                    
258        if ($this->_config->displaySalesTaxWithGrandTotal($store)) {
                    
259            $grandtotal         = $this->_source->getGrandTotal();
                    
260            $baseGrandtotal     = $this->_source->getBaseGrandTotal();
                    
261            $grandtotalExcl     = $grandtotal - $this->_source->getTaxAmount();
                    
262            $baseGrandtotalExcl = $baseGrandtotal - $this->_source->getBaseTaxAmount();
                    
263            $grandtotalExcl     = max($grandtotalExcl, 0);
                    
263            $grandtotalExcl     = max($grandtotalExcl, 0);
                    
264            $baseGrandtotalExcl = max($baseGrandtotalExcl, 0);
                    
265            $totalExcl = new Varien_Object(array(
                    
                
 

Source

Language