PageRenderTime 1055ms queryTime 65ms sortTime 326ms getByIdsTime 137ms findMatchingLines 131ms

100+ results results for 'php dir' (1055 ms)

Not the results you expected?
wp-cache-f091d5ab40590bc01ee8ea7afc5372b1.html https://gitlab.com/endomorphosis/reservationtelco | HTML | 371 lines
                    
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    
2<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
                    
3
                    
29<script type='text/javascript' src='http://localhost:8888/reservation-telephone-company/wp-content/plugins/gs-presentation/js/gs-presentation.js?ver=3.0-RC1-15112'></script>
                    
30<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost:8888/reservation-telephone-company/xmlrpc.php?rsd" />
                    
31<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost:8888/reservation-telephone-company/wp-includes/wlwmanifest.xml" /> 
                    
244		<div class="row-1-col-2-row-2">
                    
245			<a class="online-directory " href="online-directory"></a>
                    
246			<a class="contact-us " href="contact-us"></a>
                    
362<li class="page_item page-item-265"><a href="http://localhost:8888/reservation-telephone-company/legal-notice/" title="Legal Notice">Legal Notice</a></li>
                    
363<li class="page_item page-item-11"><a href="http://localhost:8888/reservation-telephone-company/online-directory/" title="Online Directory">Online Directory</a></li>
                    
364<li class="page_item page-item-280"><a href="http://localhost:8888/reservation-telephone-company/privacy-policy/" title="Privacy Policy">Privacy Policy</a></li>
                    
                
VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
                    
1<?php
                    
2
                    
43        $stub = null;                   // Stub capturing the main properties of an original item value
                    
44                                        // or null if the original value is used directly
                    
45        $zval = array(                  // Main properties of the current value
                    
95                }
                    
96                // Create $stub when the original value $v can not be used directly
                    
97                // If $v is a nested structure, put that structure in array $a
                    
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;
                    
                
InstallSchema.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
                    
1<?php
                    
2/**
                    
19     * {@inheritdoc}
                    
20     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
21     */
                    
44                [],
                    
45                'Widget code for template directive'
                    
46            )->addColumn(
                    
99                    'length' => 255,
                    
100                    'comment' => 'Widget code for template directive'
                    
101                ]
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
                
lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
                    
1<?php
                    
2
                    
34    ],
                    
35    'directory' => [
                    
36        'create_fail' => "Kunde inte skapa mapp: :name",
                    
141        'sender_email' => 'Avsändarens e-postadress',
                    
142        'php_mail' => 'PHP mail',
                    
143        'smtp' => 'SMTP',
                    
300        'menu_label' => 'Förfrågningslogg',
                    
301        'menu_description' => 'Visa otillåtna eller omdirigerade förfrågningar, så som Sidan kunde inte hittas (404).',
                    
302        'empty_link' => 'Töm förfrågningsloggen',
                    
                
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>
                    
19
                    
20		<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is 
                    
21		being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
                    
28		<p>The Content includes items that have been sourced from third parties as set out below. If you 
                    
29		did not receive this Content directly from the Eclipse Foundation, the following is provided 
                    
30		for informational purposes only, and you should look to the Redistributor's license for 
                    
90      control with that entity. For the purposes of this definition,
                    
91      "control" means (i) the power, direct or indirect, to cause the
                    
92      direction or management of such entity, whether by contract or
                    
250      negligent acts) or agreed to in writing, shall any Contributor be
                    
251      liable to You for damages, including any direct, indirect, special,
                    
252      incidental, or consequential damages of any character arising as a
                    
                
lang.php https://gitlab.com/michield/dokuwiki | PHP | 188 lines
                    
1<?php
                    
2/**
                    
43$lang['lang']                  = 'Nyelv';
                    
44$lang['basedir']               = 'Báziskönyvtár';
                    
45$lang['baseurl']               = 'Alap URL';
                    
45$lang['baseurl']               = 'Alap URL';
                    
46$lang['savedir']               = 'Könyvtár az adatok mentésére';
                    
47$lang['start']                 = 'Kezdőoldal neve';
                    
56$lang['htmlok']                = 'Beágyazott HTML engedélyezése';
                    
57$lang['phpok']                 = 'Beágyazott PHP engedélyezése';
                    
58$lang['dformat']               = 'Dátum formázás (lásd a PHP <a href="http://www.php.net/strftime">strftime</a> függvényt)';
                    
102$lang['locktime']              = 'Oldal-zárolás maximális időtartama (másodperc)';
                    
103$lang['fetchsize']             = 'Maximális méret (bájtban), amit a fetch.php letölthet kívülről';
                    
104$lang['notify']                = 'Az oldal-változásokat erre az e-mail címre küldje';
                    
117$lang['sitemap']               = 'Hány naponként generáljunk Google sitemap-ot?';
                    
118$lang['broken_iua']            = 'Az ignore_user_abort függvény hibát dob a rendszereden? Ez nem működő keresési indexet eredményezhet. Az IIS+PHP/CGI összeállításról tudjuk, hogy hibát dob. Lásd a <a href="http://bugs.splitbrain.org/?do=details&amp;task_id=852">Bug 852</a> oldalt a további infóért.';
                    
119$lang['xsendfile']             = 'Használjuk az X-Sendfile fejlécet, hogy a webszerver statikus állományokat tudjon küldeni? A webszervernek is támogatnia kell ezt a funkciót.';
                    
                
File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
209            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
210            throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock');
                    
211        }
                    
293            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
294            throw new Zend_CodeGenerator_Php_Exception('Expecting either an array or an instance of Zend_CodeGenerator_Php_Class');
                    
295        }
                    
460        if ($this->_filename == '' || !is_writable(dirname($this->_filename))) {
                    
461            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
462            throw new Zend_CodeGenerator_Php_Exception('This code generator object is not writable.');
                    
                
ee374469f3039f2afc01916b1c6255a7d0864358.file.view-registration.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 260 lines
                    
146            <select name="vLanguageCode" id="vLanguageCode" class="form-input-select form-re-selec">
                    
147              <option value="EN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='EN'){?> selected <?php }?>><?php echo @LBL_ENGLISH;?>
                    
148</option>
                    
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>
                    
156</option>
                    
157              <option value="EE" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='EE'){?> selected <?php }?>><?php echo @LBL_ESTONIAN;?>
                    
158</option>
                    
164</option>
                    
165              <option value="PO" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='PO'){?> selected <?php }?>><?php echo @LBL_POLISH;?>
                    
166</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>
                    
                
class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
                    
1<?php
                    
2/**
                    
10
                    
11// Exit if accessed directly.
                    
12defined( 'ABSPATH' ) || exit;
                    
                
user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
                    
1<?php
                    
2/**
                    
91$_lang['user_err_not_specified_email'] = 'Please specify a valid email address.';
                    
92$_lang['user_err_not_specified_fileman_path'] = 'The directory you have specified either:<br />1) Does not exist.<br />2) Does not have read permissions.<br />3) Is not a directory.';
                    
93$_lang['user_err_not_specified_manageraccess'] = 'Please specify whether or not the user should have manager access.';
                    
99$_lang['user_err_not_specified_phonenumber'] = 'Please specify a valid phone number. (If in US, please specify area code.)';
                    
100$_lang['user_err_not_specified_resourcedir'] = 'The directory you\'ve specified is not a valid directory.';
                    
101$_lang['user_err_not_specified_resource_baseurl'] = 'Please specify a valid resource URL.';
                    
110$_lang['user_err_remove'] = 'An error occurred while trying to remove the user.';
                    
111$_lang['user_err_resource_subdirectory'] = 'The directory you\'ve specified does not contain the %s directories.';
                    
112$_lang['user_err_save'] = 'An error occurred while saving the user.';
                    
                
Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
                    
1<?php namespace Cms\Controllers;
                    
2
                    
131                'templateType'  => $type,
                    
132                'templateTheme' => $this->theme->getDirName(),
                    
133                'templateMtime' => $template->mtime
                    
219                'templateType'  => $type,
                    
220                'templateTheme' => $this->theme->getDirName(),
                    
221                'templateMtime' => null
                    
321    {
                    
322        if ($this->theme->getDirName() != Request::input('theme')) {
                    
323            throw new ApplicationException(trans('cms::lang.theme.edit.not_match'));
                    
                
class-inl.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 522 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_VM_CLASS_INL_H_
                    
18#error "class-inl.h should only be included by class.h"
                    
                
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
127		echo "Copying $item from $source_dir to $dest_dir\n";
                    
128		copy($source_dir . DIRECTORY_SEPARATOR . $item, $dest_dir . DIRECTORY_SEPARATOR . $item);
                    
129		if ($is_debug) {
                    
210/* the core dll */
                    
