PageRenderTime 1262ms queryTime 93ms sortTime 533ms getByIdsTime 105ms findMatchingLines 74ms

100+ results results for 'php main repo:zeert/dolibarr' (1262 ms)

Not the results you expected?
rewrite.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 425 lines
                    
1<?php
                    
2
                    
23	/**
                    
24	 * Contain the main rewrite structure
                    
25	 *
                    
53
                    
54        // setup the main rewrite structure for the plugin
                    
55        $this->ngg_rules = array(
                    
113
                    
114			// 1. Post / Page url + main slug
                    
115            $url = trailingslashit ( get_permalink ($post->ID) ) . $this->slug; 
                    
211		//TODO: I could parse for the Picture name , gallery etc, but this increase the queries
                    
212		//TODO: Class nggdb need to cache the query for the nggfunctions.php
                    
213
                    
273	/**
                    
274	 * Mainly a copy of the same function in wp-includes\rewrite.php
                    
275     * Adding the NGG tags to each post & page. Never found easier and proper way to handle this with other functions.
                    
                
InstallSchema.php https://gitlab.com/yousafsyed/easternglamor | 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     */
                    
                
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;
                    
                
VarCloner.php https://gitlab.com/nzqadri/bejeep | 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;
                    
                
Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 512 lines
                    
1<?php
                    
2
                    
108     *
                    
109     * This is mainly useful when a lot of commands extends one main command
                    
110     * where some things need to be initialized based on the input arguments and options.
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
                
lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
                    
1<?php
                    
2
                    
141        'sender_email' => 'Avsändarens e-postadress',
                    
142        'php_mail' => 'PHP mail',
                    
143        'smtp' => 'SMTP',
                    
158        'mailgun' => 'Mailgun',
                    
159        'mailgun_domain' => 'Mailgun domän',
                    
160        'mailgun_domain_comment' => 'Vänligen ange Mailgun domännamnet.',
                    
                
Profiles.php https://gitlab.com/gregtyka/opensis | PHP | 258 lines
                    
1<?php
                    
2#**************************************************************************
                    
65	{
                    
66		$file = 'Students/Student.php&category_id='.$category['ID'];
                    
67		$tmp_menu['Students'][$xprofile][$file] = ' &nbsp; &nbsp; &rsaquo; '.$category['TITLE'];
                    
71	{
                    
72		$file = 'Users/User.php&category_id='.$category['ID'];
                    
73		$tmp_menu['Users'][$xprofile][$file] = ' &nbsp; &nbsp; &rsaquo; '.$category['TITLE'];
                    
128PopTable('header','Permissions');
                    
129	echo "<FORM name=pref_form id=pref_form action=Modules.php?modname=$_REQUEST[modname]&modfunc=update&profile_id=$_REQUEST[profile_id] method=POST>";
                    
130	DrawHeaderHome('Select the programs that users of this profile can use and which programs those users can use to save information.');
                    
143		if($_REQUEST['profile_id']!='' && $id==$_REQUEST['profile_id'])
                    
144			echo '<TR id=selected_tr onmouseover="" onmouseout="" bgcolor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",20):'').'</TD><TD '.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
145		else
                    
145		else
                    
146			echo '<TR onmouseover=\'this.style.backgroundColor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\' onmouseout=\'this.style.cssText="background-color:transparent; color:black;";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",15):'').'</TD><TD'.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
147		echo '<b><a style="cursor: pointer; cursor:hand; text-decoration:none;">'.($id>3?'':'<b>').$profile[1]['TITLE'].($id>3?'':'</b>').'</a></b> &nbsp;';
                    
                
about.html https://gitlab.com/adrian.io/ide | HTML | 275 lines
                    
16		Eclipse Public License Version 1.0 (&quot;EPL&quot;).  A copy of the EPL is available 
                    
17		at <a href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/legal/epl-v10.html</a>.
                    
18		For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
                    
123      represent, as a whole, an original work of authorship. For the purposes
                    
124      of this License, Derivative Works shall not include works that remain
                    
125      separable from, or merely link (or bind by name) to the interfaces of,
                    
                
WebformSettingsForm.php https://gitlab.com/guillaumev/alkarama | PHP | 334 lines
                    
1<?php
                    
2
                    
72      '#default_value' => $config->get('email.default_from_address'),
                    
73      '#description' => t('The default sender address for emailed webform results; often the e-mail address of the maintainer of your forms.'),
                    
74    );
                    
93      '#default_value' => $config->get('email.replyto'),
                    
94      '#description' => t('Sends all e-mail from the domain of the default address above and sets the "Reply-To" header to the actual sender. Helps prevent e-mail from being flagged as spam.'),
                    
95    );
                    
                
class-wp-terms-list-table.php https://bitbucket.org/akeda/bmw-id-hris.git | PHP | 454 lines
                    
1<?php
                    
2/**
                    
185
                    
186			// Some funky recursion to get the job done( Paging & parents mainly ) is contained within, Skip it for non-hierarchical taxonomies for performance sake
                    
187			$this->_rows( $taxonomy, $terms, $children, $offset, $number, $count );
                    
298		if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
                    
299			$actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
                    
300		if ( $tax->public )
                    
331
                    
332		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
333		$out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
                    
343	function column_slug( $tag ) {
                    
344		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
345		return apply_filters( 'editable_slug', $tag->slug );
                    
366		if ( 'attachment' == $this->screen->post_type )
                    
367			return "<a href='" . esc_url ( add_query_arg( $args, 'upload.php' ) ) . "'>$count</a>";
                    
368
                    
                
PersistentTokenBasedRememberMeServicesTest.php https://github.com/jdewit/symfony.git | PHP | 329 lines
                    
71        $userProvider = $this->getProvider();
                    
72        $service = $this->getService($userProvider, array('name' => 'foo', 'path' => null, 'domain' => null, 'always_remember_me' => true, 'lifetime' => 3600, 'secure' => false, 'httponly' => false));
                    
73        $request = new Request;
                    
183    {
                    
184        $service = $this->getService(null, array('name' => 'foo', 'path' => '/foo', 'domain' => 'foodomain.foo'));
                    
185        $request = new Request();
                    
203        $this->assertEquals('/foo', $cookie->getPath());
                    
204        $this->assertEquals('foodomain.foo', $cookie->getDomain());
                    
205    }
                    
260    {
                    
261        $service = $this->getService(null, array('name' => 'foo', 'domain' => 'myfoodomain.foo', 'path' => '/foo/path', 'secure' => true, 'httponly' => true, 'lifetime' => 3600, 'always_remember_me' => true));
                    
262        $request = new Request;
                    
295        $this->assertTrue($cookie->getExpiresTime() > time() + 3590 && $cookie->getExpiresTime() < time() + 3610);
                    
296        $this->assertEquals('myfoodomain.foo', $cookie->getDomain());
                    
297        $this->assertEquals('/foo/path', $cookie->getPath());
                    
                
CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
                    
135        if ($cookie instanceof Zend_Http_Cookie) {
                    
136            $domain = $cookie->getDomain();
                    
137            $path   = $cookie->getPath();
                    
138            if (!isset( $this->cookies[$domain] )) $this->cookies[$domain] = array();
                    
139            if (!isset( $this->cookies[$domain][$path] )) $this->cookies[$domain][$path] = array();
                    
140            $this->cookies[$domain][$path][$cookie->getName()] = $cookie;
                    
142        } else {
                    
143            require_once 'Zend/Http/Exception.php';
                    
144            throw new Zend_Http_Exception( 'Supplient argument is not a valid cookie string or object' );
                    
339     */
                    
340    protected function _matchDomain ($domain)
                    
