PageRenderTime 2084ms queryTime 282ms sortTime 245ms getByIdsTime 91ms findMatchingLines 136ms

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

Not the results you expected?
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;
                    
                
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
                    
                
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">
                    
                
pageTranslations.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 217 lines
                    
1<?php
                    
2
                    
12    */
                    
13    'domain'                => 'FastSubtitle.com',
                    
14    'title'                 => 'Fast Subtitle',
                    
                
InstallSchema.php https://gitlab.com/daigiangaitu91/magento | 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     */
                    
                
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");?>
                    
                
AclVoterTest.php https://gitlab.com/TouirMohamedMarwen/Symfony2 | 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{
                    
                
Curl.php https://gitlab.com/blingbang2016/shop | 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
                    
                
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)?>" />
                    
                
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);
                    
                
OperationResponseParserTest.php https://gitlab.com/cuitianze/eduwind | PHP | 335 lines
                    
1<?php
                    
2
                    
101
                    
102    public function testCanInjectModelSchemaIntoModels()
                    
103    {
                    
293
                    
294    public function testCanAddListenerToParseDomainObjects()
                    
295    {
                    
                
index.php https://gitlab.com/gustCL/syscar | PHP | 188 lines
                    
1<?php
                    
2require_once ('head.php');
                    
43
                    
44    <div class="main-container container-fluid">
                    
45        <!-- Page Body -->
                    
67                                             <td>
                    
68                                                 <a class="btn btn-warning shiny"  href="nuevo_producto.php" >
                    
69                                                        <i class="fa fa-plus">
                    
110                                                <tbody>
                    
111                                                    <?php
                    
112
                    
137                                                                <td>                          
                    
138                                                                    <a href="ver_producto.php?id=<?= $idP ?>" class="btn btn-default btn-xs blue" ><i class="fa fa-eye"></i> Ver</a>
                    
139                                                                    <a href="mod_producto.php?id=<?= $idP ?>"   class="btn btn-default btn-xs purple"  ><i class="fa fa-edit"></i> Editar</a>
                    
143                                                            </tr>
                    
144                                                            <?php
                    
145                                                            $row_number = $row_number + 1;
                    
                
service.php https://gitlab.com/alexprowars/bitrix | PHP | 416 lines
                    
12use Bitrix\Main\Loader;
                    
13use Bitrix\Main\Localization\Loc;
                    
14use Bitrix\Main\SystemException;
                    
36	const AUTHORIZE = "/register/";
                    
37	const REDIRECT_URI = "/bitrix/tools/seo_client.php";
                    
38
                    
290	 * @throws SystemException
                    
291	 * @throws \Bitrix\Main\ArgumentException
                    
292	 */
                    
394	 */
                    
395	public static function changeRegisteredDomain(array $domains = []): void
                    
396	{
                    
408		{
                    
409			$newRedirectUri = str_replace($domains['old_domain'], $domains['new_domain'], $newRedirectUri);
                    
410		}
                    
                
store.php https://gitlab.com/alexprowars/bitrix | PHP | 415 lines
                    
1<?php
                    
2
                    
4
                    
5use Bitrix\Main;
                    
6use Bitrix\Main\Localization\Loc;
                    
6use Bitrix\Main\Localization\Loc;
                    
7use Bitrix\Main\UserTable;
                    
8
                    
53 */
                    
54class StoreTable extends Main\Entity\DataManager
                    
55{
                    
73		return [
                    
74			'ID' => new Main\Entity\IntegerField(
                    
75				'ID',
                    
81			),
                    
82			'TITLE' => new Main\Entity\StringField(
                    
83				'TITLE',
                    
                
xoops_version.php https://gitlab.com/BaseX/BaseX | PHP | 169 lines
                    
1<?php
                    
2// $Id: xoops_version.php 694 2006-09-04 11:33:22Z skalpa $
                    
3//  ------------------------------------------------------------------------ //
                    
4//                XOOPS - PHP Content Management System                      //
                    
5//                    Copyright (c) 2000 XOOPS.org                           //
                    
44$modversion['hasAdmin'] = 1;
                    
45$modversion['adminindex'] = "admin.php";
                    
46$modversion['adminmenu'] = "menu.php";
                    
47
                    
48$modversion['onUpdate'] = "include/update.php";
                    
49
                    
82// Blocks
                    
83$modversion['blocks'][1]['file'] = "system_blocks.php";
                    
84$modversion['blocks'][1]['name'] = _MI_SYSTEM_BNAME2;
                    
88
                    
89$modversion['blocks'][2]['file'] = "system_blocks.php";
                    
90$modversion['blocks'][2]['name'] = _MI_SYSTEM_BNAME3;
                    
                
VarCloner.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | 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;
                    
                
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
                    
                
wysiwyg.api.php https://gitlab.com/endomorphosis/tactilevision | PHP | 206 lines
                    
1<?php
                    
2
                    
48            'path' => drupal_get_path('module', 'img_assist') . '/drupalimage',
                    
49            // The name of the plugin's main JavaScript file.
                    
50            // Ignored when 'internal' is set to TRUE below.
                    
                
2012-15-107.html https://gitlab.com/bernagg/TI | HTML | 157 lines
                    
15an alkasir user, you are able to report about URLs (whole website
                    
16domains or URLs within websites) that you suspect are inaccessible
                    
17due to intentional blocking. <br><br></font></font></font><font color="#000000"><font face="Arial"><font size="2"><b>But
                    
27	different computers as some websites may be temporarily offline or
                    
28	under maintenance.</font></font></font></p>
                    
29	<li><p style="MARGIN-BOTTOM: 0.05in"><font color="#000000"><font face="Arial"><font size="2">If
                    
40	1.2 of alkasir added the functionality of accepting particular URLs
                    
41	(e.g., wikipedia.org/tunisia) for domains that may not blocked
                    
42	(e.g., wikipedia.org)</i></font></font></font></p>
                    
64	<li><p style="MARGIN-BOTTOM: 0.05in; FONT-WEIGHT: normal"><font color="#000000"><font face="Arial"><font size="2">website3.com/dir/dir/file.html</font></font></font></p>
                    
65	<li><p style="MARGIN-BOTTOM: 0.05in"><font color="#000000"><font face="Arial"><font size="2"><span style="FONT-WEIGHT: normal">website4.com/dir/dir2/file.php?argument1=1&amp;argument2=2
                    
66	</span></font></font></font><font color="#000000"><font face="Arial"><font size="2"><br></font></font></font><br><br>
                    
93Furthermore, if you add a (www.) before the website, the program will
                    
94automatically check the domain once with the (www) and once without
                    
95it as some ISPs may block the domain only if it has (www) while
                    
                
RouteCollectionBuilderTest.php https://gitlab.com/jed-lagunday/laratuts | 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
                    
                
GameOverAdvancedGui.cs https://gitlab.com/deliriumgameworks/lab | C# | 289 lines
                    
38	
                    
39	public Texture2D MainMenu;
                    
40	public Texture2D Retry;
                    
105      string up_query_str =
                    
106        "https://www.copsvsorcs.com/insert_high_score.php" +
                    
107        "?id=" + WWW.EscapeURL(GameVars.getInstance().getPlayerName()) +
                    
163		GUILayout.Box (GameOverLabel, goLabelOptions);
                    
164		flexibleSpaces (1);//space from gameover label to main menu button
                    
165		
                    
165		
                    
166		if (GUILayout.Button(MainMenu, buttonOptions))
                    
167		{
                    
173      GameVars.getInstance().setMScore(0);
                    
174			SceneManager.LoadLevel(SceneManager.Scene.MAIN_MENU);
                    
175		}
                    
                
jqplot.pyramidGridRenderer.min.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 57 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."
                    
                
schema.php https://gitlab.com/alexprowars/bitrix | PHP | 414 lines
                    
1<?php
                    
2namespace Bitrix\Perfmon\Sql;
                    
3
                    
4use Bitrix\Main\NotSupportedException;
                    
5
                    
8\Bitrix\Main\Loader::includeModule('perfmon');
                    
9$dir = new \Bitrix\Main\IO\Directory("/opt/php03.cp1251.www/mercurial/bitrix/modules");
                    
10foreach ($dir->getChildren()  as $child)
                    
18			$path = $child->getPath()."/install/db/$db/install.sql";
                    
19			if (!\Bitrix\Main\IO\File::isFileExists($path))
                    
20				$path = $child->getPath()."/install/$db/install.sql";
                    
20				$path = $child->getPath()."/install/$db/install.sql";
                    
21			if (!\Bitrix\Main\IO\File::isFileExists($path))
                    
22				continue;
                    
23			//echo "<br>$path<br>";
                    
24			$sql = \Bitrix\Main\IO\File::getFileContents($path);
                    
25			$s = new \Bitrix\Perfmon\Sql\Schema;
                    
                
site_speed.php https://gitlab.com/alexprowars/bitrix | PHP | 297 lines
                    
60	<div class="site-speed-domains">
                    
61		<span class="site-speed-domains-label"><?=Loc::getMessage("MAIN_SITE_SPEED_DOMAINS_LABEL")?></span>
                    
62		<select class="site-speed-domains-select" id="site-speed-domains">
                    
102				?>
                    
103					<a href="/bitrix/admin/perfmon_panel.php?lang=<?=LANGUAGE_ID?>" class="site-speed-perf-label"><?=Loc::getMessage("MAIN_SITE_SPEED_PERF")?></a>:<span class="site-speed-perf-value"><?if ($mark > 0):?><?=$mark?><?else:?><?=Loc::getMessage("MAIN_SITE_SPEED_PERF_NO_RES")?><?endif?></span>
                    
104				<?endif?>
                    
106				<?
                    
107				$compositeStatus = \Bitrix\Main\Composite\Helper::isCompositeEnabled() ? Loc::getMessage("MAIN_SITE_SPEED_ENABLED") : Loc::getMessage("MAIN_SITE_SPEED_DISABLED");
                    
108				if (\Bitrix\Main\Composite\Engine::isSelfHostedPortal()):?>
                    
166
                    
167				fillDomains(data.domains, data.domains_utf8);
                    
168
                    
284		{
                    
285			var title = BX.type.isNotEmptyString(domainsUtf[domains[i]]) ? domainsUtf[domains[i]] : domains[i];
                    
286			select.options[i+1] = new Option(title, domains[i]);
                    
                
ClassMetadataTest.php https://gitlab.com/freebird/WebApp | PHP | 280 lines
                    
1<?php
                    
2
                    
20
                    
21class ClassMetadataTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
259     */
                    
260    public function testGroupSequenceProviderFailsIfDomainClassIsInvalid()
                    
261    {
                    
                
landing.php https://gitlab.com/NucleusStudios/Mercado-BTX | PHP | 259 lines
                    
8
                    
9			<div role="main" class="main">
                    
10				<div id="content" class="content full">
                    
94								<div class="col-md-8" id="midBannerText">
                    
95									<p><?php echo Yii::t('translation', 'top_title_main'); ?></p>
                    
96								</div>
                    
99										<a href="<?php echo Yii::app()->baseUrl . '/'. Yii::t('urls','register'); ?>" class="btn btn-lg btn-primary"><span id ="registerButton"><?php echo Yii::t('translation', 'top_side_main_text'); ?></a>
                    
100										<div class="learn-more"><a href="<?php echo Yii::app()->baseUrl . '/'. Yii::t('urls','preguntas_frecuentes'); ?>"><span id="moreInformationButton"><?php echo Yii::t('translation', 'top_side_main_text2'); ?></span></a></div>
                    
101									</div>
                    
147											<div class="feature-box-info">
                    
148												<h4 class="shorter"><?php echo Yii::t('translation', 'menu_section_4'); ?></h4>
                    
149												<p class="tall"><?php echo Yii::t('translation', 'menu_section_4_text'); ?></p>
                    
246								<div class="center">
                    
247									<h3><?php echo Yii::t('translation', 'bottom_main_text_bottom'); ?><a href="<?php echo Yii::app()->baseUrl . '/'. Yii::t('urls','register'); ?>" class="btn btn-lg btn-primary" data-appear-animation="bounceIn"><?php echo Yii::t('translation', 'bottom_main_button'); ?></a> <span class="arrow hlb" data-appear-animation="rotateInUpLeft" style="top: -22px;"></span></h3>
                    
248								</div>
                    
                
SetTest.php https://gitlab.com/daigiangaitu91/magento | 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     */
                    
                
autoptimizeBase.php https://gitlab.com/hop23typhu/list-theme | PHP | 317 lines
                    
38			}
                    
39		} else if ((strpos($url,'//')===false) && (strpos($url,parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST))===false)) {
                    
40			$url = AUTOPTIMIZE_WP_SITE_URL.$url;
                    
53			
                    
54			$multidomainsWPML = apply_filters('wpml_setting', array(), 'language_domains');
                    
55			if (!empty($multidomainsWPML)) {
                    
55			if (!empty($multidomainsWPML)) {
                    
56				$multidomains = array_map(array($this,"ao_getDomain"),$multidomainsWPML);
                    
57			}
                    
59			if (!empty($this->cdn_url)) {
                    
60				$multidomains[]=parse_url($this->cdn_url,PHP_URL_HOST);
                    
61			}
                    
62			
                    
63			$multidomains = apply_filters('autoptimize_filter_cssjs_multidomain', $multidomains);
                    
64			
                    
                
blog-layout.php https://gitlab.com/hop23typhu/list-theme | PHP | 281 lines
                    
1<?php
                    
2/**
                    
63
                    
64	// Start the main loop
                    
65	while ( have_posts() ): the_post();
                    
280
                    
281// Omit closing PHP tag to avoid "Headers already sent" issues.
                    
282
                    
                
editor.php https://gitlab.com/che234/adn | PHP | 343 lines
                    
1<?php
                    
2
                    
75        if (!isset(self::$profile)) {
                    
76            $mainframe = JFactory::getApplication();
                    
77
                    
103            // get the Joomla! area (admin or site)
                    
104            $area = $mainframe->isAdmin() ? 2 : 1;
                    
105            
                    
107                // load mobile detect class
                    
108                require_once(dirname(__FILE__) . '/mobile.php');
                    
109            }
                    
                
View.php git://github.com/concrete5/concrete5.git | PHP | 478 lines
                    
1<?php
                    
2namespace Concrete\Core\View;
                    
210        if (!$this->innerContentFile) { // will already be set in a legacy tools file
                    
211            $this->setInnerContentFile($env->getPath($this->viewRootDirectoryName.'/'.trim($this->viewPath, '/').'.php', $this->viewPkgHandle));
                    
212        }
                    
242
                    
243        // Render the main view file
                    
244        if ($this->innerContentFile) {
                    
466
                    
467        $_record = $_locator->getRecord(DIRNAME_ELEMENTS . '/' . $_file . '.php');
                    
468        $_file = $_record->getFile();
                    
                
agreement.php https://gitlab.com/alexprowars/bitrix | PHP | 585 lines
                    
1<?php
                    
2/**
                    
4 * @package bitrix
                    
5 * @subpackage main
                    
6 * @copyright 2001-2016 Bitrix
                    
7 */
                    
8namespace Bitrix\Main\UserConsent;
                    
9
                    
9
                    
10use Bitrix\Main\Localization\Loc;
                    
11use Bitrix\Main\UserConsent\Internals\FieldTable;
                    
11use Bitrix\Main\UserConsent\Internals\FieldTable;
                    
12use Bitrix\Main\Error;
                    
13use Bitrix\Main\ErrorCollection;
                    
13use Bitrix\Main\ErrorCollection;
                    
14use Bitrix\Main\Type\DateTime;
                    
15use Bitrix\Main\ORM;
                    
                
base.php https://gitlab.com/alexprowars/bitrix | PHP | 539 lines
                    
1<?php
                    
2namespace Bitrix\Report\VisualConstructor\Fields;
                    
3
                    
4use Bitrix\Main\Page\Asset;
                    
5use Bitrix\Report\VisualConstructor\Form;
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 255 lines
                    
1<?php
                    
2
                    
10/** @var array $arResult */
                    
11/** @global CMain $APPLICATION */
                    
12
                    
                
Database.php https://gitlab.com/blingbang2016/shop | PHP | 350 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 */
                    
52        $adapter = $this->_getWriteAdapter();
                    
53        $table = $this->getMainTable();
                    
54        if ($adapter->isTableExists($table)) {
                    
135        $select = $adapter->select()
                    
136            ->from(array('e' => $this->getMainTable()))
                    
137            ->where('filename = ?', $filename)
                    
157        $adapter = $this->_getWriteAdapter();
                    
158        $adapter->delete($this->getMainTable());
                    
159
                    
                
index.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 363 lines
                    
1<?php
                    
2# Manage user preferences
                    
22
                    
23# we need to define the theme before loading the pre.php init script,
                    
24# otherwise the page needs to be reloaded for the change to take effect.
                    
25# see bug #1987
                    
26require_once('../../include/sane.php');
                    
27extract(sane_import('post',
                    
40
                    
41require_once('../../include/init.php');
                    
42require_once('../../include/timezones.php');
                    
139
                    
140print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
                    
141
                    
151print $HTML->box_top(_('Authentication Setup'));
                    
152print '<a href="change.php?item=password">'._("Change Password").'</a>';
                    
153print '<p class="smaller">'._("This password gives access to the web interface.").'<br />';
                    
                
AdvancedServerDatabaseConfig.cs https://openHistorian.svn.codeplex.com/svn | C# | 388 lines
                    
43        private string m_databaseName;
                    
44        private string m_mainPath;
                    
45        private string m_finalFileExtension;
                    
63            m_databaseName = databaseName;
                    
64            m_mainPath = mainPath;
                    
65            m_intermediateFileExtension = ".d2i";
                    
179        /// The list of directories where final files can be placed written. 
                    
180        /// If nothing is specified, the main directory is used.
                    
181        /// </summary>
                    
324                {
                    
325                    int remainingStages = StagingCount - stage;
                    
326
                    
327                    var rollover = new CombineFilesSettings();
                    
328                    if (remainingStages > 0)
                    
329                    {
                    
                
README.md https://gitlab.com/firastrabelsi/PiDevMoocWeb | 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
                    
                
modResource.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 321 lines
                    
70		// (where MYMODULE is value of property name of module in uppercase)
                    
71		$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
                    
72		// Name of image file used for this module.
                    
80		// for specific path of parts (eg: /resource/core/modules/barcode)
                    
81		// for specific css file (eg: /resource/css/resource.css.php)
                    
82		$this->module_parts = array();
                    
187		$this->menu[$r] = array(
                    
188			'fk_menu'=>'fk_mainmenu=tools',
                    
189			'type'=>'left',
                    
193			'leftmenu'=> 'resource',
                    
194			'url'=> '/resource/list.php',
                    
195			'langs'=> 'resource',
                    
267		$this->import_entities_array[$r] = array(); // We define here only fields that use another icon that the one defined into import_icon
                    
268		$this->import_tables_array[$r] = array('r'=>MAIN_DB_PREFIX.'resource', 'extra'=>MAIN_DB_PREFIX.'resource_extrafields'); // List of tables to insert into (insert done in same order)
                    
269		$this->import_fields_array[$r] = array('r.ref'=>"ResourceFormLabel_ref*", 'r.fk_code_type_resource'=>'ResourceTypeCode', 'r.description'=>'ResourceFormLabel_description', 'r.note_private'=>"NotePrivate", 'r.note_public'=>"NotePublic", 'r.asset_number'=>'AssetNumber', 'r.datec'=>'DateCreation');
                    
                
SdwApi.java https://jonathan.svn.codeplex.com/svn | Java | 359 lines
                    
20import com.seekdeepwithin.Data.*;
                    
21import com.seekdeepwithin.MainController;
                    
22import com.sun.jersey.api.client.*;
                    
50      this.m_Client = Client.create (config);
                    
51      this.m_Service = this.m_Client.resource (UriBuilder.fromUri ("http://seekdeepwithin.com/code/api.php").build ());
                    
52   }
                    
167      } catch (UniformInterfaceException exception) {
                    
168         Dialogs.showErrorDialog (MainController.getInstance ().getStage (),
                    
169                                  "Unable to download library book information from the server! Please try again later.",
                    
                
base_admin.class.php https://gitlab.com/hop23typhu/list-theme | PHP | 526 lines
                    
26		 */
                    
27		public function __construct($mainFile,$t,$defaultView){
                    
28						
                    
28						
                    
29			parent::__construct($mainFile,$t);
                    
30			
                    
180				if(!empty(self::$master_view) && !isset(self::$tempVars["is_masterView"]) ){
                    
181					$masterViewFilepath = self::$path_views.self::$master_view.".php";
                    
182					UniteFunctionsRev::validateFilepath($masterViewFilepath,"Master View");
                    
206			
                    
207			$pathTemplate = self::$path_templates.$templateName.".php";
                    
208			UniteFunctionsRev::validateFilepath($pathTemplate,"Template");
                    
417					if( UniteZipRev::isZipExists() == false)
                    
418						UniteFunctionsRev::throwError("The ZipArchive php extension not exists, can't extract the update file. Please turn it on in php ini.");
                    
419				}
                    
                
class-wc-query.php https://gitlab.com/hop23typhu/list-theme | PHP | 496 lines
                    
1<?php
                    
2/**
                    
43	/**
                    
44	 * Hook into pre_get_posts to do the main product query
                    
45	 *
                    
52
                    
53		// We only want to affect the main query
                    
54		if ( ! $q->is_main_query() )
                    
168	/**
                    
169	 * Hook into the_posts to do the main product query if needed - relevanssi compatibility
                    
170	 *
                    
226	/**
                    
227	 * Query the products, applying sorting/ordering etc. This applies to the main wordpress loop
                    
228	 *
                    
299
                    
300		// Get main query
                    
301		$current_wp_query = $wp_the_query->query;
                    
                
DateType.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 370 lines
                    
83                $timeFormat,
                    
84                // see https://bugs.php.net/bug.php?id=66323
                    
85                class_exists('IntlTimeZone', false) ? \IntlTimeZone::createDefault() : null,
                    
101                $yearOptions['placeholder'] = $options['placeholder']['year'];
                    
102                $yearOptions['choice_translation_domain'] = $options['choice_translation_domain']['year'];
                    
103                $monthOptions['choices'] = $this->formatTimestamps($formatter, '/[M|L]+/', $this->listMonths($options['months']));
                    
105                $monthOptions['placeholder'] = $options['placeholder']['month'];
                    
106                $monthOptions['choice_translation_domain'] = $options['choice_translation_domain']['month'];
                    
107                $dayOptions['choices'] = $this->formatTimestamps($formatter, '/d+/', $this->listDays($options['days']));
                    
219
                    
220        $choiceTranslationDomainNormalizer = function (Options $options, $choiceTranslationDomain) {
                    
221            if (is_array($choiceTranslationDomain)) {
                    
266        $resolver->setNormalizer('placeholder', $placeholderNormalizer);
                    
267        $resolver->setNormalizer('choice_translation_domain', $choiceTranslationDomainNormalizer);
                    
268
                    
                
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)
                    
                
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:
                    
                
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',
                    
                
build_class_from_table.php git://github.com/Dolibarr/dolibarr.git | PHP | 464 lines
                    
168// Substitute class name
                    
169$targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.php', $targetcontent);
                    
170$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent);
                    
179// Substitute table name
                    
180$targetcontent=preg_replace('/MAIN_DB_PREFIX."mytable/', 'MAIN_DB_PREFIX."'.$tablenoprefix, $targetcontent);
                    
181
                    
398// Substitute table name
                    
399$targetcontent=preg_replace('/MAIN_DB_PREFIX."mytable/', 'MAIN_DB_PREFIX."'.$tablenoprefix, $targetcontent);
                    
400
                    
433$targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.php', $targetcontent);
                    
434$targetcontent=preg_replace('/skeleton_script\.php/', $classmin.'_script.php', $targetcontent);
                    
435$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent);
                    
445// Substitute table name
                    
446$targetcontent=preg_replace('/MAIN_DB_PREFIX."mytable/', 'MAIN_DB_PREFIX."'.$tablenoprefix, $targetcontent);
                    
447
                    
                
autoloader.php https://gitlab.com/JrLucena/moodle | PHP | 203 lines
                    
36 * vendor/bin/phpunit core_component_testcase
                    
37 * vendor/bin/phpunit lib/tests/component_test.php
                    
38 * vendor/bin/phpunit core_component_testcase lib/tests/component_test.php
                    
44 */
                    
45class phpunit_autoloader implements PHPUnit_Runner_TestSuiteLoader {
                    
46    public function load($suiteClassName, $suiteClassFile = '') {
                    
56            }
                    
57            if (strpos($suiteClassName, '\\') !== false and strpos($suiteClassFile, $suiteClassName.'.php') !== false) {
                    
58                // This must be backslashed windows path.
                    
100                    $testfile = implode('_', $parts);
                    
101                    $fullpath = "{$fulldir}/tests/{$testfile}_test.php";
                    
102                    if (is_readable($fullpath)) {
                    
110            }
                    
111            // The last option is testsuite directories in main phpunit.xml file.
                    
112            $xmlfile = "$CFG->dirroot/phpunit.xml";
                    
                
Collection.php https://gitlab.com/blingbang2016/shop | PHP | 260 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 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 */
                    
61            ->join($this->getTable('rating_entity'),
                    
62                'main_table.entity_id=' . $this->getTable('rating_entity') . '.entity_id',
                    
63                array('entity_code'));
                    
84    {
                    
85        $this->setOrder('main_table.position', $dir);
                    
86        return $this;
                    
108                    array('store'=>$this->getTable('rating_store')),
                    
109                    'main_table.rating_id = store.rating_id',
                    
110                    array())
                    
                
index.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 548 lines
                    
43/* Check for config */
                    
44if ((!file_exists('admin/config.php')) or (filesize('admin/config.php') < 10)) {
                    
45	/* redirect to installer */
                    
69/* Prevent superglobal poisoning before extraction */
                    
70globalSec('Main index.php', 1);
                    
71/* Access to form vars if register globals is off */
                    
88	}
                    
89	/* New! Built in php function. Tell php what the server timezone is so that we can use php 5's rewritten time and date functions with the correct time and without error messages */
                    
90	date_default_timezone_set("$server_timezone");
                    
110if (strnatcmp(phpversion(), '5.0.0') >= 0) {
                    
111	/* Load the php5 version of simplepie if you are running php5 */
                    
112	include_once 'admin/lib/lib_simplepie_php5.php';
                    
159	if (file_exists("admin/themes/{$site_theme}/theme.php")) {
                    
160		/* New! Your custom theme file must be named theme.php instead of index.php */
                    
161		include_once("admin/themes/{$site_theme}/theme.php");
                    
                
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',
                    
                
BaseVarDumper.php https://gitlab.com/piotrbilski/yiiPriceWatcher | 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     *
                    
                
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: '
                    
                
view-about.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 106 lines
                    
6        <div class="inside">
                    
7        <p><?php _e( 'WP-Table Reloaded allows you to create and manage tables in the admin-area of WordPress.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'Those tables may contain strings, numbers and even HTML (e.g. to include images or links).', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'You can then show the tables in your posts, on your pages or in text-widgets by using a shortcode.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'If you want to show your tables anywhere else in your theme, you can use a template tag function.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p>
                    
8        </div>
                    
13        <div class="inside">
                    
14        <p><?php _e( 'At first you should add or import a table.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'This means that you either let the plugin create an empty table for you or that you load an existing table from either a CSV, XML or HTML file.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p><p><?php _e( 'Then you can edit your data or change the structure of your table (e.g. by inserting or deleting rows or columns, swaping rows or columns or sorting them) and select specific table options like alternating row colors or whether to print the name or description, if you want.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'To easily add a link or an image to a cell, use the provided buttons. Those will ask you for the URL and a title. Then you can click into a cell and the corresponding HTML will be added to it for you.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p><p><?php printf( __( 'To insert the table into a page, post or text-widget, copy the shortcode <strong>[table id=%s /]</strong> and paste it into the corresponding place in the editor.', WP_TABLE_RELOADED_TEXTDOMAIN ), '&lt;ID&gt;' ); ?> <?php printf( __( 'You can also select the desired table from a list (after clicking the button &quot;%s&quot; in the editor toolbar) and the corresponding shortcode will be added for you.', WP_TABLE_RELOADED_TEXTDOMAIN ), __( 'Table', WP_TABLE_RELOADED_TEXTDOMAIN ) ); ?></p><p><?php _e( 'Tables can be styled by changing and adding CSS commands.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'The plugin ships with default CSS Stylesheets, which can be customized with own code or replaced with other Stylesheets.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'For this, each table is given certain CSS classes that can be used as CSS selectors.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php printf ( __( 'Please see the <a href="%s">documentation</a> for a list of these selectors and for styling examples.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/documentation/' ); ?></p>
                    
15        </div>
                    
27        <div class="inside">
                    
28        <p><?php printf( __( '<a href="%s">Support</a> is provided through the <a href="%s">WordPress Support Forums</a>.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/support/', 'http://www.wordpress.org/support/' ); ?> <?php printf( __( 'Before asking for support, please carefully read the <a href="%s">Frequently Asked Questions</a> where you will find answered to the most common questions, and search through the forums.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/faq/' ); ?></p><p><?php printf( __( 'If you do not find an answer there, please <a href="%s">open a new thread</a> in the WordPress Support Forums with the tag &quot;wp-table-reloaded&quot;.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://wordpress.org/tags/wp-table-reloaded' ); ?></p>
                    
29        </div>
                    
34        <div class="inside">
                    
35        <p><?php printf( __( 'This plugin was written by <a href="%s">Tobias B&auml;thge</a>.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/' ); ?> <?php _e( 'It is licensed as Free Software under GPL 2.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?><br/><?php printf( __( 'If you like the plugin, <a href="%s"><strong>a donation</strong></a> is recommended.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/donate/' ); ?> <?php printf( __( 'Please rate the plugin in the <a href="%s">WordPress Plugin Directory</a>.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://wordpress.org/extend/plugins/wp-table-reloaded/' ); ?><br/><?php _e( 'Donations and good ratings encourage me to further develop the plugin and to provide countless hours of support. Any amount is appreciated! Thanks!', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p>
                    
36        </div>
                    
90        <div class="postbox<?php echo $this->helper->postbox_closed( 'debug-version-information', true ); ?>">
                    
91        <h3 class="hndle"><span><?php _e( 'Debug and Version Information', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></span><span class="hide_link"><small><?php echo _x( 'Hide', 'expand', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></small></span><span class="expand_link"><small><?php _e( 'Expand', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></small></span></h3>
                    
92        <div class="inside">
                    
                
box_graph_invoices_permonth.php git://github.com/Dolibarr/dolibarr.git | PHP | 293 lines
                    
1<?php
                    
2/* Copyright (C) 2013 Laurent Destailleur  <eldy@users.sourceforge.net>
                    
18/**
                    
19 *	\file       htdocs/core/boxes/box_graph_invoices_permonth.php
                    
20 *	\ingroup    factures
                    
22 */
                    
23include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
                    
24
                    
75
                    
76		//include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
                    
77		//$facturestatic=new Facture($this->db);
                    
112
                    
113			include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
                    
114			include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php';
                    
133			}
                    
134			$startyear = $endyear - (empty($conf->global->MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH) ? 2 : ($conf->global->MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH - 1));
                    
135
                    
                
Phalcon.php https://gitlab.com/merial/WETE_Ryhma3 | PHP | 460 lines
                    
1<?php
                    
2namespace Codeception\Lib\Connector;
                    
3
                    
4use Codeception\Lib\Connector\Shared\PhpSuperGlobalsConverter;
                    
5use Symfony\Component\BrowserKit\Response;
                    
20{
                    
21    use PhpSuperGlobalsConverter;
                    
22
                    
82        $uri         = $request->getUri() ?: $phRequest->getURI();
                    
83        $pathString  = parse_url($uri, PHP_URL_PATH);
                    
84        $queryString = parse_url($uri, PHP_URL_QUERY);
                    
141                        $cookie->getPath(),
                    
142                        $cookie->getDomain(),
                    
143                        $cookie->getSecure(),
                    
199    {
                    
200        if ($this->status() !== PHP_SESSION_ACTIVE) {
                    
201            $this->memory = [];
                    
                
form.js https://gitlab.com/ivandevp/petshop | JavaScript | 506 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/osl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2016 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
32	$.get(
                    
33		'ajax-tab.php',
                    
34		{controller:'AdminCartRules',token:currentToken,newProductRuleGroup:1,product_rule_group_id:product_rule_groups_counter},
                    
51		$.get(
                    
52			'ajax-tab.php',
                    
53			{controller:'AdminCartRules',token:currentToken,newProductRule:1,product_rule_type:$('#product_rule_type_' + product_rule_group_id).val(),product_rule_group_id:product_rule_group_id,product_rule_id:product_rule_counters[product_rule_group_id]},
                    
266
                    
267// Main form submit
                    
268$('#cart_rule_form').submit(function() {
                    
                
unit-testing.rst https://gitlab.com/cuitianze/eduwind | ReStructuredText | 201 lines
                    
13
                    
14Guzzle is unit tested using `PHPUnit <http://www.phpunit.de/>`_.  Your web service client's unit tests should extend
                    
15``Guzzle\Tests\GuzzleTestCase`` so that you can take advantage of some of the built in helpers.
                    
16
                    
17In order to unit test your client, a developer would need to copy phpunit.xml.dist to phpunit.xml and make any needed
                    
18modifications.  As a best practice and security measure for you and your contributors, it is recommended to add an
                    
67may want to include at least one actual network test that can be run specifically through the command line using
                    
68`PHPUnit group annotations <http://www.phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.group>`_.
                    
69
                    
82If API  credentials are required to run your integration tests, you must add ``<php>`` parameters to your
                    
83phpunit.xml.dist file and extract these parameters in your bootstrap.php file.
                    
84
                    
87    <?xml version="1.0" encoding="UTF-8"?>
                    
88    <phpunit bootstrap="./tests/bootstrap.php" colors="true">
                    
89        <php>
                    
                
mod_form.php https://gitlab.com/JrLucena/moodle | PHP | 232 lines
                    
1<?php
                    
2
                    
27
                    
28require_once($CFG->dirroot.'/course/moodleform_mod.php');
                    
29require_once($CFG->dirroot.'/mod/resource/locallib.php');
                    
29require_once($CFG->dirroot.'/mod/resource/locallib.php');
                    
30require_once($CFG->libdir.'/filelib.php');
                    
31
                    
67        $filemanager_options['maxfiles'] = -1;
                    
68        $filemanager_options['mainfile'] = true;
                    
69
                    
212        if (count($files) == 1) {
                    
213            // no need to select main file if only one picked
                    
214            return $errors;
                    
215        } else if(count($files) > 1) {
                    
216            $mainfile = false;
                    
217            foreach($files as $file) {
                    
                
city_list.php https://gitlab.com/alexprowars/bitrix | PHP | 324 lines
                    
1<?php
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php");
                    
5include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php");
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php");
                    
7
                    
143					if ($find_data_type=="SESSIONS") :
                    
144					?><a href="/bitrix/admin/session_list.php?lang=<?=LANGUAGE_ID?>&amp;find_city_id=<?echo urlencode($id)?>&amp;find_city_exact_match=Y&amp;find_date1=<?echo urlencode($arFilter["DATE1"])?>&amp;find_date2=<?echo urlencode($arFilter["DATE2"])?>&amp;set_filter=Y"><?=$counter?></a><?
                    
145					elseif ($find_data_type=="NEW_GUESTS") :
                    
179	<tr>
                    
180		<td valign="center"><img src="/bitrix/admin/city_diagram.php?<?=GetFilterParams($FilterArr)?>&lang=<?=LANGUAGE_ID?>&find_data_type=<?=$find_data_type?>&diagram_type=TOTAL" width="<?=$diameter?>" height="<?=$diameter?>"></td>
                    
181		<td valign="center">
                    
286$APPLICATION->SetTitle(GetMessage("STAT_RECORDS_LIST").': '.$group_title);
                    
287require_once ($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
288
                    
323
                    
324<?require_once ($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");?>
                    
                
AdminPreferencesController.php https://gitlab.com/ivandevp/petshop | 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-2016 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',
                    
                
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">
                    
                
page.tpl.php https://gitlab.com/endomorphosis/superchooseday | PHP | 211 lines
                    
87<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                    
88<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
                    
89<head>
                    
99      <!-- NEVER use display:none to hide skip links - see http://drupal.org/node/472572 -->
                    
100      <a href="#main-content"><?php print t('Skip to main content'); ?></a>
                    
101    </div>
                    
114                <?php if ($linked_site_logo): ?><span id="logo"><?php print $linked_site_logo; ?></span><?php endif; ?>
                    
115                <?php if ($linked_site_name): ?><span id="site-name"><?php print $linked_site_name; ?></span><?php endif; ?>
                    
116              </strong></div>           
                    
119                <?php if ($linked_site_logo): ?><span id="logo"><?php print $linked_site_logo; ?></span><?php endif; ?>
                    
120                <?php if ($linked_site_name): ?><span id="site-name"><?php print $linked_site_name; ?></span><?php endif; ?>
                    
121             </h1>
                    
170              <div id="main-content-header">
                    
171                <?php if ($title): ?><h1 id="page-title"><?php print $title; ?></h1><?php endif; ?> <!-- /page title -->
                    
172                <?php if ($tabs): ?>
                    
                
fileman_server_access.php https://gitlab.com/alexprowars/bitrix | PHP | 346 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/prolog.php");
                    
7
                    
8require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/include.php");
                    
9include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/classes/general/fileman_utils.php");
                    
161	window.spBstoped = <?= $bStoped ? 'true' : 'false'?>;
                    
162	window.spResult = <?= CUtil::PhpToJSObject($oChmod->Result)?>;
                    
163	</script>
                    
167
                    
168$backToFolderUrl = "fileman_admin.php?".$addUrl."&site=".$site."&path=".UrlEncode($path).($bSearch ? "&search=Y&ssess=".$searchSess : "");
                    
169
                    
190
                    
191require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
192CFilemanUtils::InitScript(array(
                    
345<br>
                    
346<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");?>
                    
                
DebugBar.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 468 lines
                    
1<?php
                    
2/*
                    
17/**
                    
18 * Main DebugBar object
                    
19 *
                    
46
                    
47    protected $stackSessionNamespace = 'PHPDEBUGBAR_STACK_DATA';
                    
48
                    
183     *
                    
184     * If no http driver where defined, a PhpHttpDriver is automatically created
                    
185     *
                    
190        if ($this->httpDriver === null) {
                    
191            $this->httpDriver = new PhpHttpDriver();
                    
192        }
                    
253     */
                    
254    public function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000)
                    
255    {
                    
                
SearchHelper.php git://github.com/thorsten/phpMyFAQ.git | PHP | 382 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Helper class for phpMyFAQ search.
                    
5 *
                    
9 *
                    
10 * @package   phpMyFAQ\Helper
                    
11 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
11 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
12 * @copyright 2009-2021 phpMyFAQ Team
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
14 * @link      https://www.phpmyfaq.de
                    
15 * @since     2009-09-07
                    
17
                    
18namespace phpMyFAQ\Helper;
                    
19
                    
                
class.module.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 391 lines
                    
1<?php
                    
2if ( !defined('_JEXEC') && defined('_VALID_MOS') ) define( '_JEXEC', true );
                    
4### Copyright (C) 2006-2007 Acajoom Services. All rights reserved.
                    
5### http://www.acajoom.com/license.php
                    
6
                    
43	 	//$headerAcajoom = '<link rel="stylesheet" href="' . $GLOBALS['mosConfig_live_site']. '/components/com_acajoom/css/acajoom.css" type="text/css" />';
                    
44	 	//$mainframe->addCustomHeadTag($headerAcajoom);
                    
45		$this->shownamefield = $params->get('shownamefield', 0);
                    
83				$this->introtext = 'Notify me of new product';
                    
84				$this->redirectURL = 'index.php?option=com_virtuemart&page=shop.browse&category_id='.$this->catId.$item;
                    
85				$this->buttonRegistered = _CMN_YES;
                    
111	 function create() {
                    
112		global $my, $mainframe;
                    
113		$Itemid = $GLOBALS[ACA.'itemidAca'];
                    
168
                    
169			$linkForm = 'index.php?option=com_acajoom';
                    
170			if ( $GLOBALS[ACA.'use_sef'] AND function_exists('sefRelToAbs') ) {
                    
                
widget-categories.php http://ooxx.googlecode.com/svn/trunk/ | PHP | 246 lines
                    
217			<label for="<?php echo $this->get_field_id( 'hierarchical' ); ?>">
                    
218			<input class="checkbox" type="checkbox" <?php checked( $instance['hierarchical'], true ); ?> id="<?php echo $this->get_field_id( 'hierarchical' ); ?>" name="<?php echo $this->get_field_name( 'hierarchical' ); ?>" /> <?php _e( 'Hierarchical?', $this->textdomain ); ?> <code>hierarchical</code></label>
                    
219		</p>
                    
225			<label for="<?php echo $this->get_field_id( 'show_last_update' ); ?>">
                    
226			<input class="checkbox" type="checkbox" <?php checked( $instance['show_last_update'], true ); ?> id="<?php echo $this->get_field_id( 'show_last_update' ); ?>" name="<?php echo $this->get_field_name( 'show_last_update' ); ?>" /> <?php _e( 'Show last update?', $this->textdomain ); ?> <code>show_last_update</code></label>
                    
227		</p>
                    
229			<label for="<?php echo $this->get_field_id( 'show_count' ); ?>">
                    
230			<input class="checkbox" type="checkbox" <?php checked( $instance['show_count'], true ); ?> id="<?php echo $this->get_field_id( 'show_count' ); ?>" name="<?php echo $this->get_field_name( 'show_count' ); ?>" /> <?php _e( 'Show count?', $this->textdomain ); ?> <code>show_count</code></label>
                    
231		</p>
                    
233			<label for="<?php echo $this->get_field_id( 'hide_empty' ); ?>">
                    
234			<input class="checkbox" type="checkbox" <?php checked( $instance['hide_empty'], true ); ?> id="<?php echo $this->get_field_id( 'hide_empty' ); ?>" name="<?php echo $this->get_field_name( 'hide_empty' ); ?>" /> <?php _e( 'Hide empty?', $this->textdomain ); ?> <code>hide_empty</code></label>
                    
235		</p>
                    
237			<label for="<?php echo $this->get_field_id( 'feed' ); ?>">
                    
238			<input class="checkbox" type="checkbox" <?php checked( $instance['feed'], true ); ?> id="<?php echo $this->get_field_id( 'feed' ); ?>" name="<?php echo $this->get_field_name( 'feed' ); ?>" /> <?php _e( 'Show RSS feed?', $this->textdomain ); ?> <code>feed</code></label>
                    
239		</p>
                    
                
site-users.php https://gitlab.com/megathrone86/SoftwareProjects | 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>
                    
                
tools_webftp.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 555 lines
                    
64	 */
                    
65	public $edit_file = array('php', 'php3', 'php4', 'php5', 'htm', 'html', 'tpl', 'txt', 'css', 'js', 'xml', 'rss', 'htaccess');
                    
66	
                    
113			'mode' => array(
                    
114				'highlight_php' =>	'page_php_highlight',
                    
115				'codepress' =>		'page_codepress',
                    
192			{
                    
193				$u_dir = sid('index.' . PHPEXT . '?p=tools_webftp&amp;mode=highlight_php&amp;dir=' . $this->dir . '&amp;phpfile=' . $value['name']);
                    
194			}
                    
219	 * Converti des permissions (octal) en permissions symboliques (rwx)
                    
220	 * http://fr.php.net/manual/fr/function.fileperms.php
                    
221	 *
                    
497	{
                    
498		$phpfile = Http::request('phpfile');
                    
499		if (file_exists(ROOT . $this->dir . $phpfile))
                    
                
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)) {
                    
                
gruntfile.js https://gitlab.com/MichaelSchober/bambooclassesmompiche | JavaScript | 312 lines
                    
11                options: {
                    
12                    domainPath: '/languages/',    // Where to save the POT file.
                    
13                    potFilename: '<%= pkg.name %>.pot',   // Name of the POT file.
                    
96
                    
97        checktextdomain: {
                    
98            standard: {
                    
99                options:{
                    
100                    text_domain: [ 'illdy'], //Specify allowed domain(s)
                    
101                    create_report_file: "true",
                    
120                    src: [
                    
121                        '**/*.php',
                    
122                        '!**/node_modules/**',
                    
125                        '!**/framework/plugins/**',
                    
126                    ], //all php
                    
127                    expand: true,
                    
                
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));
                    
                
Entity.php https://gitlab.com/blingbang2016/shop | PHP | 354 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 */
                    
229     *            'field'     => 'field_name', //selected field name (optional)
                    
230     *            //bind main condition
                    
231     *            //left field use for joined table
                    
231     *            //left field use for joined table
                    
232     *            //and right field use for main table of collection
                    
233     *            //NOTE: around '=' cannot be used ' ' (space) because on the exploding not use space trimming
                    
                
TranslationDebugCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 268 lines
                    
47                new InputArgument('bundle', InputArgument::OPTIONAL, 'The bundle name or directory where to load the messages, defaults to app/Resources folder'),
                    
48                new InputOption('domain', null, InputOption::VALUE_OPTIONAL, 'The messages domain'),
                    
49                new InputOption('only-missing', null, InputOption::VALUE_NONE, 'Displays only missing messages'),
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
93        $locale = $input->getArgument('locale');
                    
94        $domain = $input->getOption('domain');
                    
95        $loader = $this->getContainer()->get('translation.loader');
                    
148            if (null !== $domain) {
                    
149                $outputMessage .= sprintf(' and domain "%s"', $domain);
                    
150            }
                    
202                foreach ($fallbackCatalogues as $fallbackCatalogue) {
                    
203                    if ($fallbackCatalogue->defines($messageId, $domain) && $value === $fallbackCatalogue->get($messageId, $domain)) {
                    
204                        $states[] = self::MESSAGE_EQUALS_FALLBACK;
                    
                
Matcher.php https://gitlab.com/karora/awl | PHP | 308 lines
                    
40 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
41 * @link       http://github.com/sebastianbergmann/phpunit-mock-objects
                    
42 * @since      File available since Release 1.0.0
                    
61 */
                    
62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation
                    
63{
                    
149            $builder = $invocation->object
                    
150                                  ->__phpunit_getInvocationMocker()
                    
151                                  ->lookupId($this->afterMatchBuilderId);
                    
153            if (!$builder) {
                    
154                throw new PHPUnit_Framework_Exception(
                    
155                  sprintf(
                    
295
                    
296        catch (PHPUnit_Framework_ExpectationFailedException $e) {
                    
297            throw new PHPUnit_Framework_ExpectationFailedException(
                    
                
MonthSelect.php https://gitlab.com/daigiangaitu91/magento | PHP | 361 lines
                    
1<?php
                    
2/**
                    
11
                    
12use DateTime as PhpDateTime;
                    
13use Traversable;
                    
52    /**
                    
53     * If set to true, it will generate an empty option for every select (this is mainly needed by most JavaScript
                    
54     * libraries to allow to have a placeholder)
                    
285    {
                    
286        if ($value instanceof PhpDateTime) {
                    
287            $value = array(
                    
                
group__rp__security__context__token.html git://pkgs.fedoraproject.org/axis2c | HTML | 115 lines
                    
9  <ul>
                    
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
                    
11    <li><a href="modules.html"><span>Modules</span></a></li>
                    
17    <li>
                    
18      <form action="search.php" method="get">
                    
19        <table cellspacing="0" cellpadding="0" border="0">
                    
                
Claim.cs https://gitlab.com/rekby-archive/onlyoffice-CommunityServer | C# | 304 lines
                    
1namespace net.openstack.Core.Domain.Queues
                    
2{
                    
114        /// The claim ID is derived from the <see cref="Location"/> property according to the
                    
115        /// URI template documented in the <see href="https://wiki.openstack.org/w/index.php?title=Marconi/specs/api/v1">OpenStack Marconi API v1 Blueprint</see>.
                    
116        /// </remarks>
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 343 lines
                    
9/** @global CUser $USER */
                    
10/** @global CMain $APPLICATION */
                    
11
                    
37	else if($arForum["INDEXATION"]!=="Y")
                    
38		$arWarnings[] = GetMessage("CC_BSR_WARN_FORUM", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/forum_edit.php?lang=".LANGUAGE_ID."&ID=".intval($arForum["ID"]))));
                    
39
                    
55	if($arIBlock["INDEX_ELEMENT"]==="Y" || $arIBlock["INDEX_SECTION"]==="Y")
                    
56		$arWarnings[] = GetMessage("CC_BSR_WARN_PHOTO_GROUP_IBLOCK", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/iblock_edit.php?type=".urlencode($arIBlock["IBLOCK_TYPE_ID"])."&lang=".LANGUAGE_ID."&ID=".urlencode($arIBlock["ID"])."&admin=Y&return_url=".urlencode($APPLICATION->GetCurPageParam()))));
                    
57
                    
67	if($arIBlock["INDEX_ELEMENT"]==="Y" || $arIBlock["INDEX_SECTION"]==="Y")
                    
68		$arWarnings[] = GetMessage("CC_BSR_WARN_PHOTO_USER_IBLOCK", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/iblock_edit.php?type=".urlencode($arIBlock["IBLOCK_TYPE_ID"])."&lang=".LANGUAGE_ID."&ID=".urlencode($arIBlock["ID"])."&admin=Y&return_url=".urlencode($APPLICATION->GetCurPageParam()))));
                    
69
                    
83		else if($arForum["INDEXATION"]!=="Y")
                    
84			$arWarnings[] = GetMessage("CC_BSR_WARN_PHOTO_FORUM", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/forum_edit.php?lang=".LANGUAGE_ID."&ID=".intval($arForum["ID"]))));
                    
85	}
                    
                
classes.html git://pkgs.fedoraproject.org/xqilla | HTML | 44 lines
                    
6</head><body>
                    
7<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
                    
8<!-- Generated by Doxygen 1.6.1 -->
                    
11    <ul>
                    
12      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
                    
13      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
                    
                
jquery.foundation.clearing.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 413 lines
                    
5 * Free to use under the MIT license.
                    
6 * http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
17            '<div class="visible-img" style="display: none"><img src="#">' +
                    
18            '<p class="clearing-caption"></p><a href="#" class="clearing-main-left"></a>' +
                    
19            '<a href="#" class="clearing-main-right"></a></div>'
                    
75
                    
76            .on('click.fndtn.clearing', '.clearing-main-right', function (e) { cl.nav(e, 'next') })
                    
77            .on('click.fndtn.clearing', '.clearing-main-left', function (e) { cl.nav(e, 'prev') })
                    
206          if (target.next().length > 0) {
                    
207            visible_image.find('.clearing-main-right').removeClass('disabled');
                    
208          } else {
                    
208          } else {
                    
209            visible_image.find('.clearing-main-right').addClass('disabled');
                    
210          }
                    
                
RCCWP_CreateCustomFieldPage.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 357 lines
                    
54		<tr valign="top">
                    
55			<th scope="row"><?php _e("Label", $mf_domain); ?>:</th>
                    
56			<td>
                    
129				?>
                    
130					<label><input name="custom-field-type" value="<?php echo $field->id?>" type="radio" <?php echo $checked?> onclick='fun("<?php echo $field->name?>");' /> <!-- Calling Javascript Function -->
                    
131					<?php echo $field->name?></label><br />
                    
151	  	<p class="submit" >
                    
152  			<a style="color:black" href="<?php echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('cancel-create-custom-field')."&custom-group-id=$customGroupID"?>" class="button"><?php _e('Cancel',$mf_domain); ?></a>
                    
153  			<input type="submit" id="continue-create-custom-field" value='<?php _e("Continue",$mf_domain); ?>'  onclick="submitForm=true;"/>
                    
266		<tr valign="top">
                    
267			<th scope="row"><?php _e('Related Type Panel', $mf_domain); ?>:</th>
                    
268			<td><select name="custom-field-related-type-panel-id" id="custom-field-related-type-panel-id">
                    
348		<p class="submit" >
                    
349			<a style="color:black" href="<?php echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('cancel-create-custom-field')."&custom-group-id=$customGroupID"?>" class="button"><?php _e('Cancel', $mf_domain); ?></a> 
                    
350			<input type="submit" id="finish-create-custom-field" value="<?php _e('Finish', $mf_domain); ?>" />
                    
                
readme.md https://gitlab.com/mucill/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
                    
                
settings_lang.php https://gitlab.com/sheldonels/pyrocms | PHP | 174 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
37$lang['settings:date_format_desc']				= 'Miten päiväyksen muoto tulisi olla sivustolla ja hallintapaneelissa? ' .
                    
38													'Käyttämällä PHP:n <a href="http://php.net/manual/en/function.date.php" target="_black">date muotoa</a> - TAI - ' .
                    
39													'Käyttämällä PHP:n <a href="http://php.net/manual/en/function.strftime.php" target="_black">strftime muotoa</a>.';
                    
134
                    
135$lang['settings:cdn_domain']                    = 'CDN verkkotunnus';
                    
136$lang['settings:cdn_domain_desc']               = 'CDN verkkotunnukset mahdollistaa staattisten tiedostojen ulkoistamisen useisiin palvelimiin, kuten Amazon CloudFront tai MaxCDN.';
                    
173
                    
174/* End of file settings_lang.php */
                    
175
                    
                
install_m.php https://gitlab.com/sheldonels/pyrocms | PHP | 289 lines
                    
1<?php
                    
2
                    
16		// Include migration config to know which migration to start from
                    
17		require PYROPATH.'config/migration.php';
                    
18
                    
64		    $table->string('ref', 20);
                    
65		    $table->string('domain', 100);
                    
66		    $table->boolean('is_activated')->default(true);
                    
70		    $table->unique('ref');
                    
71		    $table->unique('domain');
                    
72		    $table->index('ref');
                    
72		    $table->index('ref');
                    
73		    $table->index('domain');
                    
74		});
                    
                
template.php https://gitlab.com/mhd_alhuda/megablogging-v5 | PHP | 224 lines
                    
10	<title>Templates - Admin Megablogging</title>
                    
11    <?PHP require_once(dirname(__FILE__)."/inc/css.php"); ?>
                    
12	<link rel='stylesheet' type='text/css' href='assets/css/fileinput.css'/>
                    
15    <div id="wrapper" <?PHP echo $c_sidebar_set; ?>>
                    
16		<?PHP require_once(dirname(__FILE__)."/inc/navbar.php"); ?>
                    
17        <?PHP require_once(dirname(__FILE__)."/inc/sidebar.php"); ?>
                    
155										<ul class="styled-list">
                    
156											<?PHP require_once("inc/php.ini.php"); ?>
                    
157											<li>Allowed extension only <span class='text-danger'>zip</span></li>
                    
169    </div><!-- /main-container -->
                    
170	<?PHP require_once(dirname(__FILE__)."/inc/footer.php"); ?>
                    
171    </div><!-- /wrapper -->
                    
172    <a href="#" id="scroll-to-top" class="hidden-print"><i class="fa fa-chevron-up"></i></a>
                    
173    <?PHP require_once(dirname(__FILE__)."/inc/js.php"); ?>
                    
174	<script type='text/javascript' src='assets/js/fileinput.min.js'></script>
                    
                
joined_enquiry.php https://gitlab.com/msdusad/all_ones | PHP | 209 lines
                    
92			<td><?php echo $fetch['country'];?></td>
                    
93			<td><?php echo $fetch['country_code'];?>-<?php echo $fetch['contact'];?></td>
                    
94			<td><?php echo $fetch['enq_type'];?></td>
                    
172			<td><?php echo $fetch['in_interface'];?></td>
                    
173			<td><a href="updatestatus.php?uid=<?= $fetch['id']; ?>"style="color:#fff;"><?php echo $fetch['enq_status'];?></a></td>
                    
174			<td><a href="joined_enquiry.php?did=<?= $fetch['id'];?>"><img src="img/DeleteRed.png" width="20" height="20"></a></td>
                    
178			<tr style="background:green;color:#fff;">
                    
179			<td><a href="show_enquiry.php?sid=<?= $fetch['id'];?>" style="color:#fff;"><?php echo $fetch['id'];?></a></td>	
                    
180			<td><?php echo $fetch['u_name'];?></td>
                    
182			<td><?php echo $fetch['country'];?></td>
                    
183			<td><?php echo $fetch['country_code'];?>-<?php echo $fetch['contact'];?></td>
                    
184			<td><?php echo $fetch['enq_type'];?></td>
                    
187			<td><?php echo $fetch['in_interface'];?></td>
                    
188			<td><a href="updatestatus.php?uid=<?= $fetch['id']; ?>" style="color:#fff;"><?php echo $fetch['enq_status'];?></a></td>
                    
189			<td><a href="joined_enquiry.php?did=<?= $fetch['id'];?>"><img src="img/DeleteRed.png" width="20" height="20"></a></td>
                    
                
RakString.h https://gitlab.com/computerphilly/openblox | C Header | 354 lines
                    
215
                    
216	/// URL Encode the string. See http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029/
                    
217	RakNet::RakString& URLEncode(void);
                    
222	/// https://servers.api.rackspacecloud.com/v1.0 to https://,  servers.api.rackspacecloud.com, /v1.0
                    
223	void SplitURI(RakNet::RakString &header, RakNet::RakString &domain, RakNet::RakString &path);
                    
224
                    
                
ki.php https://gitlab.com/RECITEC/yii | PHP | 457 lines
                    
1<?php
                    
2/**
                    
113      1 => 'Njumatatũ',
                    
114      2 => 'Njumaine',
                    
115      3 => 'Njumatana',
                    
                
about.php https://gitlab.com/hop23typhu/faci-parkhill | PHP | 243 lines
                    
45		<h2 class="nav-tab-wrapper">
                    
46			<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
                    
47			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
47			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
48			<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
                    
49		</h2>
                    
51		<div class="changelog point-releases">
                    
52			<h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 2 ); ?></h3>
                    
53			<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
                    
199				<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
                    
200					<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
                    
201						<?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
                    
203				<?php endif; ?>
                    
204				<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
                    
205			</div>
                    
                
TrustRoot.php http://hppg.googlecode.com/svn/trunk/ | PHP | 462 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
14
                    
15require_once 'lib/core/lhexternal/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
                    
                
show2.php https://gitlab.com/redwan4re/web-apps-php-26 | PHP | 182 lines
                    
14
                    
15<?php include_once 'header.php'; ?>
                    
16<!-- Page container -->
                    
40                <!-- detached sidebar -->
                    
41                <?php include_once 'sidebar.php'; ?>
                    
42                <!-- /sidebar -->
                    
58                                <div class="heading-btn-group">
                    
59                                    <a type="button" class="btn bg-teal btn-labeled" href="edit.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-pencil7"></i></b> Edit Course</a>
                    
60                                    
                    
60                                    
                    
61                                    <a type="button" onclick="return checkDelete()" class="btn bg-teal btn-labeled" href="trash.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-close2"></i></b> Disable Course</a>
                    
62                                    
                    
181
                    
182                <?php include_once 'footer.php'; ?>
                    
183
                    
                
app.php https://gitlab.com/losi/airsoft | PHP | 210 lines
                    
1<?php
                    
2
                    
49    | Here you may specify the default timezone for your application, which
                    
50    | will be used by the PHP date and date-time functions. We have gone
                    
51    | ahead and set this to a sensible default for you out of the box.
                    
103    | Here you may configure the log settings for your application. Out of
                    
104    | the box, Laravel uses the Monolog PHP logging library. This gives
                    
105    | you a variety of powerful log handlers / formatters to utilize.
                    
150        Barryvdh\Debugbar\ServiceProvider::class,
                    
151        // airsoft domain
                    
152        Airsoft\Repo\RepoServiceProvider::class,
                    
                
about.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 208 lines
                    
87		'heading'     => __( 'Template Hierarchy' ),
                    
88		/* Translators: 1: singular.php; 2: single.php; 3:page.php */
                    
89		'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>.' ),
                    
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
                    
                
tabby.js https://code.google.com/p/quickdiagrams/ | JavaScript | 269 lines
                    
20		debug(this);
                    
21		// build main options before element iteration
                    
22		var opts = $.extend({}, $.fn.tabby.defaults, options);
                    
63				if (16 == $.fn.tabby.catch_kc(e)) pressed.shft = false;
                    
64			}).bind('blur',function (e) { // workaround for Opera -- http://www.webdeveloper.com/forum/showthread.php?p=806588
                    
65				if (9 == pressed.last) $(e.target).one('focus',function (e) {pressed.last = null;}).get(0).focus();
                    
                
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        }
                    
                
video_news.php https://gitlab.com/msdusad/all_ones | PHP | 238 lines
                    
1<?php include('conn.php');?>
                    
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    
54        <div class="banner"><img src="admin/upload/<?php echo $df['bann_news']; ?>" width="700" height="90px;"/></div>
                    
55        </div><?php } ?>
                    
56</div>
                    
72			{ ?>
                    
73			 <a href="breknews_desc.php?id=<?= $row['id']; ?>" style="text-decoration:none;color:#FFFFFF;"> <?php  echo $row['News'];?></a>
                    
74				<?php echo $row['time'];?>
                    
77		<div class="news_content_img">
                    
78		<a href="watch_brek_vid.php?id=<?= $row['id'];?>"><img src="images/Aaj-Tak_live-TV-1.gif" /></a><?php	}
                    
79			
                    
105
                    
106    	<div id="main_leftcol">
                    
107		<div style="width:400; height:600">
                    
116			  
                    
117			  <?php  echo $row['news']."<br/><br/>"; ?>
                    
118			 
                    
                
settings_lang.php https://gitlab.com/sheldonels/pyrocms | PHP | 160 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
31$lang['settings:date_format']					= 'Format Tanggal';
                    
32$lang['settings:date_format_desc']				= 'Bagaimana tanggal mesti ditampilkan di dalam situs d? Gunakan <a target="_blank" href="http://php.net/manual/en/function.date.php">format tanggal</a> dari PHP - atau - gunakan format dari <a target="_blank" href="http://php.net/manual/en/function.strftime.php">string yang diformat sebagai date</a> dari PHP.';
                    
33
                    
127
                    
128$lang['settings:cdn_domain']                    = 'CDN Domain'; #translate
                    
129$lang['settings:cdn_domain_desc']               = 'CDN domains allow you to offload static content to various edge servers, like Amazon CloudFront or MaxCDN.'; #translate
                    
159
                    
160/* End of file settings_lang.php */
                    
161
                    
                
automatic_profile.php https://gitlab.com/alexprowars/bitrix | PHP | 426 lines
                    
256		$result = array(
                    
257			"MAIN" => array(
                    
258				"TITLE" => Loc::getMessage("SALE_DLVR_HANDL_AUTP_CONF_MAIN_TITLE"),
                    
258				"TITLE" => Loc::getMessage("SALE_DLVR_HANDL_AUTP_CONF_MAIN_TITLE"),
                    
259				"DESCRIPTION" => Loc::getMessage("SALE_DLVR_HANDL_AUTP_CONF_MAIN_DESCR"),
                    
260				"ITEMS" => array (
                    
329				{
                    
330					$oldConfig["CONFIG_GROUPS"]["MAIN_OLD"] = $oldConfig["CONFIG_GROUPS"]["MAIN"];
                    
331					unset($oldConfig["CONFIG_GROUPS"]["MAIN"]);
                    
347
                    
348		$configMain = $fields["CONFIG"]["MAIN"];
                    
349		$handler = $this->parentHandlerInitParams;
                    
369		$fields["CONFIG"] = array(
                    
370			"MAIN" => $configMain
                    
371		);
                    
                
CHANGELOG.md https://gitlab.com/Niqera/e3e | Markdown | 313 lines
                    
26* Update group use support to be in line with recent PHP 7.0 builds.
                    
27* Renamed `php-parse.php` to `php-parse` and registered it as a composer bin.
                    
28* Use composer PSR-4 autoloader instead of custom autoloader.
                    
42
                    
43* Removed support for running on PHP 5.4. It is however still possible to parse PHP 5.2 and PHP 5.3
                    
44  code while running on a newer version.
                    
64
                    
65* `PhpParser\Parser` is now an interface, implemented by `Parser\Php5`, `Parser\Php7` and
                    
66  `Parser\Multiple`. The `Multiple` parser will try multiple parsers, until one succeeds.
                    
257
                    
258* [BC] PHP-Parser now requires PHP 5.3 or newer to run. It is however still possible to *parse* PHP 5.2 source code,
                    
259  while running on a newer version.
                    
298
                    
299* [BC] Deprecated `PHPParser_Template` and `PHPParser_TemplateLoader`. This functionality does not belong in the main project
                    
300  and - as far as I know - nobody is using it.
                    
                
jquery.rating.js http://xbat-devel.googlecode.com/svn/trunk/ | JavaScript | 241 lines
                    
4 * Dual licensed under the MIT and GPL licenses:
                    
5 *   http://www.opensource.org/licenses/mit-license.php
                    
6 *   http://www.gnu.org/licenses/gpl.html
                    
10*//*
                    
11	Based on http://www.phpletter.com/Demo/Jquery-Star-Rating-Plugin/
                    
12 Original comments:
                    
12 Original comments:
                    
13	This is hacked version of star rating created by <a href="http://php.scripts.psu.edu/rja171/widgets/rating.php">Ritesh Agrawal</a>
                    
14	It thansform a set of radio type input elements to star rating type and remain the radio element name and value,
                    
                
TimeType.php https://gitlab.com/luchoman08/personal_collection_mv | PHP | 264 lines
                    
71                $hourOptions['placeholder'] = $options['placeholder']['hour'];
                    
72                $hourOptions['choice_translation_domain'] = $options['choice_translation_domain']['hour'];
                    
73
                    
80                    $minuteOptions['placeholder'] = $options['placeholder']['minute'];
                    
81                    $minuteOptions['choice_translation_domain'] = $options['choice_translation_domain']['minute'];
                    
82                }
                    
92                    $secondOptions['placeholder'] = $options['placeholder']['second'];
                    
93                    $secondOptions['choice_translation_domain'] = $options['choice_translation_domain']['second'];
                    
94                }
                    
194
                    
195        $choiceTranslationDomainNormalizer = function (Options $options, $choiceTranslationDomain) {
                    
196            if (is_array($choiceTranslationDomain)) {
                    
237        $resolver->setNormalizer('placeholder', $placeholderNormalizer);
                    
238        $resolver->setNormalizer('choice_translation_domain', $choiceTranslationDomainNormalizer);
                    
239
                    
                
LangReplacer.php git://github.com/imagecms/ImageCMS.git | PHP | 446 lines
                    
96                    $translation->toPoFile($dir);
                    
97                    $dir = self::createDomainMoFilePath($domain, $lang);
                    
98                    $translation->toMoFile($dir);
                    
279
                    
280        $domain = $domain ?: 'main';
                    
281        $translations = self::getDomainTranslations($domain, $lang);
                    
295        if (!isset(self::$domainTranslations[$domain][$locale])) {
                    
296            self::$domainTranslations[$domain][$locale] = Translations::fromPoFile(self::getDomainPoFilePath($domain, $locale));
                    
297
                    
298        }
                    
299        return self::$domainTranslations[$domain][$locale];
                    
300    }
                    
332    public static function createReplacement($function, $word, $domain, $params) {
                    
333        return sprintf("%s('%s'%s%s)", $function, $word, $domain ? sprintf(", '%s'", $domain) : '', $params ? sprintf(', %s', $params) : '');
                    
334    }
                    
                
jDaoParser.class.php git://github.com/jelix/jelix.git | PHP | 462 lines
                    
1<?php
                    
2/**
                    
16 */
                    
17require_once JELIX_LIB_PATH.'dao/jDaoXmlException.class.php';
                    
18require_once JELIX_LIB_PATH.'dao/jDaoProperty.class.php';
                    
18require_once JELIX_LIB_PATH.'dao/jDaoProperty.class.php';
                    
19require_once JELIX_LIB_PATH.'dao/jDaoMethod.class.php';
                    
20require_once JELIX_LIB_PATH.'dao/jDaoGenerator.class.php';
                    
79    /**
                    
80     * list of main events to sent.
                    
81     */
                    
                
EsmtpTransportTest.php https://gitlab.com/firastrabelsi/PiDevMoocWeb | PHP | 298 lines
                    
81       ehlo            = "EHLO" SP Domain CRLF
                    
82       helo            = "HELO" SP Domain CRLF
                    
83
                    
202
                    
203    public function testDomainNameIsPlacedInEhlo()
                    
204    {
                    
211       obvious name), an address literal SHOULD be substituted for the
                    
212       domain name and supplemental information provided that will assist in
                    
213       identifying the client.
                    
233        $this->_finishBuffer($buf);
                    
234        $smtp->setLocalDomain('mydomain.com');
                    
235        $smtp->start();
                    
277        $this->_finishBuffer($buf);
                    
278        $smtp->setLocalDomain('mydomain.com');
                    
279        $smtp->start();
                    
                
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>
                    
                
blogpost.php https://gitlab.com/alexprowars/bitrix | PHP | 516 lines
                    
1<?php
                    
2
                    
4
                    
5use Bitrix\Main\Loader;
                    
6use Bitrix\Main\Error;
                    
6use Bitrix\Main\Error;
                    
7use Bitrix\Main\Localization\Loc;
                    
8use Bitrix\Blog\Item\Permissions;
                    
8use Bitrix\Blog\Item\Permissions;
                    
9use Bitrix\Main\ModuleManager;
                    
10use Bitrix\Main\Web\Json;
                    
11use Bitrix\Socialnetwork\ComponentHelper;
                    
12use Bitrix\Main\ArgumentException;
                    
13use Bitrix\Socialnetwork\Controller\Base;
                    
126			$currentModuleAdmin
                    
127			|| \CMain::getGroupRight('blog') >= 'W'
                    
128		)
                    
                
anomaly.h https://gitlab.com/Sean.W/pru-linux-drivers | C Header | 267 lines
                    
9 * Licensed under the ADI BSD license.
                    
10 *   https://docs.blackfin.uclinux.org/doku.php?id=adi_bsd
                    
11 */
                    
84#define ANOMALY_05000353 (__SILICON_REVISION__ < 2)
                    
85/* Regulator Programming Blocked when Hibernate Wakeup Source Remains Active */
                    
86#define ANOMALY_05000355 (__SILICON_REVISION__ < 1)
                    
                
panels_layouts_ui.class.php https://gitlab.com/vijaya.tsavatapalli/drupal7 | PHP | 245 lines
                    
1<?php
                    
2
                    
128
                    
129    // While we short circuited the main submit hook, we need to keep this one.
                    
130    panels_edit_display_settings_form_submit($form, $form_state);
                    
136
                    
137    // While we short circuited the main validate hook, we need to keep this one.
                    
138    panels_edit_display_settings_form_validate($form, $form_state);
                    
                
index.md https://gitlab.com/suyesh/www.ruby-lang.org | Markdown | 249 lines
                    
33![Graph courtesy of
                    
34Gmane.](http://gmane.org/plot-rate.php?group=gmane.comp.lang.ruby.general&amp;width=320&amp;height=160&amp;title=Ruby-Talk+Activity
                    
35"Graph courtesy of Gmane."){: style="padding-left:8px;"}
                    
105the most popular features for newcomers to Ruby from other imperative
                    
106languages like PHP or Visual Basic.
                    
107
                    
165* Ruby features a true mark-and-sweep garbage collector for all Ruby
                    
166  objects. No need to maintain reference counts in extension libraries.
                    
167  As Matz says, “This is better for your health.”
                    
239[artima]: http://www.artima.com/intv/closures2.html
                    
240[tiobe]: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
                    
241[jruby]: http://jruby.org
                    
                
README.md https://gitlab.com/hounge.mobile/freelancer-notes | Markdown | 306 lines
                    
1# Boris: A tiny little, but robust REPL for PHP
                    
2
                    
4
                    
5Python has one. Ruby has one. Clojure has one. Now PHP has one too. Boris is
                    
6PHP's missing REPL (read-eval-print loop), allowing developers to experiment
                    
6PHP's missing REPL (read-eval-print loop), allowing developers to experiment
                    
7with PHP code in the terminal in an interactive manner.  If you make a mistake,
                    
8it doesn't matter, Boris will report the error and stand to attention for
                    
11Everything you enter into Boris is evaluated and the result inspected so you
                    
12can understand what is happening.  State is maintained between inputs, allowing
                    
13you to gradually build up a solution to a problem.
                    
16
                    
17I'm in the process of transitioning away from PHP to Ruby.  I have come to find
                    
18PHP's lack of a real REPL to be frustrating and was not able to find an existing
                    
68
                    
69When Boris starts, you will be at the `boris>` prompt. PHP code you enter at
                    
70this prompt is evaluated.  If an expression spans multiple lines, Boris will
                    
                
update.zep.c git://github.com/phalcon/cphalcon.git | C | 541 lines
                    
5
                    
6#include <php.h>
                    
7#include "../../../php_ext.h"
                    
13
                    
14#include "kernel/main.h"
                    
15#include "kernel/fcall.h"
                    
30 *
                    
31 * Implementation of this file has been influenced by AtlasPHP
                    
32 *
                    
32 *
                    
33 * @link    https://github.com/atlasphp/Atlas.Query
                    
34 * @license https://github.com/atlasphp/Atlas.Qyert/blob/1.x/LICENSE.md
                    
51 */
                    
52PHP_METHOD(Phalcon_DataMapper_Query_Update, __construct)
                    
53{
                    
                
CacheBase.php https://gitlab.com/x0139/sstu.gov39.ru | PHP | 368 lines
                    
5 *
                    
6 * Copyright (c) 2006 - 2015 PHPExcel
                    
7 *
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
24 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
25 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
73        //    Set our parent worksheet.
                    
74        //    This is maintained within the cache controller to facilitate re-attaching it to PHPExcel_Cell objects when
                    
75        //        they are woken from a serialized state
                    
81     *
                    
82     * @return    PHPExcel_Worksheet
                    
83     */
                    
89    /**
                    
90     * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell?
                    
91     *
                    
                
simulator.js https://hg01.codeplex.com/social | JavaScript | 0 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        },
                    
                
 

Source

Language