PageRenderTime 2723ms queryTime 402ms sortTime 462ms getByIdsTime 167ms findMatchingLines 108ms

100+ results results for 'php main' (2723 ms)

Not the results you expected?
VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
                    
1<?php
                    
2
                    
42        $a = null;                      // Array cast for nested structures
                    
43        $stub = null;                   // Stub capturing the main properties of an original item value
                    
44                                        // or null if the original value is used directly
                    
44                                        // or null if the original value is used directly
                    
45        $zval = array(                  // Main properties of the current value
                    
46            'type' => null,
                    
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;
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
1<?php
                    
2/**
                    
4 * @package bitrix
                    
5 * @subpackage main
                    
6 * @copyright 2001-2014 Bitrix
                    
8
                    
9namespace Bitrix\Main\Analytics;
                    
10use Bitrix\Catalog\CatalogViewedProductTable;
                    
10use Bitrix\Catalog\CatalogViewedProductTable;
                    
11use Bitrix\Main\Application;
                    
12use Bitrix\Main\Config\Option;
                    
12use Bitrix\Main\Config\Option;
                    
13use Bitrix\Main\Context;
                    
14use Bitrix\Main\Event;
                    
14use Bitrix\Main\Event;
                    
15use Bitrix\Main\Loader;
                    
16use Bitrix\Main\UserTable;
                    
                
InstallSchema.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 407 lines
                    
1<?php
                    
2/**
                    
8
                    
9use Magento\Framework\Setup\InstallSchemaInterface;
                    
10use Magento\Framework\Setup\ModuleContextInterface;
                    
15 */
                    
16class InstallSchema implements InstallSchemaInterface
                    
17{
                    
19     * {@inheritdoc}
                    
20     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
21     */
                    
                
Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 512 lines
                    
1<?php
                    
2
                    
108     *
                    
109     * This is mainly useful when a lot of commands extends one main command
                    
110     * where some things need to be initialized based on the input arguments and options.
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
                
lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
                    
1<?php
                    
2
                    
141        'sender_email' => 'Avsändarens e-postadress',
                    
142        'php_mail' => 'PHP mail',
                    
143        'smtp' => 'SMTP',
                    
158        'mailgun' => 'Mailgun',
                    
159        'mailgun_domain' => 'Mailgun domän',
                    
160        'mailgun_domain_comment' => 'Vänligen ange Mailgun domännamnet.',
                    
                
Profiles.php https://gitlab.com/gregtyka/opensis | PHP | 258 lines
                    
1<?php
                    
2#**************************************************************************
                    
65	{
                    
66		$file = 'Students/Student.php&category_id='.$category['ID'];
                    
67		$tmp_menu['Students'][$xprofile][$file] = ' &nbsp; &nbsp; &rsaquo; '.$category['TITLE'];
                    
71	{
                    
72		$file = 'Users/User.php&category_id='.$category['ID'];
                    
73		$tmp_menu['Users'][$xprofile][$file] = ' &nbsp; &nbsp; &rsaquo; '.$category['TITLE'];
                    
128PopTable('header','Permissions');
                    
129	echo "<FORM name=pref_form id=pref_form action=Modules.php?modname=$_REQUEST[modname]&modfunc=update&profile_id=$_REQUEST[profile_id] method=POST>";
                    
130	DrawHeaderHome('Select the programs that users of this profile can use and which programs those users can use to save information.');
                    
143		if($_REQUEST['profile_id']!='' && $id==$_REQUEST['profile_id'])
                    
144			echo '<TR id=selected_tr onmouseover="" onmouseout="" bgcolor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",20):'').'</TD><TD '.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
145		else
                    
145		else
                    
146			echo '<TR onmouseover=\'this.style.backgroundColor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\' onmouseout=\'this.style.cssText="background-color:transparent; color:black;";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",15):'').'</TD><TD'.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
147		echo '<b><a style="cursor: pointer; cursor:hand; text-decoration:none;">'.($id>3?'':'<b>').$profile[1]['TITLE'].($id>3?'':'</b>').'</a></b> &nbsp;';
                    
                
about.html https://gitlab.com/adrian.io/ide | HTML | 275 lines
                    
16		Eclipse Public License Version 1.0 (&quot;EPL&quot;).  A copy of the EPL is available 
                    
17		at <a href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/legal/epl-v10.html</a>.
                    
18		For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
                    
123      represent, as a whole, an original work of authorship. For the purposes
                    
124      of this License, Derivative Works shall not include works that remain
                    
125      separable from, or merely link (or bind by name) to the interfaces of,
                    
                
WebformSettingsForm.php https://gitlab.com/guillaumev/alkarama | PHP | 334 lines
                    
1<?php
                    
2
                    
72      '#default_value' => $config->get('email.default_from_address'),
                    
73      '#description' => t('The default sender address for emailed webform results; often the e-mail address of the maintainer of your forms.'),
                    
74    );
                    
93      '#default_value' => $config->get('email.replyto'),
                    
94      '#description' => t('Sends all e-mail from the domain of the default address above and sets the "Reply-To" header to the actual sender. Helps prevent e-mail from being flagged as spam.'),
                    
95    );
                    
                
rewrite.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 425 lines
                    
1<?php
                    
2
                    
23	/**
                    
24	 * Contain the main rewrite structure
                    
25	 *
                    
53
                    
54        // setup the main rewrite structure for the plugin
                    
55        $this->ngg_rules = array(
                    
113
                    
114			// 1. Post / Page url + main slug
                    
115            $url = trailingslashit ( get_permalink ($post->ID) ) . $this->slug; 
                    
211		//TODO: I could parse for the Picture name , gallery etc, but this increase the queries
                    
212		//TODO: Class nggdb need to cache the query for the nggfunctions.php
                    
213
                    
273	/**
                    
274	 * Mainly a copy of the same function in wp-includes\rewrite.php
                    
275     * Adding the NGG tags to each post & page. Never found easier and proper way to handle this with other functions.
                    
                
Ntp.php https://github.com/Exercise/zf2.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
294         * Except in broadcast mode, an NTP association is formed when two peers
                    
295         * exchange messages and one or both of them create and maintain an
                    
296         * instantiation of the protocol machine, called an association.
                    
                
tcp_cubic.c https://gitlab.com/karrei/inel-imx6-kernel | C | 497 lines
                    
3 * Home page:
                    
4 *      http://netsrv.csc.ncsu.edu/twiki/bin/view/Main/BIC
                    
5 * This is from the implementation of CUBIC TCP in
                    
19 * All testing results are available from:
                    
20 * http://netsrv.csc.ncsu.edu/wiki/index.php/TCP_Testing
                    
21 *
                    
                
index.php https://gitlab.com/Nilufarjahan/LabExam8 | PHP | 455 lines
                    
140            <li>
                    
141                <a href="../Birthday/index.php">
                    
142                    <span class="title">View List</span>
                    
153            <li>
                    
154                <a href="../Email/create.php">
                    
155                    <span class="title">Add New</span>
                    
258</div><!--/.sidebar-->
                    
259<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
                    
260    <div class="row">
                    
328                                <td><?php echo $oneData->birthday?></td>
                    
329                                <?php  echo "<td> <a href=\"edits.php?id=$oneData->id\"class=\"btn btn-info\" role=\"button\">Edit</a>  ";?>
                    
330                                <?php  echo " <a href=\"delete.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Delete</a> ";?>
                    
331                            
                    
332                                <?php  echo " <a href=\"trash.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Trash</a> </td> ";?>
                    
333                            </tr>
                    
                
hostkreskoweczki.py https://gitlab.com/Ghoz/iptvplayer-for-e2 | Python | 318 lines
                    
31###################################################
                    
32from Plugins.Extensions.IPTVPlayer.components.asynccall import MainSessionWrapper
                    
33from Screens.MessageBox import MessageBox
                    
60        self.MAIN_URL      = 'http://www.kreskoweczki.pl/'
                    
61        self.SEARCH_URL    = self.MAIN_URL + 'search.php?keywords='
                    
62        self.DEFAULT_ICON  = "http://www.kreskoweczki.pl/uploads/custom-logo.png"
                    
63
                    
64        self.MAIN_CAT_TAB = [{'icon':self.DEFAULT_ICON, 'category':'list_abc',        'title': 'Alfabetycznie',   'url':self.MAIN_URL + 'index.html'},
                    
65                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Ostatnio dodane', 'url':self.MAIN_URL + 'index.html'},
                    
65                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Ostatnio dodane', 'url':self.MAIN_URL + 'index.html'},
                    
66                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Anime',           'url':self.MAIN_URL + 'typ/anime/'},
                    
67                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Bajki',           'url':self.MAIN_URL + 'typ/toon/'},
                    
67                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Bajki',           'url':self.MAIN_URL + 'typ/toon/'},
                    
68                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Seriale',         'url':self.MAIN_URL + 'typ/serial/'},
                    
69                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Pozostałe',       'url':self.MAIN_URL + 'typ/pozostale/'},
                    
                
RouteCollectionBuilderTest.php https://gitlab.com/ealexis.t/trends | PHP | 324 lines
                    
1<?php
                    
2
                    
18
                    
19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
206        $this->assertEquals(array('POST'), $actualListRoute->getMethods());
                    
207        // inherited from the main collection
                    
208        $this->assertEquals('fr', $actualListRoute->getDefault('_locale'));
                    
257
                    
258        $routes->add('homepage', 'MainController::homepageAction', 'homepage');
                    
259
                    
                
ee374469f3039f2afc01916b1c6255a7d0864358.file.view-registration.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 260 lines
                    
148</option>
                    
149              <option value="DN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DN'){?> selected <?php }?>><?php echo @LBL_DANISH;?>
                    
150</option>
                    
150</option>
                    
151              <option value="FI" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FI'){?> selected <?php }?>><?php echo @LBL_FINISH;?>
                    
152</option>
                    
152</option>
                    
153              <option value="FN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FN'){?> selected <?php }?>><?php echo @LBL_FRENCH;?>
                    
154</option>
                    
160</option>
                    
161              <option value="DE" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DE'){?> selected <?php }?>><?php echo @LBL_GERMAN;?>
                    
162</option>
                    
168</option>
                    
169              <option value="ES" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='ES'){?> selected <?php }?>><?php echo @LBL_SPANISH;?>
                    
170</option>
                    
                
Files.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 311 lines
                    
1<?php
                    
2/*
                    
44   * folders is no longer supported. Use shortcuts instead.
                    
45   * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
                    
46   * default visibility settings for the created file. Domain administrators can
                    
46   * default visibility settings for the created file. Domain administrators can
                    
47   * choose to make all uploaded files visible to the domain by default; this
                    
48   * parameter bypasses that behavior for the request. Permissions are still
                    
76   * folders is no longer supported.
                    
77   * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
                    
78   * default visibility settings for the created file. Domain administrators can
                    
78   * default visibility settings for the created file. Domain administrators can
                    
79   * choose to make all uploaded files visible to the domain by default; this
                    
80   * parameter bypasses that behavior for the request. Permissions are still
                    
205   * directly with the user), 'drive' (files in the specified shared drive as
                    
206   * indicated by the 'driveId'), 'domain' (files shared to the user's domain),
                    
207   * and 'allDrives' (A combination of 'user' and 'drive' for all drives where the
                    
                
user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
                    
1<?php
                    
2/**
                    
195$_lang['user_updated_password_message'] = 'The User has been updated. The password is: [[+password]]';
                    
196$_lang['user_upload_message'] = 'If you wish to stop this user uploading any filetypes in this category, make sure that the \'Use Main Configuration Setting\' checkbox is not ticked and leave the field blank.';
                    
197$_lang['user_use_config'] = 'Use System Configuration Setting';
                    
                
class-wp-terms-list-table.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 454 lines
                    
1<?php
                    
2/**
                    
185
                    
186			// Some funky recursion to get the job done( Paging & parents mainly ) is contained within, Skip it for non-hierarchical taxonomies for performance sake
                    
187			$this->_rows( $taxonomy, $terms, $children, $offset, $number, $count );
                    
298		if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
                    
299			$actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
                    
300		if ( $tax->public )
                    
331
                    
332		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
333		$out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
                    
343	function column_slug( $tag ) {
                    
344		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
345		return apply_filters( 'editable_slug', $tag->slug );
                    
366		if ( 'attachment' == $this->screen->post_type )
                    
367			return "<a href='" . esc_url ( add_query_arg( $args, 'upload.php' ) ) . "'>$count</a>";
                    
368
                    
                
CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Created by PhpStorm.
                    
4 * User: THANH
                    
8class CheckOut extends Controller {
                    
9    public function Main(){
                    
10        if(isset($_SESSION['cart'])){
                    
23            else {
                    
24                header('Location:'.APP_DOMAIN);
                    
25            }
                    
27        else {
                    
28            header('Location:'.APP_DOMAIN);
                    
29        }
                    
45                    if(G::$Authorized->CheckLogin($username, $password)){
                    
46                        header('Location:'.'/CheckOut/Main');
                    
47                    }
                    
                
index.php https://github.com/tlezotte/HCR.git | PHP | 342 lines
                    
4 *
                    
5 * index.php main file for RSS section.
                    
6 *
                    
46
                    
47<html><!-- InstanceBegin template="/Templates/vnmain.dwt.php" codeOutsideHTMLIsLocked="false" -->
                    
48  <head>
                    
177				  ?>
                    
178				  <div align="right" class="FieldNumberDisabled"><strong><?= $language['label']['welcome']; ?> <a href="../../Administration/user_information.php" class="FieldNumberDisabled" <?php help('', 'Edit your user information', 'default'); ?>><?= ucwords(strtolower($_SESSION['fullname'])); ?></a></strong>&nbsp;&nbsp;<a href="../../logout.php" class="FieldNumberDisabled" <?php help('', 'Selecting [logout] will Log you out of the '.$default[title1].' and stop automatic cookie login', 'default'); ?>>[logout]</a>&nbsp;</div>
                    
179				  <?php
                    
239                    <tr>
                    
240                      <td class="mainsection"><a href="overview.php" class="dark">Overview</a></td>
                    
241                    </tr>
                    
310              <tr>
                    
311                <td width="50%" nowrap><!-- InstanceBeginEditable name="copyright" --><?php include('../include/copyright.php'); ?><!-- InstanceBeginEditable --></td>
                    
312                <td width="50%"><div id="noPrint" align="right"><!-- InstanceBeginEditable name="version" --><!-- InstanceEndEditable --></div></td>
                    
                
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
1<?php
                    
2/**
                    
72        'website_ids' => [
                    
73            'Main Website' => 1
                    
74        ],
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
345     *
                    
346     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
347     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
modules-defaults.php https://gitlab.com/Magi1053/Extra | PHP | 250 lines
                    
1<?php
                    
2// Prevent file from being loaded directly
                    
26
                    
27		'et_pb_posts-main_title_font_size'                        => '16px',
                    
28		'et_pb_posts-main_title_font_style'                       => '',
                    
28		'et_pb_posts-main_title_font_style'                       => '',
                    
29		'et_pb_posts-main_title_text_color'                       => 'rgba(0,0,0,0.75)',
                    
30		'et_pb_posts-main_title_line_height'                      => '1.3em',
                    
30		'et_pb_posts-main_title_line_height'                      => '1.3em',
                    
31		'et_pb_posts-main_title_letter_spacing'                   => '0.5px',
                    
32
                    
32
                    
33		'et_pb_posts-main_meta_font_size'                         => '12px',
                    
34		'et_pb_posts-main_meta_font_style'                        => '',
                    
34		'et_pb_posts-main_meta_font_style'                        => '',
                    
35		'et_pb_posts-main_meta_text_color'                        => 'rgba(0, 0, 0, 0.5)',
                    
36		'et_pb_posts-main_meta_line_height'                       => '1.7em',
                    
                
COOKBOOK-FIXERS.md https://gitlab.com/yousafsyed/easternglamor | Markdown | 466 lines
                    
9In order to be able to create a new fixer, you need some background.
                    
10PHP CS Fixer is a transcompiler which takes valid PHP code and pretty
                    
11print valid PHP code. It does all transformations in multiple passes,
                    
23If possible, try to get acquainted with the public interface for the
                    
24[Symfony/CS/Tokenizer/Tokens.php](Symfony/CS/Tokenizer/Tokens.php)
                    
25and [Symfony/CS/Tokenizer/Token.php](Symfony/CS/Tokenizer/Token.php)
                    
30* You are familiar with Test Driven Development.
                    
31* Forked FriendsOfPHP/PHP-CS-Fixer into your own Github Account.
                    
32* Cloned your forked repository locally.
                    
32* Cloned your forked repository locally.
                    
33* Downloaded PHP CS Fixer and have executed `php composer.phar
                    
34install`.
                    
47Create a new file in
                    
48`PHP-CS-Fixer/Symfony/CS/Fixer/Contrib/RemoveCommentsFixer.php`.
                    
49Put this content inside:
                    
                
Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 576 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 */
                    
252     *
                    
253     * @param string $uri uri relative to host, ex. "/index.php"
                    
254     */
                    
319     * Get cookies array with details
                    
320     * (domain, expire time etc)
                    
321     * @return array
                    
                
search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
                    
1<?php
                    
2/**
                    
7 */
                    
8namespace Bitrix\Socialnetwork\Integration\Main\UISelector;
                    
9
                    
9
                    
10use Bitrix\Main\Localization\Loc;
                    
11use Bitrix\Main\Event;
                    
11use Bitrix\Main\Event;
                    
12use Bitrix\Main\EventResult;
                    
13use Bitrix\Main\Loader;
                    
13use Bitrix\Main\Loader;
                    
14use Bitrix\Main\ModuleManager;
                    
15
                    
53
                    
54				$userList = \Bitrix\Main\UserTable::getList(array(
                    
55					"select" => array("ID", "XML_ID"),
                    
                
template.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
                    
4
                    
5use Bitrix\Main,
                    
6	Bitrix\Main\Localization\Loc;
                    
7
                    
8\Bitrix\Main\UI\Extension::load("ui.bootstrap4");
                    
9
                    
12Loc::loadMessages(__FILE__);
                    
13?><div class="container-fluid"><?php
                    
14if (!empty($arResult['ERRORS']['FATAL']))
                    
393		$javascriptParams = array(
                    
394			"url" => CUtil::JSEscape($this->__component->GetPath().'/ajax.php'),
                    
395			"templateFolder" => CUtil::JSEscape($templateFolder),
                    
399		);
                    
400		$javascriptParams = CUtil::PhpToJSObject($javascriptParams);
                    
401		?>
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
                    
1<?php
                    
2
                    
2
                    
3use Bitrix\Main,
                    
4	Bitrix\Sale,
                    
5	Bitrix\Currency,
                    
6	Bitrix\Main\Localization\Loc,
                    
7	Bitrix\Main\Loader,
                    
8	Bitrix\Sale\PaySystem,
                    
9	Bitrix\Main\Application;
                    
10
                    
20{
                    
21	/** @var  Main\ErrorCollection $errorCollection*/
                    
22	protected $errorCollection;
                    
34	{
                    
35		$this->errorCollection = new Main\ErrorCollection();
                    
36
                    
                
AclVoterTest.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 432 lines
                    
1<?php
                    
2
                    
16use Symfony\Component\Security\Acl\Exception\AclNotFoundException;
                    
17use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
                    
18use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
                    
18use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
                    
19use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
                    
20use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
                    
22
                    
23class AclVoterTest extends \PHPUnit_Framework_TestCase
                    
24{
                    
                
ThreeZero.php https://github.com/ksecor/civicrm.git | PHP | 271 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Upgrade/Form.php';
                    
37require_once 'CRM/Core/OptionGroup.php';
                    
37require_once 'CRM/Core/OptionGroup.php';
                    
38require_once 'CRM/Core/OptionValue.php';
                    
39
                    
52        // check table-column, if the db is 3.0 
                    
53        if ( CRM_Core_DAO::checkFieldExists( 'civicrm_menu',     'domain_id'   ) &&
                    
54             CRM_Core_DAO::checkFieldExists( 'civicrm_event',    'created_id'  ) &&
                    
94        if (!CRM_Core_DAO::checkFieldExists('civicrm_report_instance', 'description')) {
                    
95            require_once 'CRM/Core/DAO/Domain.php';
                    
96            $domain = new CRM_Core_DAO_Domain;
                    
96            $domain = new CRM_Core_DAO_Domain;
                    
97            $domain->find(true);
                    
98            $locales = explode(CRM_Core_DAO::VALUE_SEPARATOR, $domain->locales);
                    
                
Tab.php https://github.com/ksecor/civicrm.git | PHP | 344 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Contact/Page/View.php';
                    
37
                    
94    {
                    
95        require_once 'CRM/Contribute/BAO/Contribution.php';
                    
96
                    
205    /**
                    
206     * This function is the main function that is called when the page
                    
207     * loads, it decides the which action has to be taken for the page.
                    
                
group___e_e_p_r_o_m.html https://github.com/nfox/team_252_10-11.git | HTML | 263 lines
                    
16  <tr bgcolor="#cccc99" align="right"> 
                    
17          <td colspan=3> <font face="arial" size="-1"> [<a href=main.html>Home</a>] [<a target=_top href="https://sourceforge.net/projects/rdpartyrobotcdr/">Download</a>] [<a target=_top href="http://apps.sourceforge.net/mantisbt/rdpartyrobotcdr/my_view_page.php">Submit a bug/suggestion</a>]  [<a target=_top href="http://www.robotc.net/forums/">ROBOTC Forums</a>] [<a href="http://mightor.wordpress.com">Blog</a>] [<a target=_top href="http://sourceforge.net/donate/index.php?group_id=257238">Support this project</a>]</font> </td> 
                    
18</tr> 
                    
                
TrustRoot.php https://github.com/kbjr/EasyOpenID.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
14
                    
15require_once OPENID_DIRECTORY.'Auth/OpenID/Discover.php';
                    
16
                    
17/**
                    
18 * A regular expression that matches a domain ending in a top-level domains.
                    
19 * Used in checking trust roots for sanity.
                    
74
                    
75            $www_domain = 'www' . $parsed['host'];
                    
76
                    
180     * A trust root is sane if it is syntactically valid and it has a
                    
181     * reasonable domain name. Specifically, the domain name must be
                    
182     * more than one level below a standard TLD or more than two
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * WPBakery Visual Composer Main manager.
                    
4 *
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
541	/**
                    
542	 * Sorting method for WPBMap::generateUserData method. Called by usort php function.
                    
543	 * @deprecated - use Vc_Sort::sortByKey since 4.4
                    
                
2012-01-202.html https://gitlab.com/bernagg/TI | HTML | 359 lines
                    
6<Title>YouTube to MP3 Converter - YoutubeMP3.tv</Title>
                    
7<link rel="stylesheet" type="text/css" href="http://youtubemp3.tv/main.css">
                    
8<!--script language="JavaScript" type="text/javascript" CHARSET="UTF-8" src="http://youtubemp3.tv/jquery-1.4.2.min.js"></script-->
                    
44			<tr><td width="100%"></td><td>
                    
45			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FYoutubeMP3tv%2F220993711269458&amp;width=270&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false&amp;height=62&amp;layout=button_count" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:270px; height:21px;" allowTransparency="true"></iframe>
                    
46			<!-- <iframe src="http://www.facebook.com/plugins/like.php?app_id=147297765356025&amp;href=http%3A%2F%2Fyoutubemp3.tv%2F&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe> -->
                    
242
                    
243	<div class="box_main">
                    
244		<div class="title">
                    
252
                    
253	<div class="box_main">
                    
254		<div class="title">
                    
262
                    
263	<div class="box_main">
                    
264		<div class="title">
                    
                
jqplot.pointLabels.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 362 lines
                    
8 * jqPlot is currently available for use in all personal or commercial projects 
                    
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
14 * know of any substantial use of jqPlot.  You can reach the author at: 
                    
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
                    
16 *
                    
17 * If you are feeling kind and generous, consider supporting the project by
                    
18 * making a donation at: http://www.jqplot.com/donate.php .
                    
19 *
                    
25 *     http://hexmen.com/js/sprintf.js
                    
26 *     The author (Ash Searle) has placed this code in the public domain:
                    
27 *     "This code is unrestricted: you are free to use it however you like."
                    
                
Core.class.php https://gitlab.com/adamlwalker/generatedata | PHP | 511 lines
                    
1<?php
                    
2
                    
13
                    
14	// overridable settings that the user may define in settings.php
                    
15	private static $demoMode = false;	
                    
37	private static $releaseDate = "2014-09-06";
                    
38	private static $minimumPHPVersion = "5.3.0";
                    
39	private static $minimumMySQLVersion = "4.1.3";
                    
46	// left as public, because they're often modified / accessed, and it's just too fussy otherwise. The
                    
47	// PHPDoc helps my IDE figure out what the hell each of them are
                    
48
                    
103	 *          <b>installationDatabaseReady</b>: during installation after the DB has been installed<br />
                    
104	 *          <b>ui</b>:                        (default) for the main generator page<br />
                    
105	 *          <b>generation</b>:                when we're in the process of creating actual data
                    
157	private static function loadSettingsFile() {
                    
158		$settingsFilePath = realpath(__DIR__ . "/../../settings.php");
                    
159		if (file_exists($settingsFilePath)) {
                    
                
store.php https://gitlab.com/reclamare/mao | PHP | 124 lines
                    
1<?php
                    
2// Heading
                    
77// Help
                    
78$_['help_url']                         = 'Включить полный адрес для Вашего магазина. Убедитесь в том, что добавлена \'/\' в конце. Например: http://www.yourdomain.com/path/<br /><br />Не используйте каталоги, чтобы создать новый магазин. Вы должны всегда указывать другой домен или поддомен на вашем хостинге.';
                    
79$_['help_ssl']                         = 'SSL URL в ваш магазин. Убедитесь в том, что добавлена \'/\' в конце. Например: http://www.yourdomain.com/path/<br /><br />Не используйте каталоги, чтобы создать новый магазин. Вы должны всегда указывать другой домен или поддомен на вашем хостинге.';
                    
                
simulator.js https://gitlab.com/gregtyka/Scryve-Webapp | JavaScript | 362 lines
                    
18//            handler: function() {
                    
19//                var events = Ext.getCmp('simulator').getRecorder().getEventSet('main');
                    
20//                console.log(JSON.stringify(events));
                    
21//                Ext.Ajax.request({
                    
22//                    url: '../../dump.php',
                    
23//                    method: 'POST',
                    
140            if (!Ext.get(target).hasCls('recorderButton')) {
                    
141                this.getRecorder().record('main', e);
                    
142            }
                    
171
                    
172            this.getRecorder().start('main');
                    
173            this.recorderEvents.forEach(function(name) {
                    
192
                    
193            window.localStorage.setItem('recordedEvents', JSON.stringify(this.getRecorder().getEventSet('main')));
                    
194        },
                    
                
Network.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 366 lines
                    
1<?php
                    
2
                    
85use pocketmine\utils\Binary;
                    
86use pocketmine\utils\MainLogger;
                    
87
                    
166				if (\pocketmine\DEBUG > 1) {
                    
167					if ($logger instanceof MainLogger) {
                    
168						$logger->logException($e);
                    
262				$logger = $this->server->getLogger();
                    
263				if ($logger instanceof MainLogger) {
                    
264					$logger->debug("BatchPacket " . " 0x" . bin2hex($packet->payload));
                    
297	/**
                    
298	 * Blocks an IP address from the main interface. Setting timeout to -1 will block it forever
                    
299	 *
                    
                
Config.php https://bitbucket.org/webpolis/liiv.git | PHP | 514 lines
                    
1<?php
                    
2/*
                    
22 */
                    
23require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
                    
24/**
                    
26 */
                    
27require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
                    
28/**
                    
30 */
                    
31require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
                    
32/**
                    
34 */
                    
35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php";
                    
36
                    
37/**
                    
38 * Main config parser
                    
39 *
                    
                
pageTranslations.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 217 lines
                    
1<?php
                    
2
                    
12    */
                    
13    'domain'                => 'FastSubtitle.com',
                    
14    'title'                 => 'Fast Subtitle',
                    
                
ZoomPrintController.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 392 lines
                    
29   private EdgesGraphComponent _edgesGraphComponent;
                    
30   private GraphPlugin _plugin;
                    
31   private GraphPrintable _printable;
                    
35
                    
36   public ZoomPrintController(ZoomerXmlBean zoomerXmlBean, PrintXmlBean printXmlBean, EdgesListener edgesListener, GraphPrintable printable, ISession session, GraphPlugin plugin)
                    
37   {
                    
40
                    
41      _panel = new ZoomPrintPanel(new GraphPluginResources(_plugin));
                    
42
                    
223
                    
224            Dimension graphPixelSize = _printable.initPrintNoScaleSinglePage();
                    
225            SaveToFilePageFormat pf = new SaveToFilePageFormat(graphPixelSize);
                    
226
                    
227            BufferedImage img = prepareImage(graphPixelSize.width, graphPixelSize.height);
                    
228            _printable.print(img.getGraphics(), pf, 0);
                    
                
admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
206
                    
207				// Redirect back to the form or main page
                    
208				$input['btnAction'] == 'save_exit'
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
144     *
                    
145     * This method is similar to `var_export()`. The main difference is that
                    
146     * it generates more compact string representation using short array syntax.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
                
Twig.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 420 lines
                    
1<?php
                    
2<<<<<<< HEAD
                    
24 * that is optimized so that it only needs to be initialized once and can be reused for individual
                    
25 * page template rendering as well as the main site template rendering.
                    
26 *
                    
338    /**
                    
339     * Twig process that renders the site layout. This is the main twig process that renders the overall
                    
340     * page and handles all the layout for the site display.
                    
                
OperationResponseParserTest.php https://gitlab.com/fayimora/pp | PHP | 335 lines
                    
1<?php
                    
2
                    
101
                    
102    public function testCanInjectModelSchemaIntoModels()
                    
103    {
                    
293
                    
294    public function testCanAddListenerToParseDomainObjects()
                    
295    {
                    
                
ogniter_default_lang.php https://bitbucket.org/NeoArc/ogniter-language.git | PHP | 355 lines
                    
1<?php
                    
2
                    
4$lang['og_logo_text'] = "ODB";
                    
5$lang['og_domain'] = "Domínio";
                    
6$lang['og_domains'] = "Domínios";
                    
12
                    
13$lang['og_pick_a_domain'] = "Escolha um domínio";
                    
14$lang['og_choose_a_server'] = "Selecione um universo";
                    
23
                    
24$lang['og_home_domain_list'] = 'Lista dos domínios';
                    
25$lang['og_number_of_servers'] = '# de universos registrados';
                    
246
                    
247$lang['title_domain_module'] = 'Ogniter - Universos pertencentes a: ';
                    
248$lang['description_domain_module'] = 'Lista universos Ogame: ';
                    
250
                    
251$lang['title_server_index'] = 'Ogniter. %server% (%domain%)';
                    
252$lang['description_server_index'] = 'Ogame, %server% estatísticas em %domain%';
                    
                
functions.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 376 lines
                    
307		<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title (optional):' ); ?></label> 
                    
308		<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
                    
309		</p>
                    
327        <p><label for="<?php echo $this->get_field_id( 'number' ); ?>"><?php _e( 'Number of feeds to show:' ); ?></label>
                    
328		<input id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p>
                    
329        
                    
333        <p><label for="<?php echo $this->get_field_id( 'feed_words' ); ?>"><?php _e( 'No. of feed words to show:' ); ?></label>
                    
334		<input id="<?php echo $this->get_field_id( 'feed_words' ); ?>" name="<?php echo $this->get_field_name( 'feed_words' ); ?>" type="text" value="<?php echo $feed_words; ?>" size="3" /></p>
                    
335        
                    
336        <p><label for="<?php echo $this->get_field_id( 'content_height' ); ?>"><?php _e( 'Widget Height:' ); ?></label>
                    
337		<input id="<?php echo $this->get_field_id( 'content_height' ); ?>" name="<?php echo $this->get_field_name( 'content_height' ); ?>" type="text" value="<?php echo $content_height; ?>" size="6" /><small><br />
                    
338e.g. 400px<br />
                    
342        <p><label for="<?php echo $this->get_field_id( 'rfw_cache' ); ?>"><?php _e( 'Cache Period:' ); ?></label>
                    
343		<input id="<?php echo $this->get_field_id( 'rfw_cache' ); ?>" name="<?php echo $this->get_field_name( 'rfw_cache' ); ?>" type="text" value="<?php echo $rfw_cache; ?>" placeholder="Enter in seconds" size="20" /><small><br />
                    
344e.g. 7200 seconds = 2 hours<br />
                    
                
makeXMLForOneService.php https://gitlab.com/florianocomercial/centreon | PHP | 287 lines
                    
1<?php
                    
2/*
                    
3 * Copyright 2005-2015 Centreon
                    
4 * Centreon is developped by : Julien Mathis and Romain Le Merlus under
                    
5 * GPL Licence 2.0.
                    
38 */
                    
39require_once realpath(dirname(__FILE__) . "/../../../../../../config/centreon.config.php");
                    
40
                    
40
                    
41include_once $centreon_path . "www/class/centreonUtils.class.php";
                    
42
                    
45 */
                    
46include_once _CENTREON_PATH_ . "www/class/centreonXMLBGRequest.class.php";
                    
47include_once _CENTREON_PATH_ . "www/class/centreonLang.class.php";
                    
                
SetTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 295 lines
                    
1<?php
                    
2/** 
                    
11 
                    
12class SetTest extends \PHPUnit_Framework_TestCase
                    
13{
                    
14    /**
                    
15     * @var \PHPUnit_Framework_MockObject_MockObject|Set
                    
16     */
                    
19    /**
                    
20     * @var \PHPUnit_Framework_MockObject_MockObject
                    
21     */
                    
24    /**
                    
25     * @var \PHPUnit_Framework_MockObject_MockObject
                    
26     */
                    
29    /**
                    
30     * @var \PHPUnit_Framework_MockObject_MockObject
                    
31     */
                    
                
class.jetpack-landing-page.php https://gitlab.com/thisishayat/itv-2016 | PHP | 299 lines
                    
1<?php
                    
2include_once( 'class.jetpack-admin-page.php' );
                    
31
                    
32		// Add the main admin Jetpack menu with possible information about new
                    
33		// modules
                    
49		add_action( "admin_footer-$hook", apply_filters( 'jetpack_landing_page_js_templates_callback', array( $this, 'js_templates' ), $hook ) );
                    
50		/** This action is documented in class.jetpack.php */
                    
51		do_action( 'jetpack_admin_menu', $hook );
                    
144	function js_templates() {
                    
145		Jetpack::init()->load_view( 'admin/landing-page-templates.php' );
                    
146	}
                    
175		);
                    
176		Jetpack::init()->load_view( 'admin/admin-page.php', $data );
                    
177	}
                    
203				<div class="squeezer">
                    
204					<h2><?php echo wp_kses( $message, array( 'strong' => array(), 'a' => array( 'href' => true ), 'br' => true ) ); ?></h2>
                    
205					<?php
                    
                
cat_contractor_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php");
                    
10$selfFolderUrl = $adminPage->getSelfFolderUrl();
                    
11$listUrl = $selfFolderUrl."cat_contractor_list.php?lang=".LANGUAGE_ID;
                    
12$listUrl = $adminSidePanelHelper->editUrlToPublicPage($listUrl);
                    
20{
                    
21	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
22
                    
25
                    
26	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
                    
27	die();
                    
121
                    
122require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
123$str_ACTIVE = "Y";
                    
338
                    
339<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");?>
                    
                
README.md https://gitlab.com/freebird/WebApp | Markdown | 344 lines
                    
65
                    
66``` php
                    
67<?php
                    
96 * `LessFilter`: parses LESS into CSS (using less.js with node.js)
                    
97 * `LessphpFilter`: parses LESS into CSS (using lessphp)
                    
98 * `OptiPngFilter`: optimize your PNGs
                    
105 * `Sass\ScssFilter`: parses SCSS into CSS
                    
106 * `ScssphpFilter`: parses SCSS using scssphp
                    
107 * `SeparatorFilter`: inserts a separator between assets to prevent merge failures
                    
136``` php
                    
137<?php
                    
138
                    
154``` php
                    
155<?php
                    
156
                    
                
general.php https://gitlab.com/digaotinfo/agenciaabear.com.br | PHP | 225 lines
                    
12            <span class="kopa-component-title"><?php _e('Logo', kopa_get_domain()); ?></span>
                    
13            <p class="kopa-desc"><?php _e('Upload your own logo.', kopa_get_domain()); ?></p>                         
                    
14            <div class="clearfix">
                    
90                <input class="left" type="text" value="<?php echo get_option('kopa_theme_options_apple_ipad_retina_icon_url'); ?>" id="kopa_theme_options_apple_ipad_retina_icon_url" name="kopa_theme_options_apple_ipad_retina_icon_url">
                    
91                <button class="btn btn-success upload_image_button" alt="kopa_theme_options_apple_ipad_retina_icon_url"><i class="icon-circle-arrow-up"></i><?php _e('Upload', kopa_get_domain()); ?></button>
                    
92            </div>
                    
139                ?>
                    
140                <label  for="<?php echo $kopa_header_headline_status_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_header_headline_status_id; ?>" name="<?php echo $kopa_header_headline_name; ?>" <?php echo ($value == get_option($kopa_header_headline_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
                    
141                <?php
                    
158                foreach ( $kopa_headline_categories as $kopa_headline_category ) { ?>
                    
159                    <option value="<?php echo $kopa_headline_category->term_id; ?>" <?php selected( $kopa_headline_category->term_id, $kopa_current_headline_category_id ); ?>><?php echo $kopa_headline_category->name; ?></option>
                    
160                <?php } // endforeach ?>
                    
190                ?>
                    
191                <label  for="<?php echo $kopa_breadcrumb_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_breadcrumb_id; ?>" name="<?php echo $kopa_breadcrumb_status_name; ?>" <?php echo ($value == get_option($kopa_breadcrumb_status_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
                    
192                <?php
                    
                
config.values.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 277 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
6 *
                    
7 * @package PhpMyAdmin
                    
8 */
                    
9
                    
10if (!defined('PHPMYADMIN')) {
                    
11    exit;
                    
36$cfg_db['MemoryLimit'] = 'short_string';
                    
37$cfg_db['NavigationLogoLinkWindow'] = array('main', 'new');
                    
38$cfg_db['NavigationTreeDefaultTabTable'] = array(
                    
222/**
                    
223 * Basic validator assignments (functions from libraries/config/Validator.php
                    
224 * and 'validators' object in js/config.js)
                    
                
configure-vhosts.html https://gitlab.com/haris4445/techarena | HTML | 251 lines
                    
54              <li class="active"><a href="/dashboard/howto.html">HOW-TO Guides</a></li>
                    
55              <li class=""><a target="_blank" href="/dashboard/phpinfo.php">PHPInfo</a></li>
                    
56              <li class=""><a href="/phpmyadmin/">phpMyAdmin</a></li>
                    
80<div class="paragraph">
                    
81<p>Apache makes it easy to have multiple websites or web applications running on the same physical server, and access each using a custom domain name. This is known as <em>virtual hosting</em>, and each virtual host can be mapped to a different subdirectory of the server.</p>
                    
82</div>
                    
83<div class="paragraph">
                    
84<p>This feature is especially useful in development scenarios, as it allows developers to isolate and access different applications using unique domain names. For example, the domains <em><a href="http://app01.localhost" class="bare">http://app01.localhost</a></em> and <em><a href="http://app02.localhost" class="bare">http://app02.localhost</a></em> could point to two separate applications on the same server. Or, you could create separate domains, such as <em><a href="http://client1/" class="bare">http://client1/</a></em>, <em><a href="http://client2/" class="bare">http://client2/</a></em> and so on, for multiple client websites hosted on the same server.</p>
                    
85</div>
                    
92<td class="content">
                    
93Virtual hosts created in this manner will not be accessible from other systems, unless those systems are separately configured to associate the custom domain used by the virtual host with the IP address of the XAMPP server.
                    
94This guide walks you through the process of setting up a new virtual host with XAMPP, by creating and configuring an example host named <em>wordpress.localhost</em> for a WordPress installation. It assumes that you have an existing WordPress installation at <em>C:\xampp\apps\wordpress\htdocs\</em> and accessible via the URL <a href="http://localhost/wordpress" class="bare">http://localhost/wordpress</a>.
                    
175<li>
                    
176<p>At this point, your virtual host is configured. However, if you try browsing to the <em>wordpress.localhost</em> domain, your browser will show a failure notice, since this domain does not exist in reality. To resolve this, it is necessary to map the custom domain to the local IP address. To do this, open the file <em>C:\windows\system32\drivers\etc\hosts</em> and add the following line to it:</p>
                    
177<div class="literalblock">
                    
                
TestOfLinkMySQLDAO.php https://github.com/dagda/ThinkUp.git | PHP | 290 lines
                    
1<?php
                    
2require_once dirname(__FILE__).'/init.tests.php';
                    
2require_once dirname(__FILE__).'/init.tests.php';
                    
3require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php';
                    
4require_once THINKUP_ROOT_PATH.'webapp/config.inc.php';
                    
119            'http://example.com/test',
                    
120            'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php', 'Very Long URL', '12345678901',
                    
121            'twitter', false);
                    
129        $this->assertEqual($result->expanded_url,
                    
130        'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php');
                    
131        $this->assertEqual($result->title, 'Very Long URL');
                    
179            'http://example.com/test',
                    
180            'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php',
                    
181            'Very Long URL',
                    
187            'http://example.com/test', 
                    
188            'http://very.long.domain.that.nobody.would.bother.to.type.com/image.png', 
                    
189            'Even Longer URL', 
                    
                
SharedTempStore.php https://gitlab.com/mohamed_hussein/prodt | PHP | 318 lines
                    
1<?php
                    
2
                    
170      'data' => $value,
                    
171      'updated' => (int) $this->requestStack->getMainRequest()->server->get('REQUEST_TIME'),
                    
172    ];
                    
230      'data' => $value,
                    
231      'updated' => (int) $this->requestStack->getMainRequest()->server->get('REQUEST_TIME'),
                    
232    ];
                    
                
wp-background-process.php https://gitlab.com/campus-academy/krowkaramel | PHP | 503 lines
                    
1<?php // @codingStandardsIgnoreLine.
                    
2/**
                    
290	 *
                    
291	 * Pass each queue item to the task handler, while remaining
                    
292	 * within server memory and time limit constraints.
                    
                
ki.php https://gitlab.com/muthuvel.ns/imp-file | PHP | 457 lines
                    
1<?php
                    
2/**
                    
113      1 => 'Njumatatũ',
                    
114      2 => 'Njumaine',
                    
115      3 => 'Njumatana',
                    
                
index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 317 lines
                    
18function array_multisort(arr) {
                    
19  //  discuss at: http://phpjs.org/functions/array_multisort/
                    
20  // original by: Theriault
                    
100  // Store first argument into sortArrs and sortKeys if an Object.
                    
101  // First Argument should be either a Javascript Array or an Object, otherwise function would return FALSE like in PHP
                    
102  if (Object.prototype.toString.call(arr) === '[object Array]') {
                    
114
                    
115  // arrMainLength: Holds the length of the first array. All other arrays must be of equal length, otherwise function would return FALSE like in PHP
                    
116  //
                    
118  var arrMainLength = sortArrs[0].length;
                    
119  var sortComponents = [0, arrMainLength];
                    
120
                    
304
                    
305Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are 
                    
306the closest match to this hashtable-like data structure. 
                    
                
index.py https://gitlab.com/xiaok/SaltAdmin | Python | 237 lines
                    
2#-*- coding:utf-8 -*-
                    
3from main import *
                    
4import time
                    
67        # 这里要从公网去解析
                    
68        url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=" + LoginHost
                    
69        response = urllib2.urlopen(url)
                    
                
Relationship.php https://github.com/ksecor/civicrm.git | PHP | 285 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Contact/Page/View.php';
                    
37
                    
61    {
                    
62        require_once 'CRM/Core/DAO.php';
                    
63        $viewRelationship = CRM_Contact_BAO_Relationship::getRelationship( $this->_contactId, null, null, null, $this->_id );
                    
146                //create an activity for case role removal.CRM-4480
                    
147                require_once "CRM/Case/BAO/Case.php";
                    
148                CRM_Case_BAO_Case::createCaseRoleActivity( $this->_caseId, $this->_id );  
                    
164   /**
                    
165     * This function is the main function that is called when the page loads,
                    
166     * it decides the which action has to be taken for the page.
                    
                
pmetis.c https://bitbucket.org/pecchia/libnegf.git | C | 341 lines
                    
131  if (nparts > 2) {
                    
132    SplitGraphPart(ctrl, graph, &lgraph, &rgraph);
                    
133    /* printf("%d %d\n", lgraph.nvtxs, rgraph.nvtxs); */
                    
178/*
                    
179  IsConnectedSubdomain(ctrl, graph, 0);
                    
180  IsConnectedSubdomain(ctrl, graph, 1);
                    
189**************************************************************************/
                    
190void SplitGraphPart(CtrlType *ctrl, GraphType *graph, GraphType *lgraph, GraphType *rgraph)
                    
191{
                    
                
BlogModule.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 469 lines
                    
1<?php
                    
2/**
                    
26     */
                    
27    public $mainPostCategory;
                    
28    /**
                    
151        return [
                    
152            'mainCategory' => Yii::t('BlogModule.blog', 'Main blog category'),
                    
153            'mainPostCategory' => Yii::t('BlogModule.blog', 'Main posts category'),
                    
177            'editor' => Yii::app()->getModule('yupe')->getEditors(),
                    
178            'mainCategory' => CHtml::listData($this->getCategoryList(), 'id', 'name'),
                    
179            'mainPostCategory' => CHtml::listData($this->getCategoryList(), 'id', 'name'),
                    
197                'items' => [
                    
198                    'mainPostCategory',
                    
199                    'mainCategory',
                    
247                'label' => Yii::t('BlogModule.blog', 'Blogs categories'),
                    
248                'url' => ['/category/categoryBackend/index', 'Category[parent_id]' => (int)$this->mainCategory],
                    
249            ],
                    
                
NativeSessionStorage.php https://gitlab.com/madwanz64/laravel | PHP | 470 lines
                    
1<?php
                    
2
                    
67     *
                    
68     * @see https://php.net/session.configuration for options
                    
69     * but we omit 'session.' from the beginning of the keys for convenience.
                    
70     *
                    
71     * ("auto_start", is not supported as it tells PHP to start a session before
                    
72     * PHP starts to execute user-land code. Setting during runtime has no effect).
                    
75     * cache_expire, "0"
                    
76     * cookie_domain, ""
                    
77     * cookie_httponly, ""
                    
85     * lazy_write, "1"
                    
86     * name, "PHPSESSID"
                    
87     * referer_check, ""
                    
87     * referer_check, ""
                    
88     * serialize_handler, "php"
                    
89     * use_strict_mode, "1"
                    
                
Configuration.php https://github.com/usefulthink/symfony.git | PHP | 362 lines
                    
1<?php
                    
2
                    
168                        ->scalarNode('path')->end()
                    
169                        ->scalarNode('domain')->end()
                    
170                        ->booleanNode('secure')->end()
                    
                
index.php https://gitlab.com/Rumpa/LabExam8_AtomicProject_UmmeBatul_136509_b36 | PHP | 253 lines
                    
48
                    
49    <?php include_once('../../../sidebar_menu.php'); ?>
                    
50
                    
120                                                        <p data-placement="top" data-toggle="tooltip" title="View">
                    
121                                                            <a href="view.php?id=<?php echo $oneData->id;?>"><button class="btn btn-info btn-xs" data-title="View" data-toggle="modal"><span
                    
122                                                                        class="glyphicon glyphicon-info-sign"></span></button></a>
                    
127                                                        <p data-placement="top" data-toggle="tooltip" title="Edit">
                    
128                                                            <a href="edit.php?id=<?php echo $oneData->id;?>"><button class="btn btn-primary btn-xs" data-title="Edit" data-toggle="modal"><span
                    
129                                                                        class="glyphicon glyphicon-pencil"></span></button></a>
                    
134                                                        <p data-placement="top" data-toggle="tooltip" title="Trash">
                    
135                                                            <a href="trashed.php?id=<?php echo $oneData->id;?>"><button class="btn btn-success btn-xs" data-title="Trash" data-toggle="modal"><span
                    
136                                                                        class="glyphicon glyphicon-trash"></span></button></a>
                    
141                                                        <p data-placement="top" data-toggle="tooltip" title="Delete">
                    
142                                                            <a href="trash.php?id=<?php echo $oneData->id;?>"><button class="btn btn-danger btn-xs"  data-title="Edit" data-toggle="modal"><span
                    
143                                                                        class="glyphicon glyphicon-remove"></span></button></a>
                    
                
configure.php https://github.com/agnesrambaud/yacs.git | PHP | 313 lines
                    
27 *
                    
28 * The file [code]parameters/collections.include.php.bak[/code] can be used to restore
                    
29 * the active configuration before the last change.
                    
58if(!Surfer::is_logged())
                    
59	Safe::redirect($context['url_to_home'].$context['url_to_root'].'users/login.php?url='.urlencode('collections/configure.php'));
                    
60
                    
69	// load current parameters, if any
                    
70	Safe::load('parameters/collections.include.php');
                    
71
                    
247	Safe::unlink($context['path_to_root'].'parameters/collections.include.php.bak');
                    
248	Safe::rename($context['path_to_root'].'parameters/collections.include.php', $context['path_to_root'].'parameters/collections.include.php.bak');
                    
249
                    
250	// build the new configuration file
                    
251	$content = '<?php'."\n"
                    
252		.'// This file has been created by the configuration script collections/configure.php'."\n"
                    
                
Js.php https://github.com/gryzz/crystal_magento.git | PHP | 202 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) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
140                'Please enter a valid date.' => $this->__('Please enter a valid date.'),
                    
141                'Please enter a valid email address. For example johndoe@domain.com.' =>
                    
142                    $this->__('Please enter a valid email address. For example johndoe@domain.com.'),
                    
                
site-users.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 330 lines
                    
64
                    
65$is_main_site = is_main_site( $id );
                    
66
                    
205<h1 id="edit-site"><?php echo $title; ?></h1>
                    
206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
                    
207<?php
                    
272if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
                    
273<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2>
                    
274<form action="site-users.php?action=adduser" id="adduser" method="post">
                    
302<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
                    
303<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
                    
304	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
320		<tr class="form-field">
                    
321			<td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ) ?></td>
                    
322		</tr>
                    
                
class.php https://gitlab.com/neuser/bitrix-core | PHP | 658 lines
                    
5	Bitrix\Main\Loader,
                    
6	Bitrix\Main\Config\Option,
                    
7	Bitrix\Main\Localization\Loc,
                    
12
                    
13require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/wizard.php"); //Wizard API
                    
14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils
                    
17require_once("tools/bitrixvmchecker.php");
                    
18require_once("tools/agentchecker.php");
                    
19require_once("tools/pushchecker.php");
                    
149	{
                    
150		/** @noinspection PhpVariableNamingConventionInspection */
                    
151		global $APPLICATION;
                    
286	{
                    
287		if (Main\IO\File::isFileExists(self::WIZARD_DIR."template/bsmsitemastertemplate.php"))
                    
288		{
                    
                
function_scope.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 444 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_FUNCTION_SCOPE_H_
                    
18#define incl_HPHP_FUNCTION_SCOPE_H_
                    
                
class-gf-field-checkbox.php https://gitlab.com/level-level/gravityforms | PHP | 380 lines
                    
1<?php
                    
2
                    
92	public function get_value_entry_list( $value, $entry, $field_id, $columns, $form ) {
                    
93		//if this is the main checkbox field (not an input), display a comma separated list of all inputs
                    
94		if ( absint( $field_id ) == $field_id ) {
                    
                
Mmc.c https://gitlab.com/envieidoc/Clover | C | 454 lines
                    
1/** @file
                    
2  Main file of the MMC Dxe driver. The driver entrypoint is defined into this file.
                    
3
                    
8  which accompanies this distribution.  The full text of the license may be found at
                    
9  http://opensource.org/licenses/bsd-license.php
                    
10
                    
186  IN EFI_HANDLE                     Controller,
                    
187  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath
                    
188  )
                    
195  //
                    
196  // Check RemainingDevicePath validation
                    
197  //
                    
197  //
                    
198  if (RemainingDevicePath != NULL) {
                    
199    //
                    
                
Mmc.h https://gitlab.com/envieidoc/Clover | C Header | 302 lines
                    
1/** @file
                    
2  Main Header file for the MMC DXE driver
                    
3
                    
8  which accompanies this distribution.  The full text of the license may be found at        
                    
9  http://opensource.org/licenses/bsd-license.php                                            
                    
10
                    
                
data-upgrade-1.6.0.1-1.6.0.2.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 288 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 */
                    
68                <td>
                    
69                    <img width="600" src="http://placehold.it/600x200" class="main-image">
                    
70                </td>
                    
                
componentbase.php https://gitlab.com/alexprowars/bitrix | PHP | 558 lines
                    
5use Bitrix\Main;
                    
6use Bitrix\Main\Error;
                    
7use Bitrix\Main\Localization;
                    
7use Bitrix\Main\Localization;
                    
8use Bitrix\Main\Localization\Loc;
                    
9use Bitrix\Translate;
                    
194		{
                    
195			$params['EDIT_PATH'] = '/bitrix/admin/translate_edit.php';
                    
196		}
                    
198		{
                    
199			$params['SHOW_SOURCE_PATH'] = '/bitrix/admin/translate_show_php.php';
                    
200		}
                    
202		{
                    
203			$params['EDIT_SOURCE_PATH'] = '/bitrix/admin/translate_edit_php.php';
                    
204		}
                    
                
composite_log.php https://gitlab.com/alexprowars/bitrix | PHP | 461 lines
                    
15require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
16require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
17define("HELP_FILE", "settings/composite_pages.php");
                    
215
                    
216	$row->addViewField("AJAX", $record["AJAX"] === "Y" ? Loc::getMessage("MAIN_YES") : Loc::getMessage("MAIN_NO"));
                    
217	$row->addViewField("TYPE", Logger::getTypeName($record["TYPE"]));
                    
289
                    
290require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/prolog_admin_after.php");
                    
291?>
                    
428				array(
                    
429					"reference" => array(Loc::getMessage("MAIN_YES"), Loc::getMessage("MAIN_NO")),
                    
430					"reference_id" => array("Y", "N")
                    
459
                    
460require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/epilog_admin.php");
                    
461
                    
                
options.php https://gitlab.com/alexprowars/bitrix | PHP | 479 lines
                    
23// lang
                    
24IncludeModuleLangFile($docRoot . '/bitrix/modules/main/options.php');
                    
25Loc::loadMessages(__FILE__);
                    
333		ob_start();
                    
334		require_once($docRoot . '/bitrix/modules/main/admin/group_rights.php');
                    
335		ob_end_clean();
                    
464	$tabControl->BeginNextTab();
                    
465	require_once($docRoot . '/bitrix/modules/main/admin/group_rights.php');
                    
466
                    
469	<input <?if ($postRight < 'W') echo 'disabled="disabled"' ?> type="submit" name="Update" value="<?= Loc::getMessage('MAIN_SAVE')?>" title="<?= Loc::getMessage('MAIN_OPT_SAVE_TITLE')?>" />
                    
470	<input <?if ($postRight < 'W') echo 'disabled="disabled"' ?> type="submit" name="Apply" value="<?= Loc::getMessage('MAIN_OPT_APPLY')?>" title="<?= Loc::getMessage('MAIN_OPT_APPLY_TITLE')?>" />
                    
471	<?if ($backUrl <> ''):?>
                    
471	<?if ($backUrl <> ''):?>
                    
472		<input <?if ($postRight < 'W') echo 'disabled="disabled"' ?> type="button" name="Cancel" value="<?= Loc::getMessage('MAIN_OPT_CANCEL')?>" title="<?= Loc::getMessage('MAIN_OPT_CANCEL_TITLE')?>" onclick="window.location='<?echo \htmlspecialcharsbx(CUtil::addslashes($backUrl))?>'" />
                    
473		<input type="hidden" name="back_url_settings" value="<?=\htmlspecialcharsbx($backUrl)?>" />
                    
                
index.html https://gitlab.com/essere.lab.public/qualitas.class-corpus | HTML | 305 lines
                    
89<br>
                    
90<span class="element"><a href="http://jasperforge.org/scm/viewvc.php/tags/jr-3-7-4/jasperreports/demo/samples/xlsdatasource/?root=jasperreports" target="_blank">Browse Sample Source Files on SVN</a></span>
                    
91<table cellspacing="0" cellpadding="0" border="0" width="100%">
                    
99<tr>
                    
100<td colspan="2"><span class="label">Main Features in This Sample</span></td>
                    
101</tr>
                    
                
DateTimeType.php https://gitlab.com/matijabelec/bigpandadev | PHP | 290 lines
                    
1<?php
                    
2
                    
53     *
                    
54     * It was supposedly fixed, but is not available in all PHP installations
                    
55     * yet. To temporarily circumvent this issue, DateTimeToRfc3339Transformer
                    
119                'required',
                    
120                'translation_domain',
                    
121                'html5',
                    
134                'required',
                    
135                'translation_domain',
                    
136                'html5',
                    
                
Amazon.php https://gitlab.com/devtoannh/cafe | PHP | 323 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Amazon.php 23775 2011-03-01 17:25:24Z ralph $
                    
22 */
                    
26 */
                    
27require_once 'Zend/Rest/Client.php';
                    
28
                    
92             */
                    
93            require_once 'Zend/Service/Exception.php';
                    
94            throw new Zend_Service_Exception("Unknown country code: $countryCode");
                    
106     * @return Zend_Service_Amazon_ResultSet
                    
107     * @see http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemSearchOperation
                    
108     */
                    
122             */
                    
123            require_once 'Zend/Service/Exception.php';
                    
124            throw new Zend_Service_Exception('An error occurred sending request. Status code: '
                    
                
runner.js https://gitlab.com/x33n/todomvc | JavaScript | 319 lines
                    
6 * Licensed under the MIT License at:
                    
7 * 		http://www.opensource.org/licenses/mit-license.php
                    
8 *
                    
36	 * supply a second `done` parameter and call it when it is done
                    
37	 * performaing async tasks.  This callback also has a promise-like
                    
38	 * interface for developers who prefer to work with promises.  If this
                    
                
readme.md https://gitlab.com/buitenzorg812/garapic.cms | Markdown | 217 lines
                    
6
                    
7Modular Extensions makes the CodeIgniter PHP framework modular. Modules are groups of independent components, 
                    
8typically model, controller and view, arranged in an application modules sub-directory that can be dropped into other CodeIgniter applications.
                    
103
                    
104The PHP5 spl_autoload feature allows you to freely extend your controllers, models and libraries from 
                    
105application/core or application/libraries base classes without the need to specifically include or require
                    
1597. Create module directory structure application/modules/welcome/controllers
                    
1608. Move controller application/controllers/welcome.php to application/modules/welcome/controllers/welcome.php
                    
1619. Access the URL /index.php/welcome => shows Welcome to CodeIgniter
                    
16210. Create directory application/modules/welcome/views
                    
16311. Move view application/views/welcome_message.php to application/modules/welcome/views/welcome_message.php
                    
16412. Access the URL /index.php/welcome => shows Welcome to CodeIgniter
                    
199page and the shopping cart, the shopping cart MVC can be loaded directly in the page. 
                    
200The main controller doesn’t need to know about it, and is totally isolated from it.
                    
201
                    
                
File.php https://bitbucket.org/acidel/buykoala.git | PHP | 412 lines
                    
29 */
                    
30#require_once 'Zend/Reflection/Function.php';
                    
31
                    
94        if (!$fileRealpath || !in_array($fileRealpath, get_included_files())) {
                    
95            #require_once 'Zend/Reflection/Exception.php';
                    
96            throw new Zend_Reflection_Exception('File ' . $file . ' must be required before it can be reflected');
                    
187        if (!$instance instanceof Zend_Reflection_Docblock) {
                    
188            #require_once 'Zend/Reflection/Exception.php';
                    
189            throw new Zend_Reflection_Exception('Invalid reflection class specified; must extend Zend_Reflection_Docblock');
                    
225            if (!$instance instanceof Zend_Reflection_Function) {
                    
226                #require_once 'Zend/Reflection/Exception.php';
                    
227                throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Function');
                    
319             * Token ID's are explained here:
                    
320             * http://www.php.net/manual/en/tokens.php.
                    
321             */
                    
                
Collection.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 347 lines
                    
126     * @use $this->addWebsiteGroupDateFilter()
                    
127     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
                    
128     * @return $this
                    
149                    $connection->quoteInto(
                    
150                        'main_table.rule_id = rule_coupons.rule_id AND main_table.coupon_type != ?',
                    
151                        \Magento\SalesRule\Model\Rule::COUPON_TYPE_NO_COUPON
                    
161                    $connection->quoteInto(
                    
162                        '(main_table.coupon_type = ? AND rule_coupons.type = 0)',
                    
163                        \Magento\SalesRule\Model\Rule::COUPON_TYPE_AUTO
                    
165                    $connection->quoteInto(
                    
166                        '(main_table.coupon_type = ? AND main_table.use_auto_generation = 1 AND rule_coupons.type = 1)',
                    
167                        \Magento\SalesRule\Model\Rule::COUPON_TYPE_SPECIFIC
                    
169                    $connection->quoteInto(
                    
170                        '(main_table.coupon_type = ? AND main_table.use_auto_generation = 0 AND rule_coupons.type = 0)',
                    
171                        \Magento\SalesRule\Model\Rule::COUPON_TYPE_SPECIFIC
                    
                
index.html https://github.com/koto/blog-kotowicz-net-examples.git | HTML | 321 lines
                    
51
                    
52  var internalDomain = new RegExp(document.location.host);
                    
53
                    
54  function checkUrl(realurl, url) {
                    
55    if (realurl.match(internalDomain)) {
                    
56      mark(realurl, url, 'internal');
                    
127          .data('src', payload)
                    
128          .attr('src', 'redirect.php?url=' + encodeURIComponent(payload))
                    
129          .appendTo('#images');
                    
253<p>This page tries to both test & document differences among browsers as to which incomplete or weird URL formats effectively transform
                    
254to <strong style="background:green;color:white"> local URLs (being in the same domain as the main page) </strong> or <strong style="background:red;color:white"> external URLs (different domain or protocol) </strong>. 
                    
255This distinction is very important from security point of view when you are accepting URLs in user input and process them, for example by adding CSRF tokens to the URLs or redirecting the browser.
                    
                
CookieJar.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 385 lines
                    
127     * Parse Cookies without PECL
                    
128     * From the comments in http://php.net/manual/en/function.http-parse-cookie.php
                    
129     *
                    
155     * @param string $line          The header line.
                    
156     * @param string $defaultDomain The domain to use if none is specified in
                    
157     * the cookie.
                    
170        $cookie = array(
                    
171            'domain' => $defaultDomain,
                    
172            'path' => '/',
                    
281        foreach ($this->_cookies as $key => $old_cookie) {
                    
282            if ( $cookie['domain'] == $old_cookie['domain']
                    
283                && $cookie['path'] == $old_cookie['path']
                    
337        if (strpos($cookie['domain'], '.') === 0) {
                    
338            // .host.domain.edu cookies are valid for host.domain.edu
                    
339            if (substr($cookie['domain'], 1) == $target['host']) {
                    
                
redemptiondetail.php https://gitlab.com/nvtdn2006/azora | PHP | 316 lines
                    
1<?php require_once './includes/application.php'; $this->template = ''; $this->title = 'Redemption Detail'?>
                    
2
                    
41			
                    
42				header( 'Location: redemptiondone.php?id='.$_POST['redemption_id']);
                    
43				exit();
                    
65		
                    
66				require_once './includes/user.php';
                    
67				$userObj = new User();
                    
184							<td><?php echo $detail['store_name']; ?></td>								
                    
185							<td width="70px"><input type="text" name="points[]" class="input" value="<?php 
                    
186									echo $detail['points'];
                    
188						</tr>
                    
189					<?php 
                    
190							$tpoints += $detail['points'];
                    
235							<td width="60px">
                    
236								<img src="<?php echo $config['PRMSConfig']->live_site . '/domain/images/products/' . $image['sys_file_name']; ?>" width="50" height="50" alt="<?php echo $product['product']['product_name']; ?>" title="<?php echo $product['product']['product_name']; ?>"/></td>
                    
237							<td><b><?php echo $product['product']['product_name']; ?></b></td>
                    
                
config.cache.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 365 lines
                    
151  'phpthumb_error_fontsize' => '1',
                    
152  'phpthumb_far' => 'C',
                    
153  'phpthumb_imagemagick_path' => '',
                    
155  'phpthumb_nohotlink_erase_image' => '1',
                    
156  'phpthumb_nohotlink_valid_domains' => 'nga.loyaltymatters.co.uk',
                    
157  'phpthumb_nohotlink_text_message' => 'Off-server thumbnailing is not allowed',
                    
159  'phpthumb_nooffsitelink_erase_image' => '1',
                    
160  'phpthumb_nooffsitelink_require_refer' => '',
                    
161  'phpthumb_nooffsitelink_text_message' => 'Off-server linking is not allowed',
                    
161  'phpthumb_nooffsitelink_text_message' => 'Off-server linking is not allowed',
                    
162  'phpthumb_nooffsitelink_valid_domains' => 'nga.loyaltymatters.co.uk',
                    
163  'phpthumb_nooffsitelink_watermark_src' => '',
                    
288  'phpthumbof.s3_host_alias' => '',
                    
289  'phpthumbof.s3_path' => 'phpthumbof/',
                    
290  'phpthumbof.s3_cache_time' => '24',
                    
                
class-wcs-query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 389 lines
                    
1<?php
                    
2/**
                    
175
                    
176		wc_get_template( 'myaccount/subscriptions.php', array( 'current_page' => $current_page ), '', WC_Subscriptions_Core_Plugin::instance()->get_subscriptions_core_directory( 'templates/' ) );
                    
177	}
                    
187
                    
188		if ( is_main_query() && is_page() && isset( $wp->query_vars[ $query_var ] ) ) {
                    
189			$is_view_subscription_query = true;
                    
200	 * Based on WC_Query->pre_get_posts(), but only applies the fix for endpoints on the homepage from it
                    
201	 * instead of duplicating all the code to handle the main product query.
                    
202	 *
                    
205	public function pre_get_posts( $q ) {
                    
206		// We only want to affect the main query
                    
207		if ( ! $q->is_main_query() ) {
                    
230
                    
231		if ( ! $query->is_main_query() || ! absint( $query->get( 'subscription-payment-method' ) ) ) {
                    
232			return;
                    
                
projectteam.php https://gitlab.com/julienv/joomleague | PHP | 394 lines
                    
48		JRequest::setVar('layout', 'form' );
                    
49		JRequest::setVar('hidemainmenu',JRequest::getVar('hidemainmenu',0));
                    
50
                    
116
                    
117		JRequest::setVar('hidemainmenu',JRequest::getVar('hidemainmenu',0));
                    
118				
                    
140		$projectws = $this->getModel ('project');
                    
141		$projectws->setId($mainframe->getUserState($option . 'project', 0));
                    
142		$view->setModel($projectws);
                    
143
                    
144		JRequest::setVar('hidemainmenu',JRequest::getVar('hidemainmenu',0));
                    
145		JRequest::setVar('layout', 'editlist' );
                    
174
                    
175		$link = 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display';
                    
176		$this->setRedirect($link, $msg);
                    
                
HostnameTest.php https://github.com/snippet/zf2.git | PHP | 385 lines
                    
75            array(Hostname\Hostname::ALLOW_DNS, true, array('example.com', 'example.museum', 'd.hatena.ne.jp')),
                    
76            array(Hostname\Hostname::ALLOW_DNS, false, array('localhost', 'localhost.localdomain', '1.2.3.4', 'domain.invalid')),
                    
77            array(Hostname\Hostname::ALLOW_LOCAL, true, array('localhost', 'localhost.localdomain', 'example.com')),
                    
112            array(Hostname\Hostname::ALLOW_DNS, true, array('domain.com', 'doma-in.com')),
                    
113            array(Hostname\Hostname::ALLOW_DNS, false, array('-domain.com', 'domain-.com', 'do--main.com'))
                    
114            );
                    
230        $valuesExpected = array(
                    
231            array(true, array('domain.co.uk', 'domain.uk.com', 'domain.tl', 'domain.zw')),
                    
232            array(false, array('domain.xx', 'domain.zz', 'domain.madeup'))
                    
242        $valuesExpected = array(
                    
243            array(true, array('domain.xx', 'domain.zz', 'domain.madeup'))
                    
244            );
                    
254        $valuesExpected = array(
                    
255            array(true, array('domain.xx', 'domain.zz', 'domain.madeup'))
                    
256            );
                    
                
template.php https://bitbucket.org/frazras/higgler.git | PHP | 384 lines
                    
1<?php
                    
2
                    
103function alpha_element_info_alter(&$elements) {
                    
104  if (variable_get('preprocess_css', FALSE) && (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update')) {
                    
105    array_unshift($elements['styles']['#pre_render'], 'alpha_css_preprocessor');
                    
128  
                    
129  // If no module has taken care of the main content, add it to the page now.
                    
130  // This allows the site to still be usable even if no modules that
                    
131  // control page regions (for example, the Block module) are enabled.
                    
132  if (!drupal_static('system_main_content_added', FALSE)) {
                    
133    $vars['content']['system_main'] = drupal_set_page_content();
                    
                
Attribute.php https://gitlab.com/geeta7/drupal | PHP | 351 lines
                    
1<?php
                    
2
                    
262      // Remove the values passed in from the value array. Use array_values() to
                    
263      // ensure that the array index remains sequential.
                    
264      $classes = array_values(array_diff($this->storage['class']->value(), $classes));
                    
                
AdminPreferencesController.php https://gitlab.com/staging06/myproject | PHP | 246 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
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
67            $activities1 = array(
                    
68                0 => $this->l('-- Please choose your main activity --'),
                    
69                2 => $this->l('Animals and Pets'),
                    
97                    'title' => $this->l('Enable SSL'),
                    
98                    'desc' => $this->l('If you own an SSL certificate for your shop\'s domain name, you can activate SSL encryption (https://) for customer account identification and order processing.'),
                    
99                    'hint' => $this->l('If you want to enable SSL on all the pages of your shop, activate the "Enable on all the pages" option below.'),
                    
203                'PS_SHOP_ACTIVITY' => array(
                    
204                    'title' => $this->l('Main Shop Activity'),
                    
205                    'validation' => 'isInt',
                    
                
DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
                    
1<?php
                    
2
                    
141      // Since a field may be stored in more than one table, we inspect tables
                    
142      // in order of relevance: the data table if present is the main place
                    
143      // where field data is stored, otherwise the base table is responsible for
                    
                
manage.tpl.htm https://gitlab.com/Ltaimao/wecenter | HTML | 255 lines
                    
9						<div class="mod-head common-head">
                    
10							<h2><span class="pull-right"><a class="text-color-999" href="topic/<?php echo $this->topic_info['url_token']; ?>"><?php _e('返回话题'); ?> »</a></span><?php _e('管理话题'); ?> - <?php echo $this->topic_info['topic_title']; ?></h2>
                    
11						</div>
                    
53											<a href="" class="text"><?php echo $val['topic_title']; ?></a>
                    
54											<a class="close" onclick="AWS.ajax_request(G_BASE_URL + '/topic/ajax/remove_merge_topic/', 'source_id=<?php echo $val['topic_id']; ?>&target_id=<?php echo $this->topic_info['topic_id']; ?>');"><i class="icon icon-delete"></i></a>
                    
55										</span>
                    
69								<?php foreach ($this->parent_topics AS $key => $val) { ?>
                    
70								<option value="<?php echo $val['topic_id']; ?>"<?php if ($val['topic_id'] == $this->topic_info['parent_id']) { ?> selected="selected"<?php } ?>><?php echo $val['topic_title']; ?></option>
                    
71								<?php } ?>
                    
101							<p><b>• <?php _e('话题别名'); ?>:</b> <?php _e('如果该话题还有其他的表达方式, 您可以为其创建别名以便其他人能更好的找到该话题'); ?></p>
                    
102							<p><b>• <?php _e('话题合并'); ?>:</b> <?php _e('如果该话题跟另一个话题意义相近, 您可以将此话题合并至其他话题'); ?></p>
                    
103						</div>
                    
105							<?php if ($this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']) { ?>
                    
106							<a onclick="AWS.ajax_request(G_BASE_URL + '/topic/ajax/lock/', 'topic_id=<?php echo $this->topic_info['topic_id']; ?>');" class="btn btn-success <?php if ($this->topic_info['topic_lock']) { ?>active<?php } ?>"><?php if ($this->topic_info['topic_lock']) { ?><?php _e('解除锁定'); ?><?php } else { ?><?php _e('锁定话题'); ?><?php } ?></a>&nbsp;
                    
107							<a onclick="AWS.dialog('confirm', {'message' : '<?php _e('确认删除?'); ?>'}, function(){AWS.ajax_request(G_BASE_URL + '/topic/ajax/remove/', 'topic_id=<?php echo $this->topic_info['topic_id']; ?>');});" class="btn btn-gray"><?php _e('删除话题'); ?></a>
                    
                
author-template.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 401 lines
                    
1<?php
                    
2/**
                    
40 * The normal, expected behavior of this function is to echo the author and not
                    
41 * return it. However, backwards compatibility has to be maintained.
                    
42 *
                    
                
HeadMeta.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
38     *
                    
39     * Set separator to PHP_EOL
                    
40     *
                    
44        parent::__construct();
                    
45        $this->setSeparator(PHP_EOL);
                    
46    }
                    
82     * @return string
                    
83     * @throws Exception\DomainException
                    
84     */
                    
94            default:
                    
95                throw new Exception\DomainException(sprintf(
                    
96                    'Invalid type "%s" passed to normalizeType',
                    
                
SAPI.h https://gitlab.com/iranjith4/hhvm | C Header | 310 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
248  int php_ini_ignore;
                    
249  int php_ini_ignore_cwd; /* don't look for php.ini in the current directory */
                    
250
                    
285#define SAPI_DEFAULT_CHARSET    ""
                    
286#define SAPI_PHP_VERSION_HEADER    "X-Powered-By: PHP/" PHP_VERSION
                    
287
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
10 * You should have received a copy of the GNU General Public License,
                    
11 * along with this software. In the main directory, see: /licensing/
                    
12 * If not, see: {@link http://www.gnu.org/licenses/}.
                    
71
                    
72						setcookie('s2member_sp_tracking', ($s2member_sp_tracking = c_ws_plugin__s2member_utils_encryption::encrypt($paypal['txn_id'])), time() + 31556926, COOKIEPATH, COOKIE_DOMAIN).setcookie('s2member_sp_tracking', $s2member_sp_tracking, time() + 31556926, SITECOOKIEPATH, COOKIE_DOMAIN).($_COOKIE['s2member_sp_tracking'] = $s2member_sp_tracking);
                    
73
                    
                
about.php https://gitlab.com/Gashler/sg | PHP | 208 lines
                    
87		'heading'     => __( 'Template Hierarchy' ),
                    
88		/* Translators: 1: singular.php; 2: single.php; 3:page.php */
                    
89		'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>.' ),
                    
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>
                    
107			<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
                    
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>
                    
187
                    
188_n_noop( 'Maintenance Release', 'Maintenance Releases' );
                    
189_n_noop( 'Security Release', 'Security Releases' );
                    
189_n_noop( 'Security Release', 'Security Releases' );
                    
190_n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases' );
                    
191
                    
                
listCommand.php https://gitlab.com/florianocomercial/centreon | PHP | 232 lines
                    
1<?php
                    
2/*
                    
3 * Copyright 2005-2015 Centreon
                    
4 * Centreon is developped by : Julien Mathis and Romain Le Merlus under
                    
5 * GPL Licence 2.0.
                    
39
                    
40include_once("./class/centreonUtils.class.php");
                    
41
                    
41
                    
42include_once "./include/common/autoNumLimit.php";
                    
43
                    
78
                    
79include_once "./include/common/checkPagination.php";
                    
80
                    
219}
                    
220</script><?php
                    
221
                    
                
ListenerOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 396 lines
                    
1<?php
                    
2/**
                    
188    /**
                    
189     * Add some extra config array to the main config. This is mainly useful
                    
190     * for unit testing purposes.
                    
262     * Should this be an option, or should the dir option include the
                    
263     * filename, or should it simply remain hard-coded? Thoughts?
                    
264     *
                    
269        if ($this->getConfigCacheKey()) {
                    
270            return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php';
                    
271        }
                    
272
                    
273        return $this->getCacheDir() . '/module-config-cache.php';
                    
274    }
                    
353        if ($this->getModuleMapCacheKey()) {
                    
354            return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php';
                    
355        }
                    
                
 

Source

Language