211copy("$build_dir/php.exe", "$dist_dir/php.exe");
                    
212copy("$build_dir/$phpdll", "$dist_dir/$phpdll");
                    
215$phplib = str_replace(".dll", ".lib", $phpdll);
                    
216copy("$build_dir/$phplib", "$dist_dir/dev/$phplib");
                    
217/* debug builds; copy the symbols too */
                    
219	$phppdb = str_replace(".dll", ".pdb", $phpdll);
                    
220	copy("$build_dir/$phppdb", "$dist_dir/dev/$phppdb");
                    
221}
                    
                
functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
                    
1<?php
                    
2
                    
22          ),
                    
23          'direccion' => array(
                    
24          'filter' => FILTER_VALIDATE_REGEXP,
                    
318    if ($passwd != $passwd2) {
                    
319        return $errorpassw = "Los password deben coincidir";
                    
320    }
                    
                
index.html https://gitlab.com/essere.lab.public/qualitas.class-corpus | HTML | 305 lines
                    
89<br>
                    
90<span class="element"><a href="http://jasperforge.org/scm/viewvc.php/tags/jr-3-7-4/jasperreports/demo/samples/xlsdatasource/?root=jasperreports" target="_blank">Browse Sample Source Files on SVN</a></span>
                    
91<table cellspacing="0" cellpadding="0" border="0" width="100%">
                    
283In order to figure out more on XLS data sources, just test this sample by running from the command line the <code>ant test view</code> command. 
                    
284It will generate all supported document types containing the sample report in the /build/reports directory, and then the report will be open with JasperReports internal viewer.
                    
285    </span></td>
                    
                
multiple-featured-images.php https://gitlab.com/webkod3r/tripolis | PHP | 374 lines
                    
1<?php
                    
2/*
                    
91		public function kd_admin_init() {		
                    
92			if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/media-upload.php')) {
                    
93				wp_enqueue_script(
                    
94						'kd-multiple-featured-images',
                    
95						get_template_directory_uri().'/framework/plugins/multiple-featured-images/js/kd-admin.js',
                    
96						'jquery'
                    
373
                    
374// Omit closing PHP tag to avoid "Headers already sent" issues.
                    
375
                    
                
readme.md https://gitlab.com/buitenzorg812/garapic.cms | Markdown | 217 lines
                    
113
                    
114Models and libraries can also be loaded from sub-directories in their respective application directories.
                    
115
                    
1597. Create module directory structure application/modules/welcome/controllers
                    
1608. Move controller application/controllers/welcome.php to application/modules/welcome/controllers/welcome.php
                    
1619. Access the URL /index.php/welcome => shows Welcome to CodeIgniter
                    
16210. Create directory application/modules/welcome/views
                    
16311. Move view application/views/welcome_message.php to application/modules/welcome/views/welcome_message.php
                    
16412. Access the URL /index.php/welcome => shows Welcome to CodeIgniter
                    
175-Steps 6-8 show MX working alongside CI - controller moved to the “welcome” module, the view file remains 
                    
176in the CI application/views directory - MX can find module resources in several places, including the application directory.
                    
177
                    
2061. No need to get and use the CI instance within an HMVC class
                    
2072. HMVC classes are stored in a modules directory as opposed to the libraries directory.
                    
208
                    
                
jlparameter.php https://gitlab.com/julienv/joomleague | PHP | 552 lines
                    
216			{
                    
217				$this->addElementPath(JPATH_ROOT . str_replace('/', DS, $dir));
                    
218			}
                    
522	 *
                    
523	 * @param   mixed  $path  Directory (string) or directories (array) to search.
                    
524	 *
                    
538			// No surrounding spaces allowed!
                    
539			$dir = trim($dir);
                    
540
                    
541			// Add trailing separators as needed.
                    
542			if (substr($dir, -1) != DIRECTORY_SEPARATOR)
                    
543			{
                    
544				// Directory
                    
545				$dir .= DIRECTORY_SEPARATOR;
                    
546			}
                    
                
SAPI.h https://gitlab.com/iranjith4/hhvm | C Header | 310 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
248  int php_ini_ignore;
                    
249  int php_ini_ignore_cwd; /* don't look for php.ini in the current directory */
                    
250
                    
285#define SAPI_DEFAULT_CHARSET    ""
                    
286#define SAPI_PHP_VERSION_HEADER    "X-Powered-By: PHP/" PHP_VERSION
                    
287
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
10 * You should have received a copy of the GNU General Public License,
                    
11 * along with this software. In the main directory, see: /licensing/
                    
12 * If not, see: {@link http://www.gnu.org/licenses/}.
                    
100
                    
101							wp_redirect($sp_access_url); // Immediate redirection to Specific Post/Page.
                    
102						}
                    
102						}
                    
103						else if($custom_success_redirection) // Using a custom success redirection URL?
                    
104						{
                    
104						{
                    
105							$paypal['s2member_log'][] = 'Redirecting Customer to a custom URL on success: '.$custom_success_redirection;
                    
106
                    
106
                    
107							wp_redirect($custom_success_redirection);
                    
108						}
                    
                
about.php https://gitlab.com/Gashler/sg | PHP | 208 lines
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11
                    
87		'heading'     => __( 'Template Hierarchy' ),
                    
88		/* Translators: 1: singular.php; 2: single.php; 3:page.php */
                    
89		'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>.' ),
                    
104		<h2 class="nav-tab-wrapper">
                    
105			<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
                    
106			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
171				<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
                    
172					<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
                    
173						<?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
                    
175				<?php endif; ?>
                    
176				<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
                    
177			</div>
                    
                
ListenerOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 396 lines
                    
269        if ($this->getConfigCacheKey()) {
                    
270            return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php';
                    
271        }
                    
272
                    
273        return $this->getCacheDir() . '/module-config-cache.php';
                    
274    }
                    
291     */
                    
292    public function setCacheDir($cacheDir)
                    
293    {
                    
353        if ($this->getModuleMapCacheKey()) {
                    
354            return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php';
                    
355        }
                    
356
                    
357        return $this->getCacheDir() . '/module-classmap-cache.php';
                    
358    }
                    
                
ibase_driver.php https://gitlab.com/joshuacurci/swim-crm | PHP | 396 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
37 */
                    
38defined('BASEPATH') OR exit('No direct script access allowed');
                    
39
                    
                
Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 lines
                    
30 * @category   Mage
                    
31 * @package    Mage_Directory
                    
32 * @author      Magento Core Team <core@magentocommerce.com>
                    
33 */
                    
34class Mage_Directory_Model_Currency extends Mage_Core_Model_Abstract
                    
35{
                    
136            $code = $toCurrency;
                    
137        } elseif ($toCurrency instanceof Mage_Directory_Model_Currency) {
                    
138            $code = $toCurrency->getCurrencyCode();
                    
139        } else {
                    
140            throw Mage::exception('Mage_Directory', Mage::helper('directory')->__('Invalid target currency.'));
                    
141        }
                    
163        } else {
                    
164            throw Mage::exception('Mage_Directory', Mage::helper('directory')->__('Invalid target currency.'));
                    
165        }
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
4
                    
5function deleteDir($dir) {
                    
6    if (!file_exists($dir)) return true;
                    
6    if (!file_exists($dir)) return true;
                    
7    if (!is_dir($dir)) return unlink($dir);
                    
8    foreach (scandir($dir) as $item) {
                    
9        if ($item == '.' || $item == '..') continue;
                    
10        if (!deleteDir($dir.DIRECTORY_SEPARATOR.$item)) return false;
                    
11    }
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
281	    $base_dir=$path.substr_replace($targetPath, '', 0, strlen($current_path));
                    
282	    if (!file_exists($base_dir)) create_folder($base_dir,false);
                    
283	    $info=pathinfo($name);
                    
                
service.php https://gitlab.com/alexprowars/bitrix | PHP | 416 lines
                    
36	const AUTHORIZE = "/register/";
                    
37	const REDIRECT_URI = "/bitrix/tools/seo_client.php";
                    
38
                    
263				"CLIENT_SECRET" => $accessParams["client_secret"],
                    
264				"REDIRECT_URI" => static::getRedirectUri(),
                    
265			));
                    
301			"scope" => static::getEngine()->getInterface()->getScopeEncode(),
                    
302			"redirect_uri" => static::getRedirectUri(),
                    
303		];
                    
361			"check_key" => urlencode($checkKey),
                    
362			"redirect_uri" => static::getRedirectUri(),
                    
363		];
                    
405
                    
406		$newRedirectUri = static::getRedirectUri();
                    