341    {
                    
344        foreach (array_keys($this->cookies) as $cdom) {
                    
345            if (Zend_Http_Cookie::matchCookieDomain($cdom, $domain)) {
                    
346                $ret[$cdom] = $this->cookies[$cdom];
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
18 * Text Domain: buddypress
                    
19 * Domain Path: /bp-languages/
                    
20 */
                    
28/**
                    
29 * Main BuddyPress Class
                    
30 *
                    
403				 */
                    
404				add_action( 'plugins_loaded', 'bp_core_load_buddypress_textdomain', 9 );
                    
405
                    
429			require( $this->plugin_dir . 'bp-core/bp-core-component.php'  );
                    
430			require( $this->plugin_dir . 'bp-core/bp-core-functions.php'  );
                    
431			require( $this->plugin_dir . 'bp-core/bp-core-moderation.php' );
                    
469			'register_theme_directory', // Register the theme directory
                    
470			'load_textdomain',          // Load textdomain
                    
471			'add_rewrite_tags',         // Add rewrite tags
                    
                
UpgradeComponentGroup.php https://github.com/orchestra-io/sample-openx.git | PHP | 320 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: UpgradeComponentGroup.php 30820 2009-01-13 19:02:17Z andrew.hill $
                    
26*/
                    
34
                    
35require_once MAX_PATH.'/lib/OA/Upgrade/Upgrade.php';
                    
36
                    
60        /*$this->nobackupsFile    = MAX_PATH.$pluginPath.'NOBACKUPS';
                    
61        $this->postTaskFile     = MAX_PATH.$pluginPath.'TASKS.php';*/
                    
62
                    
83            // its a new schema so don't bother with integrity check
                    
84            if (!$this->oComponentGroupManager->getSchemaInfo($this->aComponentGroup['install']['schema']['mdb2schema']))
                    
85            {
                    
                
Ntp.php https://github.com/Exercise/zf2.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
294         * Except in broadcast mode, an NTP association is formed when two peers
                    
295         * exchange messages and one or both of them create and maintain an
                    
296         * instantiation of the protocol machine, called an association.
                    
                
tcp_cubic.c https://gitlab.com/karrei/inel-imx6-kernel | C | 497 lines
                    
3 * Home page:
                    
4 *      http://netsrv.csc.ncsu.edu/twiki/bin/view/Main/BIC
                    
5 * This is from the implementation of CUBIC TCP in
                    
19 * All testing results are available from:
                    
20 * http://netsrv.csc.ncsu.edu/wiki/index.php/TCP_Testing
                    
21 *
                    
                
index.php https://gitlab.com/Nilufarjahan/LabExam8 | PHP | 455 lines
                    
140            <li>
                    
141                <a href="../Birthday/index.php">
                    
142                    <span class="title">View List</span>
                    
153            <li>
                    
154                <a href="../Email/create.php">
                    
155                    <span class="title">Add New</span>
                    
258</div><!--/.sidebar-->
                    
259<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
                    
260    <div class="row">
                    
328                                <td><?php echo $oneData->birthday?></td>
                    
329                                <?php  echo "<td> <a href=\"edits.php?id=$oneData->id\"class=\"btn btn-info\" role=\"button\">Edit</a>  ";?>
                    
330                                <?php  echo " <a href=\"delete.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Delete</a> ";?>
                    
331                            
                    
332                                <?php  echo " <a href=\"trash.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Trash</a> </td> ";?>
                    
333                            </tr>
                    
                
hostkreskoweczki.py https://gitlab.com/Ghoz/iptvplayer-for-e2 | Python | 318 lines
                    
31###################################################
                    
32from Plugins.Extensions.IPTVPlayer.components.asynccall import MainSessionWrapper
                    
33from Screens.MessageBox import MessageBox
                    
60        self.MAIN_URL      = 'http://www.kreskoweczki.pl/'
                    
61        self.SEARCH_URL    = self.MAIN_URL + 'search.php?keywords='
                    
62        self.DEFAULT_ICON  = "http://www.kreskoweczki.pl/uploads/custom-logo.png"
                    
63
                    
64        self.MAIN_CAT_TAB = [{'icon':self.DEFAULT_ICON, 'category':'list_abc',        'title': 'Alfabetycznie',   'url':self.MAIN_URL + 'index.html'},
                    
65                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Ostatnio dodane', 'url':self.MAIN_URL + 'index.html'},
                    
65                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Ostatnio dodane', 'url':self.MAIN_URL + 'index.html'},
                    
66                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Anime',           'url':self.MAIN_URL + 'typ/anime/'},
                    
67                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Bajki',           'url':self.MAIN_URL + 'typ/toon/'},
                    
67                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Bajki',           'url':self.MAIN_URL + 'typ/toon/'},
                    
68                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Seriale',         'url':self.MAIN_URL + 'typ/serial/'},
                    
69                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Pozostałe',       'url':self.MAIN_URL + 'typ/pozostale/'},
                    
                
ee374469f3039f2afc01916b1c6255a7d0864358.file.view-registration.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 260 lines
                    
148</option>
                    
149              <option value="DN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DN'){?> selected <?php }?>><?php echo @LBL_DANISH;?>
                    
150</option>
                    
150</option>
                    
151              <option value="FI" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FI'){?> selected <?php }?>><?php echo @LBL_FINISH;?>
                    
152</option>
                    
152</option>
                    
153              <option value="FN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FN'){?> selected <?php }?>><?php echo @LBL_FRENCH;?>
                    
154</option>
                    
160</option>
                    
161              <option value="DE" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DE'){?> selected <?php }?>><?php echo @LBL_GERMAN;?>
                    
162</option>
                    
168</option>
                    
169              <option value="ES" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='ES'){?> selected <?php }?>><?php echo @LBL_SPANISH;?>
                    
170</option>
                    
                
EditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
45
                    
46require_once('modules/Campaigns/utils.php');
                    
47
                    
106}else{
                    
107	$params[] = "<a href='index.php?module={$focus->module_dir}&action=DetailView&record={$focus->id}'>{$focus->name}</a>";
                    
108	$params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL'];
                    
117} else {
                    
118	$xtpl=new XTemplate ('modules/EmailTemplates/EditViewMain.html');
                    
119} // else
                    
123$xtpl->assign("LBL_ACCOUNT",$app_list_strings['moduleList']['Accounts']);
                    
124$xtpl->parse("main.variable_option");
                    
125
                    
166//Assign qsd script
                    
167require_once('include/QuickSearchDefaults.php');
                    
168$qsd = new QuickSearchDefaults();
                    
                
RouteCollectionBuilderTest.php https://gitlab.com/Sigpot/AirSpot | 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
                    
                
addons_modules.php https://bitbucket.org/mbaily/tremain.git | PHP | 468 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
64
                    
65		$this->jquery->tablesorter('.mainTable', '{
                    
66        	textExtraction: "complex",			
                    
186			// Send version to update class and let it do any required work
                    
187			if ($this->input->get('check_updates') && $status == 'installed' && file_exists($this->installed_modules[$module]['path'].'upd.'.$module.'.php'))
                    
188			{
                    
188			{
                    
189				require $this->installed_modules[$module]['path'].'upd.'.$module.'.php';
                    
190
                    
324		// Send version to update class and let it do any required work
                    
325		if (file_exists($installed[$module]['path'].'upd.'.$module.'.php'))
                    
326		{
                    
326		{
                    
327			require $installed[$module]['path'].'upd.'.$module.'.php';
                    
328
                    
                
Files.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 311 lines
                    
1<?php
                    
2/*
                    
44   * folders is no longer supported. Use shortcuts instead.
                    
45   * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
                    
46   * default visibility settings for the created file. Domain administrators can
                    
46   * default visibility settings for the created file. Domain administrators can
                    
47   * choose to make all uploaded files visible to the domain by default; this
                    
48   * parameter bypasses that behavior for the request. Permissions are still
                    
76   * folders is no longer supported.
                    
77   * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
                    
78   * default visibility settings for the created file. Domain administrators can
                    
78   * default visibility settings for the created file. Domain administrators can
                    
79   * choose to make all uploaded files visible to the domain by default; this
                    
80   * parameter bypasses that behavior for the request. Permissions are still
                    
205   * directly with the user), 'drive' (files in the specified shared drive as
                    
206   * indicated by the 'driveId'), 'domain' (files shared to the user's domain),
                    
207   * and 'allDrives' (A combination of 'user' and 'drive' for all drives where the
                    
                
Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
                    
1<?php
                    
2
                    
168                        ->scalarNode('path')->end()
                    
169                        ->scalarNode('domain')->end()
                    
170                        ->booleanNode('secure')->end()
                    
                
cpanel.php https://github.com/andrewgs/practice-book.ru.git | PHP | 320 lines
                    
106							<div class="box-content h150">
                    
107							<?php if($unitgroups || $units): ?>
                    
108								<div id="lists">
                    
108								<div id="lists">
                    
109								<?php if($unitgroups): ?>
                    
110									<select name="grouplist" id="select-group" class="mixed-combo" size="1" style="width: 250px;">
                    
141												<td class="col-price-company"><?=$units[$i]['cu_price'];?></td>
                    
142												<td class=""><strong><?=$units[$i]['cu_priceunit'];?><?php if($units[$i]['cu_unitscode']):?>/<?=$units[$i]['cu_unitscode'];?><?php endif;?></strong></td>
                    
143											</tr>
                    
183										</div>
                    
184									<?php endif; ?>
                    
185									<?php if($representative[$i]['uicq']): ?>
                    
283								</div> 
                    
284								<?php endfor; ?>	
                    
285								<?php else: ?>
                    
                
user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
                    
1<?php
                    
2/**
                    
195$_lang['user_updated_password_message'] = 'The User has been updated. The password is: [[+password]]';
                    
196$_lang['user_upload_message'] = 'If you wish to stop this user uploading any filetypes in this category, make sure that the \'Use Main Configuration Setting\' checkbox is not ticked and leave the field blank.';
                    
197$_lang['user_use_config'] = 'Use System Configuration Setting';
                    
                
CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Created by PhpStorm.
                    
4 * User: THANH
                    
8class CheckOut extends Controller {
                    
9    public function Main(){
                    
10        if(isset($_SESSION['cart'])){
                    
23            else {
                    
24                header('Location:'.APP_DOMAIN);
                    
25            }
                    
27        else {
                    
28            header('Location:'.APP_DOMAIN);
                    
29        }
                    
45                    if(G::$Authorized->CheckLogin($username, $password)){
                    
46                        header('Location:'.'/CheckOut/Main');
                    
47                    }
                    
                
index.php https://github.com/tlezotte/HCR.git | PHP | 342 lines
                    
4 *
                    
5 * index.php main file for RSS section.
                    
6 *
                    
46
                    
47<html><!-- InstanceBegin template="/Templates/vnmain.dwt.php" codeOutsideHTMLIsLocked="false" -->
                    
48  <head>
                    
177				  ?>
                    
178				  <div align="right" class="FieldNumberDisabled"><strong><?= $language['label']['welcome']; ?> <a href="../../Administration/user_information.php" class="FieldNumberDisabled" <?php help('', 'Edit your user information', 'default'); ?>><?= ucwords(strtolower($_SESSION['fullname'])); ?></a></strong>&nbsp;&nbsp;<a href="../../logout.php" class="FieldNumberDisabled" <?php help('', 'Selecting [logout] will Log you out of the '.$default[title1].' and stop automatic cookie login', 'default'); ?>>[logout]</a>&nbsp;</div>
                    
179				  <?php
                    
239                    <tr>
                    
240                      <td class="mainsection"><a href="overview.php" class="dark">Overview</a></td>
                    
241                    </tr>
                    
310              <tr>
                    
311                <td width="50%" nowrap><!-- InstanceBeginEditable name="copyright" --><?php include('../include/copyright.php'); ?><!-- InstanceBeginEditable --></td>
                    
312                <td width="50%"><div id="noPrint" align="right"><!-- InstanceBeginEditable name="version" --><!-- InstanceEndEditable --></div></td>
                    
                
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
1<?php
                    
2/**
                    
72        'website_ids' => [
                    
73            'Main Website' => 1
                    
74        ],
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
345     *
                    
346     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
347     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
modules-defaults.php https://gitlab.com/Magi1053/Extra | PHP | 250 lines
                    
1<?php
                    
2// Prevent file from being loaded directly
                    
26
                    
27		'et_pb_posts-main_title_font_size'                        => '16px',
                    
28		'et_pb_posts-main_title_font_style'                       => '',
                    
28		'et_pb_posts-main_title_font_style'                       => '',
                    
29		'et_pb_posts-main_title_text_color'                       => 'rgba(0,0,0,0.75)',
                    
30		'et_pb_posts-main_title_line_height'                      => '1.3em',
                    
30		'et_pb_posts-main_title_line_height'                      => '1.3em',
                    
31		'et_pb_posts-main_title_letter_spacing'                   => '0.5px',
                    
32
                    
32
                    
33		'et_pb_posts-main_meta_font_size'                         => '12px',
                    
34		'et_pb_posts-main_meta_font_style'                        => '',
                    
34		'et_pb_posts-main_meta_font_style'                        => '',
                    
35		'et_pb_posts-main_meta_text_color'                        => 'rgba(0, 0, 0, 0.5)',
                    
36		'et_pb_posts-main_meta_line_height'                       => '1.7em',
                    
                
COOKBOOK-FIXERS.md https://gitlab.com/yousafsyed/easternglamor | Markdown | 466 lines
                    
9In order to be able to create a new fixer, you need some background.
                    
10PHP CS Fixer is a transcompiler which takes valid PHP code and pretty
                    
11print valid PHP code. It does all transformations in multiple passes,
                    
23If possible, try to get acquainted with the public interface for the
                    
24[Symfony/CS/Tokenizer/Tokens.php](Symfony/CS/Tokenizer/Tokens.php)
                    
25and [Symfony/CS/Tokenizer/Token.php](Symfony/CS/Tokenizer/Token.php)
                    
30* You are familiar with Test Driven Development.
                    
31* Forked FriendsOfPHP/PHP-CS-Fixer into your own Github Account.
                    
32* Cloned your forked repository locally.
                    
32* Cloned your forked repository locally.
                    
33* Downloaded PHP CS Fixer and have executed `php composer.phar
                    
34install`.
                    
47Create a new file in
                    
48`PHP-CS-Fixer/Symfony/CS/Fixer/Contrib/RemoveCommentsFixer.php`.
                    
49Put this content inside:
                    
                
Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 576 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
252     *
                    
253     * @param string $uri uri relative to host, ex. "/index.php"
                    
254     */
                    
319     * Get cookies array with details
                    
320     * (domain, expire time etc)
                    
321     * @return array
                    
                
search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
                    
1<?php
                    
2/**
                    
7 */
                    
8namespace Bitrix\Socialnetwork\Integration\Main\UISelector;
                    
9
                    
9
                    
10use Bitrix\Main\Localization\Loc;
                    
11use Bitrix\Main\Event;
                    
11use Bitrix\Main\Event;
                    
12use Bitrix\Main\EventResult;
                    
13use Bitrix\Main\Loader;
                    
13use Bitrix\Main\Loader;
                    
14use Bitrix\Main\ModuleManager;
                    
15
                    
53
                    
54				$userList = \Bitrix\Main\UserTable::getList(array(
                    
55					"select" => array("ID", "XML_ID"),
                    
                
template.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
                    
4
                    
5use Bitrix\Main,
                    
6	Bitrix\Main\Localization\Loc;
                    
7
                    
8\Bitrix\Main\UI\Extension::load("ui.bootstrap4");
                    
9
                    
12Loc::loadMessages(__FILE__);
                    
13?><div class="container-fluid"><?php
                    
14if (!empty($arResult['ERRORS']['FATAL']))
                    
393		$javascriptParams = array(
                    
394			"url" => CUtil::JSEscape($this->__component->GetPath().'/ajax.php'),
                    
395			"templateFolder" => CUtil::JSEscape($templateFolder),
                    
399		);
                    
400		$javascriptParams = CUtil::PhpToJSObject($javascriptParams);
                    
401		?>
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
                    
1<?php
                    
2
                    
2
                    
3use Bitrix\Main,
                    
4	Bitrix\Sale,
                    
5	Bitrix\Currency,
                    
6	Bitrix\Main\Localization\Loc,
                    
7	Bitrix\Main\Loader,
                    
8	Bitrix\Sale\PaySystem,
                    
9	Bitrix\Main\Application;
                    
10
                    
20{
                    
21	/** @var  Main\ErrorCollection $errorCollection*/
                    
22	protected $errorCollection;
                    
34	{
                    
35		$this->errorCollection = new Main\ErrorCollection();
                    
36
                    
                
AclVoterTest.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 432 lines
                    
1<?php
                    
2
                    
16use Symfony\Component\Security\Acl\Exception\AclNotFoundException;
                    
17use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
                    
18use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
                    
18use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
                    
19use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
                    
20use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
                    
22
                    
23class AclVoterTest extends \PHPUnit_Framework_TestCase
                    
24{
                    
                
ThreeZero.php https://github.com/ksecor/civicrm.git | PHP | 271 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Upgrade/Form.php';
                    
37require_once 'CRM/Core/OptionGroup.php';
                    
37require_once 'CRM/Core/OptionGroup.php';
                    
38require_once 'CRM/Core/OptionValue.php';
                    
39
                    
52        // check table-column, if the db is 3.0 
                    
53        if ( CRM_Core_DAO::checkFieldExists( 'civicrm_menu',     'domain_id'   ) &&
                    
54             CRM_Core_DAO::checkFieldExists( 'civicrm_event',    'created_id'  ) &&
                    
94        if (!CRM_Core_DAO::checkFieldExists('civicrm_report_instance', 'description')) {
                    
95            require_once 'CRM/Core/DAO/Domain.php';
                    
96            $domain = new CRM_Core_DAO_Domain;
                    
96            $domain = new CRM_Core_DAO_Domain;
                    
97            $domain->find(true);
                    
98            $locales = explode(CRM_Core_DAO::VALUE_SEPARATOR, $domain->locales);
                    
                
Tab.php https://github.com/ksecor/civicrm.git | PHP | 344 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Contact/Page/View.php';
                    
37
                    
94    {
                    
95        require_once 'CRM/Contribute/BAO/Contribution.php';
                    
96
                    
205    /**
                    
206     * This function is the main function that is called when the page
                    
207     * loads, it decides the which action has to be taken for the page.
                    
                
group___e_e_p_r_o_m.html https://github.com/nfox/team_252_10-11.git | HTML | 263 lines
                    
16  <tr bgcolor="#cccc99" align="right"> 
                    
17          <td colspan=3> <font face="arial" size="-1"> [<a href=main.html>Home</a>] [<a target=_top href="https://sourceforge.net/projects/rdpartyrobotcdr/">Download</a>] [<a target=_top href="http://apps.sourceforge.net/mantisbt/rdpartyrobotcdr/my_view_page.php">Submit a bug/suggestion</a>]  [<a target=_top href="http://www.robotc.net/forums/">ROBOTC Forums</a>] [<a href="http://mightor.wordpress.com">Blog</a>] [<a target=_top href="http://sourceforge.net/donate/index.php?group_id=257238">Support this project</a>]</font> </td> 
                    
18</tr> 
                    
                
UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
45        $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf');
                    
46        $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml');
                    
47        $this->allowedFileSizes = array('review' => array('coverUpload' => 102400));
                    
60    {
                    
61        $dom = ZLanguage::getModuleDomain('Reviews');
                    
62    
                    
117    {
                    
118        $dom = ZLanguage::getModuleDomain('Reviews');
                    
119    
                    
319    {
                    
320        $dom = ZLanguage::getModuleDomain('Reviews');
                    
321        $errmsg = '';
                    
325                break;
                    
326            case UPLOAD_ERR_INI_SIZE: //uploaded file exceeds the upload_max_filesize directive in php.ini
                    
327                $errmsg = __('File too big', $dom);
                    
                
TrustRoot.php https://github.com/kbjr/EasyOpenID.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
14
                    
15require_once OPENID_DIRECTORY.'Auth/OpenID/Discover.php';
                    
16
                    
17/**
                    
18 * A regular expression that matches a domain ending in a top-level domains.
                    
19 * Used in checking trust roots for sanity.
                    
74
                    
75            $www_domain = 'www' . $parsed['host'];
                    
76
                    
180     * A trust root is sane if it is syntactically valid and it has a
                    
181     * reasonable domain name. Specifically, the domain name must be
                    
182     * more than one level below a standard TLD or more than two
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * WPBakery Visual Composer Main manager.
                    
4 *
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
541	/**
                    
542	 * Sorting method for WPBMap::generateUserData method. Called by usort php function.
                    
543	 * @deprecated - use Vc_Sort::sortByKey since 4.4
                    
                
2012-01-202.html https://gitlab.com/bernagg/TI | HTML | 359 lines
                    
6<Title>YouTube to MP3 Converter - YoutubeMP3.tv</Title>
                    
7<link rel="stylesheet" type="text/css" href="http://youtubemp3.tv/main.css">
                    
8<!--script language="JavaScript" type="text/javascript" CHARSET="UTF-8" src="http://youtubemp3.tv/jquery-1.4.2.min.js"></script-->
                    
44			<tr><td width="100%"></td><td>
                    
45			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FYoutubeMP3tv%2F220993711269458&amp;width=270&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false&amp;height=62&amp;layout=button_count" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:270px; height:21px;" allowTransparency="true"></iframe>
                    
46			<!-- <iframe src="http://www.facebook.com/plugins/like.php?app_id=147297765356025&amp;href=http%3A%2F%2Fyoutubemp3.tv%2F&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe> -->
                    
242
                    
243	<div class="box_main">
                    
244		<div class="title">
                    
252
                    
253	<div class="box_main">
                    
254		<div class="title">
                    
262
                    
263	<div class="box_main">
                    
264		<div class="title">
                    
                
jqplot.pointLabels.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 362 lines
                    
8 * jqPlot is currently available for use in all personal or commercial projects 
                    
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
14 * know of any substantial use of jqPlot.  You can reach the author at: 
                    
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
                    
16 *
                    
17 * If you are feeling kind and generous, consider supporting the project by
                    
18 * making a donation at: http://www.jqplot.com/donate.php .
                    
19 *
                    
25 *     http://hexmen.com/js/sprintf.js
                    
26 *     The author (Ash Searle) has placed this code in the public domain:
                    
27 *     "This code is unrestricted: you are free to use it however you like."
                    
                
route.php https://github.com/ymtn/core.git | PHP | 589 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
138	/**
                    
139	 * Saves or loads the route cache. If your routes will remain the same for
                    
140	 * a long period of time, use this to reload the routes from the cache
                    
184	 * @param   array    URI parameters
                    
185	 * @param   mixed   protocol string or boolean, adds protocol and domain
                    
186	 * @return  string
                    
288	 * The $uri parameter can either be a string for basic regex matching or it
                    
289	 * can be a valid callback or anonymous function (php 5.3+). If you use a
                    
290	 * callback or anonymous function, your method should return an array
                    
                
Core.class.php https://gitlab.com/adamlwalker/generatedata | PHP | 511 lines
                    
1<?php
                    
2
                    
13
                    
14	// overridable settings that the user may define in settings.php
                    
15	private static $demoMode = false;	
                    
37	private static $releaseDate = "2014-09-06";
                    
38	private static $minimumPHPVersion = "5.3.0";
                    
39	private static $minimumMySQLVersion = "4.1.3";
                    
46	// left as public, because they're often modified / accessed, and it's just too fussy otherwise. The
                    
47	// PHPDoc helps my IDE figure out what the hell each of them are
                    
48
                    
103	 *          <b>installationDatabaseReady</b>: during installation after the DB has been installed<br />
                    
104	 *          <b>ui</b>:                        (default) for the main generator page<br />
                    
105	 *          <b>generation</b>:                when we're in the process of creating actual data
                    
157	private static function loadSettingsFile() {
                    
158		$settingsFilePath = realpath(__DIR__ . "/../../settings.php");
                    
159		if (file_exists($settingsFilePath)) {
                    
                
store.php https://gitlab.com/reclamare/mao | PHP | 124 lines
                    
1<?php
                    
2// Heading
                    
77// Help
                    
78$_['help_url']                         = 'Включить полный адрес для Вашего магазина. Убедитесь в том, что добавлена \'/\' в конце. Например: http://www.yourdomain.com/path/<br /><br />Не используйте каталоги, чтобы создать новый магазин. Вы должны всегда указывать другой домен или поддомен на вашем хостинге.';
                    
79$_['help_ssl']                         = 'SSL URL в ваш магазин. Убедитесь в том, что добавлена \'/\' в конце. Например: http://www.yourdomain.com/path/<br /><br />Не используйте каталоги, чтобы создать новый магазин. Вы должны всегда указывать другой домен или поддомен на вашем хостинге.';
                    
                
AlbumController.php https://github.com/grandison/budo16.git | PHP | 454 lines
                    
1<?php
                    
2/**
                    
8 * @license    http://www.socialengine.net/license/
                    
9 * @version    $Id: AlbumController.php 8381 2011-02-02 05:03:02Z john $
                    
10 * @author     John Boehr <j@webligo.com>
                    
45    $this->view->navigation = $navigation = Engine_Api::_()->getApi('menus', 'core')
                    
46      ->getNavigation('album_main');
                    
47
                    
239    $this->view->navigation = $navigation = Engine_Api::_()->getApi('menus', 'core')
                    
240      ->getNavigation('album_main');
                    
241
                    
                
simulator.js https://github.com/partkeepr/PartKeeprMobile.git | JavaScript | 362 lines
                    
18//            handler: function() {
                    
19//                var events = Ext.getCmp('simulator').getRecorder().getEventSet('main');
                    
20//                console.log(JSON.stringify(events));
                    
21//                Ext.Ajax.request({
                    
22//                    url: '../../dump.php',
                    
23//                    method: 'POST',
                    
140            if (!Ext.get(target).hasCls('recorderButton')) {
                    
141                this.getRecorder().record('main', e);
                    
142            }
                    
171
                    
172            this.getRecorder().start('main');
                    
173            this.recorderEvents.forEach(function(name) {
                    
192
                    
193            window.localStorage.setItem('recordedEvents', JSON.stringify(this.getRecorder().getEventSet('main')));
                    
194        },
                    
                
Network.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 366 lines
                    
1<?php
                    
2
                    
85use pocketmine\utils\Binary;
                    
86use pocketmine\utils\MainLogger;
                    
87
                    
166				if (\pocketmine\DEBUG > 1) {
                    
167					if ($logger instanceof MainLogger) {
                    
168						$logger->logException($e);
                    
262				$logger = $this->server->getLogger();
                    
263				if ($logger instanceof MainLogger) {
                    
264					$logger->debug("BatchPacket " . " 0x" . bin2hex($packet->payload));
                    
297	/**
                    
298	 * Blocks an IP address from the main interface. Setting timeout to -1 will block it forever
                    
299	 *
                    
                
Config.php https://bitbucket.org/webpolis/liiv.git | PHP | 514 lines
                    
1<?php
                    
2/*
                    
22 */
                    
23require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
                    
24/**
                    
26 */
                    
27require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
                    
28/**
                    
30 */
                    
31require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
                    
32/**
                    
34 */
                    
35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php";
                    
36
                    
37/**
                    
38 * Main config parser
                    
39 *
                    
                
ucp_prefs.php https://github.com/naderman/phpbb-orchestra.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
27
                    
28	function main($id, $mode)
                    
29	{
                    
29	{
                    
30		global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
                    
31
                    
                
MysqlPlatform.php https://github.com/kelios/imshop.git | PHP | 547 lines
                    
32		parent::initialize();
                    
33		$this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "TINYINT"));
                    
34		$this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "DECIMAL"));
                    
34		$this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "DECIMAL"));
                    
35		$this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT"));
                    
36		$this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BLOB"));
                    
37		$this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "MEDIUMBLOB"));
                    
38		$this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONGBLOB"));
                    
39		$this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "LONGBLOB"));
                    
40		$this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "LONGTEXT"));
                    
41		$this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATETIME"));
                    
42	}
                    
224	{
                    
225		$domain = $col->getDomain();
                    
226		$sqlType = $domain->getSqlType();
                    
                
include_require_php.ml https://github.com/Tener/pfff.git | OCaml | 458 lines
                    
50   | ConcatConstant of Ast_php.name * Common.filename
                    
51   (* e.g. require $_SERVER['PHP_ROOT'].'/lib/init/ajax.php'; *)
                    
52   | ConcatArrrayVar of Ast_php.dname * string * Common.filename
                    
143
                    
144  (* ./ffi -dump_php_ml ../tests/require_realpath.php *)
                    
145  | (Binary(
                    
196
                    
197  (* ./ffi -dump_php_ml ../tests/require_realpath3.php *)
                    
198  | (Lv(
                    
224
                    
225  (* ./ffi -dump_php_ml ../tests/require_constant_concat.php *)
                    
226  | (Binary((Sc(C(CName(name))), t_3),
                    
232
                    
233  (* ./ffi -dump_php_ml ../tests/require_classic_bis2.php *)
                    
234  | (Sc(
                    
                
OperationResponseParserTest.php https://gitlab.com/techniconline/kmc | PHP | 335 lines
                    
1<?php
                    
2
                    
101
                    
102    public function testCanInjectModelSchemaIntoModels()
                    
103    {
                    
293
                    
294    public function testCanAddListenerToParseDomainObjects()
                    
295    {
                    
                
pageTranslations.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 217 lines
                    
1<?php
                    
2
                    
12    */
                    
13    'domain'                => 'FastSubtitle.com',
                    
14    'title'                 => 'Fast Subtitle',
                    
                
ZoomPrintController.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 392 lines
                    
29   private EdgesGraphComponent _edgesGraphComponent;
                    
30   private GraphPlugin _plugin;
                    
31   private GraphPrintable _printable;
                    
35
                    
36   public ZoomPrintController(ZoomerXmlBean zoomerXmlBean, PrintXmlBean printXmlBean, EdgesListener edgesListener, GraphPrintable printable, ISession session, GraphPlugin plugin)
                    
37   {
                    
40
                    
41      _panel = new ZoomPrintPanel(new GraphPluginResources(_plugin));
                    
42
                    
223
                    
224            Dimension graphPixelSize = _printable.initPrintNoScaleSinglePage();
                    
225            SaveToFilePageFormat pf = new SaveToFilePageFormat(graphPixelSize);
                    
226
                    
227            BufferedImage img = prepareImage(graphPixelSize.width, graphPixelSize.height);
                    
228            _printable.print(img.getGraphics(), pf, 0);
                    
                
ki.php https://bitbucket.org/rezanachmad/php-selenium-training.git | PHP | 457 lines
                    
1<?php
                    
2/**
                    
113      1 => 'Njumatatũ',
                    
114      2 => 'Njumaine',
                    
115      3 => 'Njumatana',
                    
                
admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
206
                    
207				// Redirect back to the form or main page
                    
208				$input['btnAction'] == 'save_exit'
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
144     *
                    
145     * This method is similar to `var_export()`. The main difference is that
                    
146     * it generates more compact string representation using short array syntax.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
                
SetupController.php https://github.com/geraintp/frontend.git | PHP | 444 lines
                    
64
                    
65    $body = getTheme()->get('setup.php', array('emai' => $email, 'appId' => $appId, 'step' => $step, 'errors' => $errors));
                    
66    getTheme()->display('template.php', array('body' => $body, 'page' => 'setup'));
                    
88
                    
89    $body = getTheme()->get('setup.php', array('imageLibs' => $imageLibs, 'appId' => 'openphoto-frontend', 'step' => $step));
                    
90    getTheme()->display('template.php', array('body' => $body, 'page' => 'setup'));
                    
176      {
                    
177        $simpleDbDomain = $_POST['simpleDbDomain'];
                    
178        $input[] = array('Amazon SimpleDb Domain', $simpleDbDomain, 'required');
                    
245          getSession()->set('simpleDbDomain', $simpleDbDomain);
                    
246          $aws->simpleDbDomain = $simpleDbDomain;
                    
247        }
                    
347
                    
348    $body = getTheme()->get('setup.php', array('step' => $step, 'usesAws' => $usesAws, 'usesMySql' => $usesMySql, 'usesLocalFs' => $usesLocalFs, 'usesS3' => $usesS3, 'usesSimpleDb' => $usesSimpleDb, 's3Bucket' => $s3Bucket, 'simpleDbDomain' => $simpleDbDomain, 'appId' => $appId, 'errors' => $errors));
                    
349    getTheme()->display('template.php', array('body' => $body, 'page' => 'setup'));
                    
                
IWnoteboard_user_nova.tpl https://github.com/intraweb-modules13/IWnoteboard.git | Smarty Template | 355 lines
                    
44        if(f.m.value=="n"){
                    
45            f.action="index.php?module=IWnoteboard&func=crear"
                    
46        }else{
                    
46        }else{
                    
47            f.action="index.php?module=IWnoteboard&func=update"
                    
48        }
                    
137</noscript>
                    
138<link rel="stylesheet" href="modules/IWmain/js/calendar/css/jscal2.css" type="text/css" />
                    
139<link rel="stylesheet" href="modules/IWmain/js/calendar/css/border-radius.css" type="text/css" />
                    
139<link rel="stylesheet" href="modules/IWmain/js/calendar/css/border-radius.css" type="text/css" />
                    
140<link rel="stylesheet" href="modules/IWmain/js/calendar/css/style.css" type="text/css" />
                    
141<script type="text/javascript" src="modules/IWmain/js/calendar/jscal2.js"></script>
                    
141<script type="text/javascript" src="modules/IWmain/js/calendar/jscal2.js"></script>
                    
142<script type="text/javascript" src="modules/IWmain/js/calendar/lang/ca.js"></script>
                    
143
                    
                
TemperatureTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
                    
25}
                    
29 */
                    
30require_once 'Zend/Measure/Temperature.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Registry.php';
                    
36
                    
444
                    
445if (PHPUnit_MAIN_METHOD == 'Zend_Measure_TemperatureTest::main') {
                    
446    Zend_Measure_TemperatureTest::main();
                    
                
codebench.php https://bitbucket.org/seyar/kinda.local.git | PHP | 258 lines
                    
111
                    
112			<?php if (Kohana::config('codebench')->expand_all) { ?>
                    
113				// Expand all benchmark details by default
                    
114				$toggle_all.click();
                    
115			<?php } ?>
                    
116
                    
187					<h2 title="<?php printf('%01.6f', $benchmark['time']) ?>s">
                    
188						<span class="grade-<?php echo $benchmark['grade']['time'] ?>" style="width:<?php echo $benchmark['percent']['slowest']['time'] ?>%">
                    
189							<span class="method"><?php echo $method ?></span>
                    
199									<th style="width:50%">subject → return</th>
                    
200									<th class="numeric" style="width:25%" title="Total method memory"><?php echo Text::bytes($benchmark['memory'], 'MB', '%01.6f%s') ?></th>
                    
201									<th class="numeric" style="width:25%" title="Total method time"><?php printf('%01.6f', $benchmark['time']) ?>s</th>
                    
208									<td>
                    
209										<strong class="help" title="(<?php echo gettype($codebench['subjects'][$subject_key]) ?>) <?php echo HTML::chars(var_export($codebench['subjects'][$subject_key], TRUE)) ?>">
                    
210											[<?php echo HTML::chars($subject_key) ?>] →
                    
                
CssSelector.php https://github.com/nattaphat/hgis.git | PHP | 322 lines
                    
1<?php
                    
2
                    
16/**
                    
17 * CssSelector is the main entry point of the component and can convert CSS
                    
18 * selectors to XPath expressions.
                    
                
index.php https://github.com/hregis/dolibarr.git | PHP | 427 lines
                    
27
                    
28require '../../main.inc.php';
                    
29require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
                    
29require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
                    
30require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
                    
31require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
                    
67$sql = "SELECT count(cf.rowid) as nb, fk_statut as status";
                    
68$sql .= " FROM ".MAIN_DB_PREFIX."societe as s";
                    
69$sql .= ", ".MAIN_DB_PREFIX."commande_fournisseur as cf";
                    
177	$sql .= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
                    
178	$sql .= ", ".MAIN_DB_PREFIX."societe as s";
                    
179	if (empty($user->rights->societe->client->voir) && !$socid) {
                    
206				print '<td class="nowrap">';
                    
207				print "<a href=\"card.php?id=".$obj->rowid."\">".img_object($langs->trans("ShowOrder"), "order").' '.$obj->ref."</a></td>";
                    
208				print '<td><a href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"), "company").' '.dol_trunc($obj->name, 24).'</a></td></tr>';
                    
                
Twig.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 420 lines
                    
1<?php
                    
2<<<<<<< HEAD
                    
24 * that is optimized so that it only needs to be initialized once and can be reused for individual
                    
25 * page template rendering as well as the main site template rendering.
                    
26 *
                    
338    /**
                    
339     * Twig process that renders the site layout. This is the main twig process that renders the overall
                    
340     * page and handles all the layout for the site display.
                    
                
paperclip.rb https://github.com/palladius/lovd-by-less.git | Ruby | 244 lines
                    
8# Copyright:: Copyright (c) 2008 thoughtbot, inc.
                    
9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10#
                    
82    #   as easily point to a directory served directly through Apache as it can to an action
                    
83    #   that can control permissions. You can specify the full domain and path, but usually
                    
84    #   just an absolute path is sufficient. The leading slash must be included manually for 
                    
95    #   geometry strings at the ImageMagick website 
                    
96    #   (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip
                    
97    #   also adds the "#" option (e.g. "50x50#"), which will resize the image to fit maximally 
                    
                
attachments.php https://github.com/naderman/phpbb-orchestra.git | PHP | 174 lines
                    
1<?php
                    
2/**
                    
7* @version $Id$
                    
8* @copyright (c) 2005 phpBB Group
                    
9* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
15*/
                    
16if (!defined('IN_PHPBB'))
                    
17{
                    
31// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
                    
32// translators to re-order the output of data while ensuring it remains correct
                    
33//
                    
38$lang = array_merge($lang, array(
                    
39	'ACP_ATTACHMENT_SETTINGS_EXPLAIN'	=> 'Here you can configure the main settings for attachments and the associated special categories.',
                    
40	'ACP_EXTENSION_GROUPS_EXPLAIN'		=> 'Here you can add, delete, modify or disable your extension groups. Further options include the assignment of a special category to them, changing the download mechanism and defining an upload icon which will be displayed in front of the attachment which belongs to the group.',
                    
40	'ACP_EXTENSION_GROUPS_EXPLAIN'		=> 'Here you can add, delete, modify or disable your extension groups. Further options include the assignment of a special category to them, changing the download mechanism and defining an upload icon which will be displayed in front of the attachment which belongs to the group.',
                    
41	'ACP_MANAGE_EXTENSIONS_EXPLAIN'		=> 'Here you can manage your allowed extensions. To activate your extensions, please refer to the extension groups management panel. We strongly recommend not to allow scripting extensions (such as <code>php</code>, <code>php3</code>, <code>php4</code>, <code>phtml</code>, <code>pl</code>, <code>cgi</code>, <code>py</code>, <code>rb</code>, <code>asp</code>, <code>aspx</code>, and so forth…).',
                    
42	'ACP_ORPHAN_ATTACHMENTS_EXPLAIN'	=> 'Here you are able to see orphaned files. This happens mostly if users are attaching files but not submitting the post. You are able to delete the files or attach them to existing posts. Attaching to posts requires a valid post ID, you have to determine this ID by yourself. This will assign the already uploaded attachment to the post you entered.',
                    
                
plugin.php https://github.com/mrmark/moodle.git | PHP | 352 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17/**
                    
18 * Main class for plugin 'media_videojs'
                    
19 *
                    
55        global $CFG;
                    
56        require_once($CFG->libdir . '/filelib.php');
                    
57
                    
201        global $CFG;
                    
202        require_once($CFG->libdir . '/filelib.php');
                    
203        if ($this->extensions === null) {
                    
314     * Returns regular expression used to match URLs for single youtube video
                    
315     * @return string PHP regular expression e.g. '~^https?://example.org/~'
                    
316     */
                    
                
ogniter_default_lang.php https://bitbucket.org/NeoArc/ogniter-language.git | PHP | 355 lines
                    
1<?php
                    
2
                    
4$lang['og_logo_text'] = "ODB";
                    
5$lang['og_domain'] = "Domínio";
                    
6$lang['og_domains'] = "Domínios";
                    
12
                    
13$lang['og_pick_a_domain'] = "Escolha um domínio";
                    
14$lang['og_choose_a_server'] = "Selecione um universo";
                    
23
                    
24$lang['og_home_domain_list'] = 'Lista dos domínios';
                    
25$lang['og_number_of_servers'] = '# de universos registrados';
                    
246
                    
247$lang['title_domain_module'] = 'Ogniter - Universos pertencentes a: ';
                    
248$lang['description_domain_module'] = 'Lista universos Ogame: ';
                    
250
                    
251$lang['title_server_index'] = 'Ogniter. %server% (%domain%)';
                    
252$lang['description_server_index'] = 'Ogame, %server% estatísticas em %domain%';
                    
                
functions.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 376 lines
                    
307		<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title (optional):' ); ?></label> 
                    
308		<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
                    
309		</p>
                    
327        <p><label for="<?php echo $this->get_field_id( 'number' ); ?>"><?php _e( 'Number of feeds to show:' ); ?></label>
                    
328		<input id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p>
                    
329        
                    
333        <p><label for="<?php echo $this->get_field_id( 'feed_words' ); ?>"><?php _e( 'No. of feed words to show:' ); ?></label>
                    
334		<input id="<?php echo $this->get_field_id( 'feed_words' ); ?>" name="<?php echo $this->get_field_name( 'feed_words' ); ?>" type="text" value="<?php echo $feed_words; ?>" size="3" /></p>
                    
335        
                    
336        <p><label for="<?php echo $this->get_field_id( 'content_height' ); ?>"><?php _e( 'Widget Height:' ); ?></label>
                    
337		<input id="<?php echo $this->get_field_id( 'content_height' ); ?>" name="<?php echo $this->get_field_name( 'content_height' ); ?>" type="text" value="<?php echo $content_height; ?>" size="6" /><small><br />
                    
338e.g. 400px<br />
                    
342        <p><label for="<?php echo $this->get_field_id( 'rfw_cache' ); ?>"><?php _e( 'Cache Period:' ); ?></label>
                    
343		<input id="<?php echo $this->get_field_id( 'rfw_cache' ); ?>" name="<?php echo $this->get_field_name( 'rfw_cache' ); ?>" type="text" value="<?php echo $rfw_cache; ?>" placeholder="Enter in seconds" size="20" /><small><br />
                    
344e.g. 7200 seconds = 2 hours<br />
                    
                
makeXMLForOneService.php https://gitlab.com/florianocomercial/centreon | PHP | 287 lines
                    
1<?php
                    
2/*
                    
3 * Copyright 2005-2015 Centreon
                    
4 * Centreon is developped by : Julien Mathis and Romain Le Merlus under
                    
5 * GPL Licence 2.0.
                    
38 */
                    
39require_once realpath(dirname(__FILE__) . "/../../../../../../config/centreon.config.php");
                    
40
                    
40
                    
41include_once $centreon_path . "www/class/centreonUtils.class.php";
                    
42
                    
45 */
                    
46include_once _CENTREON_PATH_ . "www/class/centreonXMLBGRequest.class.php";
                    
47include_once _CENTREON_PATH_ . "www/class/centreonLang.class.php";
                    
                
SetTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 295 lines
                    
1<?php
                    
2/** 
                    
11 
                    
12class SetTest extends \PHPUnit_Framework_TestCase
                    
13{
                    
14    /**
                    
15     * @var \PHPUnit_Framework_MockObject_MockObject|Set
                    
16     */
                    
19    /**
                    
20     * @var \PHPUnit_Framework_MockObject_MockObject
                    
21     */
                    
24    /**
                    
25     * @var \PHPUnit_Framework_MockObject_MockObject
                    
26     */
                    
29    /**
                    
30     * @var \PHPUnit_Framework_MockObject_MockObject
                    
31     */
                    
                
class.jetpack-landing-page.php https://gitlab.com/thisishayat/itv-2016 | PHP | 299 lines
                    
1<?php
                    
2include_once( 'class.jetpack-admin-page.php' );
                    
31
                    
32		// Add the main admin Jetpack menu with possible information about new
                    
33		// modules
                    
49		add_action( "admin_footer-$hook", apply_filters( 'jetpack_landing_page_js_templates_callback', array( $this, 'js_templates' ), $hook ) );
                    
50		/** This action is documented in class.jetpack.php */
                    
51		do_action( 'jetpack_admin_menu', $hook );
                    
144	function js_templates() {
                    
145		Jetpack::init()->load_view( 'admin/landing-page-templates.php' );
                    
146	}
                    
175		);
                    
176		Jetpack::init()->load_view( 'admin/admin-page.php', $data );
                    
177	}
                    
203				<div class="squeezer">
                    
204					<h2><?php echo wp_kses( $message, array( 'strong' => array(), 'a' => array( 'href' => true ), 'br' => true ) ); ?></h2>
                    
205					<?php
                    
                
cat_contractor_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php");
                    
10$selfFolderUrl = $adminPage->getSelfFolderUrl();
                    
11$listUrl = $selfFolderUrl."cat_contractor_list.php?lang=".LANGUAGE_ID;
                    
12$listUrl = $adminSidePanelHelper->editUrlToPublicPage($listUrl);
                    
20{
                    
21	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
22
                    
25
                    
26	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
                    
27	die();
                    
121
                    
122require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
123$str_ACTIVE = "Y";
                    
338
                    
339<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");?>
                    
                
README.md https://gitlab.com/freebird/WebApp | Markdown | 344 lines
                    
65
                    
66``` php
                    
67<?php
                    
96 * `LessFilter`: parses LESS into CSS (using less.js with node.js)
                    
97 * `LessphpFilter`: parses LESS into CSS (using lessphp)
                    
98 * `OptiPngFilter`: optimize your PNGs
                    
105 * `Sass\ScssFilter`: parses SCSS into CSS
                    
106 * `ScssphpFilter`: parses SCSS using scssphp
                    
107 * `SeparatorFilter`: inserts a separator between assets to prevent merge failures
                    
136``` php
                    
137<?php
                    
138
                    
154``` php
                    
155<?php
                    
156
                    
                
setup.php https://github.com/Doap/xoops.git | PHP | 202 lines
                    
176define("_INSTALL_REQUIREMENT_SERVER_MOD_REWRITE", "Apache \"mod_rewrite\" module is required, check <a href='http://httpd.apache.org/docs/current/mod/mod_rewrite.html' title='mod_rewrite' target='_blank'>mod_rewrite</a> for details.");
                    
177define("_INSTALL_REQUIREMENT_SERVER_NOT_SUPPORTED", "The webserver is currently not supported, please use <a href='http://nginx.net' title='nginx' target='_blank'>nginx</a> or <a href='http://www.php.net/manual/en/book.apache.php' target='_blank' title='Apache'>Apache</a>.");
                    
178define("_INSTALL_REQUIREMENT_PHP", "PHP");
                    
179define("_INSTALL_REQUIREMENT_PDO", "PDO drivers");
                    
180define("_INSTALL_REQUIREMENT_PDO_PROMPT", "PHP Data Objects (PDO) extension with MySQL driver is required for regular Xoops Engine instances, check <a href='http://www.php.net/manual/en/book.pdo.php' title='PDO' target='_blank'>PDO manual</a> for details.");
                    
181define("_INSTALL_REQUIREMENT_PERSIST", "Persist options");
                    
190define("_INSTALL_EXTENSION_APC", "APC");
                    
191define("_INSTALL_EXTENSION_APC_PROMPT", 'The Alternative PHP Cache (APC) is highly recommended for high-performance senario. Refer to <a href="http://www.php.net/manual/en/intro.apc.php" target="_blank" title="APC introduction">APC introduction</a> for details.');
                    
192define("_INSTALL_EXTENSION_REDIS", "Redis");
                    
194define("_INSTALL_EXTENSION_MEMCACHED", "Memcached");
                    
195define("_INSTALL_EXTENSION_MEMCACHED_PROMPT", 'Memcached is highly recommended for high-performance yet robust distributed senario. Refer to <a href="http://www.php.net/manual/en/intro.memcached.php" target="_blank" title="Memcached introduction">Memcached introduction</a> for details.');
                    
196define("_INSTALL_EXTENSION_MEMCACHE", "Memcache");
                    
196define("_INSTALL_EXTENSION_MEMCACHE", "Memcache");
                    
197define("_INSTALL_EXTENSION_MEMCACHE_PROMPT", 'Memcache a widely used cache engine. Refer to <a href="http://www.php.net/manual/en/intro.memcache.php" target="_blank" title="Memcache introduction">Memcache introduction</a> for details.');
                    
198define("_INSTALL_EXTENSION_FILE", 'File');
                    
                
LoggerLoggingEvent.php https://github.com/samar-tmr/MyVenture.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * @package log4php
                    
19 */
                    
24 * @version $Revision: 1059292 $
                    
25 * @package log4php
                    
26 */
                    
87	/** 
                    
88	 * The application supplied message rendered through the log4php
                    
89	 * objet rendering mechanism. At present renderedMessage == message.
                    
95	 * The name of thread in which this logging event was generated.
                    
96	 * log4php saves here the process id via {@link PHP_MANUAL#getmypid getmypid()} 
                    
97	 * @var mixed
                    
113	/**
                    
114	 * @var LoggerThrowableInformation log4php internal representation of throwable
                    
115	 */
                    
                
general.php https://gitlab.com/digaotinfo/agenciaabear.com.br | PHP | 225 lines
                    
12            <span class="kopa-component-title"><?php _e('Logo', kopa_get_domain()); ?></span>
                    
13            <p class="kopa-desc"><?php _e('Upload your own logo.', kopa_get_domain()); ?></p>                         
                    
14            <div class="clearfix">
                    
90                <input class="left" type="text" value="<?php echo get_option('kopa_theme_options_apple_ipad_retina_icon_url'); ?>" id="kopa_theme_options_apple_ipad_retina_icon_url" name="kopa_theme_options_apple_ipad_retina_icon_url">
                    
91                <button class="btn btn-success upload_image_button" alt="kopa_theme_options_apple_ipad_retina_icon_url"><i class="icon-circle-arrow-up"></i><?php _e('Upload', kopa_get_domain()); ?></button>
                    
92            </div>
                    
139                ?>
                    
140                <label  for="<?php echo $kopa_header_headline_status_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_header_headline_status_id; ?>" name="<?php echo $kopa_header_headline_name; ?>" <?php echo ($value == get_option($kopa_header_headline_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
                    
141                <?php
                    
158                foreach ( $kopa_headline_categories as $kopa_headline_category ) { ?>
                    
159                    <option value="<?php echo $kopa_headline_category->term_id; ?>" <?php selected( $kopa_headline_category->term_id, $kopa_current_headline_category_id ); ?>><?php echo $kopa_headline_category->name; ?></option>
                    
160                <?php } // endforeach ?>
                    
190                ?>
                    
191                <label  for="<?php echo $kopa_breadcrumb_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_breadcrumb_id; ?>" name="<?php echo $kopa_breadcrumb_status_name; ?>" <?php echo ($value == get_option($kopa_breadcrumb_status_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
                    
192                <?php
                    
                
config.values.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 277 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
6 *
                    
7 * @package PhpMyAdmin
                    
8 */
                    
9
                    
10if (!defined('PHPMYADMIN')) {
                    
11    exit;
                    
36$cfg_db['MemoryLimit'] = 'short_string';
                    
37$cfg_db['NavigationLogoLinkWindow'] = array('main', 'new');
                    
38$cfg_db['NavigationTreeDefaultTabTable'] = array(
                    
222/**
                    
223 * Basic validator assignments (functions from libraries/config/Validator.php
                    
224 * and 'validators' object in js/config.js)
                    
                
configure-vhosts.html https://gitlab.com/haris4445/techarena | HTML | 251 lines
                    
54              <li class="active"><a href="/dashboard/howto.html">HOW-TO Guides</a></li>
                    
55              <li class=""><a target="_blank" href="/dashboard/phpinfo.php">PHPInfo</a></li>
                    
56              <li class=""><a href="/phpmyadmin/">phpMyAdmin</a></li>
                    
80<div class="paragraph">
                    
81<p>Apache makes it easy to have multiple websites or web applications running on the same physical server, and access each using a custom domain name. This is known as <em>virtual hosting</em>, and each virtual host can be mapped to a different subdirectory of the server.</p>
                    
82</div>
                    
83<div class="paragraph">
                    
84<p>This feature is especially useful in development scenarios, as it allows developers to isolate and access different applications using unique domain names. For example, the domains <em><a href="http://app01.localhost" class="bare">http://app01.localhost</a></em> and <em><a href="http://app02.localhost" class="bare">http://app02.localhost</a></em> could point to two separate applications on the same server. Or, you could create separate domains, such as <em><a href="http://client1/" class="bare">http://client1/</a></em>, <em><a href="http://client2/" class="bare">http://client2/</a></em> and so on, for multiple client websites hosted on the same server.</p>
                    
85</div>
                    
92<td class="content">
                    
93Virtual hosts created in this manner will not be accessible from other systems, unless those systems are separately configured to associate the custom domain used by the virtual host with the IP address of the XAMPP server.
                    
94This guide walks you through the process of setting up a new virtual host with XAMPP, by creating and configuring an example host named <em>wordpress.localhost</em> for a WordPress installation. It assumes that you have an existing WordPress installation at <em>C:\xampp\apps\wordpress\htdocs\</em> and accessible via the URL <a href="http://localhost/wordpress" class="bare">http://localhost/wordpress</a>.
                    
175<li>
                    
176<p>At this point, your virtual host is configured. However, if you try browsing to the <em>wordpress.localhost</em> domain, your browser will show a failure notice, since this domain does not exist in reality. To resolve this, it is necessary to map the custom domain to the local IP address. To do this, open the file <em>C:\windows\system32\drivers\etc\hosts</em> and add the following line to it:</p>
                    
177<div class="literalblock">
                    
                
TestOfLinkMySQLDAO.php https://github.com/dagda/ThinkUp.git | PHP | 290 lines
                    
1<?php
                    
2require_once dirname(__FILE__).'/init.tests.php';
                    
2require_once dirname(__FILE__).'/init.tests.php';
                    
3require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php';
                    
4require_once THINKUP_ROOT_PATH.'webapp/config.inc.php';
                    
119            'http://example.com/test',
                    
120            'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php', 'Very Long URL', '12345678901',
                    
121            'twitter', false);
                    
129        $this->assertEqual($result->expanded_url,
                    
130        'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php');
                    
131        $this->assertEqual($result->title, 'Very Long URL');
                    
179            'http://example.com/test',
                    
180            'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php',
                    
181            'Very Long URL',
                    
187            'http://example.com/test', 
                    
188            'http://very.long.domain.that.nobody.would.bother.to.type.com/image.png', 
                    
189            'Even Longer URL', 
                    
                
introduction.tex https://github.com/mut8/r_latex.git | LaTeX | 95 lines
                    
2%\introduction
                    
3%% \introduction[modified heading if necessary]https://www.n3tw0rk.org/search.php?search_id=newposts
                    
4
                    
4
                    
5%Litter decomposition controls nutrient recycling and the release of assimilated carbon. Therefore it is considered a key process in terrestric ecosystems. While controls over decomposition rates -litter chemistry, climate and decomposer comunities - are known and generally accepted, the nature of the chemical transformations involved still remains a black box [lit]. \cite{Prescott2010} emphasises that the amount and chemisty of the humified biomass sequested to soils after litter decomposition might be have a higher impact on carbon cycling than decomposition speed.
                    
6%ev. leachates as input of labile carbon to soils?
                    
59
                    
60%\cite{Prescott2010} suggests the amount of remaining biomass more important than the decomposition speed. We suggest, the chemical nature of this remaining biomass might be a factor too. we should study the influences of environmental parametres on the chemical conposition of the remaining biomass. 
                    
61
                    
                
PropelPager.php https://github.com/1989gaurav/Propel.git | PHP | 597 lines
                    
1<?php
                    
2
                    
15 *
                    
16 *  require_once 'propel/util/PropelPager.php';
                    
17 *  require_once 'PEACH/Propel/Poem/poemPeer.php';
                    
274	 *
                    
275	 * Main method which creates a paged result set based on the criteria
                    
276	 * and the requested peer select method.
                    
                
lang.no.php https://bitbucket.org/unixcrab/colab-lims.git | PHP | 255 lines
                    
1<?php
                    
2//include_once("constants.php");
                    
15$langdata['configure'] = "Konfigurere";
                    
16$langdata['domain'] = "Gruppe";
                    
17$langdata['laboratory'] = "Laboratorium";
                    
166$langdata['limsadmin_labs'] = "Laboratorier";
                    
167$langdata['limsadmin_domains'] = "Grupper";
                    
168$langdata['limsadmin_infrastructure'] = "Infrastruktur";
                    
179$langdata['limsadmin_lab_name'] = "Laboratorium navn";
                    
180$langdata['limsadmin_lab_domain'] = "Laboratorium gruppe";
                    
181
                    
185
                    
186// lims admin Domains
                    
187$langdata['limsadmin_new_domain'] = "Ny gruppe";
                    
187$langdata['limsadmin_new_domain'] = "Ny gruppe";
                    
188$langdata['limsadmin_edit_domain'] = "Redigere gruppe";
                    
189
                    
                
SharedTempStore.php https://gitlab.com/mohamed_hussein/prodt | PHP | 318 lines
                    
1<?php
                    
2
                    
170      'data' => $value,
                    
171      'updated' => (int) $this->requestStack->getMainRequest()->server->get('REQUEST_TIME'),
                    
172    ];
                    
230      'data' => $value,
                    
231      'updated' => (int) $this->requestStack->getMainRequest()->server->get('REQUEST_TIME'),
                    
232    ];
                    
                
wp-background-process.php https://gitlab.com/campus-academy/krowkaramel | PHP | 503 lines
                    
1<?php // @codingStandardsIgnoreLine.
                    
2/**
                    
290	 *
                    
291	 * Pass each queue item to the task handler, while remaining
                    
292	 * within server memory and time limit constraints.
                    
                
wow_page_index.php https://github.com/DragonFire/wowcs.git | PHP | 239 lines
                    
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo WoW_Locale::GetLocale(LOCALE_DOUBLE); ?>" lang="<?php echo WoW_Locale::GetLocale(LOCALE_DOUBLE); ?>">
                    
2<?php
                    
10                    <div>
                    
11                        <input type="submit" id="search-button" value="" tabindex="41" /> <input type="text" name="q" id="search-field" maxlength="200" tabindex="40" alt="<?php echo WoW_Locale::GetString('template_search_site');?>" value="<?php echo WoW_Search::GetSearchQuery() != null ? WoW_Search::GetSearchQuery() : WoW_Locale::GetString('template_search_site'); ?>" />
                    
12                    </div>
                    
14            </div>
                    
15            <h1 id="logo"><a href="<?php echo WoW::GetWoWPath(); ?>/wow/">World of Warcraft</a></h1>
                    
16            <div class="header-plate-wrapper header-plate">
                    
87    //
                    
88    Menu.initialize('<?php echo WoW::GetWoWPath(); ?>/data/menu.json');
                    
89    Search.init('<?php echo WoW::GetWoWPath(); ?>/ta/lookup');
                    
91</script>
                    
92<!--[if lt IE 8]> <script type="text/javascript" src="<?php echo WoW::GetWoWPath(); ?>/wow/static/local-common/js/third-party/jquery.pngFix.pack.js?v15"></script>
                    
93<script type="text/javascript">$('.png-fix').pngFix();</script>
                    
233    Core.load("<?php echo WoW::GetWoWPath(); ?>/wow/static/local-common/js/login.js?v15", false, function() {
                    
234        Login.embeddedUrl = '<?php echo WoW::GetWoWPath(); ?>/login/<?php echo WoW_Locale::GetLocale() ?>/login.frag';
                    
235    });
                    
                
configure.php https://github.com/jmarc06/yacs.git | PHP | 313 lines
                    
27 *
                    
28 * The file [code]parameters/collections.include.php.bak[/code] can be used to restore
                    
29 * the active configuration before the last change.
                    
58if(!Surfer::is_logged())
                    
59	Safe::redirect($context['url_to_home'].$context['url_to_root'].'users/login.php?url='.urlencode('collections/configure.php'));
                    
60
                    
69	// load current parameters, if any
                    
70	Safe::load('parameters/collections.include.php');
                    
71
                    
247	Safe::unlink($context['path_to_root'].'parameters/collections.include.php.bak');
                    
248	Safe::rename($context['path_to_root'].'parameters/collections.include.php', $context['path_to_root'].'parameters/collections.include.php.bak');
                    
249
                    
250	// build the new configuration file
                    
251	$content = '<?php'."\n"
                    
252		.'// This file has been created by the configuration script collections/configure.php'."\n"
                    
                
lexer.php https://github.com/evoCoder/moodle.git | PHP | 393 lines
                    
1<?php  // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $
                    
2
                    
2
                    
3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 
                    
4 * http://sourceforge.net/projects/lamplib
                    
5 * This project is administered by Markus Baker, Harry Fuecks and Matt
                    
6 * Mitchell, and the project  code is in the public domain.
                    
7 * 
                    
165     *    Some optimisation to make the sure the
                    
166     *    content is only scanned by the PHP regex
                    
167     *    parser once. Lexer modes must not start
                    
                
Autoload_8php_source.html https://github.com/Jasig/phpCAS.git | HTML | 58 lines
                    
7<meta name="viewport" content="width=device-width, initial-scale=1"/>
                    
8<title>phpCAS: CAS/Autoload.php Source File</title>
                    
9<link href="tabs.css" rel="stylesheet" type="text/css"/>
                    
20  <td id="projectalign" style="padding-left: 0.5em;">
                    
21   <div id="projectname">phpCAS
                    
22   &#160;<span id="projectnumber">version 1.4.0</span>
                    
34$(function() {
                    
35  initMenu('',false,false,'search.php','Search');
                    
36});
                    
37</script>
                    
38<div id="main-nav"></div>
                    
39<div id="nav-path" class="navpath">
                    
48<div class="contents">
                    
49<a href="Autoload_8php.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;&lt;?php</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="Autoload_8php.html#a6a42c65b5bfb8da33363e35d0b6297df">   24</a></span>&#160;<span class="keyword">function</span> <a class="code" href="Autoload_8php.html#a6a42c65b5bfb8da33363e35d0b6297df">CAS_autoload</a>($class)</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="comment">// Static to hold the Include Path to CAS</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keyword">static</span> $include_path;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="comment">// Check only for CAS classes</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordflow">if</span> (substr($class, 0, 4) !== <span class="stringliteral">&#39;CAS_&#39;</span> &amp;&amp; substr($class, 0, 7) !== <span class="stringliteral">&#39;PhpCas\\&#39;</span>) {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    }</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="comment">// Setup the include path if it&#39;s not already set from a previous call</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordflow">if</span> (empty($include_path)) {</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        $include_path = array(dirname(__DIR__));</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    }</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="comment">// Declare local variable to store the expected full path to the file</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordflow">foreach</span> ($include_path as $path) {</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        $class_path = str_replace(<span class="charliteral">&#39;_&#39;</span>, DIRECTORY_SEPARATOR, $class);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <span class="comment">// PhpCas namespace mapping</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordflow">if</span> (substr($class_path, 0, 7) === <span class="stringliteral">&#39;PhpCas\\&#39;</span>) {</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            $class_path = <span class="stringliteral">&#39;CAS&#39;</span> . DIRECTORY_SEPARATOR . substr($class_path, 7);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        }</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        $file_path = $path . DIRECTORY_SEPARATOR . $class_path . <span class="stringliteral">&#39;.php&#39;</span>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        $fp = @fopen($file_path, <span class="charliteral">&#39;r&#39;</span>, <span class="keyword">true</span>);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordflow">if</span> ($fp) {</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            fclose($fp);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            include $file_path;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            <span class="keywordflow">if</span> (!class_exists($class, <span class="keyword">false</span>) &amp;&amp; !interface_exists($class, <span class="keyword">false</span>)) {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                die(</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                    <span class="keyword">new</span> Exception(</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                        <span class="stringliteral">&#39;Class &#39;</span> . $class . <span class="stringliteral">&#39; was not present in &#39;</span> .</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                        $file_path .</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                        <span class="stringliteral">&#39; [CAS_autoload]&#39;</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                    )</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                );</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            }</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        }</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    }</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    $e = <span class="keyword">new</span> Exception(</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="stringliteral">&#39;Class &#39;</span> . $class . <span class="stringliteral">&#39; could not be loaded from &#39;</span> .</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        $file_path . <span class="stringliteral">&#39;, file does not exist (Path=&quot;&#39;</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        . implode(<span class="charliteral">&#39;:&#39;</span>, $include_path) .<span class="stringliteral">&#39;&quot;) [CAS_autoload]&#39;</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    );</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    $trace = $e-&gt;getTrace();</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keywordflow">if</span> (isset($trace[2]) &amp;&amp; isset($trace[2][<span class="stringliteral">&#39;function&#39;</span>])</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        &amp;&amp; in_array($trace[2][<span class="stringliteral">&#39;function&#39;</span>], array(<span class="stringliteral">&#39;class_exists&#39;</span>, <span class="stringliteral">&#39;interface_exists&#39;</span>))</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    ) {</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    }</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordflow">if</span> (isset($trace[1]) &amp;&amp; isset($trace[1][<span class="stringliteral">&#39;function&#39;</span>])</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        &amp;&amp; in_array($trace[1][<span class="stringliteral">&#39;function&#39;</span>], array(<span class="stringliteral">&#39;class_exists&#39;</span>, <span class="stringliteral">&#39;interface_exists&#39;</span>))</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    ) {</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    }</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    die ((<span class="keywordtype">string</span>) $e);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;}</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment">// Set up autoload if not already configured by composer.</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keywordflow">if</span> (!class_exists(<span class="stringliteral">&#39;CAS_Client&#39;</span>))</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;{</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    trigger_error(<span class="stringliteral">&#39;phpCAS autoloader is deprecated. Install phpCAS using composer instead.&#39;</span>, E_USER_DEPRECATED);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    spl_autoload_register(<span class="stringliteral">&#39;CAS_autoload&#39;</span>);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordflow">if</span> (function_exists(<span class="stringliteral">&#39;__autoload&#39;</span>)</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        &amp;&amp; !in_array(<span class="stringliteral">&#39;__autoload&#39;</span>, spl_autoload_functions())</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    ) {</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="comment">// __autoload() was being used, but now would be ignored, add</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="comment">// it to the autoload stack</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        spl_autoload_register(<span class="stringliteral">&#39;__autoload&#39;</span>);</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    }</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;}</div><div class="ttc" id="Autoload_8php_html_a6a42c65b5bfb8da33363e35d0b6297df"><div class="ttname"><a href="Autoload_8php.html#a6a42c65b5bfb8da33363e35d0b6297df">CAS_autoload</a></div><div class="ttdeci">CAS_autoload($class)</div><div class="ttdef"><b>Definition:</b> <a href="Autoload_8php_source.html#l00024">Autoload.php:24</a></div></div>
                    
50</div><!-- fragment --></div><!-- contents -->
                    
                
ReporteEgresoView.php https://bitbucket.org/raboit/sisfac.git | PHP | 286 lines
                    
1<?php
                    
2
                    
19                        $default_border = array(
                    
20                            'style' => PHPExcel_Style_Border::BORDER_THIN,
                    
21                            'color' => array('rgb'=>'000000')
                    
31                                                    'fill' => array(
                    
32                                'type' => PHPExcel_Style_Fill::FILL_SOLID,
                    
33                                'color' => array('rgb'=>'819FF7'),
                    
74		
                    
75		// Main consuming function, apply every optimization you could think of
                    
76		public function renderBody()
                    
245				foreach($this->columns as $n=>$column)
                    
246					self::$objPHPExcel->getActiveSheet()->getColumnDimension($this->columnName($n+1))->setAutoSize(true);
                    
247			
                    
248			//create writer for saving
                    
249			$objWriter = PHPExcel_IOFactory::createWriter(self::$objPHPExcel, $this->exportType);
                    
250			if(!$this->stream)
                    
                
index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 317 lines
                    
18function array_multisort(arr) {
                    
19  //  discuss at: http://phpjs.org/functions/array_multisort/
                    
20  // original by: Theriault
                    
100  // Store first argument into sortArrs and sortKeys if an Object.
                    
101  // First Argument should be either a Javascript Array or an Object, otherwise function would return FALSE like in PHP
                    
102  if (Object.prototype.toString.call(arr) === '[object Array]') {
                    
114
                    
115  // arrMainLength: Holds the length of the first array. All other arrays must be of equal length, otherwise function would return FALSE like in PHP
                    
116  //
                    
118  var arrMainLength = sortArrs[0].length;
                    
119  var sortComponents = [0, arrMainLength];
                    
120
                    
304
                    
305Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are 
                    
306the closest match to this hashtable-like data structure. 
                    
                
index.py https://gitlab.com/xiaok/SaltAdmin | Python | 237 lines
                    
2#-*- coding:utf-8 -*-
                    
3from main import *
                    
4import time
                    
67        # 这里要从公网去解析
                    
68        url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=" + LoginHost
                    
69        response = urllib2.urlopen(url)
                    
                
Abstract.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 524 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
64    /**
                    
65     * Main element node
                    
66     *
                    
68     */
                    
69    protected $_mainNode = 'form';
                    
70
                    
103        $this->setXmlObject(
                    
104            Mage::getModel('xmlconnect/simplexml_element', '<' . $this->_mainNode . '></' . $this->_mainNode . '>')
                    
105        );
                    
                
pmetis.c https://bitbucket.org/palday/fieldtrip.git | C | 341 lines
                    
131  if (nparts > 2) {
                    
132    SplitGraphPart(ctrl, graph, &lgraph, &rgraph);
                    
133    /* printf("%d %d\n", lgraph.nvtxs, rgraph.nvtxs); */
                    
178/*
                    
179  IsConnectedSubdomain(ctrl, graph, 0);
                    
180  IsConnectedSubdomain(ctrl, graph, 1);
                    
189**************************************************************************/
                    
190void SplitGraphPart(CtrlType *ctrl, GraphType *graph, GraphType *lgraph, GraphType *rgraph)
                    
191{
                    
                
String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
                    
1<?php
                    
2
                    
321	 * @param int $olderThan minimum time (in seconds) required for the cache to be cleared
                    
322	 * @return bool true if the cache was not present or if it was deleted, false if it remains there
                    
323	 */
                    
355					if (class_exists('Dwoo_Compiler', false) === false) {
                    
356						include DWOO_DIRECTORY . 'Dwoo/Compiler.php';
                    
357					}
                    
424		}
                    
425		return $dwoo->getCompileDir() . $this->compileId.'.d'.Dwoo::RELEASE_TAG.'.php';
                    
426	}
                    
454	/**
                    
455	 * returns some php code that will check if this template has been modified or not
                    
456	 *
                    
487		// enforce the correct mode for all directories created
                    
488		if (strpos(PHP_OS, 'WIN') !== 0 && $baseDir !== null) {
                    
489			$path = strtr(str_replace($baseDir, '', $path), '\\', '/');
                    
                
Relationship.php https://github.com/ksecor/civicrm.git | PHP | 285 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Contact/Page/View.php';
                    
37
                    
61    {
                    
62        require_once 'CRM/Core/DAO.php';
                    
63        $viewRelationship = CRM_Contact_BAO_Relationship::getRelationship( $this->_contactId, null, null, null, $this->_id );
                    
146                //create an activity for case role removal.CRM-4480
                    
147                require_once "CRM/Case/BAO/Case.php";
                    
148                CRM_Case_BAO_Case::createCaseRoleActivity( $this->_caseId, $this->_id );  
                    
164   /**
                    
165     * This function is the main function that is called when the page loads,
                    
166     * it decides the which action has to be taken for the page.
                    
                
BlogModule.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 469 lines
                    
1<?php
                    
2/**
                    
26     */
                    
27    public $mainPostCategory;
                    
28    /**
                    
151        return [
                    
152            'mainCategory' => Yii::t('BlogModule.blog', 'Main blog category'),
                    
153            'mainPostCategory' => Yii::t('BlogModule.blog', 'Main posts category'),
                    
177            'editor' => Yii::app()->getModule('yupe')->getEditors(),
                    
178            'mainCategory' => CHtml::listData($this->getCategoryList(), 'id', 'name'),
                    
179            'mainPostCategory' => CHtml::listData($this->getCategoryList(), 'id', 'name'),
                    
197                'items' => [
                    
198                    'mainPostCategory',
                    
199                    'mainCategory',
                    
247                'label' => Yii::t('BlogModule.blog', 'Blogs categories'),
                    
248                'url' => ['/category/categoryBackend/index', 'Category[parent_id]' => (int)$this->mainCategory],
                    
249            ],
                    
                
editor.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 321 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            }
                    
                
adodb-oracle.inc.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 342 lines
                    
1<?php
                    
2/*
                    
131
                    
132			if($argHostname) { // code copied from version submitted for oci8 by Jorma Tuomainen <jorma.tuomainen@ppoy.fi>
                    
133				if (empty($argDatabasename)) $argDatabasename = $argHostname;
                    
                
ext_zlib.php https://github.com/tstarling/hiphop-php.git | PHP | 376 lines
                    
1<?hh
                    
2// @generated by docskel.php
                    
3
                    
62 * @param int $encoding_mode - The encoding mode. Can be FORCE_GZIP (the
                    
63 *   default) or FORCE_DEFLATE.   Prior to PHP 5.4.0, using FORCE_DEFLATE
                    
64 *   results in a standard zlib deflated string (inclusive zlib headers)
                    
65 *   after a gzip file header but without the trailing crc32 checksum.   In
                    
66 *   PHP 5.4.0 and later, FORCE_DEFLATE generates RFC 1950 compliant
                    
67 *   output, consisting of a zlib header, the deflated data, and an Adler
                    
181/**
                    
182 * Output all remaining data on a gz-file pointer
                    
183 *
                    
                
NativeSessionStorage.php https://gitlab.com/madwanz64/laravel | PHP | 470 lines
                    
1<?php
                    
2
                    
67     *
                    
68     * @see https://php.net/session.configuration for options
                    
69     * but we omit 'session.' from the beginning of the keys for convenience.
                    
70     *
                    
71     * ("auto_start", is not supported as it tells PHP to start a session before
                    
72     * PHP starts to execute user-land code. Setting during runtime has no effect).
                    
75     * cache_expire, "0"
                    
76     * cookie_domain, ""
                    
77     * cookie_httponly, ""
                    
85     * lazy_write, "1"
                    
86     * name, "PHPSESSID"
                    
87     * referer_check, ""
                    
87     * referer_check, ""
                    
88     * serialize_handler, "php"
                    
89     * use_strict_mode, "1"
                    
                
genconfig.sh https://github.com/ReliefLabs/EasyTomato.git | Shell | 426 lines
                    
110		fi
                    
111		# onrdomain was introduced in OpenBSD 5.0
                    
112		if [ $MAJORVER -ge 5 ]; then
                    
112		if [ $MAJORVER -ge 5 ]; then
                    
113			echo "#define PFRULE_HAS_ONRDOMAIN" >> ${CONFIGFILE}
                    
114		fi
                    
124		# new way to see which one to use PF or IPF.
                    
125		# see http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=957
                    
126		if [ -f /etc/rc.subr ] && [ -f /etc/rc.conf ] ; then
                    
                
 

Source

Language