PageRenderTime 457ms queryTime 66ms sortTime 59ms getByIdsTime 126ms findMatchingLines 117ms

100+ results results for 'php file_exists repo:linuxdream/agent-j' (457 ms)

Not the results you expected?
fileManager.php https://github.com/pheeque/jquery.fileManager.git | PHP | 235 lines
                    
1<?php
                    
2/*
                    
28*
                    
29* Advanced users may wish to write a separate php script to control the
                    
30* ajax features of the File Manager.  Including callbacks for deleting
                    
73
                    
74		if (!file_exists($path)) mkdir($path,octdec('0777'),true);
                    
75
                    
83			}
                    
84			if (!file_exists($from)) {
                    
85				echo 'alert("File or Folder no longer exists");';
                    
103			}
                    
104			if (file_exists($to)) {
                    
105				echo 'alert("Destination already exists");';
                    
165		// Create target dir
                    
166		if (!file_exists($targetDir)) {
                    
167			mkdir($targetDir);
                    
                
Configuration.php https://gitlab.com/CORP-RESELLER/shopping-cart-lite | PHP | 346 lines
                    
1<?php
                    
2/**
                    
221
                    
222        if (!file_exists($caPath))
                    
223        {
                    
                
sagepay.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 257 lines
                    
1<?php
                    
2class ControllerPaymentSagepay extends Controller {
                    
112		
                    
113		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/sagepay.tpl')) {
                    
114			$this->template = $this->config->get('config_template') . '/template/payment/sagepay.tpl';
                    
                
index.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 157 lines
                    
3$wp_blog_header_path = '';
                    
4if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'))
                    
5{
                    
7}
                    
8    else if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'))
                    
9{
                    
34    <script async="true" type="text/javascript" src="/wp-content/plugins/google-analyticator/external-tracking.min.js?ver=6.1.1"></script>
                    
35    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="/xmlrpc.php?rsd" />
                    
36    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="/wp-includes/wlwmanifest.xml" />
                    
120                  <li><a href="games-ubuntu-popular.php#games-popular-scorched">Scorched3D</a></li>
                    
121                  <li><a href="games-ubuntu-popular.php#games-popular-chromium">Chromium</a></li>
                    
122                  <li><a href="games-ubuntu-popular.php#games-popular-frozenbubble">Frozen Bubble</a></li>
                    
122                  <li><a href="games-ubuntu-popular.php#games-popular-frozenbubble">Frozen Bubble</a></li>
                    
123                  <li><a href="games-ubuntu-popular.php#games-popular-supertux">SuperTux</a></li>
                    
124                  <li><a href="games-ubuntu-popular.php#games-popular-planetpenguinracer">PlanetPenguin Racer</a></li>
                    
                
files.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 306 lines
                    
3 *
                    
4 * This file is part of phpFastCache.
                    
5 *
                    
17use phpFastCache\Core\DriverAbstract;
                    
18use phpFastCache\Exceptions\phpFastCacheDriverException;
                    
19
                    
58     * @return string
                    
59     * @throws phpFastCacheDriverException
                    
60     */
                    