407		if(!empty($domains))
                    
                
Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
82			/* only add a module path if it exists */
                    
83			if (is_dir($module_path = $location.$module.'/') && ! in_array($module_path, $this->_ci_model_paths))
                    
84			{
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
480/** load the CI class for Modular Separation **/
                    
481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 593 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
341	var l=new Array();
                    
342	<?php
                    
343	$i = 0;
                    
343	$i = 0;
                    
344	foreach ($x as $val){ ?>l[<?php echo $i++; ?>]='<?php echo $val; ?>';<?php } ?>
                    
345
                    
348	else document.write(unescape(l[i]));}
                    
349	</script><?php
                    
350
                    
516/**
                    
517 * Header Redirect
                    
518 *
                    
                
MY_url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 542 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
183/**
                    
184 * Variant of redirect() which takes the module into account - if any.
                    
185 *
                    
190 */
                    
191if( ! function_exists('module_redirect'))
                    
192{
                    
192{
                    
193	function module_redirect($uri = '', $method = 'location', $http_response_code = 302)
                    
194	{
                    
200		// call "parent"
                    
201		redirect($uri, $method, $http_response_code);
                    
202	}
                    
507/**
                    
508 * Header Redirect
                    
509 * Modified to redirect 303 by default.
                    
                
AccessToken.php https://gitlab.com/hoanghung.dev/aloads | PHP | 379 lines
                    
1<?php
                    
2/**
                    
179      'code' => $code,
                    
180      'redirect_uri' => '',
                    
181    );
                    
204      'access_token' => $accessToken,
                    
205      'redirect_uri' => '',
                    
206    );
                    
246     * @TODO fix this malarkey - getResponse() should always return an object
                    
247     * @see https://github.com/facebook/facebook-php-sdk-v4/issues/36
                    
248     */
                    
                
EntityOperations.php https://gitlab.com/Drulenium-bot/workbench_moderation | PHP | 267 lines
                    
1<?php
                    
2
                    
110   *
                    
111   * The amount of indirection here makes performance a concern, but
                    
112   * given how Entity API works I don't know how else to do it.
                    
                
SYLK.php https://gitlab.com/khairulcse76/userLogins | PHP | 450 lines
                    
22 * @package    PHPExcel_Reader
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
42 * @package    PHPExcel_Reader
                    
43 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
44 */
                    
44 */
                    
45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
                
update.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 476 lines
                    
1<?php
                    
2/**
                    
5 *  @license GNU General Public License version 3, or later
                    
6 *  @version $Id: update.php 82 2010-10-23 19:13:50Z nikosdion $
                    
7 */
                    
32		jimport('joomla.filesystem.file');
                    
33		$this->isPro = JFile::exists(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables'.DS.'redirs.php');
                    
34
                    
137
                    
138			require_once JPATH_COMPONENT_ADMINISTRATOR.DS.'helpers'.DS.'ini.php';
                    
139			$parsed=AdmintoolsHelperINI::parse_ini_file($inidata, false, true);
                    
204		curl_setopt($process, CURLOPT_SSL_VERIFYPEER, false);
                    
205		// The @ sign allows the next line to fail if open_basedir is set or if safe mode is enabled
                    
206		@curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1);
                    
409			} else {
                    
410				// PHP 4 way (actually, it's just a fallback as we can't run Admin Tools in PHP4)
                    
411				ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)');
                    
                
AbstractCollectionPersister.php https://gitlab.com/aleksbenmaza/PPE_NEW | PHP | 313 lines
                    
1<?php
                    
2
                    
7 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
                    
8 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                    
9 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
                    
                
theme-support.php https://gitlab.com/ravenseyedesign/ravensegg | PHP | 367 lines
                    
1<?php
                    
2/**
                    
28		 * Make theme available for translation.
                    
29		 * Translations can be filed in the /languages/ directory.
                    
30		 */
                    
30		 */
                    
31		// load_theme_textdomain( 'ravens-egg-2022', get_template_directory() . '/languages' );
                    
32
                    
                
site-users.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 330 lines
                    
10/** Load WordPress Administration Bootstrap */
                    
11require_once( dirname( __FILE__ ) . '/admin.php' );
                    
12
                    
175if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
                    
176	wp_safe_redirect( $referer );
                    
177	exit();
                    
205<h1 id="edit-site"><?php echo $title; ?></h1>
                    
206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
                    
207<?php
                    
273<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2>
                    
274<form action="site-users.php?action=adduser" id="adduser" method="post">
                    
275	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
302<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
                    
303<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
                    
304	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
                
wp-settings.php https://gitlab.com/gregtyka/wordpress-heroku | PHP | 323 lines
                    
5 *
                    
6 * Allows for some configuration in wp-config.php (see default-constants.php)
                    
7 *
                    
61if ( WP_CACHE )
                    
62	WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
                    
63
                    
156// Define constants that rely on the API to obtain the default value.
                    
157// Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
                    
158wp_plugin_directory_constants( );
                    
266$locale = get_locale();
                    
267$locale_file = WP_LANG_DIR . "/$locale.php";
                    
268if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) )
                    
315 *
                    
316 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
                    
317 * users not logged in.
                    
                
SQLite3.php https://gitlab.com/dmsapiens/physicians | PHP | 322 lines
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
29/**
                    
30 * PHPExcel_CachedObjectStorage_SQLite3
                    
31 *
                    
33 * @package    PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
86     */
                    
87	public function addCacheData($pCoord, PHPExcel_Cell $cell) {
                    
88		if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
                    
                
fdt_ro.c https://gitlab.com/openbar/rpi-linux | C | 579 lines
                    
41 *     DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
                    
42 *     CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                    
43 *     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                    
330{
                    
331	const fdt32_t *php;
                    
332	int len;
                    
336	php = fdt_getprop(fdt, nodeoffset, "phandle", &len);
                    
337	if (!php || (len != sizeof(*php))) {
                    
338		php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len);
                    
338		php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len);
                    
339		if (!php || (len != sizeof(*php)))
                    
340			return 0;
                    
342
                    
343	return fdt32_to_cpu(*php);
                    
344}
                    
                
ext_spl.cpp https://gitlab.com/iranjith4/hhvm | C++ | 384 lines
                    
27#include "hphp/runtime/base/comparisons.h"
                    
28#include "hphp/runtime/base/directory.h"
                    
29#include "hphp/runtime/base/glob-stream-wrapper.h"
                    
336                "Only cast to directories");
                    
337  return cast<T>(*dir_iter->o_realProp("dir", 0, s_directory_iterator));
                    
338}
                    
