PageRenderTime 4577ms queryTime 670ms sortTime 388ms getByIdsTime 421ms findMatchingLines 1263ms

100+ results results for 'php rand repo:deamon12208/jquery' (4577 ms)

Not the results you expected?
Store.php https://gitlab.com/ntphuc/FoodyBackend | 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/alamgircsejnu/AMS-Project-Laravel | 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    }
                    
                
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
                    
                
dav.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',
                    
                
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.
                    
                
grid.locale-en.js https://gitlab.com/Mirros/jsdelivr | 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
                    
                
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>
                    
                
about.php https://gitlab.com/oxidigitaluser/liguelista | 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/joshuacurci/swim-crm | PHP | 396 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
64	/**
                    
65	 * ORDER BY random keyword
                    
66	 *
                    
68	 */
                    
69	protected $_random_keyword = array('RAND()', 'RAND()');
                    
70
                    
                
Parser.php https://gitlab.com/LibreTitan/Panther | 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
                    
                
CHANGELOG.md https://gitlab.com/abdulhamid909/backupbantuapasaja | Markdown | 414 lines
                    
92###v6.4.3 - 2016-02-11
                    
93    - Random cs and doc block fix.
                    
94    - Code refactoring to reduce complexity.
                    
152###v6.1.2
                    
153    - Fix possible conflict with Laravel helpers.php file auto-loading. Fix #330.
                    
154    - Update dataTable service class stub. 
                    
164    - Provides DataTable Service.
                    
165    - Provides artisan command for creating a service. php artisan datatables:make UsersDataTable
                    
166    - Provides artisan command for creating a DataTable scope. php artisan datatables:scope ActiveUserScope
                    
193###v5.12.1
                    
194    - Fix support for PHP5.4.
                    
195
                    
294###v5.8.1
                    
295    - Fix compatiblity with PHP 5.4.
                    
296
                    
                
index.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 363 lines
                    
1<?php
                    
2# Manage user preferences
                    
22
                    
23# we need to define the theme before loading the pre.php init script,
                    
24# otherwise the page needs to be reloaded for the change to take effect.
                    
25# see bug #1987
                    
26require_once('../../include/sane.php');
                    
27extract(sane_import('post',
                    
35
                    
36if ($update and $user_theme != "random" and $user_theme != "rotate")
                    
37  {
                    
40
                    
41require_once('../../include/init.php');
                    
42require_once('../../include/timezones.php');
                    
139
                    
140print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
                    
141
                    
                
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                        ]));
                    
                
date.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 272 lines
                    
9  // +   improved by: Bryan Elliott
                    
10  // +   improved by: David Randall
                    
11  // +      input by: Brett Zamir (http://brett-zamir.me)
                    
26  // +   improved by: Rafał Kukawski (http://blog.kukawski.pl)
                    
27  // +   bugfixed by: omid (http://phpjs.org/functions/380:380#comment_137122)
                    
28  // +      input by: Martin
                    
32  // +   bugfixed by: Chris (http://www.devotis.nl/)
                    
33  // %        note 1: Uses global: php_js to store the default timezone
                    
34  // %        note 2: Although the function potentially allows timezone info (see notes), it currently does not set
                    
35  // %        note 2: per a timezone specified by date_default_timezone_set(). Implementers might use
                    
36  // %        note 2: this.php_js.currentTimezoneOffset and this.php_js.currentTimezoneDST set by that function
                    
37  // %        note 2: in order to adjust the dates in this function (or our other date functions!) accordingly
                    
226      }
                    
