PageRenderTime 1840ms queryTime 680ms sortTime 110ms getByIdsTime 436ms findMatchingLines 175ms

100+ results results for 'php basename repo:philkershaw/zend-framework-1.11-acl-implementation' (1840 ms)

Not the results you expected?
SCP.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 360 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include 'Net/SCP.php';
                    
13 *    include 'Net/SCP.php';
                    
14 *    include 'Net/SSH2.php';
                    
15 *
                    
                
pico.php https://gitlab.com/Blueprint-Marketing/Pico | PHP | 402 lines
                    
1<?php
                    
2
                    
33        $request_url = (isset($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : '';
                    
34        $script_url = (isset($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : '';
                    
35
                    
37        if ($request_url != $script_url) {
                    
38            $url = trim(preg_replace('/' . str_replace('/', '\/', str_replace('index.php', '', $script_url)) . '/', '',
                    
39                $request_url, 1), '/');
                    
104            'theme_dir' => THEMES_DIR . $settings['theme'],
                    
105            'theme_url' => $settings['base_url'] . '/' . basename(THEMES_DIR) . '/' . $settings['theme'],
                    
106            'site_title' => $settings['site_title'],
                    
128        $this->plugins = array();
                    
129        $plugins = $this->get_files(PLUGINS_DIR, '.php');
                    
130        if (!empty($plugins)) {
                    
325        $request_url = (isset($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : '';
                    
326        $script_url = (isset($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : '';
                    
327        if ($request_url != $script_url) {
                    
                
image.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 412 lines
                    
1<?php
                    
2/**
                    
47	if ( ! $dst_file )
                    
48		$dst_file = str_replace( basename( $src_file ), 'cropped-' . basename( $src_file ), $src_file );
                    
49
                    
53
                    
54	$dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), basename( $dst_file ) );
                    
55
                    
397	if ( $src_file ) {
                    
398		$dst_file = str_replace( basename( $dst_file ), 'copy-' . basename( $dst_file ), $dst_file );
                    
399		$dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), basename( $dst_file ) );
                    
                
SaveUploadTest.php https://gitlab.com/reasonat/test8 | PHP | 362 lines
                    
1<?php
                    
2
                    
27  /**
                    
28   * A PHP file path for upload security testing.
                    
29   */
                    
29   */
                    
30  protected $phpfile;
                    
31
                    
54
                    
55    $this->phpfile = current($this->drupalGetTestFiles('php'));
                    
56    $this->assertTrue(is_file($this->phpfile->uri), 'The PHP file we are going to upload exists.');
                    
120    $this->assertRaw(t('You WIN!'));
                    
121    $this->assertTrue(is_file('temporary://' . $dir . '/' . trim(drupal_basename($image3_realpath))));
                    
122  }
                    
189    $config = $this->config('system.file');
                    
190    // Allow the .php extension and make sure it gets renamed to .txt for
                    
191    // safety. Also check to make sure its MIME type was changed.
                    
                
class-plugin-upgrader.php https://gitlab.com/WPonEB/WPonEB | PHP | 459 lines
                    
1<?php
                    
2/**
                    
16 * @since 2.8.0
                    
17 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader.php.
                    
18 *
                    
134	 *
                    
135	 * @param string $plugin The basename path to the main plugin file.
                    
136	 * @param array  $args {
                    
205	 *
                    
206	 * @param array $plugins Array of the basename paths of the plugins' main files.
                    
207	 * @param array $args {
                    
297
                    
298		/** This action is documented in wp-admin/includes/class-wp-upgrader.php */
                    
299		do_action( 'upgrader_process_complete', $this, array(
                    
341		$plugins_found = false;
                    
342		$files = glob( $working_directory . '*.php' );
                    
343		if ( $files ) {
                    
                
Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
                    
1<?php namespace Illuminate\Filesystem;
                    
2
                    
359            // back into this function recursively to keep copying these nested folders.
                    
360            $target = $destination . '/' . $item->getBasename();
                    
361
                    
                
mail.php https://gitlab.com/dmsapiens/physicians | PHP | 630 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * A simple PHP wrapper class for sending email using the mail() method.
                    
6 *
                    
6 *
                    
7 * PHP version 5
                    
8 *
                    
10 * available through the world-wide-web at the following URI:
                    
11 * http://github.com/eoghanobrien/php-simple-mail/LICENCE.txt
                    
12 *
                    
16 * @copyright 2009 - 2014 Eoghan O'Brien
                    
17 * @license   http://github.com/eoghanobrien/php-simple-mail/LICENCE.txt MIT
                    
18 * @version   1.5
                    
18 * @version   1.5
                    
19 * @link      http://github.com/eoghanobrien/php-simple-mail
                    
20 */
                    
                
SCP.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 361 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include('Net/SCP.php');
                    
13 *    include('Net/SCP.php');
                    
14 *    include('Net/SSH2.php');
                    
15 *
                    
                
Http.php https://bitbucket.org/gencer/zf2.git | PHP | 465 lines
                    
1<?php
                    
2/**
                    
29     * @param  array $options OPTIONAL Options to set
                    
30     * @throws Exception\PhpEnvironmentException if file uploads are not allowed
                    
31     */
                    
34        if (ini_get('file_uploads') == false) {
                    
35            throw new Exception\PhpEnvironmentException('File uploads are not allowed in your php config!');
                    
36        }
                    
111
                    
112        // Workaround for a PHP error returning empty $_FILES when form data exceeds php settings
                    
113        if (empty($this->files) && ($content > 0)) {
                    
182                    $this->files[$file]['destination'] = dirname($filename);
                    
183                    $this->files[$file]['name']        = basename($filename);
                    
184                }
                    
285     * @return array|null
                    
286     * @throws Exception\PhpEnvironmentException whether APC nor UploadProgress extension installed
                    
287     * @throws Exception\RuntimeException
                    
                
sendmail.htm https://bitbucket.org/johnroyer/phpwind8.7.git | HTML | 275 lines
                    
1<!--<?php
                    
2include_once PrintEot('left');
                    
4if($resume){
                    
5$j_url = EncodeUrl("$basename&action=erase");
                    
6print <<<EOT
                    
11		<td class="td2">	存在未完成的郵件群發任務,最後發送時間為<span class="s2">$pwSendmail[lasttime]</span>
                    
12	[<a href="$basename&action=confirm">查看</a>] [<a href="$j_url">刪除</a>]</td>
                    
13	</tr>
                    
20<script type="text/javascript" src="js/wind_editor.js"></script>
                    
21<form name='FORM' action="$basename" method="post" onsubmit="return checkpost(document.FORM);">
                    
22<h2 class="h1">郵件群發</h2>
                    
255EOT;
                    
256$j_url = EncodeUrl("$basename&action=erase");
                    
257if ($action == 'send') {print <<<EOT
                    
258-->
                    
259	<span class="btn"><span><button type="button" onClick="javascript:window.location='$basename&action=groupsend'">開始發送</button></span></span>
                    
260	[<a href="$j_url">取消</a>] [<a href="javascript:history.go(-1)">返回</a>]
                    
                
class-yoast-plugin-conflict.php https://gitlab.com/gabdark/aceit | PHP | 333 lines
                    
1<?php
                    
2/**
                    
117		if ( ! function_exists( 'get_plugin_data' ) ) {
                    
118			require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
                    
119		}
                    
201			/* translators: %s: 'Facebook' plugin name of possibly conflicting plugin */
                    
202			$error_message .= '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . $plugin_file . '&amp;plugin_status=all', 'deactivate-plugin_' . $plugin_file ) . '">' . sprintf( __( 'Deactivate %s', 'wordpress-seo' ), WPSEO_Utils::get_plugin_name( $plugin_file ) ) . '</a> ';
                    
203
                    
263	 *
                    
264	 * @param string $plugin Plugin basename string.
                    
265	 *
                    
278	 * @param string $plugin_section Type of conflict group (such as Open Graph or sitemap).
                    
279	 * @param string $plugin         Plugin basename string.
                    
280	 */
                    
296	 *
                    
297	 * @param string $plugin Plugin basename string.
                    
298	 *
                    
                
function.html_select_date.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 119 lines
                    
1<?php //0046a
                    
2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
                    
3?>
                    
42VmfUqAxo14JDPruMU/Zkn6z/nqdo/q/QxKDJgMQ5+ts83xs+QVUkuCse5tMXrNrINWcjqGfrIE8d
                    
43mRYVdMIuCZDFwOWdp3LrjCoWeTc7NS0bNwGli4CA1jf5PHPniyWYyMcDH+r5CyOpXPFxhn3ypv+m
                    
44IF4qvBFKNJZPAfHboaNQLG5FT6KlBvWb2ONGbRURURURs5aS4n7Uj2BY9bXcMF1+ZDINsxpWf9Sx
                    
                
backupdb.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 484 lines
                    
66
                    
67	$file = basename($mybb->input['file']);
                    
68	$ext = get_extension($file);
                    
90		flash_message($lang->error_invalid_backup, 'error');
                    
91		admin_redirect("index.php?module=tools-backupdb");
                    
92	}
                    
133	{
                    
134		$page->output_confirm_action("index.php?module=tools-backupdb&amp;action=delete&amp;file={$mybb->input['file']}", $lang->confirm_backup_deletion);
                    
135	}
                    
160					flash_message($lang->error_no_zlib, 'error');
                    
161					admin_redirect("index.php?module=tools-backupdb&action=backup");
                    
162				}
                    
295
                    
296			$file_from_admindir = 'index.php?module=tools-backupdb&amp;action=dlbackup&amp;file='.basename($file).$ext;
                    
297			flash_message("<span><em>{$lang->success_backup_created}</em></span><p>{$lang->backup_saved_to}<br />{$file}{$ext} (<a href=\"{$file_from_admindir}\">{$lang->download}</a>)</p>", 'success');
                    
                
install.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 293 lines
                    
1<?php
                    
2if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
                    
3
                    
37	// upgrade function changed in WordPress 2.3	
                    
38	require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
                    
39	
                    
                
FileWriter.php https://gitlab.com/campus-academy/krowkaramel | PHP | 341 lines
                    
1<?php
                    
2/**
                    
131        if( ! $this->fs->chmod( $this->getPath(), $mode, $recursive ) ){
                    
132            throw new Loco_error_WriteException( sprintf( __('Failed to chmod %s','loco-translate'), $this->file->basename() ) );
                    
133        }
                    
159            Loco_error_AdminNotices::debug(sprintf('Failed to copy %s to %s via "%s" method',$source,$target,$this->fs->method));
                    
160            throw new Loco_error_WriteException( sprintf( __('Failed to copy %s to %s','loco-translate'), basename($source), basename($target) ) );
                    
161        }
                    
184            Loco_error_AdminNotices::debug('copy/delete failure: '.$e->getMessage() );
                    
185            throw new Loco_error_WriteException( sprintf( 'Failed to move %s', $orig->basename() ) );
                    
186        }
                    
197        if( ! $this->fs->delete( $this->getPath(), $recursive ) ){
                    
198            throw new Loco_error_WriteException( sprintf( __('Failed to delete %s','loco-translate'), $this->file->basename() ) );
                    
199        }
                    
317        // Deny list of executable file extensions, noting that specific actions may limit this further.
                    
318        // Note that this ignores the base file name, so "php.pot" would be permitted, but "foo.php.pot" would not.
                    
319        $exts = array_slice( explode('.', $this->file->basename() ), 1 );
                    
                
tools.php https://gitlab.com/campus-academy/krowkaramel | PHP | 432 lines
                    
1<?php
                    
2namespace Elementor;
                    
152
                    
153		$plugin_slug = basename( ELEMENTOR__FILE__, '.php' );
                    
154
                    
205
                    
206			require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
                    
207
                    
356										$rollback_html . '<a data-placeholder-text="' . esc_html__( 'Reinstall', 'elementor' ) . ' v{VERSION}" href="#" data-placeholder-url="%s" class="button elementor-button-spinner elementor-rollback-button">%s</a>',
                    
357										wp_nonce_url( admin_url( 'admin-post.php?action=elementor_rollback&version=VERSION' ), 'elementor_rollback' ),
                    
358										esc_html__( 'Reinstall', 'elementor' )
                    
                
MassSaveAjax.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 263 lines
                    
1<?php
                    
2/*+***********************************************************************************
                    
177
                    
178					$filename = ltrim(basename(" " . $binFile)); //allowed filename like UTF-8 characters
                    
179					$filetype = $existingAttachInfo['type'];
                    
                
smarty_internal_config.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
151        } 
                    
152        return $_compile_dir . $_filepath . '.' . basename($this->config_resource_name) . '.config' . '.php';
                    
153    } 
                    
                
manage_vote_sites.php https://gitlab.com/Tamm/RFCP | PHP | 280 lines
                    
1<?php
                    
2
                    
4{
                    
5  $file = basename(__FILE__);
                    
6  $moduleCategory = "Edit";
                    
                
backup_db.php https://bitbucket.org/flth/xtcm.git | PHP | 351 lines
                    
26  //Dateiname fuer Selbstaufruf
                    
27  $bk_filename =  basename($_SERVER['SCRIPT_NAME']); // web28 - 2011-07-02 - Security Fix - PHP_SELF
                    
28
                    
287    <!-- header //-->
                    
288    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
                    
289    <!-- header_eof //-->
                    
298            <!-- left_navigation //-->
                    
299            <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
                    
300            <!-- left_navigation_eof //-->
                    
309                  <tr>
                    
310                    <td class="pageHeading"><?php echo HEADING_TITLE; ?><span class="smallText"> [<?php echo VERSION; ?>]</span></td>
                    
311                    <td class="pageHeading" align="right"><?php echo xtc_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
                    
341    <!-- footer //-->
                    
342    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
                    
343    <!-- footer_eof //-->
                    
                
class-admin.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 379 lines
                    
1<?php
                    
2/**
                    
55
                    
56		add_filter( 'plugin_action_links_' . WPSEO_BASENAME, [ $this, 'add_action_link' ], 10, 2 );
                    
57		add_filter( 'network_admin_plugin_action_links_' . WPSEO_BASENAME, [ $this, 'add_action_link' ], 10, 2 );
                    
165	public function map_manage_options_cap() {
                    
166		// phpcs:ignore WordPress.Security -- The variable is only used in strpos and thus safe to not unslash or sanitize.
                    
167		$option_page = ! empty( $_POST['option_page'] ) ? $_POST['option_page'] : '';
                    
213	public function add_action_link( $links, $file ) {
                    
214		if ( $file === WPSEO_BASENAME && WPSEO_Capability_Utils::current_user_can( 'wpseo_manage_options' ) ) {
                    
215			if ( is_network_admin() ) {
                    
215			if ( is_network_admin() ) {
                    
216				$settings_url = network_admin_url( 'admin.php?page=' . self::PAGE_IDENTIFIER );
                    
217			}
                    
218			else {
                    
219				$settings_url = admin_url( 'admin.php?page=' . self::PAGE_IDENTIFIER );
                    
220			}
                    
                
integrator.php https://gitlab.com/ElvisAns/tiki | PHP | 382 lines
                    
1<?php
                    
2
                    
12
                    
13if (basename($_SERVER['SCRIPT_NAME']) === basename(__FILE__)) {
                    
14    die('This script may only be included.');
                    
16
                    
17include_once('lib/tikilib.php');
                    
18
                    
366            $query,
                    
367            [$tikilib->httpPrefix() . "/%integrator%.php?%repID=" . $repID . "%"]
                    
368        );
                    
378            $query,
                    
379            [$tikilib->httpPrefix() . "/%integrator%.php?repID=" . $repID . (strlen($file) > 0 ? "&file=" . $file : '')]
                    
380        );
                    
                
CPSControllerCommand.php https://github.com/Pogostick/ps-yii-extensions.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
52		$this->controllerBaseClass = 'CPSController';
                    
53		$this->controllerTemplateName = 'controller.php';
                    
54
                    
96		$_arList = array(
                    
97			basename( $_sControllerFile ) => array(
                    
98				'source' => $this->templatePath . DIRECTORY_SEPARATOR . $this->controllerTemplateName,
                    
109		{
                    
110			$_arList[ $_sAction . '.php' ] = array(
                    
111				'source' => $this->templatePath . DIRECTORY_SEPARATOR . $this->viewTemplateName, 
                    
111				'source' => $this->templatePath . DIRECTORY_SEPARATOR . $this->viewTemplateName, 
                    
112				'target' => $_sViewPath . DIRECTORY_SEPARATOR . $_sAction . '.php',
                    
113				'callback' => array( $this, 'generateAction' ),
                    
116			
                    
117			$_sClasses .= $this->boldEchoString( '(' . $_sViewPath . DIRECTORY_SEPARATOR . $_sAction . '.php' . ')', $_sAction, true );
                    
118		}
                    
                
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 *
                    
154
                    
155		$class = strtolower(basename($library));
                    
156
                    
201
                    
202		($_alias = $object_name) OR $_alias = basename($model);
                    
203
                    
249
                    
250		$_alias = strtolower(basename($module));
                    
251		CI::$APP->$_alias = Modules::load(array($module => $params));
                    
336
                    
337			$_ci_file = basename($_ci_path);
                    
338			if( ! file_exists($_ci_path)) $_ci_path = '';
                    
                
install.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 80 lines
                    
1<?php
                    
2
                    
22 * needed during the very first steps of installation. This file was
                    
23 * generated automatically by export-installer.php (which is part of AMOS
                    
24 * {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
                    
36$string['chooselanguagesub'] = 'Виберіть мову ТІЛЬКИ для процесу встановлення. Ви зможете вибрати мову для сайту та користувачів пізніше.';
                    
37$string['clialreadyconfigured'] = 'Файл config.php вже створено, будь ласка, використовуйте admin/cli/install_database.php, якщо ви хочете встановити цей сайт.';
                    
38$string['clialreadyinstalled'] = 'Файл config.php вже створено, будь ласка, використовуйте admin/cli/upgrade.php, якщо ви хочете оновити ваш сайт.';
                    
40$string['databasehost'] = 'Сервер бази даних';
                    
41$string['databasename'] = 'Ім’я бази даних';
                    
42$string['databasetypehead'] = 'Виберіть драйвер бази даних';
                    
51$string['langdownloaderror'] = 'На жаль, мова "{$a}" не встановлена. Встановлення буде продовжено англійською мовою.';
                    
52$string['memorylimithelp'] = '<p>Обмеження пам\'яті в PHP на сервері зараз встановлено в {$a}.</p> <p>Це може стати проблемою при подальшій роботі Moodle, коли ви будете мати багато курсів, модулів та користувачів.</p> <p>Ми рекомендуємо сконфігурувати РНР на обмеження пам\'яті не менше 16 Мб. Це можна зробити шляхом:</p> <ol> <li>перекомпіляції PHP з параметром <i>--enable-memory-limit</i>. Це надасть можливість Moodle встановити обмеження пам\'яті самостійно.</li> <li>встановлення в php.ini змінної <b>memory_limit</b> порядка 16Mб. Якщо ви не маєте доступу до цього файлу попросіть адміністратора зробити це для вас.</li> <li>створення в корні сайту файлу .htaccess, куди добавити наступний рядок: <p><blockquote>php_value memory_limit 16M</blockquote></p> <p>Але на деяких серверах це призведе до помилок на <b>всіх</b> сторінках, тоді вам потрібно видалити .htaccess.</p></li> </ol>';
                    
53$string['paths'] = 'Шляхи';
                    
71$string['phpversion'] = 'Версія РНР';
                    
72$string['phpversionhelp'] = '<p>Moodle потребує PHP версії не менше ніж 4.3.0 або 5.1.0 (версії 5.0.x мають деякі відомі проблеми).</p> <p>Наразі ви працюєте з версією {$a}</p> <p>Вам потрібно оновити PHP або змінити хост з новішою версією PHP!<br /> (У разі 5.0.x ви також можете повернутися до версії 4.4.x)</p>';
                    
73$string['welcomep10'] = '{$a->installername} ({$a->installerversion})';
                    
                
wpsdb-base.php https://gitlab.com/mattswann/launch-housing | PHP | 399 lines
                    
26		$this->addons = array(
                    
27			'wp-sync-db-media-files/wp-sync-db-media-files.php' => array(
                    
28				'name'				=> 'Media Files',
                    
44		$this->plugin_folder_name = basename( $this->plugin_dir_path );
                    
45		$this->plugin_basename = plugin_basename( $plugin_file_path );
                    
46		$this->template_dir = $this->plugin_dir_path . 'template' . DS;
                    
50		if ( is_multisite() ) {
                    
51			$this->plugin_base = 'settings.php?page=wp-sync-db';
                    
52		}
                    
110		$args['headers']['Content-Type'] = 'multipart/form-data; boundary=' . $this->multipart_boundary;
                    
111		$args['headers']['Referer'] = network_admin_url( 'admin-ajax.php' );
                    
112
                    
322
                    
323		$plugin_basename = ( false !== $plugin ? $plugin : $this->plugin_basename );
                    
324
                    
                
paperclip.rb https://github.com/kende/lovd-by-less.git | Ruby | 244 lines
                    
8# Copyright:: Copyright (c) 2008 thoughtbot, inc.
                    
9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10#
                    
86    #   Paperclip::Attachment#interpolate for more information on variable interpolaton.
                    
87    #     :url => "/:attachment/:id/:style_:basename:extension"
                    
88    #     :url => "http://some.other.host/stuff/:class/:id_:extension"
                    
95    #   geometry strings at the ImageMagick website 
                    
96    #   (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip
                    
97    #   also adds the "#" option (e.g. "50x50#"), which will resize the image to fit maximally 
                    
                
Fixer.php https://gitlab.com/yousafsyed/easternglamor | PHP | 410 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of the PHP CS utility.
                    
5 *
                    
75            $relativeNamespace = $file->getRelativePath();
                    
76            $class = 'Symfony\\CS\\Fixer\\'.($relativeNamespace ? $relativeNamespace.'\\' : '').$file->getBasename('.php');
                    
77            $this->addFixer(new $class());
                    
109            $relativeNamespace = $file->getRelativePath();
                    
110            $class = 'Symfony\\CS\\Config\\'.($relativeNamespace ? $relativeNamespace.'\\' : '').$file->getBasename('.php');
                    
111            $this->addConfig(new $class());
                    
177            // PHP 5.3 has a broken implementation of token_get_all when the file uses __halt_compiler() starting in 5.3.6
                    
178            || (PHP_VERSION_ID >= 50306 && PHP_VERSION_ID < 50400 && false !== stripos($old, '__halt_compiler()'))
                    
179        ) {
                    
318        $diff = implode(
                    
319            PHP_EOL,
                    
320            array_map(
                    
                
GeneratedObjectLobTest.php https://gitlab.com/Isaki/le331.fr | PHP | 293 lines
                    
10
                    
11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreEmptyTestBase.php';
                    
12
                    
36    /**
                    
37     * Array of filenames pointing to blob/clob files indexed by the basename.
                    
38     *
                    
54     *
                    
55     * @param  string    $basename Basename of LOB filename to return (if left blank, will choose random file).
                    
56     * @return string
                    
56     * @return string
                    
57     * @throws Exception - if specified basename doesn't correspond to a registered LOB filename
                    
58     */
                    
60    {
                    
61        if ($basename === null) {
                    
62            $basename = array_rand($this->sampleLobFiles);
                    
                
add-ons.php https://gitlab.com/Gashler/sg | PHP | 263 lines
                    
1<?php
                    
2if ( ! defined( 'ABSPATH' ) ){
                    
46
                    
47		require_once(ABSPATH.'/wp-admin/includes/plugin.php');
                    
48
                    
50
                    
51			$plugin = plugin_basename( $_GET['module'] );
                    
52			$plugin_data = get_plugin_data( $this->wp_plugin_path . $plugin );
                    
57			if ( isset( $_GET['requires'] ) ) {
                    
58				if ( file_exists( $this->wp_plugin_path . plugin_basename( $_GET['requires'] ) ) ) {
                    
59					if ( ! WYSIJA::is_plugin_active( $_GET['requires'] ) ) {
                    
59					if ( ! WYSIJA::is_plugin_active( $_GET['requires'] ) ) {
                    
60						$location = admin_url( 'admin.php?page=wysija_config&status=not-activated&add-on=' . $plugin_name . '&requires=' . esc_attr( str_replace( ' ', '_', $_GET['requires_name'] ) ) . '#tab-add-ons' );
                    
61						wp_safe_redirect( $location );
                    
64				} else {
                    
65					$location = admin_url( 'admin.php?page=wysija_config&status=not-installed&add-on=' . $plugin_name . '&requires=' . esc_attr( str_replace( ' ', '_', $_GET['requires_name'] ) ) . '#tab-add-ons' );
                    
66					wp_safe_redirect( $location );
                    
                
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
18$pecl_dir = $build_dir . "/pecl-" . phpversion();
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
243);
                    
250$general_files = array(
                    
251	"php.gif"			=>	"php.gif",
                    
252);
                    
461}
                    
462copy('run-tests.php', $test_dir . '/run-test.php');
                    
463
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
shell.test.php https://github.com/bb-dev/cakephp2x.git | PHP | 501 lines
                    
6 *
                    
7 * PHP Version 5.x
                    
8 *
                    
8 *
                    
9 * CakePHP : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2006-2009, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2006-2009, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       cake
                    
390		$path = APP;
                    
391		$expected = DS . basename(APP) . DS;
                    
392		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
394		$path = APP . 'index.php';
                    
395		$expected = DS . basename(APP) . DS . 'index.php';
                    
396		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
                
class.datasource.php https://github.com/creativedutchmen/symphony-3.git | PHP | 367 lines
                    
1<?php
                    
2
                    
10		public function accept(){
                    
11			if($this->isDir() == false && preg_match('/^.+\.php$/i', $this->getFilename())){
                    
12				return true;
                    
91		public static function getHandleFromFilename($filename){
                    
92			return basename($filename, ".php");
                    
93		}
                    
112		        throw new DataSourceException(
                    
113					__('Could not find Data Source <code>%s</code>. If the Data Source was provided by an Extension, ensure that it is installed, and enabled.', array(basename($pathname)))
                    
114				);
                    
128		public static function loadFromHandle($name){
                    
129			return self::load(self::__find($name) . "/{$name}.php");
                    
130		}
                    
133
                    
134		    if(is_file(DATASOURCES . "/{$name}.php")) return DATASOURCES;
                    
135		    else{
                    
                
PyDown.py https://github.com/jedie/python-code-snippets.git | Python | 459 lines
                    
12__author__  = "Jens Diemer (www.jensdiemer.de)"
                    
13__license__ = "GNU General Public License v2 or above - http://www.opensource.org/licenses/gpl-license.php"
                    
14__url__     = "http://www.jensdiemer.de/Programmieren/Python/PyDown"
                    
222                dbtyp="sqlite",
                    
223                databasename="SQLiteDB/PyDownSQLite.db"
                    
224            )
                    
                
wysiwyg.api.php https://gitlab.com/endomorphosis/tactilevision | PHP | 206 lines
                    
1<?php
                    
2
                    
122 * - 'hook': The name of the module providing the plugin.
                    
123 * - 'INCLUDE': The basename of the file containing the plugin definition.
                    
124 * - 'plugin': Static.
                    
                
block_cmsnavigation.php https://github.com/nadavkav/MoodleTAO.git | PHP | 263 lines
                    
1<?php // $Id: block_cmsnavigation.php,v 1.7.10.1 2008/03/23 09:36:05 julmis Exp $
                    
2
                    
83                        // If the admin has hacked the core Moodle code then he will want the links
                    
84                        // to point to the site index.php page for site pages
                    
85                        if (empty($navi->pagename)) {
                    
88                            $tempurl = (!$CFG->slasharguments)
                    
89                                        ? $CFG->wwwroot.'/index.php?page='.$navi->pagename
                    
90                                        : $CFG->wwwroot.'/index.php/'. $navi->pagename;
                    
93                                    // TODO: should the URL below be rendered with slasharguments? 
                    
94                                : $CFG->wwwroot.'/course/view.php?id='. $navi->course .'&amp;page='.$navi->pagename;
                    
95                        }
                    
178            // Support sitelevel slasharguments
                    
179            // in form /index.php/<pagename>
                    
180            $relativepath = get_file_argument(basename($_SERVER['SCRIPT_FILENAME']));
                    
230        // Wrap it inside div element which width you can control
                    
231        // with CSS styles in styles.php file.
                    
232        $this->content->text .= "\n" . '<div class="cms-navi">' . "\n";
                    
                
class-wp-filesystem-ftpext.php https://gitlab.com/thisishayat/itv-2016 | PHP | 602 lines
                    
1<?php
                    
2/**
                    
30		if ( ! extension_loaded('ftp') ) {
                    
31			$this->errors->add('no_ftp_ext', __('The ftp PHP extension is not available'));
                    
32			return;
                    
547		if ( $this->is_file($path) ) {
                    
548			$limit_file = basename($path);
                    
549			$path = dirname($path) . '/';
                    
                
instance_factory.py https://github.com/jsa/gaesdk-python.git | Python | 297 lines
                    
69    if runtime == 'php55':
                    
70      php_binary_dir = 'php/php-5.5-Win32-VC11-x86'
                    
71  elif sys.platform == 'darwin':
                    
72    if runtime == 'php55':
                    
73      php_binary_dir = '../php55'
                    
74
                    
130  @classmethod
                    
131  def _check_php_version(cls, php_executable_path, env):
                    
132    """Check if php-cgi has the correct version."""
                    
212    if not os.path.exists(php_executable_path):
                    
213      raise _PHPBinaryError('The path specified with the --php_executable_path '
                    
214                            'flag (%s) does not exist.' % php_executable_path)
                    
216    if not os.access(php_executable_path, os.X_OK):
                    
217      raise _PHPBinaryError('The path specified with the --php_executable_path '
                    
218                            'flag (%s) is not executable' % php_executable_path)
                    
                
Model.php https://gitlab.com/x33n/ImpressPages | PHP | 313 lines
                    
1<?php
                    
2
                    
147        try {
                    
148            require_once ipFile('Ip/Lib/less.php/Less.php');
                    
149            $parserOptions = array(
                    
202
                    
203            require_once ipFile('Ip/Lib/less.php/Less.php');
                    
204            $parserOptions = array(
                    
251        }
                    
252        require_once 'lib/JSMin.php';
                    
253        $minJS = \JSMin::minify($js);
                    
284
                    
285        require_once 'lib/CSSMin.php';
                    
286        $cssmin = new \CSSmin();
                    
291    /**
                    
292     * Recursive glob function from PHP manual (http://php.net/manual/en/function.glob.php)
                    
293     */
                    
                
c.py https://gitlab.com/envieidoc/Clover | Python | 387 lines
                    
8#  which accompanies this distribution.  The full text of the license may be found at
                    
9#  http://opensource.org/licenses/bsd-license.php
                    
10#
                    
358                ParseErrorFileList.append(FullName)
                    
359            BaseName = os.path.basename(FullName)
                    
360            DirName = os.path.dirname(FullName)
                    
360            DirName = os.path.dirname(FullName)
                    
361            Ext = os.path.splitext(BaseName)[1].lstrip('.')
                    
362            ModifiedTime = os.path.getmtime(FullName)
                    
362            ModifiedTime = os.path.getmtime(FullName)
                    
363            FileObj = DataClass.FileClass(-1, BaseName, Ext, DirName, FullName, model, ModifiedTime, GetFunctionList(), GetIdentifierList(), [])
                    
364            FileObjList.append(FileObj)
                    
                
%%76^76D^76DE89E6%%resultsMoreBuildsGUI.tpl.php https://github.com/viglesiasce/testlink.git | PHP | 279 lines
                    
1<?php /* Smarty version 2.6.26, created on 2010-09-27 15:50:04
                    
2         compiled from results/resultsMoreBuildsGUI.tpl */ ?>
                    
2         compiled from results/resultsMoreBuildsGUI.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'results/resultsMoreBuildsGUI.tpl', 15, false),array('function', 'config_load', 'results/resultsMoreBuildsGUI.tpl', 23, false),array('function', 'html_select_date', 'results/resultsMoreBuildsGUI.tpl', 113, false),array('function', 'html_select_time', 'results/resultsMoreBuildsGUI.tpl', 119, false),array('modifier', 'basename', 'results/resultsMoreBuildsGUI.tpl', 22, false),array('modifier', 'replace', 'results/resultsMoreBuildsGUI.tpl', 22, false),array('modifier', 'escape', 'results/resultsMoreBuildsGUI.tpl', 70, false),)), $this); ?>
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'results/resultsMoreBuildsGUI.tpl', 15, false),array('function', 'config_load', 'results/resultsMoreBuildsGUI.tpl', 23, false),array('function', 'html_select_date', 'results/resultsMoreBuildsGUI.tpl', 113, false),array('function', 'html_select_time', 'results/resultsMoreBuildsGUI.tpl', 119, false),array('modifier', 'basename', 'results/resultsMoreBuildsGUI.tpl', 22, false),array('modifier', 'replace', 'results/resultsMoreBuildsGUI.tpl', 22, false),array('modifier', 'escape', 'results/resultsMoreBuildsGUI.tpl', 70, false),)), $this); ?>
                    
5<?php echo lang_get_smarty(array('var' => 'labels','s' => 'enter_start_time,enter_end_time,date,hour,Yes,submit_query,
                    
6			   select_builds_header,select_components_header,report_display_options,
                    
11
                    
12<?php $this->assign('cfg_section', ((is_array($_tmp=((is_array($_tmp='results/resultsMoreBuildsGUI.tpl')) ? $this->_run_mod_handler('basename', true, $_tmp) : basename($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, ".tpl", "") : smarty_modifier_replace($_tmp, ".tpl", ""))); ?>
                    
13<?php echo smarty_function_config_load(array('file' => "input_dimensions.conf",'section' => $this->_tpl_vars['cfg_section']), $this);?>
                    
15
                    
16<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
17$this->_smarty_include(array('smarty_include_tpl_file' => "inc_head.tpl", 'smarty_include_vars' => array()));
                    
45
                    
46<form action="lib/results/resultsMoreBuilds.php?report_type=<?php echo $this->_tpl_vars['gui']->report_type; ?>
                    
47" method="post">
                    
                
adodb-sybase.inc.php https://github.com/roycocup/Tests.git | PHP | 418 lines
                    
1<?php
                    
2/* 
                    
99		$this->database = $dbName;
                    
100		$this->databaseName = $dbName; # obsolete, retained for compat with older adodb versions
                    
101		if ($this->_connectionID) {
                    
116		else
                    
117			$this->_errorMsg = isset($php_errormsg) ? $php_errormsg : 'SYBASE error messages not supported on this platform';
                    
118		return $this->_errorMsg;
                    
121	// returns true or false
                    
122	function _connect($argHostname, $argUsername, $argPassword, $argDatabasename)
                    
123	{
                    
127		if ($this->_connectionID === false) return false;
                    
128		if ($argDatabasename) return $this->SelectDB($argDatabasename);
                    
129		return true;	
                    
137		if ($this->_connectionID === false) return false;
                    
138		if ($argDatabasename) return $this->SelectDB($argDatabasename);
                    
139		return true;	
                    
                
postMash.php https://gitlab.com/Gashler/sg | PHP | 345 lines
                    
82		foreach ($pageposts as $page): //list pages, [the 'li' ID must be pm_'page ID'] ?>
                    
83			<li id="pm_<?php echo $page->ID; ?>"<?php if($page->post_status == "draft"){ echo ' class="remove"'; } //if page is draft, add class remove ?>>
                    
84				<span style="float:right;">
                    
93				_e('');
                    
94			} ?></span><span class="title"><?php echo $page->post_title;?></span>
                    
95				<span class="postMash_box">
                    
98						id:<?php echo $page->ID;?>
                    
99						[<a href="<?php echo get_bloginfo('wpurl').'/wp-admin/post.php?action=edit&post='.$page->ID; ?>" title="Edit This Post">edit</a>]
                    
100						<?php if($switchDraftToPublishFeature): ?>
                    
143			<form action="" method="get" enctype="multipart/form-data">
                    
144			<input type="hidden" name="page" value="postmash-filtered/postMash.php"  />
                    
145			<select name='m'>
                    
145			<select name='m'>
                    
146			<option<?php selected( $m, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>
                    
147			<?php
                    
                
view.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 277 lines
                    
2!defined('A_P') && exit('Forbidden');
                    
3$basename = 'apps.php?q='.$q.'&uid='.$uid.'&';
                    
4
                    
6//* include_once pwCache::getPath(D_P . 'data/bbscache/o_config.php');
                    
7pwCache::getData(D_P . 'data/bbscache/o_config.php');
                    
8$whiteList = array(
                    
28	$page = validatePage($page,$pageCount);
                    
29	$pages = numofpage($count, $page,$pageCount, "{$basename}a=$a&uid=$uid&");
                    
30
                    
115	if(!is_array($result)){
                    
116		$result == 'mode_o_photos_private_3' && refreshto($basename, 'mode_o_photos_private_3');
                    
117		Showmsg($result);
                    
125	$page = validatePage($page,$pageCount);
                    
126	$pages = numofpage($count, $page,$pageCount, "{$basename}a=$a&aid=$aid&uid=$uid&");
                    
127	
                    
                
Xlsx.php https://gitlab.com/Ltaimao/wecenter | PHP | 266 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Document_OpenXml */
                    
25//require_once 'Zend/Search/Lucene/Document/OpenXml.php';
                    
26
                    
27/** Zend_Xml_Security */
                    
28//require_once 'Zend/Xml/Security.php';
                    
29
                    
85        if (!class_exists('ZipArchive', false)) {
                    
86            //require_once 'Zend/Search/Lucene/Exception.php';
                    
87            throw new Zend_Search_Lucene_Exception('MS Office documents processing functionality requires Zip extension to be loaded');
                    
102        if ($relationsXml === false) {
                    
103            //require_once 'Zend/Search/Lucene/Exception.php';
                    
104            throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.');
                    
109                // Found office document! Read relations for workbook...
                    
110                $workbookRelations = Zend_Xml_Security::scan($package->getFromName( $this->absoluteZipPath(dirname($rel["Target"]) . "/_rels/" . basename($rel["Target"]) . ".rels")) );
                    
111                $workbookRelations->registerXPathNamespace("rel", Zend_Search_Lucene_Document_OpenXml::SCHEMA_RELATIONSHIP);
                    
                
file.php https://github.com/boluak/lifefm-github.git | PHP | 379 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: file.php 10707 2008-08-21 09:52:47Z eddieajau $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
165			} else {
                    
166				$filename	= basename($file);
                    
167				JError::raiseWarning('SOME_ERROR_CODE', JText::_('Delete failed') . ": '$filename'");
                    
304	 *
                    
305	 * @param string $src The name of the php (temporary) uploaded file
                    
306	 * @param string $dest The path (including filename) to move the uploaded file to
                    
                
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));
                    
75        }
                    
76        if (!file_put_contents($bootstrap_php, implode("\n", $lines)))
                    
77            die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n");
                    
151     * exclude - (string | array<string>) patterns that will be matched
                    
152     *      using the PHP `fnmatch` function. If any file or folder matches,
                    
153     *      it will be excluded from the copy procedure. Omit or use false
                    
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'),
                    
                
loadEventos.php https://gitlab.com/talueses/SIPVE | PHP | 274 lines
                    
42 */
                    
43session_start(); // start up your PHP session!
                    
44require_once "../controller/monitorremoto.control.php";
                    
64    //echo "<div align=\"left\"><pre>".print_r($eventos,true)."</pre></div>";
                    
65    $linkVerTodos = basename($_SERVER["PHP_SELF"])."?idcamara=".$_REQUEST["idcamara"]."&accion=verTodos";
                    
66    ?>
                    
146                    var evento   = aux[2];
                    
147                    var idcamara = "<?php echo $_REQUEST["idcamara"]?>";
                    
148                    filaseleccionada.className='';
                    
183                        url: "getCamaraStatus.php",
                    
184                        data: "idcamara=<?php echo $eventos[0]->idcamara?>&idservidor=<?php echo $eventos[0]->idservidor?>",
                    
185                        success: function(html){
                    
209                                <div id="guardRunningImg" align="left" style="width: 40px;float:left;display: none;" >
                    
210                                    <img src="../images/Info-red-20.png" title="Existe una guardia activa para la c&aacute;mara <?php echo $eventos[0]->camara;?>." onclick="alert('Existe una guardia activa para la c&aacute;mara <?php echo $eventos[0]->camara;?>')" style="cursor: help;"/>
                    
211                                </div>
                    
                
class.extensionmanager.php https://github.com/scottkf/nicholscommunications.git | PHP | 483 lines
                    
25        function __getDriverPath($name){
                    
26	        return $this->__getClassPath($name) . '/extension.driver.php';
                    
27        }
                    
127				foreach(glob(EXTENSIONS . "/{$extension_handle}/fields/field.*.php") as $file){
                    
128					$type = preg_replace(array('/^field\./i', '/\.php$/i'), NULL, basename($file));
                    
129					if(Symphony::Database()->fetchVar('count', 0, "SELECT COUNT(*) AS `count` FROM `tbl_fields` WHERE `type` = '{$type}'") > 0){
                    
133								"The field '%s', provided by the Extension '%s', is currently in use. Please remove it from your sections prior to uninstalling or disabling.",
                    
134								array(basename($file), $about['name'])
                    
135							)
                    
144				
                    
145					$handle = preg_replace(array('/^data\./i', '/\.php$/i'), NULL, basename($file));
                    
146					if(Symphony::Database()->fetchVar('count', 0, "SELECT COUNT(*) AS `count` FROM `tbl_pages` WHERE `data_sources` REGEXP '[[:<:]]{$handle}[[:>:]]' ") > 0){
                    
160				foreach(glob(EXTENSIONS . "/{$extension_handle}/events/event.*.php") as $file){
                    
161					$handle = preg_replace(array('/^event\./i', '/\.php$/i'), NULL, basename($file));
                    
162					if(Symphony::Database()->fetchVar('count', 0, "SELECT COUNT(*) AS `count` FROM `tbl_pages` WHERE `events` REGEXP '[[:<:]]{$handle}[[:>:]]' ") > 0){
                    
                
edit_entry_handler.php https://github.com/jessfishenden/mrbs-mcr.git | PHP | 512 lines
                    
57
                    
58// First get the return URL basename, having stipped off the old query string
                    
59//   (1) It's possible that $returl could be empty, for example if edit_entry.php had been called
                    
62$returl_base   = explode('?', basename($returl));
                    
63if (empty($returl) || ($returl_base[0] == "edit_entry.php") || ($returl_base[0] == "edit_entry_handler.php"))
                    
64{
                    
70    case "week":
                    
71      $returl = "week.php";
                    
72      break;
                    
113?>
                    
114       <h1><?php echo get_vocab('invalid_booking'); ?></h1>
                    
115       <p>
                    
115       <p>
                    
116         <?php echo get_vocab('must_set_description'); ?>
                    
117       </p>
                    
                
Thumbnail.php https://gitlab.com/manuvelasco/agostoliquida | PHP | 333 lines
                    
1<?php
                    
2/*
                    
117        header('Etag: ' . $etag);
                    
118        header("Content-type: " . $mime . "; name=\"" . CKFinder_Connector_Utils_Misc::mbBasename($thumbFilePath) . "\"");
                    
119        header("Last-Modified: ".gmdate('D, d M Y H:i:s', $mtime) . " GMT");
                    
217                    /*
                    
218                    * This is sad that PHP doesn't support bitmaps.
                    
219                    * Anyway, we will use our custom function at least to display thumbnails.
                    
243        {
                    
244            $bg = imagecolorallocatealpha($oThumbImage, 255, 255, 255, 127); // (PHP 4 >= 4.3.2, PHP 5)
                    
245            imagefill($oThumbImage, 0, 0 , $bg);
                    
                
wp-seo-main.php https://gitlab.com/iamgraeme/royalmile | PHP | 480 lines
                    
22if ( ! defined( 'WPSEO_BASENAME' ) ) {
                    
23	define( 'WPSEO_BASENAME', plugin_basename( WPSEO_FILE ) );
                    
24}
                    
41			'walker_category' => ABSPATH . 'wp-includes/category-template.php',
                    
42			'pclzip'          => ABSPATH . 'wp-admin/includes/class-pclzip.php',
                    
43		);
                    
205	if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
                    
206		require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
                    
207	}
                    
208
                    
209	if ( is_plugin_active_for_network( plugin_basename( WPSEO_FILE ) ) ) {
                    
210		switch_to_blog( $blog_id );
                    
229	else {
                    
230		load_plugin_textdomain( 'wordpress-seo', false, dirname( WPSEO_BASENAME ) . '/languages/' );
                    
231	}
                    
                
config.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 396 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
15$config['base_url'] .= '://'.$_SERVER['HTTP_HOST'];
                    
16$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
                    
17
                    
22|
                    
23| Typically this will be your index.php file, unless you've renamed it to
                    
24| something else. If you are using mod_rewrite to remove the page set this
                    
176| invoke your controllers and its functions:
                    
177| example.com/index.php?c=controller&m=function
                    
178|
                    
202|	0 = Disables logging, Error logging TURNED OFF
                    
203|	1 = Error Messages (including PHP errors)
                    
204|	2 = Debug Messages
                    
229|
                    
230| Each item that is logged has an associated date. You can use PHP date
                    
231| codes to set your own date formatting
                    
                
StaticTest.php https://github.com/tanduy/zf.git | PHP | 397 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27require_once dirname(__FILE__) . '/../../../TestHelper.php';
                    
28
                    
28
                    
29PHPUnit_Util_Filter::addFileToFilter(__FILE__);
                    
30
                    
33 */
                    
34require_once 'Zend/Db.php';
                    
35
                    
38 */
                    
39require_once 'Zend/Config.php';
                    
40
                    
43 */
                    
44require_once 'Zend/Db/Adapter/Static.php';
                    
45
                    
                
install.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 101 lines
                    
36$string['chooselanguagesub'] = 'Por favor, seleccione un idioma para el proceso de instalación. Este idioma se usará también como idioma por defecto del sitio, si bien puede cambiarse más adelante.';
                    
37$string['clialreadyconfigured'] = 'El archivo de configuración config.php ya existe. Por favor, use admin/cli/install_database.php para instalar Moodle para este sitio';
                    
38$string['clialreadyinstalled'] = 'El archivo de configuración config.php ya existe. Por favor, utilice admin/cli/install_database.php para actualizar Moodle para este sitio.';
                    
47$string['environmenthead'] = 'Comprobando su entorno';
                    
48$string['environmentsub2'] = 'Cada versión de Moodle tiene algún requisito mínimo de la versión de PHP y un número obligatorio de extensiones de PHP. Una comprobación del entorno completo se realiza antes de cada instalación y actualización. Por favor, póngase en contacto con el administrador del servidor si no sabe cómo instalar la nueva versión o habilitar las extensiones PHP.';
                    
49$string['errorsinenvironment'] = '¡La comprobación del entorno falló!';
                    
85$string['pathswrongadmindir'] = 'El directorio admin no existe';
                    
86$string['phpextension'] = 'Extensión PHP {$a}';
                    
87$string['phpversion'] = 'Versión PHP';
                    
87$string['phpversion'] = 'Versión PHP';
                    
88$string['phpversionhelp'] = '<p>Moodle requiere una versión de PHP de al menos 5.6.5 o 7.1 (7.0.x tiene algunas limitaciones del motor).</p>
                    
89<p>En este momento está ejecutando la versión {$a}</p>
                    
89<p>En este momento está ejecutando la versión {$a}</p>
                    
90<p>Usted debe actualizar PHP o trasladarse a otro servidor con una versión más reciente de PHP<br />';
                    
91$string['welcomep10'] = '{$a->installername} ({$a->installerversion})';
                    
                
CssOptimizerUnitTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 297 lines
                    
1<?php
                    
2
                    
30   *
                    
31   * @var \Drupal\Core\File\FileUrlGeneratorInterface|\PHPUnit_Framework_MockObject_MockObject
                    
32   */
                    
66          'browsers' => ['IE' => TRUE, '!IE' => TRUE],
                    
67          'basename' => 'css_input_without_import.css',
                    
68        ],
                    
89          'browsers' => ['IE' => TRUE, '!IE' => TRUE],
                    
90          'basename' => 'css_input_with_import.css',
                    
91        ],
                    
104          'browsers' => ['IE' => TRUE, '!IE' => TRUE],
                    
105          'basename' => 'comment_hacks.css',
                    
106        ],
                    
121          'browsers' => ['IE' => TRUE, '!IE' => TRUE],
                    
122          'basename' => 'css_input_with_import.css',
                    
123        ],
                    
                
file.php https://github.com/michaelmcandrew/vaw.git | PHP | 358 lines
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.01 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 *
                    
18 * @author      Bertrand Mansion <bmansion@mamasam.com>
                    
19 * @author      Alexey Borzov <avb@php.net>
                    
20 * @copyright   2001-2009 The PHP Group
                    
20 * @copyright   2001-2009 The PHP Group
                    
21 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
22 * @version     CVS: $Id: file.php,v 1.25 2009/04/04 21:34:02 avb Exp $
                    
                
QFileUploader.class.php https://github.com/apselico/qcodo.git | PHP | 270 lines
                    
1<?php
                    
2	class QFileUploader extends QControl {
                    
138			// Save the File in a slightly more permanent temporary location
                    
139			$strTempFilePath = $this->strTemporaryUploadFolder . '/' . basename($this->strFilePath) . rand(1000, 9999);
                    
140			copy($this->strFilePath, $strTempFilePath);
                    
                
HttpTest.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: HttpTest.php 25086 2012-11-06 21:14:31Z rob $
                    
21 */
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_File_Transfer_Adapter_HttpTest::main");
                    
26}
                    
28require_once 'Zend/File/Transfer/Adapter/Http.php';
                    
29require_once 'Zend/Filter/BaseName.php';
                    
30require_once 'Zend/Filter/StringToLower.php';
                    
31require_once 'Zend/Loader/PluginLoader.php';
                    
32require_once 'Zend/Validate/File/Count.php';
                    
33require_once 'Zend/Validate/File/Extension.php';
                    
33require_once 'Zend/Validate/File/Extension.php';
                    
34require_once 'Zend/Validate/File/Upload.php';
                    
35
                    
                
parsing2.ml https://github.com/facebook/pfff.git | OCaml | 412 lines
                    
51  | Js  of Parse_js.program_and_tokens
                    
52  | Php of Parse_php.program_with_comments
                    
53  | Opa of Parse_opa.program_and_tokens
                    
120         * a subdir in which case the root will not be the same.
                    
121         * It's a good approximation to just look at the basename.
                    
122         * The only false positive we will get if another file,
                    
127         *)
                    
128        Filename.basename e.Db.e_file =$= Filename.basename file &&
                    
129        (* some file have both a function and class with the same name *)
                    
200  match ftype with
                    
201  | FT.PL (FT.Web (FT.Php _)) ->
                    
202      tokens_with_categ_of_file_helper 
                    
204          Common.save_excursion Flag_parsing_php.error_recovery true (fun () ->
                    
205            let ((ast, toks), _stat) = Parse_php.parse file in
                    
206            (* todo: use database_light if given? we could so that
                    
                
Abstract.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 284 lines
                    
31     *
                    
32     * @param string $baseName
                    
33     * @param array $options
                    
48	
                    
49	 public function createEntityTablesBelow16($baseName, array $options=array())
                    
50    {        
                    
55DROP TABLE IF EXISTS `{$baseName}`;
                    
56CREATE TABLE `{$baseName}` (
                    
57`entity_id` int(10) unsigned NOT NULL auto_increment,
                    
67CONSTRAINT `FK_{$baseName}_type` FOREIGN KEY (`entity_type_id`) REFERENCES `{$this->getTable('eav/entity_type')}` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
                    
68CONSTRAINT `FK_{$baseName}_store` FOREIGN KEY (`store_id`) REFERENCES `{$this->getTable('core/store')}` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
                    
69) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
                    
101" : "")."
                    
102CONSTRAINT `FK_{$baseName}_{$type}` FOREIGN KEY (`entity_id`) REFERENCES `{$baseName}` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
                    
103CONSTRAINT `FK_{$baseName}_{$type}_attribute` FOREIGN KEY (`attribute_id`) REFERENCES `{$this->getTable('eav/attribute')}` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
                    
                
postviews-options.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 309 lines
                    
105		case 'end-UNINSTALL':
                    
106			$deactivate_url = 'plugins.php?action=deactivate&amp;plugin=wp-postviews/wp-postviews.php';
                    
107			if(function_exists('wp_nonce_url')) { 
                    
135<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
                    
136<form method="post" action="<?php echo admin_url('admin.php?page='.plugin_basename(__FILE__)); ?>">
                    
137<div class="wrap">
                    
193				<select name="views_display_home" size="1">
                    
194					<option value="0"<?php selected('0', $views_options['display_home']); ?>><?php _e('Display to everyone', 'wp-postviews'); ?></option>
                    
195					<option value="1"<?php selected('1', $views_options['display_home']); ?>><?php _e('Display to registered users only', 'wp-postviews'); ?></option>
                    
195					<option value="1"<?php selected('1', $views_options['display_home']); ?>><?php _e('Display to registered users only', 'wp-postviews'); ?></option>
                    
196					<option value="2"<?php selected('2', $views_options['display_home']); ?>><?php _e('Don\'t display on home page', 'wp-postviews'); ?></option>
                    
197				</select>
                    
258<!-- Uninstall WP-PostViews -->
                    
259<form method="post" action="<?php echo admin_url('admin.php?page='.plugin_basename(__FILE__)); ?>">
                    
260<div class="wrap"> 
                    
                
Misc.php https://gitlab.com/saalmanhussain/scayle_repo | PHP | 388 lines
                    
1<?php
                    
2/*
                    
30        if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) {
                    
31            if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php"))
                    
32                $langCode = $_GET['langCode'];
                    
33        }
                    
34        include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php";
                    
35        if ($number) {
                    
64    /**
                    
65     * @link http://pl.php.net/manual/en/function.imagecopyresampled.php
                    
66     * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
                    
110    /**
                    
111     * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
                    
112     * function posted by e dot a dot schultz at gmail dot com
                    
170    /**
                    
171     * convert shorthand php.ini notation into bytes, much like how the PHP source does it
                    
172     * @link http://pl.php.net/manual/en/function.ini-get.php
                    
                
BakeShell.php https://gitlab.com/alexandresgv/siteentec | PHP | 317 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         0.1.0
                    
12 * @since         0.1.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
27 *
                    
28 * Bake is CakePHP's code generation script, which can help you kickstart
                    
29 * application development by writing fully functional skeleton controllers,
                    
178            }
                    
179            $name = $item->getBasename('.php');
                    
180            $candidates[] = $namespace . '\Shell\Task\\' . $name;
                    
                
PHP.php https://gitlab.com/karora/awl | PHP | 333 lines
                    
67     *
                    
68     * PHPUnit_Util_PHP::$phpBinary contains the path to the PHP
                    
69     * interpreter.
                    
147
                    
148        return new PHPUnit_Util_PHP_Default;
                    
149    }
                    
151    /**
                    
152     * Runs a single job (PHP code) using a separate PHP process.
                    
153     *
                    
159     */
                    
160    public function runJob($job, PHPUnit_Framework_Test $test = NULL, PHPUnit_Framework_TestResult $result = NULL)
                    
161    {
                    
223     */
                    
224    protected function processChildResult(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result, $stdout, $stderr)
                    
225    {
                    
                
theme-settings.php https://gitlab.com/manuvelasco/agostoliquida | PHP | 416 lines
                    
1<?php
                    
2
                    
400        $parts = pathinfo($file->filename);
                    
401        $destination = 'public://' . $parts['basename'];
                    
402        $file->status = FILE_STATUS_PERMANENT;
                    
                
install.php https://github.com/andyjdavis/moodle.git | PHP | 79 lines
                    
1<?php
                    
2// This file is part of Moodle - https://moodle.org/
                    
21 * needed during the very first steps of installation. This file was
                    
22 * generated automatically by export-installer.php (which is part of AMOS
                    
23 * {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
                    
35$string['chooselanguagesub'] = 'Виберіть мову ТІЛЬКИ для процесу встановлення. Ви зможете вибрати мову для сайту та користувачів пізніше.';
                    
36$string['clialreadyconfigured'] = 'Файл config.php вже створено, будь ласка, використовуйте admin/cli/install_database.php, якщо ви хочете встановити цей сайт.';
                    
37$string['clialreadyinstalled'] = 'Файл config.php вже створено, будь ласка, використовуйте admin/cli/upgrade.php, якщо ви хочете оновити ваш сайт.';
                    
39$string['databasehost'] = 'Сервер бази даних';
                    
40$string['databasename'] = 'Ім’я бази даних';
                    
41$string['databasetypehead'] = 'Виберіть драйвер бази даних';
                    
50$string['langdownloaderror'] = 'На жаль, мова "{$a}" не встановлена. Встановлення буде продовжено англійською мовою.';
                    
51$string['memorylimithelp'] = '<p>Обмеження пам\'яті в PHP на сервері зараз встановлено в {$a}.</p> <p>Це може стати проблемою при подальшій роботі Moodle, коли ви будете мати багато курсів, модулів та користувачів.</p> <p>Ми рекомендуємо сконфігурувати РНР на обмеження пам\'яті не менше 16 Мб. Це можна зробити шляхом:</p> <ol> <li>перекомпіляції PHP з параметром <i>--enable-memory-limit</i>. Це надасть можливість Moodle встановити обмеження пам\'яті самостійно.</li> <li>встановлення в php.ini змінної <b>memory_limit</b> порядка 16Mб. Якщо ви не маєте доступу до цього файлу попросіть адміністратора зробити це для вас.</li> <li>створення в корні сайту файлу .htaccess, куди добавити наступний рядок: <p><blockquote>php_value memory_limit 16M</blockquote></p> <p>Але на деяких серверах це призведе до помилок на <b>всіх</b> сторінках, тоді вам потрібно видалити .htaccess.</p></li> </ol>';
                    
52$string['paths'] = 'Шляхи';
                    
70$string['phpversion'] = 'Версія РНР';
                    
71$string['phpversionhelp'] = '<p>Moodle потребує PHP версії не менше ніж 4.3.0 або 5.1.0 (версії 5.0.x мають деякі відомі проблеми).</p> <p>Наразі ви працюєте з версією {$a}</p> <p>Вам потрібно оновити PHP або змінити хост з новішою версією PHP!<br /> (У разі 5.0.x ви також можете повернутися до версії 4.4.x)</p>';
                    
72$string['welcomep10'] = '{$a->installername} ({$a->installerversion})';
                    
                
CaptureCache.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 387 lines
                    
1<?php
                    
2/**
                    
31
                    
32            // http://php.net/manual/function.ob-start.php
                    
33            // -> If output_callback  returns FALSE original input is sent to the browser.
                    
210
                    
211        return basename($pageId);
                    
212    }
                    
328            while (!file_exists($path)) {
                    
329                array_unshift($parts, basename($path));
                    
330                $nextPath = dirname($path);
                    
                
class.upgrader.php https://gitlab.com/billyprice1/osTicket | PHP | 433 lines
                    
1<?php
                    
2/*********************************************************************
                    
2/*********************************************************************
                    
3    class.upgrader.php
                    
4
                    
16
                    
17require_once INCLUDE_DIR.'class.setup.php';
                    
18require_once INCLUDE_DIR.'class.migrater.php';
                    
266        if (!isset($info['version']))
                    
267            $info['version'] = substr(basename($patch), 9, 8);
                    
268        return $info;
                    
307
                    
308        $task_file = $this->getSQLDir() . "{$this->phash}.task.php";
                    
309        if (!file_exists($task_file))
                    
373
                    
374            $phash = substr(basename($patch), 0, 17);
                    
375            $shash = substr($phash, 9, 8);
                    
                
_updater.php https://github.com/TV4/Bambuser-Auto-Poster.git | PHP | 354 lines
                    
1<?php
                    
2
                    
47		$defaults = array(
                    
48			'slug' => plugin_basename(__FILE__),
                    
49			'proper_folder_name' => dirname( plugin_basename(__FILE__) ),
                    
253	public function get_plugin_data() {
                    
254		include_once( ABSPATH.'/wp-admin/includes/plugin.php' );
                    
255		$data = get_plugin_data( WP_PLUGIN_DIR.'/'.$this->config['slug'] );
                    
                
shortcodes.php https://gitlab.com/webkod3r/tripolis | PHP | 242 lines
                    
1<?php
                    
2
                    
83		$pages = explode(',', $atts['filters']);
                    
84		$currSlug = basename(get_permalink());
                    
85		$currPageID = (string) get_the_ID();
                    
210
                    
211			// Get phpQuery
                    
212			if(!class_exists('phpQuery')) {
                    
213				libxml_use_internal_errors(true);
                    
214				include LS_ROOT_PATH.'/helpers/phpQuery.php';
                    
215			}
                    
216
                    
217			include LS_ROOT_PATH.'/config/defaults.php';
                    
218			include LS_ROOT_PATH.'/includes/slider_markup_init.php';
                    
218			include LS_ROOT_PATH.'/includes/slider_markup_init.php';
                    
219			include LS_ROOT_PATH.'/includes/slider_markup_html.php';
                    
220			$lsInit = implode('', $lsInit);
                    
                
install.php https://bitbucket.org/moodle/moodle.git | PHP | 101 lines
                    
35$string['chooselanguagesub'] = 'Por favor, seleccione un idioma para el proceso de instalación. Este idioma se usará también como idioma por defecto del sitio, si bien puede cambiarse más adelante.';
                    
36$string['clialreadyconfigured'] = 'El archivo de configuración config.php ya existe. Por favor, utilice admin/cli/install_database.php para instalar Moodle en este sitio.';
                    
37$string['clialreadyinstalled'] = 'El archivo de configuración config.php ya existe. Por favor, utilice admin/cli/install_database.php para actualizar Moodle en este sitio.';
                    
47$string['environmenthead'] = 'Comprobando su entorno';
                    
48$string['environmentsub2'] = 'Cada versión de Moodle tiene algún requisito mínimo de la versión de PHP y un número obligatorio de extensiones de PHP.
                    
49Una comprobación del entorno completo se realiza antes de cada instalación y actualización. Por favor, póngase en contacto con el administrador del servidor si no sabes cómo instalar la nueva versión o habilitar las extensiones PHP.';
                    
86$string['pathswrongadmindir'] = 'El directorio admin no existe';
                    
87$string['phpextension'] = 'Extensión PHP {$a}';
                    
88$string['phpversion'] = 'Versión PHP';
                    
88$string['phpversion'] = 'Versión PHP';
                    
89$string['phpversionhelp'] = '<p>Moodle requiere una versión de PHP que sea al menos la 5.6.5 o 7.1 (7.0.x tiene algunas limitaciones del motor).</p>
                    
90<p>En este momento está ejecutando la versión {$a}.</p>
                    
90<p>En este momento está ejecutando la versión {$a}.</p>
                    
91<p>Debe actualizar PHP o trasladarse a otro servidor con una versión más reciente de PHP.</p>';
                    
92$string['welcomep10'] = '{$a->installername} ({$a->installerversion})';
                    
                
Xlsx.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 263 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Xlsx.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
24/** Zend_Search_Lucene_Document_OpenXml */
                    
25require_once 'Zend/Search/Lucene/Document/OpenXml.php';
                    
26
                    
82        if (!class_exists('ZipArchive', false)) {
                    
83            require_once 'Zend/Search/Lucene/Exception.php';
                    
84            throw new Zend_Search_Lucene_Exception('MS Office documents processing functionality requires Zip extension to be loaded');
                    
99        if ($relationsXml === false) {
                    
100            require_once 'Zend/Search/Lucene/Exception.php';
                    
101            throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.');
                    
106                // Found office document! Read relations for workbook...
                    
107                $workbookRelations = simplexml_load_string($package->getFromName( $this->absoluteZipPath(dirname($rel["Target"]) . "/_rels/" . basename($rel["Target"]) . ".rels")) );
                    
108                $workbookRelations->registerXPathNamespace("rel", Zend_Search_Lucene_Document_OpenXml::SCHEMA_RELATIONSHIP);
                    
                
outreachpunchcard.php https://github.com/SimonCoopey/ThinkUp.git | PHP | 225 lines
                    
1<?php
                    
2/*
                    
9 *
                    
10 * ThinkUp/webapp/plugins/insightsgenerator/insights/outreachpunchcard.php
                    
11 *
                    
44        $since_date = date("Y-m-d");
                    
45        $filename = basename(__FILE__, ".php");
                    
46        $regenerate = false;
                    
208                $my_insight->emphasis = Insight::EMPHASIS_HIGH;
                    
209                $my_insight->filename = basename(__FILE__, ".php");
                    
210                // $my_insight->related_data = $punchcard;
                    
                
wc-formatting-functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 607 lines
                    
1<?php
                    
2/**
                    
37	if ( isset( $parts['path'] ) ) {
                    
38		return basename( $parts['path'] );
                    
39	}
                    
157	// @codeCoverageIgnoreStart
                    
158	if ( version_compare( phpversion(), '5.3', '<' ) ) {
                    
159		$tax = round( $tax, $dp );
                    
210/**
                    
211 * Convert a float to a string without locale formatting which PHP adds when changing floats to strings
                    
212 * @param  float $float
                    
236/**
                    
237 * Format a decimal with PHP Locale settings
                    
238 * @param  string $value
                    
402 *
                    
403 * Adapted from http://www.php.net/manual/en/function.timezone-name-from-abbr.php#89155
                    
404 *
                    
                
smarty_internal_cacheresource_file.php https://gitlab.com/staging06/myproject | PHP | 300 lines
                    
1<?php
                    
2/**
                    
62        }
                    
63        $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';
                    
64        $cached->timestamp = @filemtime($cached->filepath);
                    
185            if ($tpl->source->exists) {
                    
186                $_resourcename_parts = basename(str_replace('^', '/', $tpl->cached->filepath));
                    
187            } else {
                    
196            foreach ($_cache as $_file) {
                    
197				if (substr(basename($_file->getPathname()), 0, 1) == '.' || strpos($_file, '.svn') !== false || strpos($_file, 'index.php') !== false) {
                    
198                    continue;
                    
262    {
                    
263        if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
                    
264            clearstatcache(true, $cached->lock_id);
                    
                
theme.php https://bitbucket.org/nlyn/mr.-peacocks.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
56	if ( empty( $redirect ) )
                    
57		$redirect = wp_nonce_url('themes.php?action=delete&template=' . $template, 'delete-theme_' . $template);
                    
58	if ( false === ($credentials = request_filesystem_credentials($redirect)) ) {
                    
61		if ( ! empty($data) ){
                    
62			include_once( ABSPATH . 'wp-admin/admin-header.php');
                    
63			echo $data;
                    
63			echo $data;
                    
64			include( ABSPATH . 'wp-admin/admin-footer.php');
                    
65			exit;
                    
74		if ( ! empty($data) ) {
                    
75			include_once( ABSPATH . 'wp-admin/admin-header.php');
                    
76			echo $data;
                    
183
                    
184			if ( 'functions.php' == $basename )
                    
185				continue;
                    
                
config.php https://github.com/k001/ACCOUNT--MANAGEMENT-PANEL.git | PHP | 332 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
14$config['base_url'] = "http://".$_SERVER['HTTP_HOST'];
                    
15$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
                    
16
                    
23|
                    
24| Typically this will be your index.php file, unless you've renamed it to
                    
25| something else. If you are using mod_rewrite to remove the page set this
                    
28*/
                    
29$config['index_page'] = "index.php";
                    
30
                    
146| invoke your controllers and its functions:
                    
147| example.com/index.php?c=controller&m=function
                    
148|
                    
169|	0 = Disables logging, Error logging TURNED OFF
                    
170|	1 = Error Messages (including PHP errors)
                    
171|	2 = Debug Messages
                    
                
upload.php https://gitlab.com/hschoenburg/tlworks2 | PHP | 381 lines
                    
52				$this->errors->add('form-validation', __('Uploaded file is empty', 'wp_all_import_plugin'));
                    
53			} elseif ( ! preg_match('%\W(xml|gzip|zip|csv|gz|json|txt|dat|psv|sql|xls|xlsx)$%i', trim(basename($this->file)))) {				
                    
54				$this->errors->add('form-validation', __('Uploaded file must be XML, CSV, ZIP, GZIP, GZ, JSON, SQL, TXT, DAT or PSV', 'wp_all_import_plugin'));
                    
56										
                    
57				if (!class_exists('PclZip')) include_once(PMXI_Plugin::ROOT_DIR.'/libraries/pclzip.lib.php');
                    
58
                    
74							{
                    
75								if ( strpos(basename($unzipped_file['stored_filename']), 'WP All Import Template') === 0 || strpos(basename($unzipped_file['stored_filename']), 'templates_') === 0 )
                    
76								{
                    
194					$source = array(
                    
195						'name' => basename($this->file),
                    
196						'type' => 'upload',
                    
218				$source = array(
                    
219					'name' => basename($this->file),
                    
220					'type' => 'upload',
                    
                
tags.php https://bitbucket.org/dkrzos/phc.git | PHP | 292 lines
                    
1<?php
                    
2/**
                    
6
                    
7if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { 	die('You are not allowed to call this page directly.'); }
                    
8
                    
29// Som useful variables
                    
30$admin_base_url = admin_url() . 'admin.php?page=nggallery-tags';
                    
31$nb_tags = 50; // Number of tags to show on a single page
                    
97<div class="wrap ngg_wrap">
                    
98	<?php include('templates/social_media_buttons.php'); ?>
                    
99    <?php screen_icon( 'nextgen-gallery' ); ?>
                    
99    <?php screen_icon( 'nextgen-gallery' ); ?>
                    
100	<h2><?php _e('Manage image tags', 'nggallery'); ?></h2>
                    
101
                    
101
                    
102	<?php if ($action_status['message']!='') : ?>
                    
103	<div id="message" class="<?php echo ($action_status['status']=='ok' ? 'updated' : $action_status['status']); ?> fade">
                    
                
TemplateList.php https://gitlab.com/gideonmarked/atls-express | PHP | 388 lines
                    
1<?php namespace Cms\Widgets;
                    
2
                    
284        if ($titleProperty) {
                    
285            return $item->$titleProperty ?: basename($item->getFileName());
                    
286        }
                    
287
                    
288        return basename($item->getFileName());
                    
289    }
                    
                
global.inc.php https://github.com/drietsch/newcms.git | PHP | 176 lines
                    
1<?php
                    
2
                    
24/**
                    
25 * Language file: global.inc.php
                    
26 * Provides language strings.
                    
28 */
                    
29include_once(dirname(__FILE__)."/enc_".basename(__FILE__));
                    
30
                    
                
permissions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 511 lines
                    
1<?php
                    
2if( !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: permissions.php 6053 2012-06-05 12:36:21Z Milbo $
                    
6* @package VirtueMart
                    
10* @copyright Copyright (C) 2010-2011 Virtuemart Team - All rights reserved.
                    
11* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
12* VirtueMart is free software. This version may have been modified pursuant
                    
15* other free or open source software licenses.
                    
16* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
17*
                    
375	/**
                    
376	 * Function from an old Mambo phpgacl integration function
                    
377	 * @deprecated (but necessary, sigh!)
                    
510
                    
511//pure php no closing tag
                    
                
Xlsx.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 263 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Xlsx.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
24/** Zend_Search_Lucene_Document_OpenXml */
                    
25require_once 'Zend/Search/Lucene/Document/OpenXml.php';
                    
26
                    
82        if (!class_exists('ZipArchive', false)) {
                    
83            require_once 'Zend/Search/Lucene/Exception.php';
                    
84            throw new Zend_Search_Lucene_Exception('MS Office documents processing functionality requires Zip extension to be loaded');
                    
99        if ($relationsXml === false) {
                    
100            require_once 'Zend/Search/Lucene/Exception.php';
                    
101            throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.');
                    
106                // Found office document! Read relations for workbook...
                    
107                $workbookRelations = simplexml_load_string($package->getFromName( $this->absoluteZipPath(dirname($rel["Target"]) . "/_rels/" . basename($rel["Target"]) . ".rels")) );
                    
108                $workbookRelations->registerXPathNamespace("rel", Zend_Search_Lucene_Document_OpenXml::SCHEMA_RELATIONSHIP);
                    
                
resource.php https://github.com/chregu/fluxcms.git | PHP | 322 lines
                    
1<?php
                    
2
                    
130        if (isset($this->props['fileuri'])) {
                    
131            $b = basename($this->props['fileuri']);
                    
132            $p = bx_collections::getFileParts($b);
                    
160        if (isset($this->props['fileuri'])) {
                    
161            $b = basename($this->props['fileuri']);
                    
162            $p = bx_collections::getFileParts($b);
                    
                
settings.php https://gitlab.com/endomorphosis/tactilevision | PHP | 258 lines
                    
86 * Database URL format:
                    
87 *   $db_url = 'mysql://username:password@localhost/databasename';
                    
88 *   $db_url = 'mysqli://username:password@localhost/databasename';
                    
88 *   $db_url = 'mysqli://username:password@localhost/databasename';
                    
89 *   $db_url = 'pgsql://username:password@localhost/databasename';
                    
90 */
                    
114/**
                    
115 * Access control for update.php script
                    
116 *
                    
150 * be set at runtime (ie., when ini_set() occurs), read the PHP
                    
151 * documentation at http://www.php.net/manual/en/ini.php#ini.list
                    
152 * and take a look at the .htaccess file to see which non-runtime
                    
174 * and increase the limits of these variables. For more information, see
                    
175 * http://php.net/manual/en/pcre.configuration.php.
                    
176 */
                    
                
likespike.php https://github.com/SimonCoopey/ThinkUp.git | PHP | 264 lines
                    
1<?php
                    
2/*
                    
7 *
                    
8 * ThinkUp/webapp/plugins/insightsgenerator/insights/likespike.php
                    
9 *
                    
44        $insight_baseline_dao = DAOFactory::getDAO('InsightBaselineDAO');
                    
45        $filename = basename(__FILE__, ".php");
                    
46        $video_dao = DAOFactory::getDAO('VideoDAO');
                    
                
Rename.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
304        if (is_dir($rename['target'])) {
                    
305            $name = basename($rename['source']);
                    
306            $last = $rename['target'][strlen($rename['target']) - 1];
                    
                
import.php https://github.com/m-fuji-0616/vtigercrm-5.1.x-ja.git | PHP | 302 lines
                    
1<?php
                    
2/*********************************************************************************
                    
12
                    
13require_once 'Excel/reader.php';
                    
14require_once('database/DatabaseConnection.php');
                    
35    echo $error;
                    
36    include "fetchfile.php";
                    
37    //unlink($HTTP_POST_FILES['userfile']['tmp_name']);
                    
47      echo $error;
                    
48      include "fetchfile.php";
                    
49      unlink($HTTP_POST_FILES['userfile']['tmp_name']);
                    
57      echo $error;
                    
58      include "fetchfile.php";
                    
59      unlink($HTTP_POST_FILES['userfile']['tmp_name']);
                    
65        $binFile = $_FILES['userfile']['name'];
                    
66        $filename = $uploaddir.basename($binFile);
                    
67        
                    
                
admin-post-navigation.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 290 lines
                    
1<?php
                    
2/**
                    
72	public static function init() {
                    
73		add_action( 'load-post.php', array( __CLASS__, 'register_post_page_hooks' ) );
                    
74	}
                    
76	/**
                    
77	 * Filters/actions to hook on the admin post.php page.
                    
78	 *
                    
84		// Load textdomain
                    
85		load_plugin_textdomain( 'admin-post-navigation', false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' );
                    
86
                    
                
Loader.php https://bitbucket.org/FnTm/codeigniter-zend-sample-application.git | PHP | 329 lines
                    
40     * generate a path hierarchy (e.g., "Zend_Example_Class" will map
                    
41     * to "Zend/Example/Class.php").
                    
42     *
                    
43     * If the file was not found in the $dirs, or if no $dirs were specified,
                    
44     * it will attempt to load it from PHP's include_path.
                    
45     *
                    
97        if (!class_exists($class, false) && !interface_exists($class, false)) {
                    
98            require_once 'Zend/Exception.php';
                    
99            throw new Zend_Exception("File \"$file\" does not exist or class \"$class\" was not found in the file");
                    
103    /**
                    
104     * Loads a PHP file.  This is a wrapper for PHP's include() function.
                    
105     *
                    
162     * Returns TRUE if the $filename is readable, or FALSE otherwise.
                    
163     * This function uses the PHP include_path, where PHP's is_readable()
                    
164     * does not.
                    
                
AdminCurrenciesController.php https://gitlab.com/staging06/myproject | PHP | 364 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
70                'info' => '<div class="alert alert-block"><p>'.$this->l('Use PrestaShop\'s webservice to update your currency exchange rates. However, please use caution: rates are provided as-is.').'<br/>'.$this->l('You can place the following URL in your crontab file, or you can click it yourself regularly:').'</p>
                    
71					<p><strong><a href="'.Tools::getShopDomain(true, true).__PS_BASE_URI__.basename(_PS_ADMIN_DIR_).'/cron_currency_rates.php?secure_key='.md5(_COOKIE_KEY_.Configuration::get('PS_SHOP_NAME')).'" onclick="return !window.open($(this).attr(\'href\'));">'.Tools::getShopDomain(true, true).__PS_BASE_URI__.basename(_PS_ADMIN_DIR_).'/cron_currency_rates.php?secure_key='.md5(_COOKIE_KEY_.Configuration::get('PS_SHOP_NAME')).'</a></strong></p></div>',
                    
72            )
                    
                
smile_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 342 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3/** @global CMain $APPLICATION */
                    
13
                    
14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/socialnetwork/include.php");
                    
15
                    
17
                    
18require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/socialnetwork/prolog.php");
                    
19
                    
70
                    
71				$strFileName = basename($_FILES["IMAGE1"]["name"]);
                    
72				$strFileExt = strrchr($_FILES["IMAGE1"]["name"], ".");
                    
191	if ($save <> '' && $strErrorMessage == '')
                    
192		LocalRedirect("socnet_smile.php?lang=".LANG."&".GetFilterParams("filter_", false));
                    
193}
                    
                
Xlsx.php https://bitbucket.org/kdms/sh-magento.git | PHP | 263 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Xlsx.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
24/** Zend_Search_Lucene_Document_OpenXml */
                    
25#require_once 'Zend/Search/Lucene/Document/OpenXml.php';
                    
26
                    
82        if (!class_exists('ZipArchive', false)) {
                    
83            #require_once 'Zend/Search/Lucene/Exception.php';
                    
84            throw new Zend_Search_Lucene_Exception('MS Office documents processing functionality requires Zip extension to be loaded');
                    
99        if ($relationsXml === false) {
                    
100            #require_once 'Zend/Search/Lucene/Exception.php';
                    
101            throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.');
                    
106                // Found office document! Read relations for workbook...
                    
107                $workbookRelations = simplexml_load_string($package->getFromName( $this->absoluteZipPath(dirname($rel["Target"]) . "/_rels/" . basename($rel["Target"]) . ".rels")) );
                    
108                $workbookRelations->registerXPathNamespace("rel", Zend_Search_Lucene_Document_OpenXml::SCHEMA_RELATIONSHIP);
                    
                
update.php https://bitbucket.org/aukhanev/xdn-wordpress31.git | PHP | 254 lines
                    
1<?php
                    
2/**
                    
12/** WordPress Administration Bootstrap */
                    
13require_once('./admin.php');
                    
14
                    
14
                    
15include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
                    
16
                    
36
                    
37		$url = 'update.php?action=update-selected&amp;plugins=' . urlencode(implode(',', $plugins));
                    
38		$nonce = 'bulk-update-plugins';
                    
54		$title = __('Update Plugin');
                    
55		$parent_file = 'plugins.php';
                    
56		$submenu_file = 'plugins.php';
                    
56		$submenu_file = 'plugins.php';
                    
57		require_once(ABSPATH . 'wp-admin/admin-header.php');
                    
58
                    
                
content-management-edit.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 233 lines
                    
1<?php if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); } ?>
                    
2<div class="wrap">
                    
16{
                    
17	?><div class="error fade"><p><strong><?php _e('Oops, selected details doesnt exist.', 'popupwfb'); ?></strong></p></div><?php
                    
18}
                    
137	<?php echo $Popupwfb_success; ?> <a href="<?php echo POPUPWFB_ADMIN_URL; ?>">
                    
138	<?php _e('Click here', 'popupwfb'); ?></a> <?php _e('to view the details', 'popupwfb'); ?>
                    
139	</strong></p>
                    
164		<?php wp_editor(stripslashes($form['Popupwfb_content']), "Popupwfb_content"); ?>
                    
165		<p><?php _e('Enter your popup message.', 'popupwfb'); ?></p>
                    
166		
                    
200			?>
                    
201			<option value='<?php echo strtoupper($arrDistinct["Popupwfb_group"]); ?>' <?php echo $thisselected; ?>>
                    
202			<?php echo strtoupper($arrDistinct["Popupwfb_group"]); ?>
                    
230	<?php _e('Check official website for more information', 'popupwfb'); ?>
                    
231	<a target="_blank" href="<?php echo Popupwfb_FAV; ?>"><?php _e('click here', 'popupwfb'); ?></a>
                    
232</p>
                    
                
DashletsDialog.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 193 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
38
                    
39include('include/MySugar/DashletsDialog/DashletsDialog.php');
                    
40
                    
46
                    
47        require_once($GLOBALS['sugar_config']['cache_dir'].'dashlets/dashlets.php');
                    
48
                    
75                $directory = substr($files['meta'], 0, strrpos($files['meta'], '/') + 1);
                    
76                if(is_file($directory . $files['class'] . '.' . $current_language . '.lang.php'))
                    
77                    require_once($directory . $files['class'] . '.' . $current_language . '.lang.php');
                    
77                    require_once($directory . $files['class'] . '.' . $current_language . '.lang.php');
                    
78                elseif(is_file($directory . $files['class'] . '.en_us.lang.php'))
                    
79                    require_once($directory . $files['class'] . '.en_us.lang.php');
                    
99
                    
100                    $imageName = SugarThemeRegistry::current()->getImageURL(basename($dashletMeta[$files['class']]['icon']), false);
                    
101                    if ( !empty($imageName) ) {
                    
                
php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 131 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
25    multiLineStrings: true,
                    
54    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
55    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
56
                    
82        return style;
                    
83      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
84        state.curMode = htmlMode;
                    
103        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
104            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
105        if (state.curMode == htmlMode) cur = htmlNew;
                    
129  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
130  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
131})();
                    
                
block_recent_topics.php https://github.com/dravekx/stargate-portal.git | PHP | 218 lines
                    
1<?php
                    
2/**
                    
6* @begin   Sunday, 20th May, 2007
                    
7* @copyright (c) 2005-2008 phpbbireland
                    
8* @home    http://www.phpbbireland.com
                    
8* @home    http://www.phpbbireland.com
                    
9* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
10* @note: Do not remove this copyright. Just append yours if you have modified it,
                    
44
                    
45	global $user, $forum_id, $phpbb_root_path, $phpEx, $SID, $config , $template, $portal_config, $userdata, $config, $db, $phpEx;
                    
46
                    
58	{
                    
59		trigger_error('Error! Could not query forums information: ' . basename(dirname(__FILE__)) . '/' . basename(__FILE__) . ', line ' . __LINE__);
                    
60	}
                    
171
                    
172			$view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . (($recent_topic_row[$i]['forum_id']) ? $recent_topic_row[$i]['forum_id'] : $forum_id) );
                    
173
                    
                
InitPoController.php https://gitlab.com/campus-academy/krowkaramel | PHP | 331 lines
                    
1<?php
                    
2/**
                    
197            // translators: 1: Number of strings; 2: Name of POT file; e.g. "100 strings found in file.pot"
                    
198            $summary = sprintf( _n('%1$s string found in %2$s','%1$s strings found in %2$s',$total,'loco-translate'), number_format($total), $potfile->basename() );
                    
199            $this->set( 'pot', new Loco_mvc_ViewParams( [
                    
199            $this->set( 'pot', new Loco_mvc_ViewParams( [
                    
200                'name' => $potfile->basename(),
                    
201                'path' => $meta->getPath(false),
                    
288                'hidden' => $pofile->getRelativePath($content_dir),
                    
289                'holder' => str_replace( $suffix, '<span>{locale}</span>.po', $pofile->basename() ),
                    
290            ] );
                    
                
LocaleController.php https://gitlab.com/campus-academy/krowkaramel | PHP | 162 lines
                    
1<?php
                    
2/**
                    
98                'meta' => $meta,
                    
99                'name' => $file->basename(),
                    
100                'time' => $file->modified(),
                    
                
 

Source

Language