340static Variant HHVM_METHOD(DirectoryIterator, hh_readdir) {
                    
341  auto dir = getDir<Directory>(ObjNR(this_).asObject());
                    
342
                    
342
                    
343  if (auto array_dir = dyn_cast<ArrayDirectory>(dir)) {
                    
344    auto prop = this_->o_realProp("dirName", 0, s_directory_iterator);
                    
359  void moduleLoad(const IniSetting::Map& ini, Hdf config) override {
                    
360    HHVM_ME(DirectoryIterator, hh_readdir);
                    
361    HHVM_ME(GlobIterator, count);
                    
                
u8g_dev_ssd1322_nhd31oled_bw.c https://gitlab.com/anthem/Marlin | C | 338 lines
                    
27  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 
                    
28  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
                    
29  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
                    
56  http://www.newhavendisplay.com/app_notes/OLED_25664.txt 
                    
57  http://www.newhavendisplay.com/forum/viewtopic.php?f=15&t=3758
                    
58*/
                    
                
Think.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 344 lines
                    
47          // 读取应用模式
                    
48          $mode   =   include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php';
                    
49          // 加载核心文件
                    
85          // 加载框架底层语言包
                    
86          L(include THINK_PATH.'Lang/'.strtolower(C('DEFAULT_LANG')).'.php');
                    
87
                    
93            // 调试模式加载系统默认的配置文件
                    
94            C(include THINK_PATH.'Conf/debug.php');
                    
95            // 读取应用调试配置文件
                    
110          $module     =   defined('BIND_MODULE') ? BIND_MODULE : C('DEFAULT_MODULE');
                    
111          if(!is_dir(APP_PATH.$module) || !is_dir(LOG_PATH)){
                    
112              // 检测应用目录结构
                    
299            if(IS_CLI){
                    
300                exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']);
                    
301            }
                    
                
composite_log.php https://gitlab.com/alexprowars/bitrix | PHP | 461 lines
                    
14 */
                    
15require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
16require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
16require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
17define("HELP_FILE", "settings/composite_pages.php");
                    
18
                    
47
                    
48	localRedirect($APPLICATION->getCurPage()."?lang=".LANGUAGE_ID);
                    
49}
                    
67	LogTable::deleteAll();
                    
68	localRedirect($APPLICATION->getCurPage()."?lang=".LANGUAGE_ID);
                    
69}
                    
221		$messageCell =
                    
222			'<a href="composite_diff.php?lang='.LANGUAGE_ID.'&log_id='.$record["ID"].'" target="_blank">'.
                    
223			Loc::getMessage("MAIN_COMPOSITE_LOG_VIEW_DIFF").'</a>';
                    
                
RedirectPluginTest.php https://gitlab.com/techniconline/kmc | PHP | 277 lines
                    
1<?php
                    
2
                    
2
                    
3namespace Guzzle\Tests\Plugin\Redirect;
                    
4
                    
6use Guzzle\Http\EntityBody;
                    
7use Guzzle\Http\RedirectPlugin;
                    
8use Guzzle\Http\Exception\TooManyRedirectsException;
                    
45        // Ensure that the redirect count was incremented
                    
46        $this->assertEquals(2, $request->getParams()->get(RedirectPlugin::REDIRECT_COUNT));
                    
47        $this->assertCount(3, $history);
                    
111        $request = $client->post('/foo', array('X-Baz' => 'bar'), 'testing');
                    
112        $request->getParams()->set(RedirectPlugin::STRICT_REDIRECTS, true);
                    
113        $request->send();
                    
148        $request = $client->post('/foo');
                    
149        $request->getParams()->set(RedirectPlugin::STRICT_REDIRECTS, true);
                    
150        $request->send();
                    
                
init.pp https://gitlab.com/billyprice1/phpservermon | Puppet | 298 lines
                    
35#   (source => $source_dir , recurse => true)
                    
36#   Can be defined also by the (top scope) variable $php_source_dir
                    
37#
                    
41#   (source => $source_dir , recurse => true , purge => true, force => true)
                    
42#   Can be defined also by the (top scope) variable $php_source_dir_purge
                    
43#
                    
147  $source              = params_lookup( 'source' ),
                    
148  $source_dir          = params_lookup( 'source_dir' ),
                    
149  $source_dir_purge    = params_lookup( 'source_dir_purge' ),
                    
163  $module_prefix       = params_lookup( 'module_prefix' ),
                    
164  $config_dir          = params_lookup( 'config_dir' ),
                    
165  $config_file         = params_lookup( 'config_file' ),
                    
289      ensure  => $php::manage_file,
                    
290      path    => "${settings::vardir}/debug-php",
                    
291      mode    => '0640',
                    
                
RouteCollectionBuilderTest.php https://gitlab.com/ealexis.t/trends | PHP | 324 lines
                    
1<?php
                    
2
                    
18
                    
19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
32        $expectedCollection->add('one_test_route', $originalRoute);
                    
33        $expectedCollection->addResource(new FileResource(__DIR__.'/Fixtures/file_resource.yml'));
                    
34
                    
                
de_DE.js https://gitlab.com/wuhang2003/core | JavaScript | 123 lines
                    
10    "There is no error, the file uploaded with success" : "Es ist kein Fehler aufgetreten. Die Datei wurde erfolgreich hochgeladen.",
                    
11    "The uploaded file exceeds the upload_max_filesize directive in php.ini: " : "Die hochgeladene Datei überschreitet die upload_max_filesize-Vorgabe in php.ini",
                    
12    "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" : "Die Datei ist größer, als die MAX_FILE_SIZE-Vorgabe erlaubt, die im HTML-Formular spezifiziert ist",
                    
49    "Could not rename \"{fileName}\", it does not exist any more" : "Die Datei konnte nicht umbennant werden \"{fileName}\", da die Datei nicht mehr existiert",
                    
50    "The name \"{targetName}\" is already used in the folder \"{dir}\". Please choose a different name." : "Der Name „{targetName}“ wird bereits im Ordner „{dir}“ benutzt. Bitte wählen Sie einen anderen Namen.",
                    
51    "Could not rename \"{fileName}\"" : "Die Datei konnte nicht umbenannt werden \"{fileName}\"",
                    
53    "Could not create file \"{file}\" because it already exists" : "Die Datei konnte nicht erstellt werden \"{file}\", da diese bereits existiert",
                    
54    "Could not create folder \"{dir}\"" : "Der Ordner konnte nicht erstellt werden \"{dir}\"",
                    
55    "Could not create folder \"{dir}\" because it already exists" : "Der Ordner konnte nicht erstellt werden \"{dir}\", da dieser bereits existiert",
                    
62    "_%n file_::_%n files_" : ["%n Datei","%n Dateien"],
                    
63    "{dirs} and {files}" : "{dirs} und {files}",
                    
64    "You don’t have permission to upload or create files here" : "Sie haben keine Berechtigung, hier Dateien hochzuladen oder zu erstellen",
                    
104    "Save" : "Speichern",
                    
105    "With PHP-FPM it might take 5 minutes for changes to be applied." : "Bei PHP-FPM kann es 5 Minuten dauern, bis Änderungen angewendet sind.",
                    
106    "Missing permissions to edit from here." : "Fehlende Berechtigungen um von hier aus zu bearbeiten.",
                    
                
class-config.php https://gitlab.com/iamgraeme/royalmile | PHP | 452 lines
                    
1<?php
                    
2/**
                    
40			WPSEO_Options::reset();
                    
41			wp_redirect( admin_url( 'admin.php?page=' . WPSEO_Admin::PAGE_IDENTIFIER ) );
                    
42		}
                    
395		?>
                    
396			<div id="<?php echo esc_attr( $id ); ?>" class="yoastbox">
                    
397				<h1><?php echo $title; ?></h1>
                    
397				<h1><?php echo $title; ?></h1>
                    
398				<?php echo $content; ?>
                    
399			</div>
                    
399			</div>
                    
400		<?php
                    
401	}
                    
                
SYLK.php https://gitlab.com/alexandresgv/siteentec | PHP | 450 lines
                    
22 * @package    PHPExcel_Reader
                    
23 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
42 * @package    PHPExcel_Reader
                    
43 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
44 */
                    
44 */
                    
45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
                
AuthenticationHttpTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 458 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin-test
                    
7 */
                    
10
                    
11require_once 'libraries/config.default.php';
                    
12require_once 'test/PMATestCase.php';
                    
16 *
                    
17 * @package PhpMyAdmin-test
                    
18 */
                    
36        $GLOBALS['lang'] = "en";
                    
37        $GLOBALS['text_dir'] = "ltr";
                    
38        $GLOBALS['token_provided'] = true;
                    
141        $_REQUEST['old_usr'] = '1';
                    
142        $GLOBALS['cfg']['Server']['LogoutURL'] = 'http://phpmyadmin.net/logout';
                    
143
                    
                
file_info_context_module.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 347 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
152
                    
153        $urlbase = $CFG->wwwroot.'/pluginfile.php';
                    
154        return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, get_string('moduleintro'), false, true, true, false);
                    
187
                    
188        $urlbase = $CFG->wwwroot.'/pluginfile.php';
                    
189        return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, get_string('activitybackup', 'repository'), false, $downloadable, $uploadable, false);
                    
201    /**
                    
202     * Whether or not files or directories can be added
                    
203     *
                    
238    /**
                    
239     * Whether or not this is a directory
                    
240     *
                    
242     */
                    
