PageRenderTime 592ms queryTime 67ms sortTime 94ms getByIdsTime 263ms findMatchingLines 57ms

100+ results results for 'php basename' (592 ms)

Not the results you expected?
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) {
                    
                
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.
                    
                
image.php https://bitbucket.org/dotnetCarpenter/pragmatic.git | 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 ) );
                    
                
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 ) {
                    
                
paperclip.rb https://github.com/palladius/lovd-by-less.git | Ruby | 244 lines
                    
8# Copyright:: Copyright (c) 2008 thoughtbot, inc.
                    
9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10#
                    
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 
                    
                
SCP.php https://gitlab.com/naufal/overtime-service-final | 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 *
                    
                
smarty_internal_config.php https://github.com/raphaelbastide/berta.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
151        } 
                    
152        return $_compile_dir . $_filepath . '.' . basename($this->config_resource_name) . '.config' . '.php';
                    
153    } 
                    
                
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://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
                    
1<?php
                    
2class Mail {
                    
95		$header .= 'Return-Path: ' . $this->from . $this->newline;
                    
96		$header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
                    
97		//$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
                    
132				$message .= '--' . $boundary . $this->newline;
                    
133				$message .= 'Content-Type: application/octet-stream; name="' . basename($attachment) . '"' . $this->newline;
                    
134				$message .= 'Content-Transfer-Encoding: base64' . $this->newline;
                    
134				$message .= 'Content-Transfer-Encoding: base64' . $this->newline;
                    
135				$message .= 'Content-Disposition: attachment; filename="' . basename($attachment) . '"' . $this->newline;
                    
136				$message .= 'Content-ID: <' . basename(urlencode($attachment)) . '>' . $this->newline;
                    
136				$message .= 'Content-ID: <' . basename(urlencode($attachment)) . '>' . $this->newline;
                    
137				$message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . $this->newline . $this->newline;
                    
138				$message .= chunk_split(base64_encode($content));
                    
158			} else {
                    
159				if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
160					socket_set_timeout($handle, $this->timeout, 0);
                    
                
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
                    
                
class-yoast-plugin-conflict.php https://gitlab.com/najomie/fit-hippie | 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	 *
                    
                
find-debuginfo.c https://bitbucket.org/rlyspn/androidrr.git | C | 298 lines
                    
20   under any Open Source Initiative certified open source license
                    
21   (http://www.opensource.org/licenses/index.php) which requires the
                    
22   distribution of source code with any binary distribution and to
                    
125
                    
126  const char *file_basename = file_name == NULL ? NULL : basename (file_name);
                    
127  if (debuglink_file == NULL)
                    
128    {
                    
129      if (file_basename == NULL)
                    
130	{
                    
134
                    
135      size_t len = strlen (file_basename);
                    
136      char *localname = alloca (len + sizeof ".debug");
                    
136      char *localname = alloca (len + sizeof ".debug");
                    
137      memcpy (localname, file_basename, len);
                    
138      memcpy (&localname[len], ".debug", sizeof ".debug");
                    
                
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>]
                    
                
shell.test.php https://github.com/hack521/contenidopago.git | PHP | 501 lines
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       cake
                    
391		$path = APP;
                    
392		$expected = DS . basename(APP) . DS;
                    
393		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
395		$path = APP . 'index.php';
                    
396		$expected = DS . basename(APP) . DS . 'index.php';
                    
397		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
                
email-manager.php https://bitbucket.org/JoeKyy/r-dio-animix.git | PHP | 366 lines
                    
289	<br />
                    
290	<form action="<?php echo admin_url('admin.php?page='.plugin_basename(__FILE__)); ?>" method="get">
                    
291		<table class="widefat">
                    
304						<option value="posttitle"<?php if($email_sortby == 'email_posttitle') { echo ' selected="selected"'; }?>><?php _e('Post Title', 'wp-email'); ?></option>
                    
305						<option value="ip"<?php if($email_sortby == 'email_ip') { echo ' selected="selected"'; }?>><?php _e('IP', 'wp-email'); ?></option>
                    
306						<option value="host"<?php if($email_sortby == 'email_host') { echo ' selected="selected"'; }?>><?php _e('Host', 'wp-email'); ?></option>
                    
306						<option value="host"<?php if($email_sortby == 'email_host') { echo ' selected="selected"'; }?>><?php _e('Host', 'wp-email'); ?></option>
                    
307						<option value="status"<?php if($email_sortby == 'email_status') { echo ' selected="selected"'; }?>><?php _e('Status', 'wp-email'); ?></option>
                    
308					</select>
                    
311						<option value="asc"<?php if($email_sortorder == 'ASC') { echo ' selected="selected"'; }?>><?php _e('Ascending', 'wp-email'); ?></option>
                    
312						<option value="desc"<?php if($email_sortorder == 'DESC') { echo ' selected="selected"'; } ?>><?php _e('Descending', 'wp-email'); ?></option>
                    
313					</select>
                    
359	<div align="center">
                    
360		<form method="post" action="<?php echo admin_url('admin.php?page='.plugin_basename(__FILE__)); ?>">
                    
361			<strong><?php _e('Are You Sure You Want To Delete All E-Mail Logs?', 'wp-email'); ?></strong><br /><br />
                    
                
mkdist.php https://bitbucket.org/luobailiang/php-src.git | 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 */
                    
                
web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
                    
1<?php
                    
2
                    
3/**
                    
4	Web pack for the PHP Fat-Free Framework
                    
5
                    
70			$stats['FILES']['minified']
                    
71				[basename($file)]=filesize($path.$file);
                    
72			// Rewrite relative URLs in CSS
                    
205		if ($echo) {
                    
206			if (PHP_SAPI!='cli' && !headers_sent())
                    
207				header(self::HTTP_Content.': '.$mime[$ext[1]].'; '.
                    
295				self::HTTP_Agent.': Mozilla/5.0 '.
                    
296					'(compatible;'.PHP_OS.')'.self::EOL.
                    
297				($reqhdrs?
                    
330					self::$vars['HEADERS'][]=$hdr;
                    
331					if (PHP_SAPI!='cli' && $forward)
                    
332						// Forward HTTP header
                    
                
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
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
96	 */
                    
97	public $basename = '';
                    
98
                    
261		// '/plugins/bp-custom.php' and it will be loaded before anything else.
                    
262		if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
                    
263			require( WP_PLUGIN_DIR . '/bp-custom.php' );
                    
326		$this->file       = __FILE__;
                    
327		$this->basename   = plugin_basename( $this->file );
                    
328		$this->plugin_dir = BP_PLUGIN_DIR;
                    
417			require( $this->plugin_dir . 'bp-core/bp-core-cache.php'      );
                    
418			require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'      );
                    
419			require( $this->plugin_dir . 'bp-core/bp-core-update.php'     );
                    
455		add_action( 'activate_'   . $this->basename, 'bp_activation'   );
                    
456		add_action( 'deactivate_' . $this->basename, 'bp_deactivation' );
                    
457
                    
                
ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
                    
1<?php
                    
2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $
                    
6* @package VirtueMart
                    
8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved.
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
10* VirtueMart is free software. This version may have been modified pursuant
                    
13* other free or open source software licenses.
                    
14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
15*
                    
240		if( $size==1 ) {
                    
241			$values[0] = $VM_LANG->_('PHPSHOP_SELECT');
                    
242		}
                    
317	/**
                    
318	 * Function from an old Mambo phpgacl integration function
                    
319	 * @deprecated (but necessary, sigh!)
                    
                
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');
                    
                
wp-lightbox-2.php https://bitbucket.org/elimendonca/iatai.git | PHP | 296 lines
                    
196 	</div>
                    
197	<?php include_once(plugin_dir_path(__FILE__).'about.php'); ?>
                    
198	<form method="post" action="options.php">
                    
204					<input type="checkbox" id="jqlb_automate" name="jqlb_automate" value="1" <?php echo $check; ?>/>
                    
205					<label for="jqlb_automate" title="<?php _e('Let the plugin add necessary html to image links', 'jqlb') ?>"> <?php _e('Auto-lightbox image links', 'jqlb') ?></label>
                    
206				</td>
                    
211					<input type="checkbox" id="jqlb_comments" name="jqlb_comments" value="1" <?php echo $check; ?>/>
                    
212					<label for="jqlb_comments" title="<?php _e('Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox.', 'jqlb') ?>"> <?php _e('Enable lightbox in comments (disables <a href="http://codex.wordpress.org/Nofollow">the nofollow attribute!</a>)', 'jqlb') ?></label>
                    
213				</td>
                    
227				<select id="jqlb_link_target" name="jqlb_link_target">
                    
228					<option <?php if ('_blank' == $target)echo 'selected="selected"'; ?>>_blank</option>
                    
229					<option <?php if ('_self' == $target)echo 'selected="selected"'; ?>>_self</option>
                    
252				<input type="text" id="jqlb_margin_size" name="jqlb_margin_size" value="<?php echo floatval(get_option('jqlb_margin_size')) ?>" size="3" />
                    
253				<label for="jqlb_margin_size" title="<?php _e('Keep a distance between the image and the screen edges.', 'jqlb') ?>"><?php _e('Minimum margin to screen edge (default: 0)', 'jqlb') ?></label>			
                    
254			</td>
                    
                
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	
                    
                
behat_config_manager.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 279 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
27
                    
28require_once(__DIR__ . '/../lib.php');
                    
29require_once(__DIR__ . '/behat_command.php');
                    
29require_once(__DIR__ . '/behat_command.php');
                    
30require_once(__DIR__ . '/../../testing/classes/tests_finder.php');
                    
31
                    
131            $diriterator = new DirectoryIterator($componentpath . self::get_behat_tests_path());
                    
132            $regite = new RegexIterator($diriterator, '|behat_.*\.php$|');
                    
133
                    
133
                    
134            // All behat_*.php inside behat_config_manager::get_behat_tests_path() are added as steps definitions files.
                    
135            foreach ($regite as $file) {
                    
135            foreach ($regite as $file) {
                    
136                $key = $file->getBasename('.php');
                    
137                $stepsdefinitions[$key] = $file->getPathname();
                    
                
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' )
                    
                
subscription.php https://github.com/kainbacher/Notethrower.git | PHP | 273 lines
                    
1<?php
                    
2
                    
4
                    
5include_once('../Includes/Config.php');
                    
6include_once('../Includes/Snippets.php');
                    
6include_once('../Includes/Snippets.php');
                    
7include_once('../Includes/TemplateUtil.php');
                    
8include_once('../Includes/DB/Subscription.php');
                    
8include_once('../Includes/DB/Subscription.php');
                    
9include_once('../Includes/Mailer/MailUtil.php');
                    
10
                    
75            header('Location: ' . $GLOBALS['BASE_URL'] . 'invite/'.$subscription->rand_str.'/success');
                    
76            //header('Location: subscription.php?action=success&code='.$subscription->rand_str);
                    
77            exit;
                    
226        '${Optional/error}'                        => $error,
                    
227        '${phpSelf}'                               => basename($_SERVER['PHP_SELF'], '.php'),
                    
228        '${userName}'                              => get_param('username'),
                    
                
ucp_prefs.php https://github.com/naderman/phpbb-orchestra.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
29	{
                    
30		global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
                    
31
                    
42					'dateformat'	=> request_var('dateformat', $user->data['user_dateformat'], true),
                    
43					'lang'			=> basename(request_var('lang', $user->data['user_lang'])),
                    
44					'style'			=> request_var('style', (int) $user->data['user_style']),
                    
                
adodb-sybase.inc.php https://github.com/axxtel/agilebill.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;	
                    
                
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'];
                    
                
settings.php https://github.com/mgsisk/webcomic.git | PHP | 459 lines
                    
1<?php
                    
2/**
                    
64		$path       = dirname( __DIR__ );
                    
65		$components = array_reverse( array_map( 'basename', array_unique( array_merge( [ $path . '/collection', $path . '/compat' ], glob( $path . '/*', GLOB_ONLYDIR ) ) ) ) );
                    
66
                    
106		function() {
                    
107			require __DIR__ . '/settings-inc-page.php';
                    
108		}
                    
131			$args = [
                    
132				'file'      => __DIR__ . '/settings-inc-section.php',
                    
133				'option'    => webcomic( 'option.components' ),
                    
162		'webcomic_general', [
                    
163			'file'      => __DIR__ . '/settings-inc-field-uninstall.php',
                    
164			'option'    => webcomic( 'option.uninstall' ),
                    
187		'webcomic_general', [
                    
188			'file'      => __DIR__ . '/settings-inc-field-debug.php',
                    
189			'option'    => webcomic( 'option.debug' ),
                    
                
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 //-->
                    
                
library.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 414 lines
                    
1<?php
                    
2/**
                    
67		$name = JFilterInput::getInstance()->clean((string) $this->manifest->name, 'string');
                    
68		$element = str_replace('.xml', '', basename($this->parent->getPath('manifest')));
                    
69		$this->set('name', $name);
                    
178		$manifest['src'] = $this->parent->getPath('manifest');
                    
179		$manifest['dest'] = JPATH_MANIFESTS . '/libraries/' . basename($this->parent->getPath('manifest'));
                    
180		if (!$this->parent->copyFiles(array($manifest), true))
                    
207		$name = JFilterInput::getInstance()->clean($name, 'string');
                    
208		$element = str_replace('.xml', '', basename($this->parent->getPath('manifest')));
                    
209		$this->set('name', $name);
                    
                
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		}
                    
                
sfConfigCache.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 393 lines
                    
1<?php
                    
2
                    
13 * sfConfigCache allows you to customize the format of a configuration file to
                    
14 * make it easy-to-use, yet still provide a PHP formatted result for direct
                    
15 * inclusion into your modules.
                    
20 * @author     Sean Kerr <sean@code-box.org>
                    
21 * @version    SVN: $Id: sfConfigCache.class.php 32639 2011-06-11 13:28:46Z fabien $
                    
22 */
                    
68    // grab the base name of the handler
                    
69    $basename = basename($handler);
                    
70    if (isset($this->handlers[$handler]))
                    
74    }
                    
75    else if (isset($this->handlers[$basename]))
                    
76    {
                    
77      // we have a handler associated with the configuration base name
                    
78      $handlerInstance = $this->getHandler($basename);
                    
79    }
                    
                
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 = '';
                    
                
vmware-esx-create.php https://github.com/qyjohn/openqrm.git | PHP | 379 lines
                    
27
                    
28<?php
                    
29/*
                    
48// error_reporting(E_ALL);
                    
49$thisfile = basename($_SERVER['PHP_SELF']);
                    
50$RootDir = $_SERVER["DOCUMENT_ROOT"].'/openqrm/base/';
                    
51$BaseDir = $_SERVER["DOCUMENT_ROOT"].'/openqrm/';
                    
52require_once "$RootDir/include/user.inc.php";
                    
53require_once "$RootDir/class/image.class.php";
                    
53require_once "$RootDir/class/image.class.php";
                    
54require_once "$RootDir/class/resource.class.php";
                    
55require_once "$RootDir/class/appliance.class.php";
                    
55require_once "$RootDir/class/appliance.class.php";
                    
56require_once "$RootDir/class/deployment.class.php";
                    
57require_once "$RootDir/include/htmlobject.inc.php";
                    
                
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})';
                    
                
oracle.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 596 lines
                    
1<?php
                    
2/**
                    
16 * @subpackage  Database
                    
17 * @see         http://php.net/pdo
                    
18 * @since       12.1
                    
322	 *
                    
323	 * @param   string   $databaseName         The database (schema) name
                    
324	 * @param   boolean  $includeDatabaseName  Whether to include the schema name in the results
                    
330	 */
                    
331	public function getTableList($databaseName = null, $includeDatabaseName = false)
                    
332	{
                    
338
                    
339		if ($includeDatabaseName)
                    
340		{
                    
348		$query->from('all_tables');
                    
349		if ($databaseName)
                    
350		{
                    
                
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
                    
                
studio.h https://github.com/trevor/ImageMagick.git | C Header | 370 lines
                    
7
                    
8    http://www.imagemagick.org/script/license.php
                    
9
                    
254# define Exit  exit
                    
255# define IsBasenameSeparator(c)  ((c) == '/' ? MagickTrue : MagickFalse)
                    
256# define X11_PREFERENCES_PATH  "~/."
                    
266#  define Exit  exit
                    
267#  define IsBasenameSeparator(c) \
                    
268  (((c) == ']') || ((c) == ':') || ((c) == '/') ? MagickTrue : MagickFalse)
                    
282# define Exit  exit
                    
283#  define IsBasenameSeparator(c) \
                    
284  (((c) == '/') || ((c) == '\\') ? MagickTrue : MagickFalse)
                    
294#  define EditorOptions ""
                    
295#  define IsBasenameSeparator(c)  ((c) == ':' ? MagickTrue : MagickFalse)
                    
296#  define MAGICKCORE_LIBRARY_PATH  ""
                    
                
sfPropelBaseTask.class.php https://github.com/bheneka/gitta.git | PHP | 357 lines
                    
1<?php
                    
2
                    
79      // save converted xml files in original directories
                    
80      $yml_file_name = str_replace('.xml', '.yml', basename($schema));
                    
81
                    
81
                    
82      $file = str_replace(basename($schema), $prefix.$yml_file_name,  $schema);
                    
83      $this->logSection('schema', sprintf('putting %s', $file));
                    
149      // save converted xml files in original directories
                    
150      $xml_file_name = str_replace('.yml', '.xml', basename($schema));
                    
151
                    
151
                    
152      $file = str_replace(basename($schema), $localprefix.$xml_file_name,  $schema);
                    
153      $this->logSection('schema', sprintf('putting %s', $file));
                    
174        // if the plugin name is not in the schema filename, add it
                    
175        if (!strstr(basename($schema), $match[1]))
                    
176        {
                    
                
Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . '/../ExtensionInterface.php';
                    
104                    } elseif (is_file($file)) {
                    
105                        $key = basename($file);
                    
106                        $alias[substr($key, 1, strpos($key, '.') - 1)] = $file;
                    
                
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(
                    
                
transformation.php https://github.com/xc/zetacomponents.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
225        // Start atomic file operation
                    
226        $fileTmp = tempnam( dirname( $fileOut ) . DIRECTORY_SEPARATOR, '.'. basename( $fileOut ) );
                    
227        copy( $fileIn, $fileTmp );
                    
                
theme.php https://github.com/muskmelon/Greemo.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;
                    
                
edit_profile.php https://github.com/harriswong/ATutor.git | PHP | 336 lines
                    
1<?php
                    
2/****************************************************************/
                    
16define('AT_INCLUDE_PATH', '../../../include/');
                    
17require(AT_INCLUDE_PATH.'vitals.inc.php');
                    
18require(AT_SOCIAL_INCLUDE.'friends.inc.php');
                    
18require(AT_SOCIAL_INCLUDE.'friends.inc.php');
                    
19$_custom_css = $_base_path . AT_SOCIAL_BASENAME . 'module.css'; // use a custom stylesheet
                    
20
                    
21if (!$_SESSION['valid_user']) {
                    
22	require(AT_INCLUDE_PATH.'header.inc.php');
                    
23	$info = array('INVALID_USER', $_SESSION['course_id']);
                    
24	$msg->printInfos($info);
                    
25	require(AT_INCLUDE_PATH.'footer.inc.php');
                    
26	exit;
                    
34	//update database from here
                    
35	header('Location: sprofile.php');
                    
36}
                    
                
updates.php https://github.com/cladjidane/D-mo-HTML5-CSS3.git | PHP | 377 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: updates.php 222 2011-06-11 17:32:06Z happy_noodle_boy $
                    
4 * @package   	JCE
                    
17// load base model
                    
18require_once(dirname(__FILE__) . DS . 'model.php');
                    
19
                    
22    
                    
23	var $url = 'https://www.joomlacontenteditor.net/index.php?option=com_updates&format=raw';
                    
24	
                    
169				// create path for package file
                    
170				$path = $tmp.DS.basename($data->name);
                    
171				// download file
                    
176                            $result = array(
                    
177								'file'		=> basename($path), 
                    
178								'hash'		=> $data->hash,
                    
                
Misc.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | 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
                    
                
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 );
                    
                
tivo.py https://bitbucket.org/fyelles/sick-beard.git | Python | 320 lines
                    
102        if ek.ek(os.path.isfile, ep_obj.location):
                    
103            metadata_file_name = ek.ek(os.path.basename, ep_obj.location) + "." + self._ep_nfo_extension
                    
104            metadata_dir_name = ek.ek(os.path.join, ek.ek(os.path.dirname, ep_obj.location), '.meta')
                    
125            
                    
126        http://pytivo.sourceforge.net/wiki/index.php/Metadata
                    
127        """
                    
                
nfs-storage-config.php https://github.com/qyjohn/openqrm.git | PHP | 336 lines
                    
29
                    
30<?php
                    
31/*
                    
50// error_reporting(E_ALL);
                    
51$thisfile = basename($_SERVER['PHP_SELF']);
                    
52$RootDir = $_SERVER["DOCUMENT_ROOT"].'/openqrm/base/';
                    
53$BaseDir = $_SERVER["DOCUMENT_ROOT"].'/openqrm/';
                    
54require_once "$RootDir/include/user.inc.php";
                    
55require_once "$RootDir/class/image.class.php";
                    
55require_once "$RootDir/class/image.class.php";
                    
56require_once "$RootDir/class/storage.class.php";
                    
57require_once "$RootDir/class/resource.class.php";
                    
57require_once "$RootDir/class/resource.class.php";
                    
58require_once "$RootDir/class/deployment.class.php";
                    
59require_once "$RootDir/include/htmlobject.inc.php";
                    
                
NodeImportTestCase.php https://github.com/arielalvarez88/yaquemotors.git | PHP | 284 lines
                    
1<?php
                    
2
                    
125    $title = t('New file uploaded');
                    
126    $expect = t('New file %name uploaded to %path.', array('%name' => basename($data['file']), '%path' => node_import_directory() . basename($data['file'])));
                    
127    if (!$this->assertRaw($expect, t('%title found.', array('%title' => $title)), 'Node import')) return FALSE;
                    
212   * @param $group
                    
213   *   The type of assertion - examples are "Browser", "PHP".
                    
214   *
                    
231   * @param $group
                    
232   *   The type of assertion - examples are "Browser", "PHP".
                    
233   *
                    
250   * @param $group
                    
251   *   The type of assertion - examples are "Browser", "PHP".
                    
252   *
                    
269   * @param $group
                    
270   *   The type of assertion - examples are "Browser", "PHP".
                    
271   *
                    
                
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);
                    
                
PropelDataDumpTask.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 383 lines
                    
22
                    
23include_once 'creole/Creole.php';
                    
24
                    
128	 */
                    
129	public function setDatabaseName($v)
                    
130	{
                    
243				// if database name is specified, then we only want to dump that one db.
                    
244				if (empty($this->databaseName) || ($this->databaseName && $database->getName() == $this->databaseName)) {
                    
245					$outFile = $this->getMappedFile($dataModel->getName());
                    
283				// if database name is specified, then we only want to dump that one db.
                    
284				if (empty($this->databaseName) || ($this->databaseName && $database->getName() == $this->databaseName)) {
                    
285
                    
330					}
                    
331				} // if databaseName && database->getName == databaseName
                    
332			} // foreach database
                    
                
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{
                    
                
gists.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 593 lines
                    
1<?php
                    
2/**
                    
586			{
                    
587				$data[basename($file)] = array('content' => file_get_contents($file));
                    
588			}
                    
                
ps_function.php https://github.com/Shigaru/shigaru.git | PHP | 342 lines
                    
1<?php
                    
2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: ps_function.php 1674 2009-03-04 02:07:57Z tkahl $
                    
6* @package VirtueMart
                    
8* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
10* VirtueMart is free software. This version may have been modified pursuant
                    
13* other free or open source software licenses.
                    
14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
15*
                    
274				else {
                    
275					$error = $VM_LANG->_('PHPSHOP_PAGE_403').'. ';
                    
276					$error .= $VM_LANG->_('PHPSHOP_FUNC_NO_EXEC') . $func;
                    
281			else {
                    
282				$error = $VM_LANG->_('PHPSHOP_FUNC_NOT_REG').'. ';
                    
283				$error .= $func . $VM_LANG->_('PHPSHOP_FUNC_ISNO_REG') ;
                    
                
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            )
                    
                
sfConfigCache.class.php https://github.com/bheneka/gitta.git | PHP | 393 lines
                    
1<?php
                    
2
                    
13 * sfConfigCache allows you to customize the format of a configuration file to
                    
14 * make it easy-to-use, yet still provide a PHP formatted result for direct
                    
15 * inclusion into your modules.
                    
68    // grab the base name of the handler
                    
69    $basename = basename($handler);
                    
70    if (isset($this->handlers[$handler]))
                    
74    }
                    
75    else if (isset($this->handlers[$basename]))
                    
76    {
                    
77      // we have a handler associated with the configuration base name
                    
78      $handlerInstance = $this->getHandler($basename);
                    
79    }
                    
81    {
                    
82      // let's see if we have any wildcard handlers registered that match this basename
                    
83      foreach (array_keys($this->handlers) as $key)
                    
                
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) . '/';
                    
                
GeneratedObjectLobTest.php https://github.com/1989gaurav/Propel.git | PHP | 293 lines
                    
10
                    
11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreEmptyTestBase.php';
                    
12
                    
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);
                    
64
                    
65		if (isset($this->sampleLobFiles[$basename])) {
                    
66			return $this->sampleLobFiles[$basename];
                    
                
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     */
                    
                
commonfslib.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 532 lines
                    
1<?php 
                    
2
                    
107
                    
108function lxshell_php($cmd)
                    
109{
                    
109{
                    
110	lxshell_return("__path_php_path", $cmd);
                    
111}
                    
316	if (is_dir($dst)) {
                    
317		$base = basename($src);
                    
318		$dst = $dst . "/$base";
                    
364
                    
365	if(file_exists($dir)){ # Real check by PHP
                    
366		return true; 
                    
385	if (is_dir($dst)) {
                    
386		$dst = $dst . "/" . basename($src);
                    
387	}
                    
                
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)
                    
                
smarty_internal_config.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
119        $_compile_dir = $this->smarty->getCompileDir();
                    
120        return $_compile_dir . $_filepath . '.' . basename($this->source->name) . '.config' . '.php';
                    
121    }
                    
                
vectorwrite.py https://github.com/sialan/autonomous-sprayer.git | Python | 324 lines
                    
5The vectorwrite manual page is at:
                    
6http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Vectorwrite
                    
7
                    
102	suffixDirectoryName = os.path.dirname(suffixFileName)
                    
103	suffixReplacedBaseName = os.path.basename(suffixFileName).replace(' ', '_')
                    
104	suffixFileName = os.path.join( suffixDirectoryName, suffixReplacedBaseName )
                    
168		self.fileNameInput = settings.FileNameInput().getFromFileName( [ ('Gcode text files', '*.gcode') ], 'Open File to Write Vector Graphics for', self, '')
                    
169		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute('http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Vectorwrite')
                    
170		settings.LabelSeparator().getFromRepository(self)
                    
                
View.php https://github.com/sgtcarneiro/horde.git | PHP | 359 lines
                    
1<?php
                    
2/**
                    
262    {
                    
263        $driver = basename($view);
                    
264        $class = 'Kronolith_FreeBusy_View_' . $driver;
                    
                
%%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">
                    
                
HttpTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: HttpTest.php 25087 2012-11-06 21:15:45Z 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
                    
                
filebrowser.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 431 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @version $Id: filebrowser.php 292 2012-09-21 16:24:11Z cmb69 $
                    
5 */
                    
73
                    
74        $this->browserPath = $pth['folder']['plugins'] . basename(dirname(dirname(__FILE__))) . '/';
                    
75
                    
237        
                    
238        $file = $this->browseBase . $this->currentDirectory . basename($file);
                    
239        $pages = $this->fileIsLinked($file);
                    
250// 設法在 Windows 能夠儲存中文命名檔案
                    
251if (substr(php_uname(), 0, 7) == "Windows")
                    
252{
                    
299        
                    
300        $filename = $this->browseBase . $this->currentDirectory . basename($file['name']);
                    
301        if (file_exists($filename)) {
                    
                
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
                    
                
tags.php https://bitbucket.org/antonyravel/cape-resorts.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">
                    
                
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);
                    
                
Fetchmail.php https://github.com/Excito/imp.git | PHP | 457 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * $Horde: imp/lib/Fetchmail.php,v 1.41.8.15 2009/01/06 15:24:03 jan Exp $
                    
7 *
                    
67    {
                    
68        $driver = basename($driver);
                    
69        require_once dirname(__FILE__) . '/Fetchmail/' . $driver . '.php';
                    
94                if (!is_dir($file)) {
                    
95                    $driver = basename($file, '.php');
                    
96                    $class = 'IMP_Fetchmail_' . $driver;
                    
236            ($size > $GLOBALS['conf']['fetchmail']['size_limit'])) {
                    
237            require_once 'Horde/MIME.php';
                    
238            $GLOBALS['notification']->push(sprintf(_("The message \"%s\" from \"%s\" (%d bytes) exceeds fetch size limit."), MIME::Decode($subject), MIME::Decode($from), $size), 'horde.warning');
                    
315        /* Read all the user's accounts from the prefs object or build
                    
316         * a new account from the standard values given in prefs.php. */
                    
317        $accounts = @unserialize($GLOBALS['prefs']->getValue('fm_accounts'));
                    
                
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);
                    
                
PhpAcl.php https://bitbucket.org/LeThanhDat/firstdummyapp.git | PHP | 559 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake.Controller.Component.Acl
                    
21/**
                    
22 * PhpAcl implements an access control system using a plain PHP configuration file.
                    
23 * An example file can be found in app/Config/acl.php
                    
57 *
                    
58 * @var PhpAco
                    
59 */
                    
84
                    
85		App::uses('PhpReader', 'Configure');
                    
86		$Reader = new PhpReader(dirname($this->options['config']) . DS);
                    
                
Xlsx.php https://github.com/kervin/kyzstudio.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);
                    
                
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
                    
                
CollectionWrapper.php https://github.com/mackensen/moodle.git | PHP | 388 lines
                    
1<?php
                    
2/*
                    
47    /** @var string */
                    
48    private $databaseName;
                    
49
                    
60     * @param Manager $manager           Manager instance from the driver
                    
61     * @param string  $databaseName      Database name
                    
62     * @param string  $bucketName        Bucket name
                    
65     */
                    
66    public function __construct(Manager $manager, $databaseName, $bucketName, array $collectionOptions = [])
                    
67    {
                    
67    {
                    
68        $this->databaseName = (string) $databaseName;
                    
69        $this->bucketName = (string) $bucketName;
                    
70
                    
71        $this->filesCollection = new Collection($manager, $databaseName, sprintf('%s.files', $bucketName), $collectionOptions);
                    
72        $this->chunksCollection = new Collection($manager, $databaseName, sprintf('%s.chunks', $bucketName), $collectionOptions);
                    
                
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})';
                    
                
php.js https://github.com/KenBoyer/CompactCMS.git | JavaScript | 155 lines
                    
1editAreaLoader.load_syntax["php"] = {
                    
2	'DISPLAY_NAME' : 'Php'
                    
16			'null', '__LINE__', '__FILE__',
                    
17			'false', '&lt;?php', '?&gt;', '&lt;?',
                    
18			'&lt;script language', '&lt;/script&gt;',
                    
20			'function', 'class', 'new', '&amp;new', 'this',
                    
21			'__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION',
                    
22			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',
                    
22			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',
                    
23			'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR',
                    
24			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',
                    
24			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',
                    
25			'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE',
                    
26			'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR',
                    
32			'extension_loaded', 'get_extension_funcs', 'debug_backtrace',
                    
33			'constant', 'bin2hex', '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',
                    
34			'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',
                    
                
Xlsx.php https://github.com/ayamyau/concrete5.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);
                    
                
 

Source

Language