227      if (that.php_js && that.php_js.default_timezone) {
                    
228        default = that.php_js.default_timezone;
                    
                
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
                    
                
mssql_driver.php https://gitlab.com/digitalpoetry/xlt | 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
                    
                
AltBinaryRandomAccessList.fs git://github.com/dmohl/fsharpx.git | F# | 371 lines
                    
1// originally published by Julien
                    
2// original implementation taken from http://lepensemoi.free.fr/index.php/2010/02/11/alternative-binary-random-access-list
                    
3//J.F. added remove, trys, length, append, rev
                    
300[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
                    
301 module AltBinaryRandomAccessList = 
                    
302    //pattern discriminator
                    
305
                    
306    ///returns random access list from elements of 2 random access lists concatenated 
                    
307    let append xs ys = AltBinRndAccList.append (xs, ys)
                    
308   
                    
309     ///returns a new random access list with the element added to the beginning
                    
310    let inline cons x (xs: AltBinRndAccList<'a>) = xs.Cons x   
                    
325
                    
326    ///returns true if the random access list has no elements
                    
327    let inline isEmpty (xs: AltBinRndAccList<'a>) = xs.IsEmpty()
                    
                
font_container.php https://gitlab.com/oxidigitaluser/liguelista | 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',
                    
                
PhpdocToCommentFixerTest.php git://github.com/fabpot/PHP-CS-Fixer.git | PHP | 533 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of PHP CS Fixer.
                    
5 *
                    
17/**
                    
18 * @author Ceeram <ceeram@cakephp.org>
                    
19 */
                    
19 */
                    
20class PhpdocToCommentFixerTest extends AbstractFixerTestBase
                    
21{
                    
30    /**
                    
31     * @requires PHP 5.4
                    
32     * @dataProvider provideTraits
                    
43        $cases[] = array(
                    
44            '<?php
                    
45/**
                    
                
elfinder.pt_BR.js https://gitlab.com/r.collas/site_central | JavaScript | 320 lines
                    
28			'errConf'              : 'Configuração inválida do backend.',
                    
29			'errJSON'              : 'Módulo PHP JSON não está instalado.',
                    
30			'errNoVolumes'         : 'Não existe nenhum volume legível disponivel.',
                    
130			'ntfextract'  : 'Extraindo arquivos dos ficheiros',
                    
131			'ntfsearch'   : 'Procurando arquivos',
                    
132			'ntfsmth'     : 'Fazendo alguma coisa >_<',
                    
269			'kindTextPlain'   : 'Texto simples',
                    
270			'kindPHP'         : 'PHP',
                    
271			'kindCSS'         : 'CSS',
                    
                
users.php git://github.com/q2a/question2answer.git | PHP | 417 lines
                    
1<?php
                    
2/*
                    
18
                    
19	More about this license: http://www.question2answer.org/license.php
                    
20*/
                    
52{
                    
53	require_once QA_INCLUDE_DIR . 'util/string.php';
                    
54
                    
63	} else {
                    
64		$salt = isset($password) ? qa_random_alphanum(16) : null;
                    
65
                    
206
                    
207	require_once QA_INCLUDE_DIR . 'util/string.php';
                    
208
                    
214	} else {
                    
215		$salt = qa_random_alphanum(16);
                    
216
                    
                
BigMath.php https://gitlab.com/r.collas/site_central | 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
                    
                
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
                    
                
PerSubscriptionMessageHandlerTest.java git://github.com/eclipse/paho.mqtt.java.git | Java | 369 lines
                    
10 * and the Eclipse Distribution License is available at 
                    
11 *   https://www.eclipse.org/org/documents/edl-v10.php
                    
12 *
                    
65	      clientFactory.open();
                    
66	      topicPrefix = "PerSubscriptionMessageHandlerTest-" + UUID.randomUUID().toString() + "-";
                    
67
                    
                
atof_test.go git://github.com/axw/llgo.git | 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}
                    
                
page.tpl.php https://gitlab.com/endomorphosis/mundoamirillo | PHP | 211 lines
                    
1<?php // $Id: page.tpl.php,v 1.1.2.4 2010/01/01 21:13:37 jmburnz Exp $
                    
2// adaptivethemes.com
                    
87<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                    
88<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
                    
89<head>
                    
113              <div class="logo-site-name"><strong>
                    
114                <?php if ($linked_site_logo): ?><span id="logo"><?php print $linked_site_logo; ?></span><?php endif; ?>
                    
115                <?php if ($linked_site_name): ?><span id="site-name"><?php print $linked_site_name; ?></span><?php endif; ?>
                    
119                <?php if ($linked_site_logo): ?><span id="logo"><?php print $linked_site_logo; ?></span><?php endif; ?>
                    
120                <?php if ($linked_site_name): ?><span id="site-name"><?php print $linked_site_name; ?></span><?php endif; ?>
                    
121             </h1>
                    
129      <?php if ($search_box): ?>
                    
130        <div id="search-box"<?php print $toggle_label ?>><?php print $search_box; ?></div> <!-- /search box -->
                    
131      <?php endif; ?>
                    
170              <div id="main-content-header">
                    
171                <?php if ($title): ?><h1 id="page-title"><?php print $title; ?></h1><?php endif; ?> <!-- /page title -->
                    
172                <?php if ($tabs): ?>
                    
                
kab.php https://gitlab.com/zenfork/vektor | PHP | 460 lines
                    
1<?php
                    
2/**
                    
250    'bh' => 'Baḥrin',
                    
251    'bi' => 'Burandi',
                    
252    'bj' => 'Binin',
                    
                
slideshow.php https://gitlab.com/ibnukipa/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>
                    
                
usuarioController.php https://gitlab.com/fabian.morales/Spencial | PHP | 264 lines
                    
1<?php
                    
2class usuarioController extends myController{
                    
65                if (!$redirect) {
                    
66                    $redirect = 'index.php?option=com_my_component&controller=usuario';
                    
67                }
                    
84                    if (!JURI::isInternal($redirect)) {
                    
85                        $redirect = 'index.php';
                    
86                    }
                    
88                else{
                    
89                    $redirect = 'index.php';
                    
90                }
                    
96            else{
                    
97                myApp::redirect('index.php?option=com_my_component&controller=usuario');
                    
98            }            
                    
181        if ($password){
                    
182            $salt = JUserHelper::genRandomPassword(32);
                    
183            $crypt = JUserHelper::getCryptedPassword($password, $salt);
                    
                
CacheBase.php https://gitlab.com/x0139/sstu.gov39.ru | 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
                    
                
PageRepository.php https://gitlab.com/randydanniswara/website | PHP | 342 lines
                    
1<?php
                    
2/**
                    
173    {
                    
174        $unique  = $this->generateRandomParameterName(); //ensure that the string has a unique parameter identifier
                    
175        $string  = ($filter->strict) ? $filter->string : "%{$filter->string}%";
                    
195        $command         = $filter->command;
                    
196        $unique          = $this->generateRandomParameterName();
                    
197        $returnParameter = true; //returning a parameter that is not used will lead to a Doctrine error
                    
223            case $this->translator->trans('mautic.core.searchcommand.lang'):
                    
224                $langUnique       = $this->generateRandomParameterName();
                    
225                $langValue        = $filter->string . "_%";
                    
                
lostcontrollertest.php https://gitlab.com/Red54/core | PHP | 296 lines
                    
47			->disableOriginalConstructor()->getMock();
                    
48		$this->container['SecureRandom'] = $this->getMockBuilder('\OCP\Security\ISecureRandom')
                    
49			->disableOriginalConstructor()->getMock();
                    
107	public function testEmailSuccessful() {
                    
108		$randomToken = $this->container['SecureRandom'];
                    
109		$this->container['SecureRandom']
                    
126			->method('getMediumStrengthGenerator')
                    
127			->will($this->returnValue($randomToken));
                    
128		$this->container['Config']
                    
149			->method('setPlainBody')
                    
150			->with('Use the following link to reset your password: https://ownCloud.com/index.php/lostpassword/');
                    
151		$message
                    
169	public function testEmailCantSendException() {
                    
170		$randomToken = $this->container['SecureRandom'];
                    
171		$this->container['SecureRandom']
                    
                
personal.js https://gitlab.com/Red54/core | JavaScript | 378 lines
                    
74		// Ajax foo
                    
75		$.post('ajax/changedisplayname.php', post, function (data) {
                    
76			if (data.status === "success") {
                    
113	$cropperImage.attr('src',
                    
114		OC.generateUrl('/avatar/tmp') + '?requesttoken=' + encodeURIComponent(oc_requesttoken) + '#' + Math.floor(Math.random() * 1000));
                    
115
                    
222		// Ajax foo
                    
223		$.post('ajax/setlanguage.php', post, function (data) {
                    
224			if (data.status === "success") {
                    
                
eiffel.php https://gitlab.com/suyesh/ckeditor-dev | PHP | 395 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * eiffel.php
                    
4 * ----------
                    
155            'RAW_FILE',
                    
156            'RANDOM',
                    
157            'QUEUE',
                    
                
jquery.html https://gitlab.com/softsticker/oi-portal-b2b | HTML | 103 lines
                    
42	<div class="warning deprecated">
                    
43		This sample is not maintained anymore. Check out the <a href="http://sdk.ckeditor.com/">brand new samples in CKEditor SDK</a>.
                    
44	</div>
                    
44	</div>
                    
45	<form action="sample_posteddata.php" method="post">
                    
46		<div class="description">
                    
                
index.php https://gitlab.com/phpcodeinfected/owncms | PHP | 154 lines
                    
42            <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
                    
43                <!-- Brand and toggle get grouped for better mobile display -->
                    
44                <div class="navbar-header">
                    
50                    </button>
                    
51                    <a class="navbar-brand" href="index.php.html">CodeInfected</a>
                    
52                </div>
                    
53                <!-- Top Menu Items -->
                    
54                <?php
                    
55                session_start();
                    
60                        <li class="dropdown">
                    
61                            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <?php echo $_SESSION['username'] ?> <b class="caret"></b></a>
                    
62                            <ul class="dropdown-menu">
                    
73                    </ul>
                    
74<?php } ?>
                    
75                <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
                    
                
LegacyOptionsTest.php https://gitlab.com/matijabelec/bigpandadev | PHP | 337 lines
                    
1<?php
                    
2
                    
19 */
                    
20class LegacyOptionsTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
51        $this->options->overload('foo', function (Options $options, $previousValue) use ($test) {
                    
52            /* @var \PHPUnit_Framework_TestCase $test */
                    
53            $test->assertEquals('bar', $previousValue);
                    
71        $this->options->overload('foo', function (Options $options, $previousValue) use ($test) {
                    
72            /* @var \PHPUnit_Framework_TestCase $test */
                    
73            $test->assertEquals('bar', $previousValue);
                    
104        $this->options->set('bam', function (Options $options) use ($test) {
                    
105            /* @var \PHPUnit_Framework_TestCase $test */
                    
106            $test->assertEquals('bar', $options->get('foo'));
                    
122        $this->options->set('bam', function (Options $options) use ($test) {
                    
123            /* @var \PHPUnit_Framework_TestCase $test */
                    
124            $test->assertEquals('bar', $options->get('foo'));
                    
                
PhpDumperTest.php https://gitlab.com/matijabelec/bigpandadev | PHP | 221 lines
                    
19
                    
20class PhpDumperTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
32
                    
33        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services1.php', $dumper->dump(), '->dump() dumps an empty container as an empty PHP class');
                    
34        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services1-1.php', $dumper->dump(array('class' => 'Container', 'base_class' => 'AbstractContainer', 'namespace' => 'Symfony\Component\DependencyInjection\Dump')), '->dump() takes a class and a base_class options');
                    
64        $dumper = new PhpDumper($container);
                    
65        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services10.php', $dumper->dump(), '->dump() dumps an empty container as an empty PHP class');
                    
66    }
                    
141
                    
142        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services19.php', $dumper->dump(), '->dump() dumps services with anonymous factories');
                    
143    }
                    
184    {
                    
185        require_once self::$fixturesPath.'/php/services9.php';
                    
186        require_once self::$fixturesPath.'/includes/foo.php';
                    
                
abstractthreadstrategy.php https://gitlab.com/alexprowars/bitrix | PHP | 367 lines
                    
1<?php
                    
2
                    
318			}
                    
319			sleep(rand(1,7));
                    
320		}
                    
                
PrettyPrinterAbstract.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 262 lines
                    
75     *
                    
76     * @param PHPParser_Node[] $stmts Array of statements
                    
77     *
                    
88     *
                    
89     * @param PHPParser_Node_Expr $node Expression node
                    
90     *
                    
119     *
                    
120     * @param PHPParser_Node[] $nodes Array of nodes
                    
121     */
                    
134     *
                    
135     * @param PHPParser_Node[] $nodes  Array of nodes
                    
136     * @param bool             $indent Whether to indent the printed nodes
                    
169
                    
170    protected function pInfixOp($type, PHPParser_Node $leftNode, $operatorString, PHPParser_Node $rightNode) {
                    
171        list($precedence, $associativity) = $this->precedenceMap[$type];
                    
                
Overview.php https://gitlab.com/yousafsyed/easternglamor | PHP | 397 lines
                    
1<?php
                    
2/**
                    
151     * @return bool
                    
152     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
153     */
                    
215        foreach ($totals as $total) {
                    
216            if ($total->getCode() == 'grand_total') {
                    
217                if ($address->getAddressType() == Address::TYPE_BILLING) {
                    
231    {
                    
232        return $this->getCheckout()->getQuote()->getGrandTotal();
                    
233    }
                    
                
Collection.php https://gitlab.com/blingbang2016/shop | PHP | 334 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) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
171    /**
                    
172     * Add random sorting order
                    
173     *
                    
175     */
                    
176    public function setRandomOrder()
                    
177    {
                    
177    {
                    
178        $this->getSelect()->orderRand('main_table.entity_id');
                    
179        return $this;
                    
                
class-kirki-enqueue.php https://gitlab.com/aristath/kirki | PHP | 238 lines
                    
1<?php
                    
2/**
                    
32			add_action( 'customize_controls_enqueue_scripts', array( $this, 'customize_controls_enqueue_scripts' ), 7 );
                    
33			add_action( 'customize_controls_print_scripts', array( $this, 'branding' ) );
                    
34			add_action( 'customize_preview_init', array( $this, 'postmessage' ) );
                    
195		/**
                    
196		 * Enqueues the script responsible for branding the customizer
                    
197		 * and also adds variables to it using the wp_localize_script function.
                    
197		 * and also adds variables to it using the wp_localize_script function.
                    
198		 * The actual branding is handled via JS.
                    
199		 */
                    
199		 */
                    
200		public function branding() {
                    
201
                    
214			if ( ! empty( $vars['logoImage'] ) || ! empty( $vars['description'] ) ) {
                    
215				wp_register_script( 'kirki-branding', Kirki::$url . '/assets/js/branding.js' );
                    
216				wp_localize_script( 'kirki-branding', 'kirkiBranding', $vars );
                    
                
ClientInterface.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 230 lines
                    
1<?php
                    
2
                    
38 * @method int    pttl($key)
                    
39 * @method string randomkey()
                    
40 * @method mixed  rename($key, $target)
                    
108 * @method string spop($key)
                    
109 * @method string srandmember($key, $count = null)
                    
110 * @method int    srem($key, $member)
                    
                
app.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 209 lines
                    
1<?php
                    
2
                    
36    | Here you may specify the default timezone for your application, which
                    
37    | will be used by the PHP date and date-time functions. We have gone
                    
38    | ahead and set this to a sensible default for you out of the box.
                    
75    | This key is used by the Illuminate encrypter service and should be set
                    
76    | to a random, 32 character string, otherwise these encrypted strings
                    
77    | will not be safe. Please do this before deploying an application!
                    
80
                    
81    'key' => env('APP_KEY', 'SomeRandomString'),
                    
82
                    
90    | Here you may configure the log settings for your application. Out of
                    
91    | the box, Laravel uses the Monolog PHP logging library. This gives
                    
92    | you a variety of powerful log handlers / formatters to utilize.
                    
                
eventslib_test.php git://github.com/moodle/moodle.git | PHP | 304 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
20 * @package    core_event
                    
21 * @subpackage phpunit
                    
22 * @copyright  2007 onwards Martin Dougiamas (http://dougiamas.com)
                    
36     * These tests have to work no matter the data currently in the database
                    
37     * (meaning they should run on a brand new site). This means several items of
                    
38     * data have to be artificially inseminated (:-) in the DB.
                    
59        $handlers = array();
                    
60        require(__DIR__.'/fixtures/events.php');
                    
61        $this->assertCount($dbcount, $handlers, 'Equal number of handlers in file and db: %s');
                    
                
anekdotru.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 393 lines
                    
1<?php
                    
2//
                    
12
                    
13include("config.php");
                    
14
                    
25	wp_product_files.idhash,
                    
26	wp_product_list.brand AS brand,
                    
27	wp_product_files.mimetype
                    
31		AND wp_product_list.file = wp_product_files.id
                    
32		AND wp_product_list.brand = wp_product_brands.id 
                    
33		AND wp_product_list.active = 1
                    
55				$author = $row['author'];
                    
56				$brand = $row['brand'];
                    
57				$votes = $row['votes'];
                    
128												$content .= "????????: ".$title."\n\r";
                    
129												$content .= "??????: http://cartoonbank.ru/?page_id=29&brand=".$brand."\n\r";
                    
130												$content .= "??? ?????? ?? ???????? ??????: <a href='http://cartoonbank.ru/?page_id=29&brand=".$brand."'>".$author."</a>\n\r";
                    
                
TestBaseTest.php git://github.com/drupal/drupal.git | PHP | 470 lines
                    
1<?php
                    
2
                    
58  /**
                    
59   * Provides data for the random string validation test.
                    
60   *
                    
64   */
                    
65  public function providerRandomStringValidate() {
                    
66    return [
                    
78  /**
                    
79   * @covers ::randomStringValidate
                    
80   * @dataProvider providerRandomStringValidate
                    
81   */
                    
82  public function testRandomStringValidate($expected, $string) {
                    
83    $mock_test_base = $this->getMockForAbstractClass('Drupal\simpletest\TestBase');
                    
83    $mock_test_base = $this->getMockForAbstractClass('Drupal\simpletest\TestBase');
                    
84    $actual = $mock_test_base->randomStringValidate($string);
                    
85    $this->assertEquals($expected, $actual);
                    
                
asa_tz.php https://gitlab.com/zenfork/vektor | PHP | 458 lines
                    
1<?php
                    
2/**
                    
213    'ru' => 'Kiruthi',
                    
214    'rw' => 'Kinyarandwa',
                    
215    'so' => 'Kithomali',
                    
                
basebutton.php https://gitlab.com/alexprowars/bitrix | PHP | 564 lines
                    
1<?php
                    
2
                    
7use Bitrix\Main\Localization\Loc;
                    
8use Bitrix\Main\Security\Random;
                    
9use Bitrix\Main\UI\Extension;
                    
215	{
                    
216		return 'uibtn-' . Random::getString(8);
                    
217	}
                    
                
setup.php https://gitlab.com/che234/smproducciones | PHP | 321 lines
                    
1<?php // don't load directly
                    
2if ( ! defined( 'ABSPATH' ) ) {
                    
132	if ( empty( $role ) ) {
                    
133		update_option( "gmediaInitCheck", __( 'Sorry, Gmedia Gallery works only with a role called administrator', 'grand-media' ) );
                    
134
                    
162	// upgrade function changed in WordPress 2.3
                    
163	require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
                    
164
                    
261	if ( $wpdb->get_var( "show tables like '$gmedia'" ) != $gmedia ) {
                    
262		update_option( "gmediaInitCheck", __( 'GmediaGallery: Tables could not created, please check your database settings', 'grand-media' ) );
                    
263
                    
                
data_sync_list.html http://phpfor.googlecode.com/svn/trunk/ | HTML | 262 lines
                    
65                <{if $sitem.type == 'goods'}>
                    
66                <a href='<{$supplier_domain}>index.php?product-<{$sitem.object_id}>.html' target='_blank'><{$sitem.command_info.name}></a> 
                    
67                <{else}>
                    
73				<td>&nbsp;<{$sitem.cat_name}>&nbsp;</td>
                    
74                <td>&nbsp;<{$sitem.brand_name}>&nbsp;</td>
                    
75                <td><{$sitem.last_modify|usertime}></td>
                    
165        var e = this;
                    
166        doSyncListEvent(e,'index.php?ctl=distribution/supplier&act=downloadGoods',function(rs){
                    
167                e.getParent('td').getPrevious('td').set('html','<span class="fontcolorRed">??????</span>');
                    
178        var e = this;
                    
179        doSyncListEvent(e,'index.php?ctl=distribution/supplier&act=updateGoods',function(rs){
                    
180            e.getParent('td').getPrevious('td').set('html','<span class="fontcolorRed">??????</span>');
                    
192        var e = this;
                    
193        doSyncListEvent(e,'index.php?ctl=distribution/supplier&act=updateGoodsImage',function(){
                    
194            doImagesSync(e.getParent('tr').get('commandid'));
                    
                
notifier.php git://github.com/mageekguy/atoum.git | PHP | 221 lines
                    
44			->if($score = new \mock\mageekguy\atoum\runner\score())
                    
45			->and($this->calling($score)->getAssertionNumber = $assertionNumber = rand(1, PHP_INT_MAX))
                    
46			->and($this->calling($score)->getFailNumber = $failNumber = rand(1, PHP_INT_MAX))
                    
46			->and($this->calling($score)->getFailNumber = $failNumber = rand(1, PHP_INT_MAX))
                    
47			->and($this->calling($score)->getErrorNumber = $errorNumber = rand(1, PHP_INT_MAX))
                    
48			->and($this->calling($score)->getExceptionNumber = $exceptionNumber = rand(1, PHP_INT_MAX))
                    
50			->and($runner->setScore($score))
                    
51			->and($this->calling($runner)->getTestNumber = $testNumber = rand(1, PHP_INT_MAX))
                    
52			->and($this->calling($runner)->getTestMethodNumber = $testMethodNumber = rand(1, PHP_INT_MAX))
                    
177			->assert('Failure with several tests, several methods and several assertions, several fails, several errors, several exceptions')
                    
178			->if($this->calling($score)->getFailNumber = $failNumber = rand(2, PHP_INT_MAX))
                    
179			->and($this->calling($score)->getErrorNumber = $errorNumber = rand(2, PHP_INT_MAX))
                    
180			->and($this->calling($score)->getExceptionNumber = $exceptionNumber = rand(2, PHP_INT_MAX))
                    
181			->and($this->calling($score)->getUncompletedMethodNumber = $uncompletedTestNumber = rand(2, PHP_INT_MAX))
                    
182			->and($field = new \mock\mageekguy\atoum\report\fields\runner\result\notifier($adapter))
                    
                
index.html https://gitlab.com/BGCX261/zkjet-git.git | HTML | 443 lines
                    
59	<td>
                    
60		<a href="http://www.codepress.org/about.php" id="about">&nbsp;&nbsp;About&nbsp;&nbsp;</a>
                    
61	</td>
                    
75	<em>choose example in:</em> 
                    
76	<button onclick="cp1.edit('cp-php','php')">PHP</button> 
                    
77	<button onclick="cp1.edit('cp-javascript','javascript')">JavaScript</button> 
                    
84
                    
85<textarea id="cp1" class="codepress php" style="width:700px;height:300px;" wrap="off">
                    
86<?php
                    
229<p>
                    
230	You may also want to open files from server. You'll have to write a server side script and replace the JavaScript call on codepress.js from codepress.html to codepress.php (if your server side language is PHP, of course).
                    
231</p -->
                    
401	<em>choose language:</em> 
                    
402	<button onclick="edit('codepress.php',this)" id="default">PHP</button> 
                    
403	<button onclick="edit('FileManager.java',this)">Java</button> 
                    
                
AdminModulesPositions.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 316 lines
                    
1<?php
                    
2
                    
3/**
                    
4  * Modules positions tab for admin panel, AdminModulesPositions.php
                    
5  * @category admin
                    
8  * @copyright PrestaShop
                    
9  * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
                    
10  * @version 1.3
                    
13
                    
14include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php');
                    
15
                    
217						<td'.($nbModules >= 2? ' class="dragHandle"' : '').' id="td_'.$hook['id_hook'].'_'.$instance->id.'" width="40">
                    
218						<a'.($position == 1 ? ' style="display: none;"' : '' ).' href="'.$currentIndex.'&id_module='.$instance->id.'&id_hook='.$hook['id_hook'].'&direction=0&token='.$this->token.'&changePosition='.rand().'#'.$hook['name'].'"><img src="../img/admin/up.gif" alt="'.$this->l('Up').'" title="'.$this->l('Up').'" /></a><br />
                    
219							<a '.($position == sizeof($instances) ? ' style="display: none;"' : '').'href="'.$currentIndex.'&id_module='.$instance->id.'&id_hook='.$hook['id_hook'].'&direction=1&token='.$this->token.'&changePosition='.rand().'#'.$hook['name'].'"><img src="../img/admin/down.gif" alt="'.$this->l('Down').'" title="'.$this->l('Down').'" /></a>
                    
291				<div class="margin-form">
                    
292					<input type="text" name="exceptions" size="40" '.(!empty($excepts) ? 'value="'.$excepts.'"' : '').'><br />Ex: identity.php, history.php, order.php, product.php<br /><br />
                    
293					'.$this->l('Please specify those files in which you do not want the module to be displayed').'.<br />
                    
                
Exception.php http://syracava.googlecode.com/svn/trunk/ | 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 125 2009-08-21 01:35:18Z takuji.mezawa $
                    
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
                    
                
CacheTest.php https://gitlab.com/ygkanani/CakeTooDoo | PHP | 522 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
                    
14 * @package       Cake.Test.Case.Cache
                    
14 * @package       Cake.Test.Case.Cache
                    
15 * @since         CakePHP(tm) v 1.2.0.5432
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
130 *
                    
131 * @expectedException PHPUnit_Framework_Error_Warning
                    
132 * @return void
                    
144			'serialize' => true,
                    
145			'random' => 'wii'
                    
146		));
                    
                
site-new.php https://gitlab.com/stevie007/cinostaging | PHP | 227 lines
                    
103		/**
                    
104		  * Fires after a new user has been created via the network site-new.php page.
                    
105		  *
                    
166} ?>
                    
167<form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">
                    
168<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?>
                    
172			<td>
                    
173			<?php if ( is_subdomain_install() ) { ?>
                    
174				<input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span>
                    
174				<input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span>
                    
175			<?php } else {
                    
176				echo $current_site->domain . $current_site->path ?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc"  autocapitalize="none" autocorrect="off" />
                    
219		<tr class="form-field">
                    
220			<td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></td>
                    
221		</tr>
                    
                
app.php https://gitlab.com/losi/airsoft | PHP | 210 lines
                    
1<?php
                    
2
                    
49    | Here you may specify the default timezone for your application, which
                    
50    | will be used by the PHP date and date-time functions. We have gone
                    
51    | ahead and set this to a sensible default for you out of the box.
                    
88    | This key is used by the Illuminate encrypter service and should be set
                    
89    | to a random, 32 character string, otherwise these encrypted strings
                    
90    | will not be safe. Please do this before deploying an application!
                    
103    | Here you may configure the log settings for your application. Out of
                    
104    | the box, Laravel uses the Monolog PHP logging library. This gives
                    
105    | you a variety of powerful log handlers / formatters to utilize.
                    
                
SearchRankingTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 268 lines
                    
1<?php
                    
2
                    
88    $edit['subject'] = 'my comment title';
                    
89    $edit['comment_body[0][value]'] = 'some random comment';
                    
90    $this->drupalGet('comment/reply/node/' . $nodes['comments'][1]->id() . '/comment');
                    
                
widget-featured-services.php https://gitlab.com/luyxtran264/myproject | PHP | 185 lines
                    
145				<?php for ($i=1;$i<13;$i++) { ?>
                    
146				<option <?php echo ($i == $instance['number_of_services'] ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr ( $i ); ?>"><?php echo esc_html($i); ?></option>
                    
147				<?php } ?>
                    
155				<option <?php echo 'ID' == $instance['sort_by'] ? 'selected="selected"' : ''; ?> value="ID"><?php esc_html_e('Post ID', 'transfers') ?></option>
                    
156				<option <?php echo 'rand' == $instance['sort_by'] ? 'selected="selected"' : ''; ?> value="rand"><?php esc_html_e('Random', 'transfers') ?></option>
                    
157				<option <?php echo 'date' == $instance['sort_by'] ? 'selected="selected"' : ''; ?> value="date"><?php esc_html_e('Publish Date', 'transfers') ?></option>
                    
163			<label for="<?php echo esc_attr( $this->get_field_id( 'sort_descending' ) ); ?>"><?php esc_html_e('Sort services in descending order?', 'transfers') ?></label>
                    
164			<input type="checkbox"  <?php echo ($instance['sort_descending'] == '1' ? 'checked="checked"' : ''); ?> class="checkbox" id="<?php echo esc_attr( $this->get_field_id( 'sort_descending' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'sort_descending') ); ?>" value="1" />
                    
165		</p>
                    
175		<p class="cards" <?php echo ( $instance['display_mode'] != 'card' ? 'style="display:none"' : '' ); ?>>
                    
176			<label for="<?php echo esc_attr ( $this->get_field_id( 'services_per_row' ) ); ?>"><?php esc_html_e('How many services do you want to display per row?', 'transfers') ?></label>
                    
177			<select id="<?php echo esc_attr ( $this->get_field_id( 'services_per_row' ) ); ?>" name="<?php echo esc_attr ( $this->get_field_name( 'services_per_row' ) ); ?>">
                    
178				<?php for ($i=1;$i<6;$i++) { ?>
                    
179				<option <?php echo ($i == $instance['services_per_row'] ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr ( $i ); ?>"><?php echo esc_html($i); ?></option>
                    
180				<?php } ?>
                    
                
mer.php https://gitlab.com/dwi.nurhadi17/uns-log | PHP | 457 lines
                    
1<?php
                    
2/**
                    
268    'ci' => 'Kodivaa',
                    
269    'ck' => 'Aĩrandi cia Cook',
                    
270    'cl' => 'Chile',
                    
293    'fj' => 'Fiji',
                    
294    'fk' => 'Aĩrandi cia Falklandi',
                    
295    'fm' => 'Mikronesia',
                    
338    'kw' => 'Kuwĩ ti',
                    
339    'ky' => 'Aĩrandi cia Kayman',
                    
340    'kz' => 'Kazakistani',
                    
355    'mg' => 'Madagasika',
                    
356    'mh' => 'Aĩrandi cia Marshal',
                    
357    'mk' => 'Macedonia',
                    
360    'mn' => 'Mongolia',
                    
361    'mp' => 'Aĩrandi cia Mariana ya nothi',
                    
362    'mq' => 'Martiniki',
                    
                
grid.locale-hu.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 165 lines
                    
3 * Őrszigety Ádám udx6bs@freemail.hu
                    
4 * http://trirand.com/blog/
                    
5 * Dual licensed under the MIT and GPL licenses:
                    
5 * Dual licensed under the MIT and GPL licenses:
                    
6 * http://www.opensource.org/licenses/mit-license.php
                    
7 * http://www.gnu.org/licenses/gpl.html
                    
54		],
                    
55		operandTitle: "Click to select search operation.",
                    
56		resetTitle: "Reset Search Value"
                    
                
jquery.createcontexmenufromnavigatorbuttons.js https://gitlab.com/Mirros/cdnjs | JavaScript | 140 lines
                    
3 * Dual licensed under the MIT and GPL licenses
                    
4 * http://www.opensource.org/licenses/mit-license.php
                    
5 * http://www.gnu.org/licenses/gpl-2.0.html
                    
86								// for custom buttons
                    
87								id = $.jgrid.randId();
                    
88							}
                    
                
grid.locale-ro.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 198 lines
                    
5 * Dual licensed under the MIT and GPL licenses:
                    
6 * http://www.opensource.org/licenses/mit-license.php
                    
7 * http://www.gnu.org/licenses/gpl.html
                    
70		deleteRuleTitle: "Delete rule",
                    
71		operandTitle: "Click to select search operation.",
                    
72		resetTitle: "Reset Search Value"
                    
                
grid.locale-fa.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 173 lines
                    
3 * Dual licensed under the MIT and GPL licenses:
                    
4 * http://www.opensource.org/licenses/mit-license.php
                    
5 * http://www.gnu.org/licenses/gpl.html
                    
52			],
                    
53			operandTitle: "Click to select search operation.",
                    
54			resetTitle: "تنظیم مجدد مقدار جستجو"
                    
                
RESTTestBase.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 341 lines
                    
1<?php
                    
2
                    
188        return array(
                    
189          'name' => $this->randomName(),
                    
190          'user_id' => 1,
                    
191          'field_test_text' => array(0 => array(
                    
192            'value' => $this->randomString(),
                    
193            'format' => 'plain_text',
                    
196      case 'node':
                    
197        return array('title' => $this->randomString(), 'type' => 'resttest');
                    
198      case 'node_type':
                    
200          'type' => 'article',
                    
201          'name' => $this->randomName(),
                    
202        );
                    
203      case 'user':
                    
204        return array('name' => $this->randomName());
                    
205      default:
                    
                
session.php https://gitlab.com/ripontopu/uswo | PHP | 440 lines
                    
1<?php
                    
2/**
                    
104	 *
                    
105	 * A session token is a long, random string. It is used in a cookie
                    
106	 * link that cookie to an expiration time and to ensure the cookie
                    
                
Createdat.php https://gitlab.com/yousafsyed/easternglamor | PHP | 255 lines
                    
1<?php
                    
2/**
                    
44     * @throws \Exception
                    
45     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
46     * @SuppressWarnings(PHPMD.UnusedLocalVariable)
                    
85                        'SUM((%s - %s) * %s)',
                    
86                        $connection->getIfNullSql('o.base_grand_total', 0),
                    
87                        $connection->getIfNullSql('o.base_total_canceled', 0),
                    
                
2012-64-166.html https://gitlab.com/bernagg/TI | HTML | 226 lines
                    
28		var wgScriptPath = "";
                    
29		var wgScript = "/index.php";
                    
30		var wgVariantArticlePath = false;
                    
77									<div id="jump-to-nav">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div>			<!-- start content -->
                    
78			<p><b>Definitive meaning</b> (Skt. <i>nītārtha</i>; Tib. <a href="/index.php?title=%E0%BD%84%E0%BD%BA%E0%BD%A6%E0%BC%8B%E0%BD%91%E0%BD%BC%E0%BD%93%E0%BC%8B" title="ངེས་དོན་">ངེས་དོན་</a>, <a href="/index.php?title=Wyl." title="Wyl." class="mw-redirect">Wyl.</a> <i>nges don</i>) — the teachings of the <a href="/index.php?title=Buddha" title="Buddha">Buddha</a> may be divided into those of <a href="/index.php?title=Provisional_meaning" title="Provisional meaning">provisional meaning</a> and those of definitive meaning.
                    
79</p><p>Distinguishing the definitive meaning from the provisional meaning is an important way in which Buddhist commentators convey a unified interpretation of the different teachings in scriptures that sometimes have contradictory literal meanings. The definitive meaning is the true meaning, the ultimate truth, in contrast to what is simply taught for a provisional purpose, as a temporary means to understand the deeper import of the ultimate truth.<sup id="cite_ref-0" class="reference"><a href="#cite_note-0" title="">[1]</a></sup>
                    
106Retrieved from "<a href="http://www.rigpawiki.org/index.php?title=Definitive_meaning">http://www.rigpawiki.org/index.php?title=Definitive_meaning</a>"</div>
                    
107			<div id="catlinks"><div id='catlinks' class='catlinks'><div id="mw-normal-catlinks"><a href="/index.php?title=Special:Categories" title="Special:Categories">Category</a>:&#32;<span dir='ltr'><a href="/index.php?title=Category:Hermeneutics" title="Category:Hermeneutics">Hermeneutics</a></span></div></div></div>			<!-- end content -->
                    
108			<div class="visualClear"></div>
                    
117						 <li id="ca-nstab-main" class="selected"><a href="/index.php?title=Definitive_meaning">Page</a></li>
                    
118						 <li id="ca-talk"><a href="/index.php?title=Talk:Definitive_meaning">Discussion</a></li>
                    
119						 <li id="ca-viewsource"><a href="/index.php?title=Definitive_meaning&amp;action=edit">View source</a></li>
                    
197<li id="t-specialpages"><a href="/index.php?title=Special:SpecialPages">Special pages</a></li>
                    
198				<li id="t-print"><a href="/index.php?title=Definitive_meaning&amp;printable=yes">Printable version</a></li>				<li id="t-permalink"><a href="/index.php?title=Definitive_meaning&amp;oldid=67571">Permanent link</a></li>			</ul>
                    
199		</div>
                    
                
Person.php https://gitlab.com/Urtekin/ertexAdmin | PHP | 90 lines
                    
1<?php
                    
2namespace Faker\Provider\ro_MD;
                    
40        'Roxelana', 'Ruxanda', 'Ruxandra', 'Sabina', 'Sabrina', 'Safta', 'Salomea', 'Sanda', 'Saveta', 'Savina', 'Sânziana', 'Semenica', 'Severina', 'Sidonia', 'Silvia', 'Silvana', 'Silviana',
                    
41        'Simina', 'Simona', 'Smaranda', 'Sofia', 'Sonia', 'Sorana', 'Sorina', 'Speranța', 'Stana', 'Stanca', 'Stela', 'Steliana', 'Steluța', 'Suzana', 'Svetlana', 'Ștefana', 'Ștefania', 'Tamara', 'Tania',
                    
42        'Tatiana', 'Teea', 'Teodora', 'Teodosia', 'Teona', 'Tiberia', 'Timea', 'Tinca', 'Tincuța', 'Tudora', 'Tudorița', 'Tudosia', 'Valentina', 'Valeria', 'Vanesa', 'Varvara', 'Vasilica', 'Venera', 'Vera',
                    
83        'Stanciu', 'Stancu', 'Stanescu', 'Stefan', 'Stefanescu', 'Stoian', 'Stoica', 'Stroe', 'Suciu', 'Szabo', 'Szasz', 'Szekely', 'Tamas', 'Tanase', 'Tataru', 'Teodorescu', 'Toader',
                    
84        'Toma', 'Tomescu', 'Toth', 'Trandafir', 'Trif', 'Trifan', 'Tudor', 'Tudorache', 'Tudose', 'Turcu', 'Ungureanu', 'Ursu', 'Vaduva', 'Varga', 'Vasile', 'Vasilescu', 'Vasiliu', 'Veres',
                    
85        'Vintila', 'Visan', 'Vlad', 'Voicu', 'Voinea', 'Zaharia', 'Zamfir'
                    
                
Exception.php https://github.com/poppen/p2.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.3 2008/09/28 16:11:28 akid 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
                    
                
AdminController.php https://gitlab.com/sawmainek/528Express-Server | PHP | 423 lines
                    
1<?php
                    
2
                    
226            $destinationPath = public_path() . $folderName;
                    
227            $safeName        = str_random(10).'.'.$extension;
                    
228            $file->move($destinationPath, $safeName);
                    
235            'phone'     => $request->phone,
                    
236            'code'      => mt_rand(100000, 999999),
                    
237            'photo'     => isset($safeName)?$safeName:$request->photo,
                    
                
footer.php https://gitlab.com/endomorphosis/brokenauction | PHP | 262 lines
                    
4
                    
5<!--<IFRAME class="chat-box" frameborder="0" scrolling="true" name="IFRAME_TEXT" id="IFRAME_TEXT" src='./chat/index.php' style="display:none;"></div></IFRAME>-->
                    
6
                    
60<span style="font:10px Arial, Helvetica, sans-serif; margin-left:5px; display:block; float:left;" id="test">  
                    
61 <?php 
                    
62 include("ajaxslider.php"); 
                    
66<span style="font:10px Arial, Helvetica, sans-serif; margin-left:5px; display:block; float:left;">
                    
67<?php 
                    
68// include("buyingpart.php"); 
                    
118document.getElementById('hellodiv').style.overflow='auto';
                    
119document.getElementById("onlineusers").src="mybidder.php?id="+id
                    
120document.getElementById("hellodiv").style.display="block"
                    
156 
                    
157var url="chatbox.php"
                    
158url=url+"?id="+myid
                    
                
display-debug.page.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 355 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>
                    
58			<li>
                    
59				<a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a>
                    
60			</li>
                    
61		</ul>
                    
62		<?php
                    
63		if (defined('WPSC_ADD_DEBUG_PAGE') && (constant('WPSC_ADD_DEBUG_PAGE') == true)) {
                    
85		?>
                    
86		<pre style='font-family:\"Lucida Grande\",Verdana,Arial,\"Bitstream Vera Sans\",sans-serif; font-size:8px;'><?php
                    
87		switch($_GET['wpsc_debug_action']) {
                    
                
StateDropDown.js https://rabcg.svn.codeplex.com/svn | JavaScript | 582 lines
                    
15
                    
16// If you have PHP you can set the post values like this
                    
17//var postState = '<?= $_POST["state"] ?>';
                    
131BR:RJ:Rio de Janeiro|\
                    
132BR:RN:Rio Grande do Norte|\
                    
133BR:RO:Rondonia|\
                    
134BR:RR:Roraima|\
                    
135BR:RS:Rio Grande do Sul|\
                    
136BR:SC:Santa Catarina|\
                    
                
ajax.php https://code.google.com/p/cids/ | PHP | 227 lines
                    
1<?php
                    
2include_once '../config.php';
                    
2include_once '../config.php';
                    
3include_once '../opendb.php';
                    
4include_once 'select.php';
                    
35    $navigation_header =
                    
36    "<p>Mostrando registos $offset - ".($offset+$limit-1)." ($total total)</p>";
                    
37    $navigation =
                    
94//                   onclick="changePage($('limit').options[$('limit').selectedIndex].value, 0, $('search').value);" />
                    
95//            <input type="text" id="search" value="<php echo @$select->search; >" style="width: 350px;" />
                    
96//        </p>";
                    
100    echo $navigation_search;
                    
101    echo "<form action='admin.php' method='post' enctype='multipart/form-data'>";
                    
102    echo display($state, $limit, $offset, $search, $field);
                    
135
                    
136include_once '../closedb.php';
                    
137
                    
                
HttpUtilsTest.php https://gitlab.com/jeisoncg/personal_collection_mv | PHP | 267 lines
                    
1<?php
                    
2
                    
20
                    
21class HttpUtilsTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
148
                    
149    public function testCheckRequestPathWithUrlMatcherAndResourceNotFound()
                    
150    {
                    
162
                    
163    public function testCheckRequestPathWithUrlMatcherAndMethodNotAllowed()
                    
164    {
                    
177
                    
178    public function testCheckRequestPathWithUrlMatcherAndResourceFoundByUrl()
                    
179    {
                    
191
                    
192    public function testCheckRequestPathWithUrlMatcherAndResourceFoundByRequest()
                    
193    {
                    
                
qrmask.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 328 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * PHP QR Code encoder
                    
4 *
                    
9 *
                    
10 * PHP QR Code is distributed under LGPL 3
                    
11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
                    
286        {
                    
287            $minDemerit = PHP_INT_MAX;
                    
288            $bestMaskNum = 0;
                    
292            
                    
293            if (QR_FIND_FROM_RANDOM !== false) {
                    
294            
                    
294            
                    
295                $howManuOut = 8-(QR_FIND_FROM_RANDOM % 9);
                    
296                for ($i = 0; $i <  $howManuOut; $i++) {
                    
                
CustomOptions.php https://gitlab.com/blingbang2016/shop | PHP | 386 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) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
65        if (isset($data['preset'])) {
                    
66            $preset = $this->replaceData($this->getPreset($data['preset']), mt_rand());
                    
67            unset($data['preset']);
                    
107     *
                    
108     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
                    
109     */
                    
130     *
                    
131     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
132     */
                    
                
FsExplorer.class.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 297 lines
                    
1<?php
                    
2/**
                    
21
                    
22class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';
                    
23org_tubepress_impl_classloader_ClassLoader::loadClasses(array(
                    
161            // Try to use system's temporary directory
                    
162            // as random name shouldn't exist
                    
163            $tempfile = @tempnam(md5(uniqid(rand(), true)), '');
                    
                
jmpress.allplugins.js https://gitlab.com/Mirros/cdnjs | JavaScript | 307 lines
                    
5 * Licensed MIT
                    
6 * http://www.opensource.org/licenses/mit-license.php
                    
7 */
                    
68			});
                    
69		function grandchildrenFunc(idx, child) {
                    
70			var childStepData = $(child).data("stepData");
                    
70			var childStepData = $(child).data("stepData");
                    
71			exchangeIf.call(eventData.jmpress, childStepData, "grandchildren", child);
                    
72		}
                    
87			});
                    
88		function grandchildrenFunc(idx, child) {
                    
89			var childStepData = $(child).data("stepData");
                    
89			var childStepData = $(child).data("stepData");
                    
90			exchangeIf.call(eventData.jmpress, childStepData, "grandchildren", child);
                    
91		}
                    
                
jcarousellite_1.js http://htdocstest.googlecode.com/svn/trunk/ | JavaScript | 340 lines
                    
8 * Dual licensed under the MIT and GPL licenses:
                    
9 * http://www.opensource.org/licenses/mit-license.php
                    
10 * http://www.gnu.org/licenses/gpl.html
                    
85 * @desc The carousel can also be navigated using the mouse wheel interface of a scroll mouse instead of using buttons.
                    
86 * To get this feature working, you have to do 2 things. First, you have to include the mouse-wheel plugin from brandon.
                    
87 * Second, you will have to set the option "mouseWheel" to true. That's it, now you will be able to navigate your carousel
                    
                
ajax-wishlist.js https://gitlab.com/ivandevp/petshop | JavaScript | 480 lines
                    
61		type: 'GET',
                    
62		url: baseDir + 'modules/blockwishlist/cart.php?rand=' + new Date().getTime(),
                    
63		headers: { "cache-control": "no-cache" },
                    
128		type: 'GET',
                    
129		url: baseDir + 'modules/blockwishlist/cart.php?rand=' + new Date().getTime(),
                    
130		headers: { "cache-control": "no-cache" },
                    
170			type: 'GET',
                    
171			url: baseDir + 'modules/blockwishlist/buywishlistproduct.php?rand=' + new Date().getTime(),
                    
172			headers: { "cache-control": "no-cache" },
                    
211		async: true,
                    
212		url: baseDir + 'modules/blockwishlist/managewishlist.php?rand=' + new Date().getTime(),
                    
213		headers: { "cache-control": "no-cache" },
                    
244		async: true,
                    
245		url: baseDir + 'modules/blockwishlist/managewishlist.php?rand=' + new Date().getTime(),
                    
246		headers: { "cache-control": "no-cache" },
                    
                
2012-66-102.html https://gitlab.com/bernagg/TI | HTML | 168 lines
                    
12<link rel="alternate" type="application/rss+xml" title="Teraphim RSS Feed" href="http://teraphim.org/?feed=rss2" />
                    
13<link rel="pingback" href="http://teraphim.org/xmlrpc.php" />
                    
14
                    
14
                    
15<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://teraphim.org/xmlrpc.php?rsd" />
                    
16<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://teraphim.org/wp-includes/wlwmanifest.xml" /> 
                    
111	</form></div><div class="block meta-3 widget_meta"><h3>Meta</h3>			<ul>
                    
112			<li><a href="http://teraphim.org/wp-login.php?action=register">Register</a></li>			<li><a href="http://teraphim.org/wp-login.php">Log in</a></li>
                    
113			<li><a href="http://teraphim.org/?feed=rss2" title="Syndicate this site using RSS 2.0">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>
                    
128	<ul class='xoxo blogroll'>
                    
129<li><a href="http://www.jameselkins.com/index.php?option=com_content&amp;view=article&amp;id=211:artists-with-phds&amp;catid=1:academic-books&amp;Itemid=8" title="Haven&#8217;t read this one, they won&#8217;t let it out of the library yet but ANU&#8217;s own Ruth Waller is featured. ">Artists with PhDs: On the New Doctoral Degree in Studio Art by James Elkins</a></li>
                    
130<li><a href="http://www.hunterdphilp.com/newsletter.htm">Full Bloom by Hunter Drohojowska-Philp Georgia O&#039;keefe bio</a></li>
                    
135<li><a href="http://press.princeton.edu/titles/8234.html" title="&#8220;What is abstract art good for? What&#8217;s the use&#8211;for us as individuals, or for any society&#8211;of pictures of nothing, of paintings and sculptures or prints or drawings that do not seem to show anything except themselves?&#8221; ">Pictures of Nothing:Abstract Art since Pollock by Kirk Varnedoe</a></li>
                    
136<li><a href="http://en.wikipedia.org/wiki/Simon_Schama" title="OK from now on authors with more than one book dont get their name listed over and over and over again. ">Rembrandt&#039;s Eyes Simon Schama</a></li>
                    
137<li><a href="http://www.guardian.co.uk/books/2005/jan/29/history.highereducation" title="I love Umberto Eco. I just have to say that.">The History of Beauty by the great Umberto Eco</a></li>
                    
                
wps-optimization.php https://gitlab.com/hop23typhu/faci-times | 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>
                    
                
image.php git://github.com/bcosca/fatfree.git | PHP | 616 lines
                    
1<?php
                    
2
                    
414				$seed=strtoupper(substr(
                    
415					$ssl?bin2hex(openssl_random_pseudo_bytes($len)):uniqid(),
                    
416					-$len));
                    
428						$fg,$path,$seed[$i]);
                    
429					$char=imagerotate($char,mt_rand(-30,30),
                    
430						imagecolorallocatealpha($char,0,0,0,127));
                    
480		$format=$args?array_shift($args):'png';
                    
481		if (PHP_SAPI!='cli') {
                    
482			header('Content-Type: image/'.$format);
                    
                
2011-44-011.html https://gitlab.com/bernagg/TI | HTML | 374 lines
                    
3<head>
                    
4	<base href="http://174.143.206.100/browse_tags.php" />	<title>crowdsource Logo Design&nbsp;| &nbsp;Brandstack</title>
                    
5	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
6	<meta name="Keywords" content="logo designs, design, buy and sell logo designs, domain names, corporate identity, inspiration" />
                    
7	<meta name="Description" content="Buy and sell logos and domain names on The World's Biggest Brand Marketplace" />
                    
8	<meta name="verify-v1" content="dZRJeGtp02hok0ojkha+Xdnin++08rG/0m8VJ5mfl8s=" />
                    
29_gaq.push(['_setAccount', 'UA-5079589-2']);
                    
30_gaq.push(['_setDomainName', '.brandstack.com']);
                    
31_gaq.push(['_trackPageview']);
                    
63					<li><a href="/tour/sell-logo-designs/">Sell Designs</a></li>
                    
64					<li><a href="http://custom.brandstack.com/">Custom Designs</a></li>
                    
65					<li><a href="/domain-names/" title="Domain Names">Domains</a></li>
                    
250									<div class="item_category">
                    
251						<a href="logos/tags/brand">brand</a>
                    
252					</div>
                    
                
2011-41-021.html https://gitlab.com/bernagg/TI | HTML | 374 lines
                    
3<head>
                    
4	<base href="http://brandstack.com/browse_tags.php" />	<title>crowdsource Logo Design&nbsp;| &nbsp;Brandstack</title>
                    
5	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
6	<meta name="Keywords" content="logo designs, design, buy and sell logo designs, domain names, corporate identity, inspiration" />
                    
7	<meta name="Description" content="Buy and sell logos and domain names on The World's Biggest Brand Marketplace" />
                    
8	<meta name="verify-v1" content="dZRJeGtp02hok0ojkha+Xdnin++08rG/0m8VJ5mfl8s=" />
                    
29_gaq.push(['_setAccount', 'UA-5079589-2']);
                    
30_gaq.push(['_setDomainName', '.brandstack.com']);
                    
31_gaq.push(['_trackPageview']);
                    
63					<li><a href="/tour/sell-logo-designs/">Sell Designs</a></li>
                    
64					<li><a href="http://custom.brandstack.com/">Custom Designs</a></li>
                    
65					<li><a href="/domain-names/" title="Domain Names">Domains</a></li>
                    
250									<div class="item_category">
                    
251						<a href="logos/tags/brand">brand</a>
                    
252					</div>
                    
                
Tax.php https://gitlab.com/blingbang2016/shop | PHP | 253 lines
                    
1<?php
                    
2/**
                    
91
                    
92                        $address->setGrandTotal(
                    
93                            $address->getGrandTotal() - ($item->getDiscountAmount() - $discountBefore)
                    
95                        $address->setBaseGrandTotal(
                    
96                            $address->getBaseGrandTotal() - ($item->getBaseDiscountAmount() - $baseDiscountBefore)
                    
97                        );
                    
131
                    
132                    $address->setGrandTotal(
                    
133                        $address->getGrandTotal() - ($item->getDiscountAmount() - $discountBefore)
                    
134                    );
                    
135                    $address->setBaseGrandTotal(
                    
136                        $address->getBaseGrandTotal() - ($item->getBaseDiscountAmount() - $baseDiscountBefore)
                    
192
                    
193        $address->setGrandTotal($address->getGrandTotal() + $address->getTaxAmount());
                    
194        $address->setBaseGrandTotal($address->getBaseGrandTotal() + $address->getBaseTaxAmount());
                    
                
portuguese.inc.php https://gitlab.com/endomorphosis/fusenews | PHP | 206 lines
                    
1<?php
                    
2
                    
3// Portuguese language include
                    
4// For version 2.0 PHP iCalendar
                    
5// Translation by  Luciano Antonio Costa (bits.e.bytes@gmail.com)
                    
94$lang['l_location']			= 'Local';
                    
95$lang['l_admin_header']		= 'Administra&ccedil;&atilde;o do PHP iCalendar';
                    
96$lang['l_username']			= 'Usu&aacute;rio';
                    
104$lang['l_cal_file']			= 'Arquivo do Calend&aacute;rio';
                    
105$lang['l_php_error']		= 'Erro do PHP';
                    
106$lang['l_upload_error_gen']	= 'Existe um problem com o upload.';
                    
107$lang['l_upload_error'][0]	= 'Existe um problem com o upload.';
                    
108$lang['l_upload_error'][1]	= 'O arquivo que voc&ecirc; est&aacute; tentando fazer o upload &eacute; muito grande.';
                    
109$lang['l_upload_error'][2]	= 'O arquivo que voc&ecirc; est&aacute; tentando fazer o upload &eacute; muito grande.';
                    
166
                    
167// For time formatting, check out: http://www.php.net/manual/en/function.date.php
                    
168$timeFormat = 'G:i';
                    
                
ContentTranslationWorkflowsTest.php https://gitlab.com/geeta7/drupal | PHP | 258 lines
                    
1<?php
                    
2
                    
66    $values = array(
                    
67      'name' => $this->randomMachineName(),
                    
68      'user_id' => $user->id(),
                    
68      'user_id' => $user->id(),
                    
69      $this->fieldName => array(array('value' => $this->randomMachineName(16))),
                    
70    );
                    
                
QueryTrait.php https://gitlab.com/piotrbilski/yiiPriceWatcher | PHP | 391 lines
                    
41     * can be either [SORT_ASC](http://php.net/manual/en/array.constants.php#constant.sort-asc)
                    
42     * or [SORT_DESC](http://php.net/manual/en/array.constants.php#constant.sort-desc).
                    
43     * The array may also contain [[Expression]] objects. If that is the case, the expressions
                    
130    /**
                    
131     * Sets the WHERE part of the query but ignores [[isEmpty()|empty operands]].
                    
132     *
                    
166    /**
                    
167     * Adds an additional WHERE condition to the existing one but ignores [[isEmpty()|empty operands]].
                    
168     * The new condition and the existing one will be joined using the 'AND' operator.
                    
189    /**
                    
190     * Adds an additional WHERE condition to the existing one but ignores [[isEmpty()|empty operands]].
                    
191     * The new condition and the existing one will be joined using the 'OR' operator.
                    
234
                    
235        // operator format: operator, operand 1, operand 2, ...
                    
236
                    
                
readme.html http://pumpmyvote.googlecode.com/svn/trunk/ | HTML | 98 lines
                    
26    <li>Site adresinizi web taray?c?n?z?n adres sat?r?na yaz?n.</li>
                    
27    <li>Ekrandaki talimatlar? takip ederek kurulumu tamamlayabilirsiniz. Kurulumdan önce <code>wp-config.php</code> dosyas? olu?turulacak. Baz? durumlarda bu dosya otomatik olarak olu?turulam?yor. E?er böyle bir durumla kar??la??rsan?z, elle olu?turman?z gerekir. Bunun için bir metin editörüyle <code>wp-config-sample.php</code> dosyas?n? aç?n ve veritaban? bilgilerinizi girin. Dosyay? <code>wp-config.php</code> olarak kaydedin ve sunucuya yükleyin, sonras?nda kuruluma ba?lay?n.
                    
28	<li><strong>Kurulumun sonunda verilen parolay? saklay?n.</strong></li>
                    
28	<li><strong>Kurulumun sonunda verilen parolay? saklay?n.</strong></li>
                    
29	<li> Kurulumun sonunda <a href="wp-login.php">giri? sayfas?na</a> gitmelisiniz. <code>admin</code> kullan?c? ad? ve kurulumda verilen parolayla giri? yap?n. Yönetim paneline girince Profil menüsünden parolan?z? de?i?tirebilirsiniz.</li>
                    
30</ol>
                    
37	<li>Yeni dosyalar? sunucunuza gönderin</li>
                    
38	<li>Web taray?c?n?za site adresinizden sonra <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a></span> yaz?n, ve yükseltmeyi yap?n.</li>
                    
39	<li>Hepsi bu kadar!</li>
                    
63<ul>
                    
64	<li>PHP sürüm <strong>4.3 </strong> ve üstü</li>
                    
65	<li>MySQL sürüm <strong>4.1.2</strong> ve üstü</li>
                    
77<h1>E-posta ile yazma</h1>
                    
78<p>Bir posta sunucusu kullanarak blogunuza yaz? ekleyebilirsiniz! Bunu ayarlamak için Yönetim panelinizde &quot;Tercihler&quot; menüsündeki &quot;Yazma&quot; sekmesini aç?n ve POP3 hesab?n?z?n ba?lant? detaylar?n? girin. Sonra posta kutusunun yeni yaz?lar için periyodik olarak kontrol edilmesi için <code>wp-mail.php</code>'yi ayarlamal?s?n?z. Bunu Cron-jobs ile yapabilirsiniz, veya sunucunuz desteklemiyorsa çok say?da website-monitoring servislerinden birinin <code>wp-mail.php</code> URL'nizi kontrol etmesini sa?layabilirsiniz.</p>
                    
79<p>Yaz? göndermek çok kolay: Belirledi?iniz adrese gönderilen tüm e-postalar yaz? olarak blogunuza eklenir, e-postan?n konusu yaz?n?n ba?l??? olur. Bu adresi gizli tutman?z tavsiye edilir. Araç ba?ar?l? bir ?ekilde gönderilen postalar? <em>siler</em>.</p>
                    
                
Address.php https://gitlab.com/PragmaticLinux/Yii | PHP | 137 lines
                    
1<?php
                    
2
                    
82    {
                    
83        return static::randomElement(static::$streetPrefix);
                    
84    }
                    
86    /**
                    
87     * Randomly returns a french region.
                    
88     *
                    
94    {
                    
95        return static::randomElement(static::$regions);
                    
96    }
                    
98    /**
                    
99     * Randomly returns a french department ('departmentNumber' => 'departmentName').
                    
100     *
                    
106    {
                    
107        return static::randomElement(static::$departments);
                    
108    }
                    
                
theme.less https://gitlab.com/Mirros/cdnjs | LESS | 329 lines
                    
3 To create your own theme, modify the code below and run it through
                    
4 a LESS compiler, like this one: http://leafo.net/lessphp/editor.html
                    
5 or download less.js from http://lesscss.org/
                    
25@headerBackground      : hsl(120, 60%, 75%);
                    
26@borderAndBackground   : #cdcdcd;
                    
27@overallBorder         : @borderAndBackground 1px solid;
                    
135	font: @tableBodyFont;
                    
136	background-color: @borderAndBackground;
                    
137	margin: 10px 0 15px;
                    
                
DateTimeItemTest.php git://github.com/drupal/drupal.git | PHP | 353 lines
                    
1<?php
                    
2
                    
12use Drupal\field\Entity\FieldStorageConfig;
                    
13use PHPUnit\Framework\AssertionFailedError;
                    
14
                    
74    $entity->field_datetime = $value;
                    
75    $entity->name->value = $this->randomMachineName();
                    
76    $this->entityValidateAndSave($entity);
                    
118    $entity->field_datetime = $value;
                    
119    $entity->name->value = $this->randomMachineName();
                    
120    $this->entityValidateAndSave($entity);
                    
                
SectionCorp.php https://code.google.com/p/yapeal/ | PHP | 364 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
6 *
                    
7 * LICENSE: This file is part of Yet Another Php Eve Api library also know
                    
8 * as Yapeal which will be used to refer to it in the rest of this license.
                    
41  $mess = basename(__FILE__)
                    
42    . ' must be included it can not be ran directly.' . PHP_EOL;
                    
43  if (PHP_SAPI != 'cli') {
                    
64  /**
                    
65   * Function called by  Yapeal.php to start section pulling XML from servers.
                    
66   *
                    
95      };
                    
96      // Randomize order so no one corporation can starve the rest in case of
                    
97      // errors, etc.
                    
                
grid.locale-hr.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 179 lines
                    
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
                    
35		groupOps: [	{ op: "I", text: "sve" },	{ op: "ILI",  text: "bilo koji" }	],
                    
36		operandTitle : "Click to select search operation.",
                    
37		resetTitle : "Reset Search Value"
                    
119			masks : {
                    
120				// see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
                    
121				// and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
                
basereport.php https://gitlab.com/alexprowars/bitrix | PHP | 535 lines
                    
1<?php
                    
2
                    
185	{
                    
186		$pseudoReportId = '_pseudo' . randString(4);
                    
187		$result = array();
                    
                
ScoutControllerRaider.java git://pkgs.fedoraproject.org/spring | Java | 280 lines
                    
18// You can find the licence also on the web at:
                    
19// http://www.opensource.org/licenses/gpl-license.php
                    
20//
                    
65
                    
66   Random random;
                    
67
                    
79
                    
80      random = new Random();
                    
81
                    
154      TerrainPos destination = new TerrainPos();
                    
155      destination.x = random.nextFloat() * aicallback.getMap().getWidth() * maps.getMovementMaps().SQUARE_SIZE;
                    
156      destination.z = random.nextFloat() * aicallback.getMap().getHeight() * maps.getMovementMaps().SQUARE_SIZE;
                    
                
captcha_helper.php https://gitlab.com/exabyte-lab/tiffinbox | PHP | 341 lines
                    
138					{
                    
139						$word .= $pool[random_int(0, $rand_max)];
                    
140					}
                    
184						{
                    
185							if (($bytes = $security->get_random_bytes($pool_length)) === FALSE)
                    
186							{
                    
202					list(, $rand_index) = unpack('C', $bytes[$byte_index++]);
                    
203					if ($rand_index > $rand_max)
                    
204					{
                    
217			{
                    
218				$word .= $pool[mt_rand(0, $rand_max)];
                    
219			}
                    
231		$x_axis	= mt_rand(6, (360/$length)-16);
                    
232		$y_axis = ($angle >= 0) ? mt_rand($img_height, $img_width) : mt_rand(6, $img_height);
                    
233
                    
                
skylinewebcamscom.py https://gitlab.com/zatoshi/iptvplayer-for-e2 | Python | 206 lines
                    
21import urllib
                    
22import random
                    
23import string
                    
76        printDBG("WkylinewebcamsCom.getMainMenu")
                    
77        STATIC_TAB = [{'title':_('NEW'),           'url':self.getFullUrl('/skyline/morewebcams.php?w=new&l='+self.lang), 'cat':'list_cams2'},
                    
78                      {'title':_('NEARBY CAMS'),   'url':self.getFullUrl('/skyline/morewebcams.php?w=you&l='+self.lang), 'cat':'list_cams2'},
                    
196            urlsTab = getDirectM3U8Playlist(url)
                    
197        data = self.cm.ph.getSearchGroups(data, '''href=['"]([^"^']+?/timelapse\.php[^"^']*?)['"][^>]+?title=['"]([^'^"]+?)['"]''', 2, True)
                    
198        name = data[1]
                    
                
yii.php https://gitlab.com/piotrbilski/yiiPriceWatcher | PHP | 114 lines
                    
1<?php
                    
2/**
                    
75    'The file "{file}" is not an image.' => 'Il file "{file}" non è una immagine.',
                    
76    'The file "{file}" is too big. Its size cannot exceed {formattedLimit}.' => 'Il file "{file}" è troppo grande. La dimensione non può superare i {formattedLimit}.',
                    
77    'The file "{file}" is too small. Its size cannot be smaller than {formattedLimit}.' => 'Il file "{file}" è troppo piccolo. La dimensione non può essere inferiore a {formattedLimit}.',
                    
78    'The format of {attribute} is invalid.' => 'Il formato di {attribute} non è valido.',
                    
79    'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'L\'immagine "{file}" è troppo grande. La sua altezza non può essere maggiore di {limit, number} {limit, plural, one{pixel} other{pixel}}.',
                    
80    'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'L immagine "{file}" è troppo grande. La sua larghezza non può essere maggiore di {limit, number} {limit, plural, one{pixel} other{pixel}}.',
                    
                
grid.locale-pt-br.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 153 lines
                    
13 * Dual licensed under the MIT and GPL licenses:
                    
14 * http://www.opensource.org/licenses/mit-license.php
                    
15 * http://www.gnu.org/licenses/gpl.html
                    
44	    groupOps: [	{ op: "AND", text: "todos" },{ op: "OR",  text: "qualquer um" }	],
                    
45		operandTitle : "Click to select search operation.",
                    
46		resetTitle : "Reset Search Value"
                    
                
grid.locale-pt.js https://gitlab.com/Mirros/cdnjs | JavaScript | 164 lines
                    
4 * Dual licensed under the MIT and GPL licenses:
                    
5 * http://www.opensource.org/licenses/mit-license.php
                    
6 * http://www.gnu.org/licenses/gpl.html
                    
53		],
                    
54		operandTitle: "Click to select search operation.",
                    
55		resetTitle: "Reset Search Value"
                    
                
grid.locale-fi.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 145 lines
                    
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
                    
35	    groupOps: [	{ op: "AND", text: "kaikki" }, { op: "OR", text: "mik&auml; tahansa" }	],
                    
36		operandTitle : "Click to select search operation.",
                    
37		resetTitle : "Reset Search Value"		
                    
                
grid.locale-sk.js https://gitlab.com/Mirros/cdnjs | JavaScript | 144 lines
                    
3 * Milan Cibulka
                    
4 * http://trirand.com/blog/ 
                    
5 * Dual licensed under the MIT and GPL licenses:
                    
5 * Dual licensed under the MIT and GPL licenses:
                    
6 * http://www.opensource.org/licenses/mit-license.php
                    
7 * http://www.gnu.org/licenses/gpl.html
                    
34	    groupOps: [	{ op: "AND", text: "všetkých" },	{ op: "OR",  text: "niektorého z" }	],
                    
35		operandTitle : "Click to select search operation.",
                    
36		resetTitle : "Reset Search Value"
                    
                
Adminhtml.php https://gitlab.com/yousafsyed/easternglamor | PHP | 187 lines
                    
21
                    
22    /** @var  \PHPUnit_Framework_MockObject_MockObject */
                    
23    protected $_sessionMock;
                    
24
                    
25    /** @var  \PHPUnit_Framework_MockObject_MockObject */
                    
26    protected $_sidResolver;
                    
27
                    
28    /** @var  \PHPUnit_Framework_MockObject_MockObject */
                    
29    protected $_translatorMock;
                    
51
                    
52    /** @var  \PHPUnit_Framework_MockObject_MockObject */
                    
53    protected $_loggerMock;
                    
66
                    
67    /** @var  \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Math\Random */
                    
68    protected $_mathMock;
                    
                
utility.js http://ozgb2c-ruby-on-rails.googlecode.com/svn/trunk/ | JavaScript | 493 lines
                    
51//??????
                    
52function getRandomColor(){
                    
53    //16????????0-F
                    
58		//??0-15???????
                    
59		index = Math.round(Math.random() * 15);
                    
60		strHex += arrHex[index];
                    
68    var tmpHPage = thisHREF.split( "/" ); 
                    
69    var thisHPage = tmpHPage[ tmpHPage.length-1 ];
                    
70    thisHPage=thisHPage.substring(0,thisHPage.indexOf("?"))
                    
478    var datum = new Date(Date.UTC(arr[0], arr[1] - 1, arr[2], arr[3] - 8, arr[4], arr[5]));
                    
479    return (datum.getTime() / 1000);  //?PHP??
                    
480}
                    
                
 

Source

Language