243    public function is_directory() {
                    
244        return true;
                    
                
export_execute.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 252 lines
                    
1<?php
                    
2
                    
3require_once('../config.php');
                    
4//require_once($CFG->dirroot.'/course/lib.php');
                    
5require_once($CFG->dirroot.'/calendar/lib.php');
                    
5require_once($CFG->dirroot.'/calendar/lib.php');
                    
6require_once($CFG->libdir.'/bennu/bennu.inc.php');
                    
7
                    
54
                    
55    $link = new moodle_url('/calendar/export.php', $params);
                    
56    redirect($link->out());
                    
178        // Parameters given but incorrect, redirect back to export page
                    
179        redirect($CFG->wwwroot.'/calendar/export.php');
                    
180        die();
                    
                
ImagesController.php https://gitlab.com/jensdwul1/nmdad3.local | PHP | 362 lines
                    
1<?php
                    
2
                    
205     *
                    
206     * @return \Symfony\Component\HttpFoundation\RedirectResponse
                    
207     * @FOSRest\View()
                    
222
                    
223        $uploadDirectory = 'uploads';
                    
224        $fileName = sha1_file($file->getRealPath()).'.'.$file->guessExtension();
                    
224        $fileName = sha1_file($file->getRealPath()).'.'.$file->guessExtension();
                    
225        $fileLocator = realpath($this->getParameter('kernel.root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'web').DIRECTORY_SEPARATOR.$uploadDirectory;
                    
226        $file->move($fileLocator, $fileName);
                    
226        $file->move($fileLocator, $fileName);
                    
227        $image->setUri($request->getScheme().'://'.$request->getHttpHost().'/'.$uploadDirectory.'/'.$fileName);
                    
228
                    
344
                    
345            // Redirect to the URI of the resource.
                    
346            $response->headers->set('Location',
                    
                
TranslationDebugCommand.php https://gitlab.com/Isaki/le331.fr | PHP | 268 lines
                    
1<?php
                    
2
                    
46                new InputArgument('locale', InputArgument::REQUIRED, 'The locale'),
                    
47                new InputArgument('bundle', InputArgument::OPTIONAL, 'The bundle name or directory where to load the messages, defaults to app/Resources folder'),
                    
48                new InputOption('domain', null, InputOption::VALUE_OPTIONAL, 'The messages domain'),
                    
59
                    
60  <info>php %command.full_name% en AcmeDemoBundle</info>
                    
61
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
67
                    
68  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
69
                    
71
                    
72  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
73
                    
                
sqlite_driver.php https://gitlab.com/venenux/codeigniterpower | PHP | 660 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
658
                    
659/* End of file sqlite_driver.php */
                    
660/* Location: ./system/database/drivers/sqlite/sqlite_driver.php */
                    
                
ClientesController.php https://gitlab.com/fabiorf/fsipedidos | PHP | 320 lines
                    
1<?php
                    
2 
                    
2 
                    
3// namespace de localizacao clientesController.php
                    
4namespace Cliente\Controller;
                    
26            $this->flashMessenger()->addErrorMessage("Erro representada não existe.");
                    
27            return $this->redirect()->toRoute('representadas');
                    
28        }
                    
79                    $this->flashMessenger()->addSuccessMessage("Cliente importado sucesso");                   
                    
80                    return $this->redirect()->toRoute('clientes');
                    
81                }
                    
117                    
                    
118                     return $this->redirect()->toRoute('clientes');
                    
119                }
                    
125
                    
126                // redirecionar para action index no controller clientes
                    
127                return $this->redirect()->toRoute('clientes');
                    
                
date_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 611 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
68 *
                    
69 * This function is identical to PHPs date() function,
                    
70 * except that it allows date codes to be formatted using
                    
609
                    
610/* End of file date_helper.php */
                    
611/* Location: ./system/helpers/date_helper.php */
                    
                
Ods.php https://gitlab.com/rsilveira1987/Expresso | PHP | 400 lines
                    
1<?php
                    
2/**
                    
172                        
                    
173        $this->_openDocumentObject = new OpenDocument_Document(OpenDocument_Document::SPREADSHEET, $templateFile, Tinebase_Core::getTempDir(), $this->_userStyles);
                    
174    }
                    
                
modules-defaults.php https://gitlab.com/Magi1053/Extra | PHP | 250 lines
                    
1<?php
                    
2// Prevent file from being loaded directly
                    
                
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 */
                    
37    /**
                    
38     * Session Cookie storage, magento_root/var directory used
                    
39     * @var string
                    
108     */
                    
109    protected $_redirectCount = 0;
                    
110
                    
252     *
                    
253     * @param string $uri uri relative to host, ex. "/index.php"
                    
254     */
                    
                
fa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
                    
1<?php
                    
2$translations = array(
                    
16	'No extension' => 'پسوند نامعتبر',
                    
17	'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد',
                    
18	'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد',
                    
19	'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد',
                    
20	'%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s',
                    
21	'Refresh' => 'بازيابي',
                    
22	
                    
23	// text direction - 'ltr' or 'rtl'
                    
24	'ltr' => 'rtl',
                    
65	'Maximum allowed file size is %sB.' => ' %sB حداكثر اندازه فايل',
                    
66	'Too big POST data. Reduce the data or increase the %s configuration directive.' => 'حجم داده ارسالي برزگ است. حجم داده كاهش دهيد و يا مقدار %s را در پيكربندي افزايش دهيد.',
                    
67	
                    
                
model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
                    
47      $data['path_components'] = $this->get_path_components();
                    
48      $data['dir'] = (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '');
                    
49      $data['files'] = $this->get_files($session_data['sort_by'], $session_data['sort_order']);
                    
81    public function get_path_components() {
                    
82      $dir_names = explode('/', (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : ''));
                    
83      $path = '';
                    
108      $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*');
                    
109      $parent_dir = $this->controller->get_uploads_dir() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : '');
                    
110      $parent_dir_url = $this->controller->get_uploads_url() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : '');
                    
169      $upload_dir = wp_upload_dir();
                    
170      $parent_dir = $upload_dir['basedir'];
                    
171      $parent_dir_url = $upload_dir['baseurl'];
                    
219    private function get_sorted_file_names($parent_dir, $sort_by, $sort_order) {
                    
220      $file_names = scandir($parent_dir);
                    
221
                    
                
WizardController.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 464 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) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
35            $this->setFlag('', self::FLAG_NO_DISPATCH, true);
                    
36            $this->_redirect('/');
                    
37            return;
                    
88        if ($this->_getInstaller()->isApplicationInstalled()) {
                    
89            $this->getResponse()->setRedirect(Mage::getBaseUrl())->sendResponse();
                    
90            exit;
                    
131        if ($agree && $step = $this->_getWizard()->getStepByName('begin')) {
                    
132            $this->getResponse()->setRedirect($step->getNextUrl());
                    
133        }
                    
                
projectteam.php https://gitlab.com/julienv/joomleague | PHP | 394 lines
                    
55		if ($model->isCheckedOut($user->get('id'))) {
                    
56			$this->setRedirect('index.php?option=com_joomleague&task=projectteam.display&view=projectteams', JText::_('EDITED BY ANOTHER ADMIN'));
                    
57		}
                    
321
                    
322		$this->setRedirect('index.php?option=com_joomleague&view=teams&task=projectteam.display');
                    
323	}
                    
331	{
                    
332		$this->setRedirect('index.php?option=com_joomleague&view=teams&task=projectteam.display');
                    
333	}
                    
340
                    
341		$this->setRedirect('index.php?option=com_joomleague&view=projectteams&task=projectteam.display');
                    
342	}
                    
374		}
                    
375		$this->setRedirect('index.php?option=com_joomleague&view=projectteams&task=projectteam.display', $msg, $type);
                    
376		$this->redirect();
                    
                
Matcher.php https://gitlab.com/karora/awl | PHP | 308 lines
                    
1<?php
                    
2/**
                    
27 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
                    
28 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
                    
29 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
                    
53 *
                    
54 * @package    PHPUnit_MockObject
                    
55 * @author     Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
61 */
                    
62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation
                    