71        if ($skip == false) {
                    
72            if (!file_exists($path)) {
                    
73                if (!mkdir($path, $this->__setChmodAuto())) {
                    
98         */
                    
99        if (isset($option[ 'skipExisting' ]) && $option[ 'skipExisting' ] == true && file_exists($file_path)) {
                    
100            $content = $this->readfile($file_path);
                    
                
language.php https://gitlab.com/mostafame/team_website | PHP | 245 lines
                    
1<?php
                    
2
                    
95		// Polylang builtin flags
                    
96		if ( ! empty( $this->flag_code ) && file_exists( POLYLANG_DIR . ( $file = '/flags/' . $this->flag_code . '.png' ) ) ) {
                    
97			$flags['flag']['url'] = esc_url_raw( POLYLANG_URL . $file );
                    
107		// custom flags ?
                    
108		if ( file_exists( PLL_LOCAL_DIR . ( $file = '/' . $this->locale . '.png' ) ) || file_exists( PLL_LOCAL_DIR . ( $file = '/' . $this->locale . '.jpg' ) ) ) {
                    
109			$flags['custom_flag']['url'] = esc_url_raw( PLL_LOCAL_URL . $file );
                    
                
UploadBehavior.php https://github.com/kiang/olc_baker.git | PHP | 243 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file is a part of UploadPack - a set of classes that makes file uploads in CakePHP as easy as possible.
                    
4 *
                    
92                $destDir = dirname($settings['path']);
                    
93                if (!file_exists($destDir)) {
                    
94                    @mkdir($destDir, 0777, true);
                    
147                    $settings = $this->_interpolate($model, $field, $this->toDelete[$field], $style);
                    
148                    if (file_exists($settings['path'])) {
                    
149                        @unlink($settings['path']);
                    
                
File.php https://github.com/mwturnage/frapi-1.git | PHP | 328 lines
                    
46
                    
47require_once 'PHPUnit/Util/Class.php';
                    
48require_once 'PHPUnit/Util/Metrics.php';
                    
48require_once 'PHPUnit/Util/Metrics.php';
                    
49require_once 'PHPUnit/Util/Filter.php';
                    
50
                    
50
                    
51PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
                    
52
                    
56 * @category   Testing
                    
57 * @package    PHPUnit
                    
58 * @author     Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
64 */
                    
65class PHPUnit_Util_Metrics_File extends PHPUnit_Util_Metrics
                    
66{
                    
                
paypal_ec.php https://github.com/matthewxu/doc.git | PHP | 268 lines
                    
1<?php
                    
2
                    
12 * $Author: liuhui $
                    
13 * $Id: paypal_ec.php 16489 2009-08-03 10:14:03Z liuhui $
                    
14 */
                    
29
                    
30$payment_lang = ROOT_PATH . 'languages/' .$GLOBALS['_CFG']['lang']. '/payment/paypal_ec.php';
                    
31
                    
31
                    
32if (file_exists($payment_lang))
                    
33{
                    
44    /* 代码 */
                    
45    $modules[$i]['code']    = basename(__FILE__, '.php');
                    
46
                    
123
                    
124        $returnURL =urlencode($url.'/respond.php?code=paypal_ec&currencyCodeType='.$currencyCodeType.'&paymentType='.$paymentType.'&paymentAmount='.$paymentAmount.'&invoice='.$data_order_id);
                    
125        $cancelURL =urlencode("$url/SetExpressCheckout.php?paymentType=$paymentType" );
                    
                
Image.php https://gitlab.com/rsilveira1987/Expresso | PHP | 272 lines
                    
1<?php
                    
2/**
                    
65    {
                    
66        if (!file_exists($_path)) {
                    
67            throw new Tinebase_Exception_NotFound('Image file not found.');
                    
106        $params = array();
                    
107        parse_str(parse_url($_imageURL, PHP_URL_QUERY), $params);
                    
108        if (!empty($params['application']) && !empty($params['id'])) {
                    
124    public static function getImageUrl($appName, $id, $location = '', $width = 90, $height = 90, $ratiomode = 0) {
                    
125        return 'index.php?method=Tinebase.getImage&application=' . $appName . '&location=' . $location . '&id=' . $id . '&width=' . $width . '&height=' . $height . '&ratiomode='.$ratiomode;
                    
126    }
                    
                
du.php https://bitbucket.org/lordgnu/greyhole.git | PHP | 326 lines
                    
1<?php
                    
2/*
                    
22
                    
23if (!file_exists($data_file)) {
                    
24	render_header('Greyhole Disk Usage');
                    
30	<div>Please wait for fsck to run once.</div>
                    
31	<?php
                    
32
                    
38
                    
39require_once('includes/common.php');
                    
40
                    
177
                    
178<?php render_header('Greyhole Disk Usage') ?>
                    
179
                    
180<h1>Greyhole Storage Pool Disk Usage
                    
181	<?php if ($root_dir == '/'): ?>
                    
182		- All Shares
                    
                
html_helper.php https://gitlab.com/jLKisni/furandpaw-frontend | PHP | 410 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
237		{
                    
238			if (file_exists(APPPATH.'config/doctypes.php'))
                    
239			{
                    
239			{
                    
240				include(APPPATH.'config/doctypes.php');
                    
241			}
                    
242
                    
243			if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/doctypes.php'))
                    
244			{
                    
244			{
                    
245				include(APPPATH.'config/'.ENVIRONMENT.'/doctypes.php');
                    
246			}
                    
                
z_pipelines.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 305 lines
                    
1<?php
                    
2/*
                    
118				(isset($flux['args']['contexte']['composition'])
                    
119				AND file_exists(($f=$squelette."-".$flux['args']['contexte']['type']."-".$flux['args']['contexte']['composition']).".$ext"))
                    
120				OR
                    
120				OR
                    
121				file_exists(($f=$squelette."-".$flux['args']['contexte']['type']).".$ext")
                    
122				))
                    
                
spx_copy_move.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 263 lines
                    
1<?php
                    
2/*------------------------------------------------------------------------------
                    
12
                    
13     The Original Code is fun_copy_move.php, released on 2003-03-31.
                    
14
                    
58	while(($new_item=readdir($handle))!==false) {
                    
59		//if(!@file_exists(get_abs_item($dir, $new_item))) continue;
                    
60		
                    
131//-->
                    
132</script><?php
                    
133		
                    
142		// Form for Target Directory & New Names
                    
143		echo "<br /><br /><FORM name=\"selform\" method=\"post\" action=\"spip.php\"><TABLE>\n";
                    
144		list($arg, $hash) = make_hash('copy_move', $dir);
                    
195	// ALL OK?
                    
196	if(!@file_exists(get_abs_dir($new_dir))) show_error($new_dir.": "._T('spixplorer:targetexist'));
                    
197	if(!get_show_item($new_dir,"")) show_error($new_dir.": "._T('spixplorer:accesstarget'));
                    
                
InstallUtils.php https://github.com/orchestra-io/sample-openx.git | PHP | 252 lines
                    
1<?php
                    
2/*
                    
25*/
                    
26require_once MAX_PATH . '/lib/OA/Upgrade/UpgradePluginImport.php';
                    
27
                    
100    {
                    
101        if (!file_exists($folder)) {
                    
102            return false;
                    
                
LibraryInstaller.php https://github.com/pborreli/composer.git | PHP | 284 lines
                    
1<?php
                    
2
                    
179            $binPath = $this->getInstallPath($package).'/'.$bin;
                    
180            if (!file_exists($binPath)) {
                    
181                $this->io->write('    <warning>Skipped installation of '.$bin.' for package '.$package->getName().': file not found in package</warning>');
                    
186            $link = $this->binDir.'/'.basename($bin);
                    
187            if (file_exists($link)) {
                    
188                if (is_link($link)) {
                    
196            }
                    
197            if (defined('PHP_WINDOWS_VERSION_BUILD')) {
                    
198                // add unixy support for cygwin and similar environments
                    
229            $link = $this->binDir.'/'.basename($bin);
                    
230            if (file_exists($link)) {
                    
231                unlink($link);
                    
232            }
                    
233            if (file_exists($link.'.bat')) {
                    
234                unlink($link.'.bat');
                    
                
installation-windows-ubuntu.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 160 lines
                    
3$wp_blog_header_path = '';
                    
4if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'))
                    
5{
                    
7}
                    
8    else if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'))
                    
9{
                    
34    <script async="true" type="text/javascript" src="/wp-content/plugins/google-analyticator/external-tracking.min.js?ver=6.1.1"></script>
                    
35    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="/xmlrpc.php?rsd" />
                    
36    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="/wp-includes/wlwmanifest.xml" />
                    
89          <div id="loco-search-form">
                    
90            <form id="searchform" method="get" action="/help/10.04/search.php">
                    
91              <div>
                    
123              <li><a href="installation-windows-ubuntu.php">Hvordan er softwareinstallation på Ubuntu anderledes end på Windows?</a></li>
                    
124              <li><a href="installing.php">Installation af et program</a>
                    
125                  <ul>
                    
                
index.php https://github.com/eosc/EosC-3.0.git | PHP | 221 lines
                    
117
                    
118  if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
                    
119    @chmod(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php', 0777);
                    
121
                    
122  if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php')) {
                    
123    @chmod(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php', 0777);
                    
125
                    
126  if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
                    
127    $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php';
                    
129
                    
130  if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php')) {
                    
131    $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php';
                    
137    if ($compat_register_globals == false) {
                    
138      $warning_array['register_globals'] = 'Compatibility with register_globals is supported from PHP 4.3+. This setting <u>must be enabled</u> due to an older PHP version being used.';
                    
139    }
                    
                
MaildirTest.php https://github.com/mrbanzai/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
57            }
                    
58            if (!file_exists($this->_tmpdir)) {
                    
59                mkdir($this->_tmpdir);
                    
331    {
                    
332        if (file_exists($this->_maildir . '/' . $dir)) {
                    
333            rename($this->_maildir . '/' . $dir, $this->_maildir . '/' . $dir . 'bak');
                    
345        unlink($this->_maildir . '/' . $dir);
                    
346        if (file_exists($this->_maildir . '/' . $dir . 'bak')) {
                    
347            rename($this->_maildir . '/' . $dir . 'bak', $this->_maildir . '/' . $dir);
                    
                
templatemap_generator.php https://github.com/tmccormi/openemr.git | PHP | 256 lines
                    
31// Setup/verify autoloading
                    
32if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
                    
33    // Local install
                    
34    require __DIR__ . '/../vendor/autoload.php';
                    
35} elseif (file_exists(getcwd() . '/vendor/autoload.php')) {
                    
36    // Root project is current working directory
                    
37    require getcwd() . '/vendor/autoload.php';
                    
38} elseif (file_exists(__DIR__ . '/../../../autoload.php')) {
                    
39    // Relative to composer install
                    
207    array_pop($content);
                    
208    $content = implode(PHP_EOL, $content) . PHP_EOL;
                    
209} else {
                    
212    $content = '<' . "?php" . PHP_EOL
                    
213             . '// Generated by ZF2\'s ./bin/templatemap_generator.php'  . PHP_EOL
                    
214             . 'return array(' . PHP_EOL;
                    
                
MantenimientosController.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 382 lines
                    
1<?php
                    
2
                    
190			    ob_start();
                    
191			    include(app_path().'/views/pdf/informemantenimiento.php');
                    
192			    $content = ob_get_clean();
                    
194			    // convert to PDF
                    
195			    require_once(public_path().'/packages/html2pdf/html2pdf.class.php');
                    
196		        $html2pdf = new HTML2PDF('P', 'A4', 'es');
                    
253
                    
254			if(file_exists($rutapdfcomprobacion)){
                    
255				unlink(public_path().'/pdf/informemantenimiento/'.$mantenimiento->id.'.pdf');
                    
259			    ob_start();
                    
260			    include(app_path().'/views/pdf/informemantenimiento.php');
                    
261			    $content = ob_get_clean();
                    
263			    // convert to PDF
                    
264			    require_once(public_path().'/packages/html2pdf/html2pdf.class.php');
                    
265		        $html2pdf = new HTML2PDF('P', 'A4', 'es');
                    
                
global.menu_theme_modern.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 204 lines
                    
1<?php
                    
2/**
                    
17        
                    
18        if ( file_exists( NV_ROOTDIR . "/themes/" . $global_config['site_theme'] . "/modules/menu/menu_theme_modern.tpl" ) )
                    
19        {
                    
57            $array_cat_menu[] = array( 
                    
58                "catid" => 1, "parentid" => 0, "title" => $modvalues['custom_title'], "alias" => '', "link" => "" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=users" 
                    
59            );
                    
65                    $array_cat_menu[] = array( 
                    
66                        "catid" => 1, "parentid" => 1, "title" => $sub_item['func_custom_name'], "alias" => '', "link" => "" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=users&amp;" . NV_OP_VARIABLE . "=" . $key 
                    
67                    );
                    
76            {
                    
77                $link_i = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=" . $alias_i;
                    
78                $array_cat_menu[$catid_i] = array( 
                    
88            {
                    
89                $link_i = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=" . $alias_i;
                    
90                $array_cat_menu[$catid_i] = array( 
                    
                
DocumentTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 344 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: DocumentTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Search/Lucene.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Search/Lucene/Document.php';
                    
32
                    
35 */
                    
36require_once 'Zend/Search/Lucene/Document/Docx.php';
                    
37
                    
40 */
                    
41require_once 'Zend/Search/Lucene/Document/Pptx.php';
                    
42
                    
                
wp-settings.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 323 lines
                    
5 *
                    
6 * Allows for some configuration in wp-config.php (see default-constants.php)
                    
7 *
                    
61if ( WP_CACHE )
                    
62	WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
                    
63
                    
283if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) {
                    
284	if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
                    
285		include( STYLESHEETPATH . '/functions.php' );
                    
285		include( STYLESHEETPATH . '/functions.php' );
                    
286	if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
                    
287		include( TEMPLATEPATH . '/functions.php' );
                    
315 *
                    
316 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
                    
317 * users not logged in.
                    
                
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
                    
74                $path = self::clean_path($path) . self::get_behat_tests_path();
                    
75                if (empty($featurespaths[$path]) && file_exists($path)) {
                    
76
                    
127
                    
128            if (!file_exists($componentpath . self::get_behat_tests_path())) {
                    
129                continue;
                    
131            $diriterator = new DirectoryIterator($componentpath . self::get_behat_tests_path());
                    
132            $regite = new RegexIterator($diriterator, '|behat_.*\.php$|');
                    
133
                    
                
MaildirFolderTest.php https://github.com/sidealice/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
59            }
                    
60            if (!file_exists($this->_tmpdir)) {
                    
61                mkdir($this->_tmpdir);
                    
82            foreach (array('cur', 'new') as $subdir) {
                    
83                if (!file_exists($this->_originalDir . $dir . '/' . $subdir)) {
                    
84                    continue;
                    
103            foreach (array('cur', 'new') as $subdir) {
                    
104                if (!file_exists($this->_tmpdir . $dir . '/' . $subdir)) {
                    
105                    continue;
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
                
Test.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 275 lines
                    
18 * @copyright  1997-2006 The PHP Group
                    
19 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
20 * @version    CVS: $Id: Test.php,v 1.1.1.1 2009/05/08 18:30:19 root Exp $
                    
38 * @copyright  1997-2006 The PHP Group
                    
39 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
40 * @version    Release: 1.4.9
                    
60                    'shortopt' => 'i',
                    
61                    'doc' => 'actual string of settings to pass to php in format " -d setting=blah"',
                    
62                    'arg' => 'SETTINGS'
                    
81                    'shortopt' => 'u',
                    
82                    'doc' => 'Search parameters for AllTests.php, and use that to run phpunit-based tests',
                    
83                ),
                    
85            'doc' => '[testfile|dir ...]
                    
86Run regression tests with PHP\'s regression testing script (run-tests.php).',
                    
87            ),
                    
                
connecttoserver-ftp.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 256 lines
                    
1<?php
                    
2//Include wordpress files
                    
3$wp_blog_header_path = '';
                    
4if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'))
                    
5{
                    
5{
                    
6    $wp_blog_header_path = $_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php';
                    
7}
                    
7}
                    
8    else if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'))
                    
9{
                    
9{
                    
10    $wp_blog_header_path = $_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php';
                    
11}
                    
27    <link rel="stylesheet" type="text/css" href="/wp-content/themes/light-wordpress-theme/style.css" />
                    
28    <link rel="pingback" href="/xmlrpc.php" />
                    
29    <link rel="alternate" type="application/rss+xml" title="Ubuntu Danmark » Feed" href="/feed/" />
                    
                
security.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 300 lines
                    
26	<body>
                    
27		<?php include "lang/".file_get_contents("lang.tmp").".php"; ?>
                    
28		&nbsp;<br>
                    
29
                    
30		<h1><?php echo $TEXT['security-head']; ?> <?php include ".secureversion"; ?></h1>
                    
31		<i>(Requests allowed from localhost only)</i><br/><br/>
                    
54				$htxampp = $partwampp."\htdocs\\xampp\\".$htaccess;
                    
55				$phpmyadminconf = $partwampp."\phpmyadmin\\".$configinc;
                    
56				if ($command == "phpmyadmin") {
                    
197
                    
198			line($TEXT['security-phpmyadmin-nok'], $TEXT['security-phpmyadmin-ok'], $TEXT['security-phpmyadmin-text'], $TEXT['security-phpmyadmin-out'], "", "phpmyadmin");
                    
199
                    
201
                    
202			line($TEXT['security-checkphp-nok'], $TEXT['security-checkphp-ok'], $TEXT['security-checkphp-text'], $TEXT['security-checkphp-out'], "", "php");
                    
203
                    
                
mkdist.php https://bitbucket.org/luobailiang/php-src.git | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
89			   	in_array($depbase, $ext_targets) || in_array($depbase, $pecl_targets)) ||
                    
90				$depbase == $phpdll) && file_exists($GLOBALS['build_dir'] . "/$depbase")) {
                    
91			continue;
                    
210/* the core dll */
                    
211copy("$build_dir/php.exe", "$dist_dir/php.exe");
                    
212copy("$build_dir/$phpdll", "$dist_dir/$phpdll");
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
243);
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
template.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 394 lines
                    
95 * Works by first retrieving the current slug for example 'category-default.php' and then
                    
96 * trying category ID, for example 'category-1.php' and will finally fallback to category.php
                    
97 * template, if those files don't exist.
                    
185 *
                    
186 * Attempts to locate 'home.php' first before falling back to 'index.php'.
                    
187 *
                    
193function get_home_template() {
                    
194	$templates = array( 'home.php', 'index.php' );
                    
195
                    
218 * Will first look for the specifically assigned page template
                    
219 * The will search for 'page-{slug}.php' followed by 'page-id.php'
                    
220 * and finally 'page.php'
                    
296 *
                    
297 * Some examples for the 'text/plain' mime type are 'text.php', 'plain.php', and
                    
298 * finally 'text_plain.php'.
                    
                
self_test.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 314 lines
                    
32            PHP Version:
                    
33            <?php if (PHP_VERSION >= 5): ?>
                    
34            <code><?php echo PHP_VERSION; ?></code>
                    
35            <?php else: ?>
                    
36            <code><?php echo PHP_VERSION; ?></code>;
                    
37            <?php endif; ?>
                    
105            <code>Installed (XCache)</code>
                    
106            <?php elseif (PHP_VERSION >= 6): ?>
                    
107            <code>PHP6</code>
                    
167            <?php $open_basedir = ini_get('open_basedir'); if ($open_basedir): ?>
                    
168            <code>On: <?php echo htmlspecialchars($open_basedir); ?></code>
                    
169            <?php else: ?>
                    
236            <?php echo htmlspecialchars($path); ?>:
                    
237            <?php if (file_exists($path)): ?>
                    
238                <?php if (w3_is_writable($path)): ?>
                    
                
ARC2_Reader.php https://github.com/rinie/TransFormr.git | PHP | 400 lines
                    
1<?php
                    
2/**
                    
185    $parts = parse_url($url);
                    
186    $s = file_exists($parts['path']) ? @fopen($parts['path'], 'rb') : false;
                    
187    if (!$s) {
                    
                
imageupload.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 287 lines
                    
1<?php
                    
2
                    
68
                    
69    include_once AIU_BASE_PATH . 'includes/fileuploader/fileuploader.class.php';
                    
70
                    
81    if (!function_exists('includeFile')) {
                    
82        function includeFile($name, $type = 'config', $defaultName = 'default', $fileType = '.inc.php') {
                    
83            $folder = (substr($type, -1) != 'y') ? $type . 's/' : substr($folder, 0, -1) . 'ies/';
                    
90            } else {
                    
91                if (file_exists(AIU_BASE_PATH . $folder . $defaultName . '.' . $type . $fileType)) {
                    
92                    return AIU_BASE_PATH . $folder . $defaultName . '.' . $type . $fileType;
                    
93                } else {
                    
94                    $modx->messageQuit('Default AjaxImageUpload ' . $type . ' file "' . AIU_BASE_PATH . $folder . $defaultName . '.' . $type . '.inc.php" not found. Did you upload all snippet files?');
                    
95                }
                    
106
                    
107    include_once AIU_BASE_PATH . 'includes/PhpThumbFactory/ThumbLib.inc.php';
                    
108    // delete uploaded images
                    
                
metaslider.imagehelper.class.php https://gitlab.com/thisishayat/itv-2016 | PHP | 371 lines
                    
1<?php
                    
2
                    
226
                    
227        if ( file_exists( $dest_file_name ) && ! $force_resize ) {
                    
228            // good. no need for resize, just return the URL
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
5function deleteDir($dir) {
                    
6    if (!file_exists($dir)) return true;
                    
7    if (!is_dir($dir)) return unlink($dir);
                    
25    $name=fix_filename($name,$transliteration);
                    
26    if(file_exists($old_path)){
                    
27	$info=pathinfo($old_path);
                    
28	$new_path=$info['dirname']."/".$name.".".$info['extension'];
                    
29	if(file_exists($new_path)) return false;
                    
30	return rename($old_path,$new_path);
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
55    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
56	require_once('php_image_magician.php');
                    
57	$magicianObj = new imageLib($imgfile);
                    
                
categories.php https://github.com/jongleur/oscommerce.git | PHP | 336 lines
                    
1<?php
                    
2/*
                    
282                  if ( $Qcheck->numberOfRows() === 0 ) {
                    
283                    if (file_exists(realpath('../' . DIR_WS_IMAGES . 'categories/' . $Qimage->value('categories_image')))) {
                    
284                      @unlink(realpath('../' . DIR_WS_IMAGES . 'categories/' . $Qimage->value('categories_image')));
                    
                
voucher.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 263 lines
                    
1<?php 
                    
2class ControllerAccountVoucher extends Controller { 
                    
163				
                    
164		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/voucher.tpl')) {
                    
165			$this->template = $this->config->get('config_template') . '/template/account/voucher.tpl';
                    
208
                    
209		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/success.tpl')) {
                    
210			$this->template = $this->config->get('config_template') . '/template/common/success.tpl';
                    
                
index.php https://gitlab.com/Ltaimao/wecenter | PHP | 422 lines
                    
1<?php
                    
2/*
                    
14
                    
15require_once('../system/init.php');
                    
16
                    
18
                    
19if (file_exists(AWS_PATH . 'config/install.lock.php'))
                    
20{
                    
20{
                    
21	H::redirect_msg(load_class('core_lang')->_t('您的程序已经安装, 要重新安装请删除 system/config/install.lock.php'));
                    
22}
                    
33
                    
34		if (version_compare(PHP_VERSION, ENVIRONMENT_PHP_VERSION, '>=') AND get_cfg_var('safe_mode') == false)
                    
35		{
                    
35		{
                    
36			$system_require['php'] = TRUE;
                    
37		}
                    
                
Install.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 301 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Install.inc.php
                    
5 *
                    
17 *
                    
18 * $Id: Install.inc.php,v 1.7 2006/06/12 23:25:51 alec Exp $
                    
19 */
                    
113		// Check if files directory exists and is writeable
                    
114		if (!(file_exists($this->getParam('filesDir')) &&  is_writeable($this->getParam('filesDir')))) {
                    
115			// Files upload directory unusable
                    
122				$dirToCreate = $this->getParam('filesDir') . '/' . $dirName;
                    
123				if (!file_exists($dirToCreate)) {
                    
124					import('file.FileManager');
                    
134		$publicFilesDir = Config::getVar('files', 'public_files_dir');
                    
135		if (!(file_exists($publicFilesDir) &&  is_writeable($publicFilesDir))) {
                    
136			// Public files upload directory unusable
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
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' );
                    
354		// Load the WP abstraction file so BuddyPress can run on all WordPress setups.
                    
355		require( BP_PLUGIN_DIR . '/bp-core/bp-core-wpabstraction.php' );
                    
356
                    
392			if ( !empty( $this->maintenance_mode ) ) {
                    
393				require( $this->plugin_dir . 'bp-core/bp-core-admin.php'     );
                    
394				require( $this->plugin_dir . 'bp-core/bp-core-functions.php' );
                    
418			require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'      );
                    
419			require( $this->plugin_dir . 'bp-core/bp-core-update.php'     );
                    
420			require( $this->plugin_dir . 'bp-core/bp-core-options.php'    );
                    
436				require( $this->plugin_dir . 'bp-core/deprecated/1.5.php' );
                    
437				require( $this->plugin_dir . 'bp-core/deprecated/1.6.php' );
                    
438			}
                    
                
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		}
                    
449// Thomas Kahl - Feb. 2009
                    
450if (!defined('VM_ALLOW_EXTENDED_CLASSES') && file_exists(dirname(__FILE__).'/../virtuemart.cfg.php')) {
                    
451	include_once(dirname(__FILE__).'/../virtuemart.cfg.php');
                    
                
ShellDispatcher.php https://bitbucket.org/code_noodle/cakephp.git | PHP | 357 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @since         CakePHP(tm) v 2.0
                    
86			define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(__FILE__))));
                    
87			define('CAKEPHP_SHELL', true);
                    
88			if (!defined('CORE_PATH')) {
                    
129		}
                    
130		$boot = file_exists(ROOT . DS . APP_DIR . DS . 'Config' . DS . 'bootstrap.php');
                    
131		require CORE_PATH . 'Cake' . DS . 'bootstrap.php';
                    
132
                    
133		if (!file_exists(APP . 'Config' . DS . 'core.php')) {
                    
134			include_once CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Console' . DS . 'Templates' . DS . 'skel' . DS . 'Config' . DS . 'core.php';
                    
                
UpgradeComponentGroup.php https://github.com/orchestra-io/sample-openx.git | PHP | 320 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: UpgradeComponentGroup.php 30820 2009-01-13 19:02:17Z andrew.hill $
                    
26*/
                    
34
                    
35require_once MAX_PATH.'/lib/OA/Upgrade/Upgrade.php';
                    
36
                    
60        /*$this->nobackupsFile    = MAX_PATH.$pluginPath.'NOBACKUPS';
                    
61        $this->postTaskFile     = MAX_PATH.$pluginPath.'TASKS.php';*/
                    
62
                    
63        $this->initDatabaseConnection();
                    
64        if (!file_exists(MAX_PATH.'/var/plugins/log'))
                    
65        {
                    
                
progressive_parser.class.php https://github.com/kpike/moodle.git | PHP | 283 lines
                    
1<?php
                    
2
                    
51 *
                    
52 * TODO: Finish phpdocs
                    
53 */
                    
55
                    
56    protected $xml_parser; // PHP's low level XML SAX parser
                    
57    protected $file;       // full path to file being progressively parsed | => mutually exclusive
                    
92    public function set_file($file) {
                    
93        if (!file_exists($file) || (!is_readable($file))) {
                    
94            throw new progressive_parser_exception('invalid_file_to_parse');
                    
                
menu-header.php https://gitlab.com/campus-academy/krowkaramel | PHP | 306 lines
                    
167				$admin_is_parent = true;
                    
168				echo "<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>$title</div></a>";
                    
169			} else {
                    
186				$admin_is_parent = true;
                    
187				echo "\n\t<a href='admin.php?page={$item[2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>{$item[0]}</div></a>";
                    
188			} else {
                    
232					|| ( isset( $plugin_page ) && $plugin_page === $sub_item[2]
                    
233						&& ( $item[2] === $self_type || $item[2] === $self || file_exists( $menu_file ) === false ) )
                    
234				) {
                    
255					|| ( ( 'index.php' !== $sub_item[2] )
                    
256						&& file_exists( WP_PLUGIN_DIR . "/$sub_file" )
                    
257						&& ! file_exists( ABSPATH . "/wp-admin/$sub_file" ) )
                    
259					// If admin.php is the current page or if the parent exists as a file in the plugins or admin directory.
                    
260					if ( ( ! $admin_is_parent && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! is_dir( WP_PLUGIN_DIR . "/{$item[2]}" ) ) || file_exists( $menu_file ) ) {
                    
261						$sub_item_url = add_query_arg( array( 'page' => $sub_item[2] ), $item[2] );
                    
                
zbzippclzip.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
118			
                    
119				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
120				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
132						
                    
133					if ( file_exists( $test_file ) ) {
                    
134					
                    
212				
                    
213				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
214				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
226			
                    
227			if ( empty( $tempdir ) || !file_exists( $tempdir ) ) {
                    
228			
                    
301			
                    
302			if ( file_exists( $zip ) ) {
                    
303
                    
                
new.php https://github.com/md-tech/openemr.git | PHP | 449 lines
                    
165<script type="text/javascript" src="../../../library/dynarch_calendar.js"></script>
                    
166<?php include_once("{$GLOBALS['srcdir']}/dynarch_calendar_en.inc.php"); ?>
                    
167<script type="text/javascript" src="../../../library/dynarch_calendar_setup.js"></script>
                    
219function sel_related() {
                    
220 dlgopen('<?php echo $rootdir ?>/patient_file/encounter/find_code_popup.php', '_blank', 500, 400);
                    
221}
                    
228<body <?php echo $top_bg_line; ?> topmargin="0" rightmargin="0" leftmargin="2" bottommargin="0" marginwidth="2" marginheight="0">
                    
229<form method="post" action="<?php echo $rootdir ?>/forms/LBF/new.php?formname=<?php echo $formname ?>&id=<?php echo $formid ?>"
                    
230 onsubmit="return top.restoreSession()">
                    
421&nbsp;
                    
422<input type='button' value='<?php echo htmlspecialchars(xl('Cancel')) ?>' onclick="top.restoreSession();location='<?php echo $GLOBALS['form_exit_url']; ?>'" />
                    
423&nbsp;
                    
424<?php if ($form_is_graphable) { ?>
                    
425<input type='button' value='<?php echo htmlspecialchars(xl('Show Graph')) ?>' onclick="top.restoreSession();location='../../patient_file/encounter/trend_form.php?formname=<?php echo $formname; ?>'" />
                    
426&nbsp;
                    
                
index.php https://bitbucket.org/gvandenelzen/filmstudio.git | PHP | 384 lines
                    
1<?php
                    
2/*
                    
5* To change the template for this generated file go to
                    
6* Window - Preferences - PHPeclipse - PHP - Code Templates
                    
7
                    
15define ('CNET','193.228.149');
                    
16require_once ('dbinclude.php');
                    
17$domain=CNET;
                    
114	$thumb=THUMBS.$thumb.THUMB_POSTFIX;
                    
115	if(!file_exists('..'.$thumb))
                    
116	{
                    
341<body>
                    
342	<form id="catform" name="catform" method="get" action="<?php echo $formaction;?>">
                    
343		<table  cellspacing="2" cellpadding="0" border="0" width="100%" align="left">
                    
355		</tr>
                    
356		<?php echo "$catdropdown";?>
                    
357		<tr><td></td>
                    
                
tokenizer.php https://bitbucket.org/crevillo/enetcall.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
147    {
                    
148        if ( !file_exists( $file ) || !is_readable( $file ) )
                    
149        {
                    
                
modphpthumb.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 205 lines
                    
5 */
                    
6require_once MODX_CORE_PATH.'model/phpthumb/phpthumb.class.php';
                    
7/**
                    
13 */
                    
14class modPhpThumb extends phpThumb {
                    
15
                    
43        $this->setParameter('config_nohotlink_text_message',(string)$this->modx->getOption('phpthumb_nohotlink_text_message',$this->config,'Off-server thumbnailing is not allowed'));
                    
44        $this->setParameter('config_nooffsitelink_enabled',(boolean)$this->modx->getOption('phpthumb_nooffsitelink_enabled',$this->config,false));
                    
45        $this->setParameter('config_nooffsitelink_valid_domains',explode(',', $this->modx->getOption('phpthumb_nooffsitelink_valid_domains',$this->config,$this->modx->getOption('http_host'))));
                    
140
                    
141        $parsed_url = phpthumb_functions::ParseURLbetter(@$_SERVER['HTTP_REFERER']);
                    
142
                    
197        }
                    
198        $downloadfilename = phpthumb_functions::SanitizeFilename(@$_GET['sia'] ? $_GET['sia'] : (@$_GET['down'] ? $_GET['down'] : 'phpThumb_generated_thumbnail'.(@$_GET['f'] ? $_GET['f'] : 'jpg')));
                    
199        if (@$downloadfilename) {
                    
                
File.php https://github.com/Riges/KawaiViewModel.git | PHP | 432 lines
                    
24 */
                    
25require_once 'Zend/Reflection/Class.php';
                    
26
                    
92            // realpath() doesn't return false if Suhosin is included
                    
93            // see http://uk3.php.net/manual/en/function.realpath.php#82770
                    
94            if (!file_exists($fileRealpath)) {
                    
196        if (!$instance instanceof Zend_Reflection_Docblock) {
                    
197            require_once 'Zend/Reflection/Exception.php';
                    
198            throw new Zend_Reflection_Exception('Invalid reflection class specified; must extend Zend_Reflection_Docblock');
                    
214            if (!$instance instanceof Zend_Reflection_Class) {
                    
215                require_once 'Zend/Reflection/Exception.php';
                    
216                throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Class');
                    
329             * Token ID's are explained here:
                    
330             * http://www.php.net/manual/en/tokens.php.
                    
331             */
                    
                
index.php https://github.com/chadisel/Janrain-Sample-Code.git | PHP | 467 lines
                    
8$the_error = '';
                    
9if (file_exists('console.conf.php')) {
                    
10	require_once('console.conf.php');
                    
13}
                    
14if (file_exists('../library/engage.lib.php')) {
                    
15	require_once('../library/engage.lib.php');
                    
15	require_once('../library/engage.lib.php');
                    
16} elseif (file_exists('engage.lib.php')) {
                    
17	require_once('engage.lib.php');
                    
20}
                    
21if (file_exists('index.inc.php')) {
                    
22	require_once('index.inc.php');
                    
347						Click <a class="rpxnow" onclick="return false;"					
                    
348						href="<?php echo htmlentities($actions['auth_info']['app_dom']); ?>openid/v2/signin?token_url=<?php echo urlencode($token_url); ?>"> Sign In </a><br />
                    
349						This will fill in the token.<br />
                    
                
file.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 138 lines
                    
1<?php
                    
2/**
                    
37$_lang['file_err_unzip_invalid_path'] = '解凍済みファイルのパスが不適切です。';
                    
38$_lang['file_err_unzip_missing_lib'] = ' zipライブラリが見当たりません。(php_zip.dll / zip.so)';
                    
39$_lang['file_err_upload'] = 'ファイルのアップロード中にエラーが発生しました。';
                    
39$_lang['file_err_upload'] = 'ファイルのアップロード中にエラーが発生しました。';
                    
40$_lang['file_exists_hk'] = '<b>{0}</b>ファイルは既に存在します。';
                    
41$_lang['file_extensions'] = 'ファイル拡張子';
                    
                
myocamlbuild.ml https://bitbucket.org/slth/ocaml-tiger.git | OCaml | 512 lines
                    
130  let load ?(allow_empty=false) ?(filename=default_filename) () =
                    
131    if Sys.file_exists filename then
                    
132      begin
                    
219  (** OCamlbuild extension, copied from 
                    
220    * http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild
                    
221    * by N. Pouillard and others
                    
                
Test.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 275 lines
                    
18 * @copyright  1997-2006 The PHP Group
                    
19 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
20 * @version    CVS: $Id: Test.php,v 1.9 2006/02/03 22:28:08 cellog Exp $
                    
38 * @copyright  1997-2006 The PHP Group
                    
39 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
40 * @version    Release: 1.4.11
                    
60                    'shortopt' => 'i',
                    
61                    'doc' => 'actual string of settings to pass to php in format " -d setting=blah"',
                    
62                    'arg' => 'SETTINGS'
                    
81                    'shortopt' => 'u',
                    
82                    'doc' => 'Search parameters for AllTests.php, and use that to run phpunit-based tests',
                    
83                ),
                    
85            'doc' => '[testfile|dir ...]
                    
86Run regression tests with PHP\'s regression testing script (run-tests.php).',
                    
87            ),
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
shell.test.php https://github.com/vidor/myworks.git | PHP | 501 lines
                    
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
                    
18 * @subpackage    cake.tests.cases.console.libs
                    
19 * @since         CakePHP v 1.2.0.7726
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
418		$this->assertTrue($result);
                    
419		$this->assertTrue(file_exists($file));
                    
420		$this->assertEqual(file_get_contents($file), $contents);
                    
483
                    
484		$contents = "<?php\necho 'yet another test';\r\n\$te = 'st';\r\n?>";
                    
485		$result = $this->Shell->createFile($file, $contents);
                    
                
Operator.php https://github.com/ckdimka/core.git | PHP | 427 lines
                    
1<?php
                    
2// vim: set ts=4 sw=4 sts=4 et:
                    
11 * It is also available through the world-wide-web at this URL:
                    
12 * http://opensource.org/licenses/osl-3.0.php
                    
13 * If you did not receive a copy of the license and are unable to
                    
16 *
                    
17 * PHP version 5.3.0
                    
18 *
                    
21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
                    
22 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
23 * @link      http://www.litecommerce.com/
                    
81        return class_exists($name, false)
                    
82            || file_exists(LC_DIR_CACHE_CLASSES . str_replace('\\', LC_DS, $name) . '.php');
                    
83    }
                    
424    {
                    
425        return '# <' . '?php if (!defined(\'LC_DS\')) { die(); } ?' . '>' . PHP_EOL . PHP_EOL;
                    
426    }
                    
                
FilesystemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 240 lines
                    
1<?php
                    
2
                    
120     */
                    
121    public function testRemoveDirectoryPhp()
                    
122    {
                    
127        $fs = new Filesystem;
                    
128        $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir"));
                    
129        $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt"));
                    
203        $this->assertTrue($result);
                    
204        $this->assertFalse(file_exists($symlinked));
                    
205    }
                    
236        $this->assertTrue($result);
                    
237        $this->assertFalse(file_exists($symlinkedTrailingSlash));
                    
238        $this->assertFalse(file_exists($symlinked));
                    
                
Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
                    
1<?php namespace Illuminate\Filesystem;
                    
2
                    
21    {
                    
22        return file_exists($path);
                    
23    }
                    
                
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;
                    
124		foreach ($this->attachments as $attachment) {
                    
125			if (file_exists($attachment)) {
                    
126				$handle = fopen($attachment, 'r');
                    
158			} else {
                    
159				if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
160					socket_set_timeout($handle, $this->timeout, 0);
                    
358					foreach ($results as $result) {
                    
359						if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
360							fputs($handle, $result . $this->crlf);
                    
                
example_064.php https://gitlab.com/vince.omega/General-Code-Dump-From-Desktop | PHP | 176 lines
                    
1<?php
                    
2//============================================================+
                    
2//============================================================+
                    
3// File name   : example_064.php
                    
4// Begin       : 2010-10-13
                    
27// Include the main TCPDF library (search for installation path).
                    
28require_once('tcpdf_include.php');
                    
29
                    
61// set some language-dependent strings (optional)
                    
62if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
                    
63	require_once(dirname(__FILE__).'/lang/eng.php');
                    
                
ClassLoader.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 412 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version   $Id: ClassLoader.php 57540 2012-10-14 18:27:59Z btowles $
                    
4 * @author    RocketTheme http://www.rockettheme.com
                    
9 * SplClassLoader implementation that implements the technical interoperability
                    
10 * standards for PHP 5.3 namespaces and class names.
                    
11 *
                    
11 *
                    
12 * http://groups.google.com/group/php-standards/web/final-proposal
                    
13 *
                    
36		 */
                    
37		const FILE_EXTENSION = '.php';
                    
38		/**
                    
103				$commonsPath    = realpath(dirname(__FILE__) . '/..');
                    
104				$fileName       = str_replace('_', DIRECTORY_SEPARATOR, $className) . ".php";
                    
105				$full_file_path = $commonsPath . DIRECTORY_SEPARATOR . $fileName;
                    
                
parte_privada.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 225 lines
                    
1<?php
                    
2/*
                    
85			if ($rowMotIcon = spip_fetch_array($resultMotIcon)){
                    
86				if (file_exists("../IMG/"."moton".$rowMot['id_mot'].".png")) {
                    
87  				  	$gicon = "moton".$rowMot['id_mot'].".png";
                    
87  				  	$gicon = "moton".$rowMot['id_mot'].".png";
                    
88				} else if (file_exists("../IMG/"."moton".$rowMot['id_mot'].".gif")) {
                    
89					$gicon = "moton".$rowMot['id_mot'].".gif";
                    
                
template.php https://gitlab.com/Gashler/dp | PHP | 411 lines
                    
99 * Works by first retrieving the current slug, for example 'category-default.php', and then
                    
100 * trying category ID, for example 'category-1.php', and will finally fall back to category.php
                    
101 * template, if those files don't exist.
                    
195 *
                    
196 * Attempts to locate 'home.php' first before falling back to 'index.php'.
                    
197 *
                    
203function get_home_template() {
                    
204	$templates = array( 'home.php', 'index.php' );
                    
205
                    
228 * Will first look for the specifically assigned page template.
                    
229 * Then will search for 'page-{slug}.php', followed by 'page-{id}.php',
                    
230 * and finally 'page.php'.
                    
307 *
                    
308 * Some examples for the 'text/plain' mime type are 'text.php', 'plain.php', and
                    
309 * finally 'text_plain.php'.
                    
                
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
                    
                
Bug36845Test.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 222 lines
                    
177    {
                    
178        $this->assertTrue(file_exists("{$this->module_dir}/metadata/SearchFields.php"), 'Assert that we have a SearchFields.php file');
                    
179        $this->assertTrue(file_exists("{$this->module_dir}/vardefs.php"), 'Assert that we have a vardefs.php file');
                    
184        $usa->buildCache();
                    
185        $this->assertTrue(file_exists('cache/modules/unified_search_modules.php'), 'Assert that we have a unified_search_modules.php file');
                    
186        include('cache/modules/unified_search_modules.php');
                    
195        $this->assertTrue(!file_exists("{$this->module_dir}/metadata/SearchFields.php"), 'Assert that we have a SearchFields.php file');
                    
196        $this->assertTrue(file_exists("{$this->module_dir}/vardefs.php"), 'Assert that we have a vardefs.php file');
                    
197        require_once('modules/UpgradeWizard/uw_utils.php');
                    
201        $usa->buildCache();
                    
202        $this->assertTrue(file_exists("cache/modules/unified_search_modules.php"), 'Assert that we have a unified_search_modules.php file');
                    
203        include('cache/modules/unified_search_modules.php');
                    
219        $usa->saveGlobalSearchSettings();
                    
220        $this->assertTrue(file_exists('custom/modules/unified_search_modules_display.php'), 'Assert that unified_search_modules_display.php file was created');        
                    
221    }
                    
                
File.php https://gitlab.com/najomie/fit-hippie | PHP | 573 lines
                    
1<?php
                    
2/**
                    
142    public function exists(){
                    
143        return file_exists( $this->path );
                    
144    }
                    
316        $this->info = null;
                    
317        // PHP 5.3.0 Added optional clear_realpath_cache and filename parameters.
                    
318        if( version_compare( PHP_VERSION, '5.3.0', '>=' ) ){
                    
445    public function isDirectory(){
                    
446        if( file_exists($this->path) ){
                    
447            return is_dir($this->path);
                    
                
RecipientImportField.php https://github.com/lenix/silverstripe-newsletter.git | PHP | 397 lines
                    
1<?php
                    
2
                    
219		elseif( !$this->isValidCSV( $_FILES['ImportFile'] ) ) {
                    
220			/*if( file_exists( $_FILES['ImportFile']['tmp_name'] ) ) unlink( $_FILES['ImportFile']['tmp_name'] );
                    
221			unset( $_FILES['ImportFile'] );*/
                    
                
Filesystem.php https://github.com/mamayoleksandr/xtbackup.git | PHP | 317 lines
                    
1<?php
                    
2class Storage_Filesystem implements Storage_Interface
                    
55        $this->_baseDir = rtrim($this->_baseDir, '/'). '/';
                    
56        $this->_isWindows = (strpos(strtolower(php_uname('s')), 'win') !== false);
                    
57        $this->_fileStat = new Storage_Filesystem_FileStat();
                    
68
                    
69        if (!file_exists($this->_baseDir)) {
                    
70            $this->_out->stop("local folder {$this->_baseDir} doesn't exists");
                    
165            //initialize windows's FileSystemObject
                    
166            /** @noinspection PhpUndefinedClassInspection, PhpUndefinedConstantInspection */
                    
167            $fso = new COM('Scripting.FileSystemObject', null, CP_UTF8);
                    
176            //see Scripting.FileSystemObject on http://msdn.microsoft.com
                    
177            /** @noinspection PhpUndefinedMethodInspection */
                    
178            $folder = $fso->GetFolder($curDir);
                    
                
HTML.php https://bitbucket.org/crowdguru/phpexcel.git | PHP | 495 lines
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
149		// Create new PHPExcel
                    
150		$objPHPExcel = new PHPExcel();
                    
151
                    
430	/**
                    
431	 * Loads PHPExcel from file into PHPExcel instance
                    
432	 *
                    
433	 * @param 	string 		$pFilename
                    
434	 * @param	PHPExcel	$objPHPExcel
                    
435	 * @return 	PHPExcel
                    
437	 */
                    
438	public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
                    
439	{
                    
                
Remote.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 394 lines
                    
1<?php
                    
2//
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP Version 5                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2004 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 3.0 of the PHP license,       |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available through the world-wide-web at the following url:           |
                    
11// | http://www.php.net/license/3_0.txt.                                  |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
Cache.php https://github.com/cawago/ci_campusync_auth.git | PHP | 416 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.phpdoctrine.org
                    
283
                    
284            if ( ! file_exists($this->_options['statsFile'])) {
                    
285                throw new Doctrine_Cache_Exception("Couldn't save cache statistics. Cache statistics file doesn't exists!");
                    
                
file_helper.php https://github.com/Sa-ryong/Stadioom-php.git | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
42	{
                    
43		if ( ! file_exists($file))
                    
44		{
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
283
                    
284		if ( ! file_exists($file))
                    
285		{
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
                
generator_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 224 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
51        $this->setExpectedException('coding_exception', 'Component core_completion does not support ' .
                    
52                    'generators yet. Missing tests/generator/lib.php.');
                    
53        $generator = $this->getDataGenerator()->get_plugin_generator('core_completion');
                    
111        global $CFG, $SITE;
                    
112        if (!file_exists("$CFG->dirroot/mod/page/")) {
                    
113            $this->markTestSkipped('Can not find standard Page module');
                    
131        global $CFG;
                    
132        if (!file_exists("$CFG->dirroot/blocks/online_users/")) {
                    
133            $this->markTestSkipped('Can not find standard Online users block');
                    
                
index.php https://bitbucket.org/lyonnat/wp2op.git | PHP | 355 lines
                    
1<?php
                    
2if(file_exists('wxr.xml')) {
                    
4}
                    
5if(file_exists('md')) {
                    
6  deldir('md');
                    
7}
                    
8if(file_exists('md.zip')) {
                    
9  unlink('md.zip');
                    
20<body>
                    
21<form action="<?=$_SERVER['PHP_SELF']?>" enctype="multipart/form-data" method="POST">
                    
22<input type="file" name="wxr"><br />
                    
26</html>
                    
27<?php }
                    
28elseif ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_FILES['wxr'])) {
                    
29  if ($_FILES['wxr']['size'] == 0) {
                    
30    header('Location: '.$_SERVER['PHP_SELF']);
                    
31  }
                    
                
Type.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 395 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2002 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 3.0 of the PHP license,       |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/3_0.txt.                                  |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
order_total.php https://gitlab.com/shinvdu/doc | PHP | 250 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
9 * @version $Id: order_total.php 19103 2011-07-13 18:10:46Z wilt $
                    
10 */
                    
33        $lang_file = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
                    
34        if (@file_exists($lang_file)) {
                    
35          include_once($lang_file);
                    
43        $module_file = DIR_WS_MODULES . 'order_total/' . $value;
                    
44        if (@file_exists($module_file)) {
                    
45          include_once($module_file);
                    
98          // use a template file for output instead of hard-coded HTML
                    
99          require($template->get_template_dir('tpl_modules_order_totals.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_order_totals.php');
                    
100        }
                    
                
model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
                    
1<?php
                    
2/**
                    
141          $icon = $icons_dir_url . '/' . $file['type'] . '.png';
                    
142          if (file_exists($icons_dir_path . '/' . $file['type'] . '.png') == FALSE) {
                    
143            $icon = $icons_dir_url . '/' . '_blank.png';
                    
                
Image.php https://github.com/tanduy/zf.git | PHP | 600 lines
                    
1<?php
                    
2/**
                    
23/** @see Zend_Captcha_Word */
                    
24require_once 'Zend/Captcha/Word.php';
                    
25
                    
424        // If there's already such file, try creating a new ID
                    
425        while($tries-- && file_exists($this->getImgDir() . $id . $this->getSuffix())) {
                    
426            $id = $this->_generateRandomId();
                    
448        if (!extension_loaded("gd")) {
                    
449            require_once 'Zend/Captcha/Exception.php';
                    
450            throw new Zend_Captcha_Exception("Image CAPTCHA requires GD extension");
                    
453        if (!function_exists("imagepng")) {
                    
454            require_once 'Zend/Captcha/Exception.php';
                    
455            throw new Zend_Captcha_Exception("Image CAPTCHA requires PNG support");
                    
458        if (!function_exists("imageftbbox")) {
                    
459            require_once 'Zend/Captcha/Exception.php';
                    
460            throw new Zend_Captcha_Exception("Image CAPTCHA requires FT fonts support");
                    
                
WindowsAzure.php https://github.com/kervin/kyzstudio.git | PHP | 443 lines
                    
1<?php
                    
2/**
                    
19
                    
20#require_once 'Zend/Cloud/StorageService/Adapter.php';
                    
21#require_once 'Zend/Service/WindowsAzure/Storage/Blob.php';
                    
21#require_once 'Zend/Service/WindowsAzure/Storage/Blob.php';
                    
22#require_once 'Zend/Cloud/StorageService/Exception.php';
                    
23
                    
50    const RETURN_STRING = 2; // return data as string
                    
51    const RETURN_STREAM = 3; // return PHP stream
                    
52
                    
209            $removeTemporaryFilePath = true;
                    
210        } elseif (file_exists($data)) {
                    
211            $temporaryFilePath       = $data;
                    
                
Image.php https://github.com/jpratt/cal.git | PHP | 520 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
183
                    
184        if (!file_exists($file) || !is_file($file)) {
                    
185            return 0;
                    
240        if ($file) {
                    
241            if ((!file_exists($baseDir . $file)) || !$this->_checkMemory($baseDir . $file)) {
                    
242                $file = null;
                    
248            $configPlaceholder   = '/placeholder/' . $isConfigPlaceholder;
                    
249            if ($isConfigPlaceholder && file_exists($baseDir . $configPlaceholder)) {
                    
250                $file = $configPlaceholder;
                    
                
Router.php https://bitbucket.org/mbaily/tremain.git | PHP | 460 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.2.4 or newer
                    
6 *
                    
87
                    
88		// Load the routes.php file.
                    
89		@include(APPPATH.'config/routes.php');
                    
220		// Does the requested controller exist in the root folder?
                    
221		if (file_exists(APPPATH.'controllers/'.$segments[0].'.php'))
                    
222		{
                    
235				// Does the requested controller exist in the sub-folder?
                    
236				if ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$segments[0].'.php'))
                    
237				{
                    
257				// Does the default controller exist in the sub-folder?
                    
258				if ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$this->default_controller.'.php'))
                    
259				{
                    
                
extension.cache.sqlite3.php https://gitlab.com/x33n/ampache | PHP | 265 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////////////////////
                    
8///                                                                            //
                    
9// extension.cache.sqlite3.php - part of getID3()                              //
                    
10// Please see readme.txt for more information                                  //
                    
24*
                    
25*       require_once 'getid3/getid3.php';
                    
26*       $getID3 = new getID3;
                    
32*
                    
33*       require_once 'getid3/getid3.php';
                    
34*       require_once 'getid3/extension.cache.sqlite3.php';
                    
49*
                    
50*   sqlite3             table='getid3_cache', hide=false        (PHP5)
                    
51*
                    
76*   db3                 dbm_filename, lock_filename
                    
77*   db4                 dbm_filename, lock_filename  (PHP5 required)
                    
78*
                    
                
DefaultController.php https://bitbucket.org/reredesign/bitrix-module.git | PHP | 235 lines
                    
1<?php
                    
2/**
                    
29                if ($this->register())
                    
30                    $this->result(array('success', 'PHPSESSID', Yii::app()->session->sessionID));
                    
31                else {
                    
50                if (Yii::app()->user->isGuest && !$this->register()) break;
                    
51                $fileData = file_get_contents("php://input");
                    
52                if (empty($fileData))
                    
70                Yii::app()->params['parseDir'] = $dir;
                    
71                if (!file_exists($dir . $filename))
                    
72                    $this->result(array('failure', 'can`t find file ' . $dir . $filename), 0);
                    
127        $model->attributes = array(
                    
128            'email' => $_SERVER['PHP_AUTH_USER'],
                    
129            'password' => $_SERVER['PHP_AUTH_PW'],
                    
130        );
                    
131        return ($model->validate() && $model->login($_SERVER['PHP_AUTH_PW']));
                    
132    }
                    
                
ConfigListener.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 383 lines
                    
1<?php
                    
2/**
                    
368        if (($this->getOptions()->getConfigCacheEnabled())
                    
369            && (file_exists($this->getOptions()->getConfigCacheFile()))
                    
370        ) {
                    
                
Mcrypt.php https://gitlab.com/Ltaimao/wecenter | PHP | 364 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25//require_once 'Zend/Filter/Encrypt/Interface.php';
                    
26
                    
117        if (!is_array($options)) {
                    
118            //require_once 'Zend/Filter/Exception.php';
                    
119            throw new Zend_Filter_Exception('Invalid options argument provided to filter');
                    
124        if (!in_array($options['algorithm'], $algorithms)) {
                    
125            //require_once 'Zend/Filter/Exception.php';
                    
126            throw new Zend_Filter_Exception("The algorithm '{$options['algorithm']}' is not supported");
                    
171            $this->_srand();
                    
172            if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) {
                    
173                $method = MCRYPT_RAND;
                    
174            } else {
                    
175                if (file_exists('/dev/urandom') || (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')) {
                    
176                    $method = MCRYPT_DEV_URANDOM;
                    
                
addons.php https://github.com/strangerstudios/paid-memberships-pro.git | PHP | 303 lines
                    
89		<?php printf(__('Last checked on %s at %s.', 'paid-memberships-pro' ), date_i18n(get_option('date_format'), $addons_timestamp), date_i18n(get_option('time_format'), $addons_timestamp));?> &nbsp;	
                    
90		<a class="button" href="<?php echo esc_url( admin_url("admin.php?page=pmpro-addons&force-check=1&plugin_status=" . $status) );?>"><?php esc_html_e('Check Again', 'paid-memberships-pro' ); ?></a>
                    
91	</p>
                    
93	<ul class="subsubsub">
                    
94		<li class="all"><a href="admin.php?page=pmpro-addons&plugin_status=all" <?php if(empty($status) || $status == "all") { ?>class="current"<?php } ?>><?php esc_html_e('All', 'paid-memberships-pro' ); ?> <span class="count">(<?php echo count($all_visible_addons);?>)</span></a> |</li>
                    
95		<li class="active"><a href="admin.php?page=pmpro-addons&plugin_status=active" <?php if($status == "active") { ?>class="current"<?php } ?>><?php esc_html_e('Active', 'paid-memberships-pro' ); ?> <span class="count">(<?php echo count($active_addons);?>)</span></a> |</li>
                    
95		<li class="active"><a href="admin.php?page=pmpro-addons&plugin_status=active" <?php if($status == "active") { ?>class="current"<?php } ?>><?php esc_html_e('Active', 'paid-memberships-pro' ); ?> <span class="count">(<?php echo count($active_addons);?>)</span></a> |</li>
                    
96		<li class="inactive"><a href="admin.php?page=pmpro-addons&plugin_status=inactive" <?php if($status == "inactive") { ?>class="current"<?php } ?>><?php esc_html_e('Inactive', 'paid-memberships-pro' ); ?> <span class="count">(<?php echo count($inactive_addons);?>)</span></a> |</li>
                    
97		<li class="update"><a href="admin.php?page=pmpro-addons&plugin_status=update" <?php if($status == "update") { ?>class="current"<?php } ?>><?php esc_html_e('Update Available', 'paid-memberships-pro' ); ?> <span class="count">(<?php echo count($update_available_addons);?>)</span></a> |</li>
                    
97		<li class="update"><a href="admin.php?page=pmpro-addons&plugin_status=update" <?php if($status == "update") { ?>class="current"<?php } ?>><?php esc_html_e('Update Available', 'paid-memberships-pro' ); ?> <span class="count">(<?php echo count($update_available_addons);?>)</span></a> |</li>
                    
98		<li class="uninstalled"><a href="admin.php?page=pmpro-addons&plugin_status=uninstalled" <?php if($status == "uninstalled") { ?>class="current"<?php } ?>><?php esc_html_e('Not Installed', 'paid-memberships-pro' ); ?> <span class="count">(<?php echo count($not_installed_addons);?>)</span></a></li>
                    
99	</ul>
                    
178				?>
                    
179				<tr id="<?php echo $id; ?>" class="<?php echo $context;?>" data-slug="<?php echo $id; ?>">					
                    
180					<th scope="row" class="check-column">
                    
                
blocklayered.tpl https://gitlab.com/staging06/myproject | Smarty Template | 252 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2015 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registred Trademark & Property of PrestaShop SA
                    
92										{if isset($filter.is_color_group) && $filter.is_color_group}
                    
93											<input class="color-option {if isset($value.checked) && $value.checked}on{/if} {if !$value.nbr}disable{/if}" type="button" name="layered_{$filter.type_lite}_{$id_value}" data-rel="{$id_value}_{$filter.id_key}" id="layered_id_attribute_group_{$id_value}" {if !$value.nbr}disabled="disabled"{/if} style="background: {if isset($value.color)}{if file_exists($col_img_dir|cat:$id_value|cat:'.jpg')}url({$img_col_dir}{$id_value}.jpg){else}{$value.color}{/if}{else}#CCC{/if};" title="{$value.name|escape:html:'UTF-8'}" />
                    
94											{if isset($value.checked) && $value.checked}<input type="hidden" name="layered_{$filter.type_lite}_{$id_value}" value="{$id_value}" />{/if}
                    
113										{if isset($filter.is_color_group) && $filter.is_color_group}
                    
114											<input class="radio color-option {if isset($value.checked) && $value.checked}on{/if} {if !$value.nbr}disable{/if}" type="button" name="layered_{$filter.type_lite}_{$id_value}" data-rel="{$id_value}_{$filter.id_key}" id="layered_id_attribute_group_{$id_value}" {if !$value.nbr}disabled="disabled"{/if} style="background: {if isset($value.color)}{if file_exists($col_img_dir|cat:$id_value|cat:'.jpg')}url({$img_col_dir}{$id_value}.jpg){else}{$value.color}{/if}{else}#CCC{/if};" title="{$value.name|escape:html:'UTF-8'}"/>
                    
115											{if isset($value.checked) && $value.checked}<input type="hidden" name="layered_{$filter.type_lite}_{$id_value}" value="{$id_value}" />{/if}
                    
                
Filesystem.php https://bitbucket.org/ortic/deploy.git | PHP | 407 lines
                    
1<?php
                    
2
                    
83        foreach ($this->toIterator($files) as $file) {
                    
84            if (!file_exists($file)) {
                    
85                return false;
                    
125        foreach ($files as $file) {
                    
126            if (!file_exists($file) && !is_link($file)) {
                    
127                continue;
                    
136            } else {
                    
137                // https://bugs.php.net/bug.php?id=52176
                    
138                if (defined('PHP_WINDOWS_VERSION_MAJOR') && is_dir($file)) {
                    
279                if (is_array($report)) {
                    
280                    if (defined('PHP_WINDOWS_VERSION_MAJOR') && false !== strpos($report['message'], 'error code(1314)')) {
                    
281                        throw new IOException('Unable to create symlink due to error code 1314: \'A required privilege is not held by the client\'. Do you have the required Administrator-rights?');
                    
299        // Normalize separators on windows
                    
300        if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
                    
301            $endPath = strtr($endPath, '\\', '/');
                    
                
tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * usally called as form action from tbl_change.php to insert or update table rows
                    
7 *
                    
7 *
                    
8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $
                    
9 *
                    
28 * @uses    count()
                    
29 * @uses    file_exists()
                    
30 * @uses    strlen()
                    
54 */
                    
55require_once './libraries/common.inc.php';
                    
56
                    
69    $GLOBALS['js_include'][] = 'tbl_change.js';
                    
70    require_once './libraries/header.inc.php';
                    
71    require './tbl_change.php';
                    
                
core.php https://github.com/mediamedics/ko3_modules.git | PHP | 374 lines
                    
1<?php
                    
2
                    
317				
                    
318				if(file_exists($this->attachment)){
                    
319					$message->attach(Swift_Attachment::fromPath($this->attachment));
                    
330					if(is_string($file)){
                    
331						if(file_exists($file)){
                    
332							$message->attach(Swift_Attachment::fromPath($file));
                    
                
DirectFilesystem.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 500 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * @file DirectFilesystem.php
                    
7 * @ingroup Deployment
                    
17/**
                    
18 * Filesystem class for direct PHP file and folder manipulation.
                    
19 * 
                    
176
                    
177		if ( $success && file_exists( $path ) ) {
                    
178			wfSuppressWarnings();
                    
221		wfSuppressWarnings();
                    
222		$result = file_exists( $file );
                    
223		wfRestoreWarnings();		
                    
426	public function makeDir( $path, $chmod = false, $chown = false, $chgrp = false ) {
                    
427		// Safe mode fails with a trailing slash under certain PHP versions.
                    
428		$path = rtrim( $path, '/' );
                    
                
ProjectTask.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 447 lines
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @since         CakePHP(tm) v 1.2
                    
69		$response = false;
                    
70		while (!$response && is_dir($project) === true && file_exists($project . 'Config' . 'core.php')) {
                    
71			$prompt = __d('cake_console', '<warning>A project already exists in this location:</warning> %s Overwrite?', $project);
                    
145/**
                    
146 * Checks PHP's include_path for CakePHP.
                    
147 *
                    
152		foreach ($paths as $path) {
                    
153			if (file_exists($path . DS . 'Cake' . DS . 'bootstrap.php')) {
                    
154				return true;
                    
                
ApiGenerator.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 519 lines
                    
1<?php
                    
2/**
                    
197	{
                    
198		$model_name = ucfirst($name) .'_model.php';
                    
199
                    
199
                    
200		if (! file_exists(APPPATH .'models/'. $model_name))
                    
201		{
                    
234
                    
235		$destination = $this->destination . ucfirst($plural) .'.php';
                    
236
                    
257
                    
258        $destination = APPPATH ."language/english/api_{$plural}_lang.php";
                    
259
                    
284		// Load the model so we can use the correct table to use
                    
285        $model = strtolower( str_replace('.php', '', $model) );
                    
286		$this->load->model( $model, $model, true );
                    
                
String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
                    
1<?php
                    
2
                    
262
                    
263		if (isset(self::$cache['cached'][$this->cacheId]) === true && file_exists($cachedFile)) {
                    
264			// already checked, return cache file
                    
265			return $cachedFile;
                    
266		} elseif ($this->compilationEnforced !== true && file_exists($cachedFile) && ($cacheLength === -1 || filemtime($cachedFile) > ($_SERVER['REQUEST_TIME'] - $cacheLength))) {
                    
267			// cache is still valid and can be loaded
                    
327
                    
328		return !file_exists($cachedFile) || (filectime($cachedFile) < (time() - $olderThan) && unlink($cachedFile));
                    
329	}
                    
355					if (class_exists('Dwoo_Compiler', false) === false) {
                    
356						include DWOO_DIRECTORY . 'Dwoo/Compiler.php';
                    
357					}
                    
386	protected function isValidCompiledFile($file) {
                    
387		return file_exists($file);
                    
388	}
                    
                
ARC2_TestHandler.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 434 lines
                    
1<?php
                    
2/*
                    
50    $fname = 'f' . crc32($url) . '.txt';
                    
51    if (!file_exists('tmp/' . $fname)) {
                    
52      $r = '';
                    
                
wp_loaded.php https://gitlab.com/najomie/fit-hippie | PHP | 281 lines
                    
1<?php
                    
2
                    
201									$log_file = wp_all_import_secure_file( $wp_uploads['basedir'] . DIRECTORY_SEPARATOR . PMXI_Plugin::LOGS_DIRECTORY, $history_log->id ) . DIRECTORY_SEPARATOR . $history_log->id . '.html';
                    
202									if ( @file_exists($log_file) ) wp_all_import_remove_source($log_file, false);	
                    
203
                    
                
main.php https://github.com/markkimsal/cognifty.git | PHP | 502 lines
                    
1<?php
                    
2
                    
15	function mainEvent(&$req, &$t) {
                    
16		if (!file_exists(BASE_DIR.'var/search_cache')) {
                    
17			@mkdir (BASE_DIR.'var/search_cache');
                    
23
                    
24		$t['complete'] = file_exists(CGN_BOOT_DIR.'local/core.ini');
                    
25	}
                    
173		//clear the cache
                    
174		if (file_exists(CGN_BOOT_DIR.'bootstrap.cache')) {
                    
175			unlink(CGN_BOOT_DIR.'bootstrap.cache');
                    
232					if (strstr($db->errorMessage, 'IF EXISTS')) {
                    
233						$e = Cgn_ErrorStack::pullError('php');
                    
234						continue;
                    
236					if (strstr($db->errorMessage, 'already exists')) {
                    
237						$e = Cgn_ErrorStack::pullError('php');
                    
238						continue;
                    
                
removing.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 187 lines
                    
3$wp_blog_header_path = '';
                    
4if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'))
                    
5{
                    
7}
                    
8    else if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'))
                    
9{
                    
9{
                    
10    $wp_blog_header_path = $_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php';
                    
11}
                    
149              <ul>
                    
150              <li><a href="installation-windows-ubuntu.php">Hvordan er softwareinstallation på Ubuntu anderledes end på Windows?</a></li>
                    
151              <li><a href="installing.php">Installation af et program</a>
                    
169              <li><a href="restricted-software.php">Hvad er begrænset og ikke-fri software?</a></li>
                    
170              <li><a href="default-repos.php">Oversigt over standard-programpakkearkiver i Ubuntu</a>
                    
171                  <ul>
                    
                
default.php https://gitlab.com/komputer007123/cpulogger | PHP | 277 lines
                    
19				'public_html',				

                    
20				'index.php',

                    
21				'Thumbs',

                    
48				'html' => 'html.gif',

                    
49				'php' => 'php.gif',				

                    
50				'fla' => 'fla.gif',

                    
107if(!$leadon) $opendir = '.';

                    
108if(!file_exists($opendir)) {

                    
109	$opendir = '.';

                    
184    <head>

                    
185        <title>Добро пожаловать на <? print $host; ?>! Hostinger хостинг с PHP и MySQL.</title>

                    
186        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

                    
196                    <h1>Ваш аккаунт создан!</h1>

                    
197                    <p>Веб-сайт <b><? print $host; ?></b> успешно установлен на сервер! Пожалуйста удалите файл <b>default.php</b> из папки <b>public_html</b> и загрузите файлы Вашего сайта используя FTP клиент или Файловый Менеджер.</p>

                    
198                    <p>Список файлов в папке public_html:</p>

                    
                
interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
                    
26
                    
27			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_download_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-download_backup' ); ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> |
                    
28			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_delete_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-delete_backup' ); ?>" class="delete-action"><?php _e( 'Delete', 'hmbkp' ); ?></a>
                    
119	if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) )
                    
120		$plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools &rarr; Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools &rarr; Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] );
                    
121
                    
244	
                    
245	<span class="hmbkp-status"><?php echo $schedule->get_status() ? $schedule->get_status() : __( 'Starting Backup', 'hmbkp' ); ?> <a href="<?php echo add_query_arg( array( 'action' => 'hmbkp_cancel', 'hmbkp_schedule_id' => $schedule->get_id() ), HMBKP_ADMIN_URL ); ?>"><?php _e( 'cancel', 'hmbkp' ); ?></a></span>
                    
246
                    
248
                    
249		<a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Settings', 'hmbkp' ); ?></a> |
                    
250
                    
254
                    
255		<a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a>  |
                    
256
                    
                
theme.php https://gitlab.com/x33n/respond | PHP | 363 lines
                    
1<?php
                    
2
                    
29		            
                    
30		            if(file_exists($config)){
                    
31		            
                    
183			
                    
184			if(file_exists($location)){
                    
185    			$content = file_get_contents($location);
                    
                
ms-load.php https://github.com/vidor/vidor.me.git | PHP | 254 lines
                    
49		if ( ! validate_file( $plugin ) // $plugin must validate as file
                    
50			&& '.php' == substr( $plugin, -4 ) // $plugin must end with '.php'
                    
51			&& file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist
                    
65 * To change the default message when a blog does not pass the check,
                    
66 * use the wp-content/blog-deleted.php, blog-inactive.php and
                    
67 * blog-suspended.php drop-ins.
                    
83	if ( '1' == $current_blog->deleted ) {
                    
84		if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) )
                    
85			return WP_CONTENT_DIR . '/blog-deleted.php';
                    
90	if ( '2' == $current_blog->deleted ) {
                    
91		if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) )
                    
92			return WP_CONTENT_DIR . '/blog-inactive.php';
                    
97	if ( $current_blog->archived == '1' || $current_blog->spam == '1' ) {
                    
98		if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) )
                    
99			return WP_CONTENT_DIR . '/blog-suspended.php';
                    
                
Form_bu.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 382 lines
                    
284			$options = '<?php foreach($Field[\'Options\'] as $Options):?>
                    
285			<option value="<?php echo $Options[\'value\'] ?>"<?php if($Options[\'value\'] == $Field[\'Value\']): ?> selected="selected"<?php endif ?>><?php echo $Options[\'text\'] ?></option>
                    
286			<?php endforeach ?>';
                    
306			$options = '<?php $ArrValue = explode(\',\',$Field[\'Value\']); foreach($Field[\'Options\'] as $Options):?>
                    
307			<option value="<?php echo $Options[\'value\'] ?>"<?php if(in_array($Options[\'value\'],$ArrValue)): ?> selected="selected"<?php endif ?>><?php echo $Options[\'text\'] ?></option>
                    
308			<?php endforeach ?>';
                    
330			<label for="ID_<?php echo $Field[\'Name\'] ?>_<?php echo $Options[\'value\'] ?>">
                    
331				<input type="radio" name="<?php echo $Field[\'Name\'] ?>" id="ID_<?php echo $Field[\'Name\'] ?>_<?php echo $Options[\'value\'] ?>" class="<?php echo $Field[\'Class\'] ?>" value="<?php echo $Options[\'value\'] ?>"<?php if($Options[\'value\'] == $Field[\'Value\']): ?> checked="checked"<?php endif ?>/>
                    
332				<?php echo $Options[\'text\'] ?>
                    
356			<label for="ID_<?php echo $Field[\'Name\'] ?>_<?php echo $Options[\'value\'] ?>">
                    
357				<input type="checkbox" name="<?php echo $Field[\'Name\'] ?>[]" id="ID_<?php echo $Field[\'Name\'] ?>_<?php echo $Options[\'value\'] ?>" class="<?php echo $Field[\'Class\'] ?>" value="<?php echo $Options[\'value\'] ?>"<?php if(in_array($Options[\'value\'],$ArrValue)): ?> checked="checked"<?php endif ?>/>
                    
358				<?php echo $Options[\'text\'] ?>
                    
365				$options[] = '<label for="ID_' . $this->Element['Name'] . '_' . $Opt['value'] . '">
                    
366				<input type="checkbox" name="' . $this->Element['Name'] . '[]" id="ID_' . $this->Element['Name'] . '_' . $Opt['value'] . '" class="' . $this->Element['Class'] . '" value="' . $Opt['value'] . '"<?php if(in_array(\'' . $Opt['value'] . '\', $ArrValue)): ?> checked="checked"<?php endif ?>/>' . $Opt['text'] . '</label>';
                    
367			}
                    
                
md_funcs.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Chamilo metadata/md_funcs.php -->
                    
4 * 2006/12/15
                    
11*
                    
12*   This script requires xmd.lib.php and xht.lib.php (Chamilo inc/lib).
                    
13*
                    
15*
                    
16*   ! and ~ and ,   are handled by xmd_update, see xmd.lib.php
                    
17*   ~~ !! ; and =   are handled here; note that = excludes newlines in value
                    
43    $fp = fopen($filename, 'rb'); $buffer = fread($fp, filesize($filename));
                    
44    fclose($fp); return $buffer; // file_get_contents: PHP >= 4.3.0
                    
45}
                    
92
                    
93    if (file_exists(KEYWORDS_CACHE)) $kcdt =
                    
94        htmlspecialchars(date('Y/m/d H:i:s', filemtime(KEYWORDS_CACHE)), ENT_QUOTES, $charset);
                    
                
jpgraph_ttf.inc.php https://github.com/kennethjiang/Wolke.git | PHP | 339 lines
                    
1<?php
                    
2//=======================================================================
                    
2//=======================================================================
                    
3// File:	jpgraph_ttf.inc.php
                    
4// Description:	Handling of TTF fonts
                    
5// Created: 	2006-11-19
                    
6// Ver:		$Id: jpgraph_ttf.inc.php 805 2006-11-28 07:45:54Z ljp $
                    
7//
                    
101	    if( $this->g2312 == null ) {
                    
102		include_once 'jpgraph_gb2312.php' ;
                    
103		$this->g2312 = new GB2312toUTF8();
                    
109		JpGraphError::RaiseL(25006);
                    
110//('Usage of FF_CHINESE (FF_BIG5) font family requires that your PHP setup has the iconv() function. By default this is not compiled into PHP (needs the "--width-iconv" when configured).');
                    
111	    }
                    
329
                    
330	if( file_exists($f) === false || is_readable($f) === false ) {
                    
331	    JpGraphError::RaiseL(25049,$f);//("Font file \"$f\" is not readable or does not exist.");
                    
                
 

Source

Language