63{
                    
149            $builder = $invocation->object
                    
150                                  ->__phpunit_getInvocationMocker()
                    
151                                  ->lookupId($this->afterMatchBuilderId);
                    
153            if (!$builder) {
                    
154                throw new PHPUnit_Framework_Exception(
                    
155                  sprintf(
                    
                
template-bootstrap.php https://gitlab.com/danielortiz1982/spicer | PHP | 198 lines
                    
15        <link rel="stylesheet" type="text/css" href="<?php echo PAGEDIR; ?>/machines/libraries/owlcarousel/owlcarousel.css">
                    
16        <link rel="stylesheet" type="text/css" href="<?php echo PAGEDIR; ?>/styles/styles.min.css">
                    
17
                    
25    </head>
                    
26    <body data-tempdir="<?php echo PAGEDIR; ?>" id="<?php echo get_post( $post )->post_name; ?>" <?=(returnMobile() == 'true')? 'class="mobileMode"' : 'class="desktopMode"';?>>
                    
27
                    
75                        <a class="navbar-brand" href="<?php echo home_url(); ?>">
                    
76                            <img src="<?php echo PAGEDIR; ?>/images/graphics/logo.png" alt="<?php bloginfo('name');?>" />
                    
77                        </a>
                    
172                <script src="<?php echo PAGEDIR; ?>/machines/libraries/owlcarousel/owlcarousel.js"></script>
                    
173                <script src="<?php echo PAGEDIR; ?>/machines/libraries/modernizr/modernizr.js"></script>
                    
174                <script src="<?php echo PAGEDIR; ?>/machines/libraries/backstretch/backstretch.js"></script>
                    
179                <script src="http://maps.google.com/maps/api/js?sensor=false&libraries=geometry&v=3.7"></script>
                    
180                <script src="<?php echo PAGEDIR; ?>/machines/libraries/maplace/maplace.min.js"></script>
                    
181                <script src="<?php echo PAGEDIR; ?>/machines/libraries/textFit/jquery.textFit.slow.js"></script>
                    
                
ApiModelFactory.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 283 lines
                    
53	static class CVSNameFilter implements FilenameFilter {
                    
54		public boolean accept(File dir, String name) {
                    
55			return !name.equalsIgnoreCase(CVS_FOLDER_NAME);
                    
163	 * this file is described here
                    
164	 * <code>http://wiki.eclipse.org/index.php/Execution_Environment_Descriptions</code>.
                    
165	 * </p>
                    
200	 * this file is described here
                    
201	 * <code>http://wiki.eclipse.org/index.php/Execution_Environment_Descriptions</code>.
                    
202	 * </p>
                    
254			} else {
                    
255				// The target platform service is unavailable (OSGi isn't running), add components by searching the plug-ins directory
                    
256				File dir = new File(installLocation);
                    
256				File dir = new File(installLocation);
                    
257				if(dir.exists()) {
                    
258					File[] files = dir.listFiles(fgCvsFilter);
                    
                
file_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 479 lines
                    
125
                    
126		if ( ! $current_dir = @opendir($path))
                    
127		{
                    
185				$_filedata = array();
                    
186				$source_dir = rtrim(realpath($source_dir), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
                    
187			}
                    
237				$_filedata = array();
                    
238				$source_dir = rtrim(realpath($source_dir), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
                    
239			}
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
245				{
                    
246					get_dir_file_info($source_dir.$file.DIRECTORY_SEPARATOR, $top_level_only, TRUE);
                    
247				}
                    
                
SimpleFontData.cpp https://gitlab.com/x33n/phantomjs | C++ | 304 lines
                    
21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
                    
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
                    
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
                    
91{
                    
92    GlyphPage* glyphPageZero = GlyphPageTreeNode::getRootChild(this, 0)->page();
                    
93
                    
111{
                    
112    GlyphPage* glyphPageZero = GlyphPageTreeNode::getRootChild(this, 0)->page();
                    
113    if (!glyphPageZero) {
                    
133    m_spaceWidth = width;
                    
134    m_zeroGlyph = glyphPageZero->glyphDataForCharacter('0').glyph;
                    
135    m_fontMetrics.setZeroWidth(widthForGlyph(m_zeroGlyph));
                    
170{
                    
171    GlyphPageTreeNode* node = GlyphPageTreeNode::getRootChild(this, character / GlyphPage::size);
                    
172    return node->page() ? node->page()->glyphAt(character % GlyphPage::size) : 0;
                    
                
derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
69      $ext = strtolower($ext);
                    
70      $this->rel_path = trigger_change('get_mimetype_location', get_themeconf('mime_icon_dir').$ext.'.png', $ext );
                    
71      $this->flags |= self::IS_MIMETYPE;
                    
71      $this->flags |= self::IS_MIMETYPE;
                    
72      if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false)
                    
73      {
                    
74        $this->rel_path = 'themes/default/icon/mimetypes/unknown.png';
                    
75        $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path);
                    
76      }
                    
379      $rel_url = 'i';
                    
380      if ($conf['php_extension_in_urls']) $rel_url .= '.php';
                    
381      if ($conf['question_mark_in_urls']) $rel_url .= '?';
                    
                
list.php https://gitlab.com/ricardosanchez/prueba | PHP | 382 lines
                    
1<?php
                    
2/**
                    
194	 * - order					What to order.			Possible values: 'name' or 'value' (default = false)
                    
195	 * - order_dir				Order direction.		Possible values: 'asc' = Ascending or 'desc' = Descending (default = 'asc')
                    
196	 * - order_case_sensitive	Order case sensitive.	Possible values: 'true' or 'false' (default = false)
                    
206
                    
207		// Set default order direction
                    
208		$order_dir = 'asc';
                    
217
                    
218		if ($this->element['order_dir'])
                    
219		{
                    
219		{
                    
220			$order_dir = $this->element['order_dir'];
                    
221		}
                    
250			jimport('joomla.utilities.arrayhelper');
                    
251			FOFUtilsArray::sortObjects($sortOptions, $order, $order_dir == 'asc' ? 1 : -1, $order_case_sensitive, false);
                    
252		}
                    
                
file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 479 lines
                    
139					{
                    
140						delete_files($path.DIRECTORY_SEPARATOR.$filename, $del_dir, $level + 1);
                    
141					}
                    
185				$_filedata = array();
                    
186				$source_dir = rtrim(realpath($source_dir), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
                    
187			}
                    
237				$_filedata = array();
                    
238				$source_dir = rtrim(realpath($source_dir), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
                    
239			}
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
245				{
                    
246					get_dir_file_info($source_dir.$file.DIRECTORY_SEPARATOR, $top_level_only, TRUE);
                    
247				}
                    
                
ClientInvitationController.php https://gitlab.com/haroldv22/tupadrino | PHP | 287 lines
                    
1<?php
                    
2
                    
16use yii\web\UploadedFile;   
                    
17use moonland\phpexcel\Excel;
                    
18
                    
39               'denyCallback' => function ($rule, $action) {                    
                    
40                   $this->redirect(Yii::$app->user->loginUrl);                   
                    
41//                       throw new \Exception('aaa are not allowed to access this page');
                    
75            
                    
76            $excel          = new Excel();       // Phpexcel                     
                    
77            $errorEmail     = '';
                    
187     * Creates a new ClientInvitation model.
                    
188     * If creation is successful, the browser will be redirected to the 'view' page.
                    
189     * @return mixed
                    
222
                    
223                    return $this->redirect(['view', 'id' => $model->id]);        
                    
224                
                    
                
PropelTableComparator.php https://gitlab.com/Isaki/le331.fr | PHP | 312 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/../Table.php';
                    
12require_once dirname(__FILE__) . '/PropelTableDiff.php';
                    
12require_once dirname(__FILE__) . '/PropelTableDiff.php';
                    
13require_once dirname(__FILE__) . '/PropelColumnComparator.php';
                    
14require_once dirname(__FILE__) . '/PropelColumnDiff.php';
                    
14require_once dirname(__FILE__) . '/PropelColumnDiff.php';
                    
15require_once dirname(__FILE__) . '/PropelIndexComparator.php';
                    
16require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php';
                    
                
mma.vim https://gitlab.com/shinvdu/vim_win_config | Vim Script | 325 lines
                    
5" Source:       http://members.wri.com/layland/vim/syntax/mma.vim
                    
6"               http://vim.sourceforge.net/scripts/script.php?script_id=1273
                    
7" Id:           $Id: mma.vim,v 1.4 2006/04/14 20:40:38 vimboss Exp $
                    
71
                    
72" SelectionMove directions/units:
                    
73syntax keyword mmaVariable Next Previous After Before Character Word Expression TextLine CellContents Cell CellGroup EvaluationCell ButtonCell GeneratedCell Notebook
                    
                
ScopeIndentSniff.php https://gitlab.com/michield/dokuwiki | PHP | 319 lines
                    
15 * @version   CVS: $Id: ScopeIndentSniff.php 270281 2008-12-02 02:38:34Z squiz $
                    
16 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
17 */
                    
24 *
                    
25 * @category  PHP
                    
26 * @package   PHP_CodeSniffer
                    
31 * @version   Release: 1.2.0
                    
32 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
33 */
                    
76     *
                    
77     * @param PHP_CodeSniffer_File $phpcsFile All the tokens found in the document.
                    
78     * @param int                  $stackPtr  The position of the current token
                    
82     */
                    
83    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
84    {
                    
                
bluepay.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 310 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
11 * @created 08/24/2011
                    
12 * @license http://www.opensource.org/licenses/mit-license.php
                    
13 * @link https://github.com/calvinfroedge/codeigniter-payments
                    
204	 * This function creates a md5 checksum to validate the integrity of the request
                    
205	 * The secret key is never passed directly and is used as a salt to provide a check
                    
206	 * on the gateway servers.
                    
                
settings_lang.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 174 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
37$lang['settings:date_format_desc']				= 'Miten päiväyksen muoto tulisi olla sivustolla ja hallintapaneelissa? ' .
                    
38													'Käyttämällä PHP:n <a href="http://php.net/manual/en/function.date.php" target="_black">date muotoa</a> - TAI - ' .
                    
39													'Käyttämällä PHP:n <a href="http://php.net/manual/en/function.strftime.php" target="_black">strftime muotoa</a>.';
                    
173
                    
174/* End of file settings_lang.php */
                    
                
unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
                    
54        # Read the main.inc.php script
                    
55        $bootstrap_php = $this->destination . '/bootstrap.php';
                    
56        $lines = explode("\n", file_get_contents($bootstrap_php));
                    
76        if (!file_put_contents($bootstrap_php, implode("\n", $lines)))
                    
77            die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n");
                    
78    }
                    
189                    continue;
                    
190                elseif ($this->exclude($exclude, $dir))
                    
191                    continue;
                    
192                $this->unpackage(
                    
193                    dirname($folder).'/'.basename($dir).'/'.basename($folder),
                    
194                    $destination.basename($dir),
                    
206        $pipes = array();
                    
207        $php = proc_open('php', array(
                    
208            0 => array('pipe', 'r'),
                    
                
BlogModule.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 469 lines
                    
1<?php
                    
2/**
                    
140    {
                    
141        return Yii::getPathOfAlias('webroot').DIRECTORY_SEPARATOR.Yii::app()->getModule(
                    
142            "yupe"
                    
142            "yupe"
                    
143        )->uploadPath.DIRECTORY_SEPARATOR.$this->uploadPath;
                    
144    }
                    
156                'BlogModule.blog',
                    
157                'File directory (relatively {path})',
                    
158                [
                    
158                [
                    
159                    '{path}' => Yii::getPathOfAlias('webroot').DIRECTORY_SEPARATOR.Yii::app()->getModule(
                    
160                            "yupe"
                    
                
Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
                    
1<?php
                    
2/**
                    
5
                    
6// Don't load directly
                    
7if ( ! defined( 'ABSPATH' ) ) {
                    
465	/**
                    
466	 * Extracts int and floats from a numeric "dirty" string like strings that might contain other symbols.
                    
467	 *
                    
                
sso.php https://gitlab.com/Lidbary/foxyshop | PHP | 242 lines
                    
88	//Auto-login if user wasn't logged in before
                    
89	//Note that if you don't have the querystring "redirect_to" set on the registration page the page will not redirect anywhere and won't appear logged in at first
                    
90	$auto_login = apply_filters("foxyshop_new_user_auto_login", true);
                    
174            <td class="column-columnname"><?php echo ($val['is_active'] == 1 ? __('Yes', 'foxyshop') : __('No', 'foxyshop')); ?></td>
                    
175            <td class="column-columnname"><a href="<?php echo $val['sub_token_url']; ?>&amp;cart=checkout" target="_blank"><?php _e('Update Info', 'foxyshop');?></a> | <a href="<?php echo $val['sub_token_url']; ?>&amp;sub_cancel=true&amp;cart=checkout" target="_blank"><?php _e('Cancel', 'foxyshop');?></a></td>
                    
176        </tr>
                    
194	if ((strpos($path, "action=register") !== false || strpos($path, "action=lostpassword") !== false) && isset($_REQUEST['redirect_to'])) return $path . '&amp;redirect_to='.urlencode($_REQUEST['redirect_to']);
                    
195	if (substr($path, strlen($path)-12) == "wp-login.php" && isset($_REQUEST['redirect_to'])) return $path . '?redirect_to='.urlencode($_REQUEST['redirect_to']);
                    
196	return $path;
                    
205	if (!isset($_REQUEST['foxycart_customer_id']) || !isset($_GET['timestamp']) || !isset($_GET['fc_auth_token'])) {
                    
206		wp_redirect($redirect_url);
                    
207		die;
                    
239
                    
240	wp_redirect($redirect_url);
                    
241	die;
                    
                
apbasic-widgets.php https://gitlab.com/pornmongkon.p/wordpress | PHP | 273 lines
                    
223 */
                    
224require get_template_directory() . '/inc/widgets/widget-fields.php';
                    
225
                    
230 */
                    
231require get_template_directory() . '/inc/widgets/widget-testimonials.php';
                    
232
                    
237 */
                    
238require get_template_directory() . '/inc/widgets/wigets-features.php';
                    
239
                    
244 */
                    
245require get_template_directory() . '/inc/widgets/widgets-services.php';
                    
246
                    
251 */
                    
252require get_template_directory() . '/inc/widgets/widgets-cta.php';
                    
253
                    
                
CaBundle.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 291 lines
                    
53     * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
                    
54     * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
                    
55     * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
                    
79        $envCertDir = getenv('SSL_CERT_DIR');
                    
80        if ($envCertDir && is_dir($envCertDir) && is_readable($envCertDir)) {
                    
81            return self::$caPath = $envCertDir;
                    
195        // Vulnerable:
                    
196        // PHP 5.3.0 - PHP 5.3.27
                    
197        // PHP 5.4.0 - PHP 5.4.22
                    
244        // Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415
                    
245        // changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593
                    
246        $cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K';
                    
269            count($output) === 3
                    
270            && $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION)
                    
271            && $output[1] === 'string(27) "stefan.esser@sektioneins.de"'
                    
                
pageTranslations.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 217 lines
                    
1<?php
                    
2
                    
60    'cast'                  => 'Cast',
                    
61    'directors'             => 'Directors',
                    
62    'role'                  => 'Role',
                    
110    'actor'                 => 'Actor',
                    
111    'director'              => 'Director',
                    
112    'subtitle_name'         => 'Subtitle Name',
                    
                
grid.subgrid.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 298 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl-2.0.html
                    
57			for (i = 0; i<ts.p.subGridModel[0].name.length; i++) {
                    
58				tddiv = $("<th class='ui-state-default ui-th-subgrid ui-th-column ui-th-"+ts.p.direction+"'></th>");
                    
59				$(tddiv).html(ts.p.subGridModel[0].name[i]);
                    
93			for (i = 0; i<ts.p.subGridModel[0].name.length; i++) {
                    
94				tddiv = $("<th class='ui-state-default ui-th-subgrid ui-th-column ui-th-"+ts.p.direction+"'></th>");
                    
95				$(tddiv).html(ts.p.subGridModel[0].name[i]);
                    
                
ExceptionHandlerAsm.asm https://gitlab.com/envieidoc/Clover | Assembly | 445 lines
                    
5; which accompanies this distribution.  The full text of the license may be found at
                    
6; http://opensource.org/licenses/bsd-license.php.
                    
7;
                    
284
                    
285;; UEFI calling convention for IA32 requires that Direction flag in EFLAGs is clear
                    
286    cld
                    
                
biblio_list.inc.php https://gitlab.com/mucill/majalengka | PHP | 294 lines
                    
1<?php
                    
2/**
                    
23
                    
24// be sure that this file not accessed directly
                    
25if (!defined('INDEX_AUTH')) {
                    
25if (!defined('INDEX_AUTH')) {
                    
26  die("can not access this file directly");
                    
27} elseif (INDEX_AUTH != 1) {
                    
27} elseif (INDEX_AUTH != 1) {
                    
28  die("can not access this file directly");
                    
29}
                    
255    // checking custom frontpage fields file
                    
256    $custom_frontpage_record_file = SB.$sysconf['template']['dir'].'/'.$sysconf['template']['theme'].'/custom_frontpage_record.inc.php';
                    
257    if (file_exists($custom_frontpage_record_file)) {
                    
                
class-wc-shipping-legacy-flat-rate.php https://gitlab.com/hunt9310/ras | PHP | 379 lines
                    
1<?php
                    
2if ( ! defined( 'ABSPATH' ) ) {
                    
26		$this->method_title       = __( 'Flat Rate (Legacy)', 'woocommerce' );
                    
27		$this->method_description = sprintf( __( '<strong>This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your <a href="%s">Shipping Zones</a>.</strong>', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=shipping' ) );
                    
28		$this->init();
                    
34	/**
                    
35	 * Process and redirect if disabled.
                    
36	 */
                    
40		if ( 'no' === $this->settings[ 'enabled' ] ) {
                    
41			wp_redirect( admin_url( 'admin.php?page=wc-settings&tab=shipping&section=options' ) );
                    
42			exit;
                    
76	public function init_form_fields() {
                    
77		$this->form_fields = include( 'includes/settings-flat-rate.php' );
                    
78	}
                    
86	protected function evaluate_cost( $sum, $args = array() ) {
                    
87		include_once( WC()->plugin_path() . '/includes/libraries/class-wc-eval-math.php' );
                    
88
                    
                
ResetPasswordPostTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 307 lines
                    
55            ->getMockForAbstractClass();
                    
56        $this->redirectFactoryMock = $this->getMockBuilder('Magento\Framework\Controller\Result\RedirectFactory')
                    
57            ->disableOriginalConstructor()
                    
129
                    
130        /** @var Redirect|\PHPUnit_Framework_MockObject_MockObject $redirectMock */
                    
131        $redirectMock = $this->getMockBuilder('Magento\Framework\Controller\Result\Redirect')
                    
195
                    
196        /** @var Redirect|\PHPUnit_Framework_MockObject_MockObject $redirectMock */
                    
197        $redirectMock = $this->getMockBuilder('Magento\Framework\Controller\Result\Redirect')
                    
242
                    
243        /** @var Redirect|\PHPUnit_Framework_MockObject_MockObject $redirectMock */
                    
244        $redirectMock = $this->getMockBuilder('Magento\Framework\Controller\Result\Redirect')
                    
289
                    
290        /** @var Redirect|\PHPUnit_Framework_MockObject_MockObject $redirectMock */
                    
291        $redirectMock = $this->getMockBuilder('Magento\Framework\Controller\Result\Redirect')
                    
                
Database.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 350 lines
                    
57
                    
58        $dirStorageTable = $this->getTable('core/directory_storage'); // For foreign key
                    
59
                    
86                array('filename', 'directory_id'), array('type' => Varien_Db_Adapter_Interface::INDEX_TYPE_UNIQUE))
                    
87            ->addIndex($adapter->getIndexName($table, array('directory_id')), array('directory_id'))
                    
88            ->addForeignKey($adapter->getForeignKeyName($table, 'directory_id', $dirStorageTable, 'directory_id'),
                    
88            ->addForeignKey($adapter->getForeignKeyName($table, 'directory_id', $dirStorageTable, 'directory_id'),
                    
89                'directory_id', $dirStorageTable, 'directory_id',
                    
90                Varien_Db_Ddl_Table::ACTION_CASCADE, Varien_Db_Ddl_Table::ACTION_CASCADE)
                    
331    {
                    
332        $directory = trim($directory, '/');
                    
333        $adapter = $this->_getReadAdapter();
                    
343            )
                    
344            ->where($adapter->prepareSqlCondition('directory', array('seq' => $directory)))
                    
345            ->order('file_id');
                    
                
innodb.lib.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 411 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin-Engines
                    
7 */
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
14 *
                    
15 * @package PhpMyAdmin-Engines
                    
16 */
                    
26        return array(
                    
27            'innodb_data_home_dir' => array(
                    
28                'title' => __('Data home directory'),
                    
28                'title' => __('Data home directory'),
                    
29                'desc'  => __('The common part of the directory path for all InnoDB data files.'),
                    
30            ),
                    
                
options.php https://gitlab.com/code26/selah | PHP | 199 lines
                    
23	public static function admin_page() {
                    
24		return 'options-general.php';
                    
25	}
                    
58		global $updraftplus_admin;
                    
59		add_submenu_page('options-general.php', 'UpdraftPlus', __('UpdraftPlus Backups', 'updraftplus'), apply_filters('option_page_capability_updraft-options-group', 'manage_options'), "updraftplus", array($updraftplus_admin, "settings_output"));
                    
60	}
                    
66		$page = '';
                    
67		if ('options-general.php' == $pagenow) $page = "options.php";
                    
68
                    
101			// Add back the page parameter if it looks like we were on the settings page via an OAuth callback that has now had all parameters removed. This is likely unnecessarily conservative, but there's nothing requiring more than this at the current time.
                    
102			if (substr($referer, -19, 19) == 'options-general.php' && false !== strpos($_SERVER['REQUEST_URI'], '?')) $referer .= '?page=updraftplus';
                    
103
                    
146
                    
147		register_setting('updraft-options-group', 'updraft_dir', array($updraftplus_admin, 'prune_updraft_dir_prefix'));
                    
148
                    
                
MantenimientosController.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 382 lines
                    
1<?php
                    
2
                    
34			if ($v->fails()) {
                    
35				return Redirect::to('mantenimientos/completados')
                    
36						->withErrors($v);
                    
47            if ($flag) {
                    
48				return Redirect::to('mantenimientos/completados')
                    
49						->with('mok', 'FechaIncorrecta');
                    
52        	$clienteslist = DB::table('clientes')->where(function($query){
                    
53					$query->where('direccion', 'like', '%'.Input::get('texto').'%')
                    
54                    ->orWhere('ciudad', 'like', '%'.Input::get('texto').'%')
                    
149		if ($v->fails()) {
                    
150			return Redirect::to('mantenimientos/nuevo/'.$input['raeascensor'])
                    
151			->withErrors($v)
                    
190			    ob_start();
                    
191			    include(app_path().'/views/pdf/informemantenimiento.php');
                    
192			    $content = ob_get_clean();
                    
                
lib.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 339 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24 */
                    
25require_once($CFG->dirroot . '/repository/lib.php');
                    
26
                    
86        if (!isset($this->service)) {
                    
87            require_once($CFG->libdir . '/google/lib.php');
                    
88            $this->client = get_google_client();
                    
                
mssql_driver.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 517 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
37 */
                    
38defined('BASEPATH') OR exit('No direct script access allowed');
                    
39
                    
96		{
                    
97			$this->hostname .= (DIRECTORY_SEPARATOR === '\\' ? ',' : ':').$this->port;
                    
98		}
                    
                
TaskManager.pm https://gitlab.com/aukkwat/CZPodzone-OpenKore-Bot | Perl | 500 lines
                    
15# Please read
                    
16# <a href="http://wiki.openkore.com/index.php/AI_subsystem_and_task_framework_overview">
                    
17# the AI subsystem and task framework overview
                    
112
                    
113# Reschedule tasks. Do not call this method directly!
                    
114sub reschedule {
                    
                
upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
                    
61
                    
62		$target_dir = GFFormsModel::get_upload_path( $form_id ) . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR;
                    
63
                    
63
                    
64		if ( ! is_dir( $target_dir ) ) {
                    
65			if ( ! wp_mkdir_p( $target_dir ) ) {
                    
138		if ( $cleanup_target_dir ) {
                    
139			if ( is_dir( $target_dir ) && ( $dir = opendir( $target_dir ) ) ) {
                    
140				while ( ( $file = readdir( $dir ) ) !== false ) {
                    
148				}
                    
149				closedir( $dir );
                    
150			} else {
                    
150			} else {
                    
151				GFCommon::log_debug( 'GFAsyncUpload::upload(): Failed to open temp directory: ' . $target_dir );
                    
152				die( '{"status" : "error", "error" : {"code": 100, "message": "' . __( 'Failed to open temp directory.', 'gravityforms' ) . '"}}' );
                    
                
edit.php https://gitlab.com/JrLucena/moodle | PHP | 241 lines
                    
24
                    
25require_once('../config.php');
                    
26require_once('lib.php');
                    
39    if (!empty($id)) {
                    
40        $returnurl = new moodle_url($CFG->wwwroot . '/course/view.php', array('id' => $id));
                    
41    } else {
                    
112    $editoroptions['context'] = $coursecontext;
                    
113    $editoroptions['subdirs'] = file_area_contains_subdirs($coursecontext, 'course', 'summary', 0);
                    
114    $course = file_prepare_standard_editor($course, 'summary', $editoroptions, $coursecontext, 'course', 'summary', 0);
                    
130    $editoroptions['context'] = $catcontext;
                    
131    $editoroptions['subdirs'] = 0;
                    
132    $course = file_prepare_standard_editor($course, 'summary', $editoroptions, null, 'course', 'summary', null);
                    
215    // We'd prefer to use the management interface URL without args.
                    
216    $managementurl = new moodle_url('/course/management.php');
                    
217    // These are the caps required in order to see the management interface.
                    
                
class-popup-public.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 407 lines
                    
1<?php
                    
2// Load dependencies.
                    
2// Load dependencies.
                    
3require_once PO_INC_DIR . 'class-popup-base.php';
                    
4
                    
229	 *
                    
230	 * PopUp data is loaded via a normal WordPress ajax request, directed at
                    
231	 * the admin-ajax.php handler.
                    
237
                    
238		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
240			$this->script_data['ajaxurl'] = admin_url( 'admin-ajax.php' );
                    
241			$this->script_data['ajax_data']['orig_request_uri'] = $_SERVER['REQUEST_URI'];
                    
261
                    
262		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
263			/*
                    
                
SnsClient.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 378 lines
                    
6
                    
7w3_require_once(W3TC_LIB_W3_DIR . '/Enterprise/SnsBase.php');
                    
8
                    
182    /**
                    
183     * Reloads/compiles a PHP file.
                    
184     * @param string $filename
                    
191    /**
                    
192     * Reloads/compiles a PHP file.
                    
193     * @param string[] $filenames
                    
271        if (!$this->send_action_configured) {
                    
272            add_action('w3_redirect', array(
                    
273                &$this,
                    
275            ), 100000, 0);
                    
276            add_filter('wp_redirect', array(
                    
277                &$this,
                    
                
 

Source

Language