100+ results for 'php file_exists'

Not the results you expected?

register.php (https://github.com/sansanwawa/e-commerse.git) PHP · 187 lines

1 <?php

2 class ControllerCheckoutRegister extends Controller {

3 public function index() {

147 $this->data['shipping_required'] = $this->cart->hasShipping();

148

149 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/checkout/register.tpl')) {

150 $this->template = $this->config->get('config_template') . '/template/checkout/register.tpl';

151 } else {

Configuration.php (https://gitlab.com/CORP-RESELLER/shopping-cart-lite) PHP · 346 lines

1 <?php

2 /**

3 *

220 );

221

222 if (!file_exists($caPath))

223 {

224 throw new Braintree_Exception_SSLCaFileNotFound();

files.php (https://gitlab.com/webbroteam/satisfaction-mvc) PHP · 306 lines

13 */

14

15 namespace phpFastCache\Drivers;

16

17 use phpFastCache\Core\DriverAbstract;

18 use phpFastCache\Exceptions\phpFastCacheDriverException;

19

20 /**

57 * @param bool $skip

58 * @return string

59 * @throws phpFastCacheDriverException

60 */

61 private function getFilePath($keyword, $skip = false)

72 if (!file_exists($path)) {

73 if (!mkdir($path, $this->__setChmodAuto())) {

74 throw new phpFastCacheDriverException('PLEASE CHMOD ' . $this->getPath() . ' - 0777 OR ANY WRITABLE PERMISSION!', 92);

75 }

76 }

ObjectTest.php (https://github.com/shama/cakephp.git) PHP · 340 lines

1 <?php

2 /**

3 * ObjectTest file

5 * PHP 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>

8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

12 *

13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)

14 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests

15 * @package Cake.Test.Case.Core

16 * @since CakePHP(tm) v 1.2.0.5432

17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

18 */

19 namespace Cake\Test\TestCase\Core;

CSV.php (https://github.com/allinside/Yii-CMS.git) PHP · 411 lines

34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');

35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

36 }

37

197

198 /**

199 * Loads PHPExcel from file into PHPExcel instance

200 *

201 * @access public

202 * @param string $pFilename

203 * @param PHPExcel $objPHPExcel

204 * @return PHPExcel

205 * @throws Exception

206 */

207 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)

208 {

209 // Check if file exists

global.menu_theme_modern.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 204 lines

1 <?php

2 /**

3 * @Project NUKEVIET 3.0

16 global $db, $db_config, $global_config, $site_mods, $module_info, $module_name, $module_file, $module_data, $op, $lang_module, $catid, $lang_global;

17

18 if ( file_exists( NV_ROOTDIR . "/themes/" . $global_config['site_theme'] . "/modules/menu/menu_theme_modern.tpl" ) )

19 {

20 $block_theme = $global_config['site_theme'];

56

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 );

60

64 {

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 );

68 }

metaslider.imagehelper.class.php (https://gitlab.com/thisishayat/itv-2016) PHP · 371 lines

1 <?php

2

3 if ( ! defined( 'ABSPATH' ) ) {

225 $dest_file_name = $this->get_destination_file_name( $dest_size );

226

227 if ( file_exists( $dest_file_name ) && ! $force_resize ) {

228 // good. no need for resize, just return the URL

229 $dest_url = str_replace( basename( $this->url ), basename( $dest_file_name ), $this->url );

voucher.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 263 lines

1 <?php

2 class ControllerAccountVoucher extends Controller {

3 private $error = array();

162 }

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';

166 } else {

207 $this->data['continue'] = $this->url->link('checkout/cart');

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';

211 } else {

edit.php (https://github.com/sansanwawa/e-commerse.git) PHP · 337 lines

1 <?php

2 class ControllerAffiliateEdit extends Controller {

3 private $error = array();

242 $this->data['back'] = $this->url->link('affiliate/account', '', 'SSL');

243

244 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/affiliate/edit.tpl')) {

245 $this->template = $this->config->get('config_template') . '/template/affiliate/edit.tpl';

246 } else {

FilesystemTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 240 lines

1 <?php

2

3 /*

119 * @group GH-1339

120 */

121 public function testRemoveDirectoryPhp()

122 {

123 $tmp = sys_get_temp_dir();

126

127 $fs = new Filesystem;

128 $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir"));

129 $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt"));

202 $result = $fs->unlink($symlinked);

203 $this->assertTrue($result);

204 $this->assertFalse(file_exists($symlinked));

205 }

206

Filesystem.php (https://gitlab.com/techniconline/kmc) PHP · 426 lines

1 <?php namespace Illuminate\Filesystem;

2

3 use ErrorException;

20 public function exists($path)

21 {

22 return file_exists($path);

23 }

24

mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines

1 <?php

2 class Mail {

3 protected $to;

94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;

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;

98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;

123

124 foreach ($this->attachments as $attachment) {

125 if (file_exists($attachment)) {

126 $handle = fopen($attachment, 'r');

127

157 exit();

158 } else {

159 if (substr(PHP_OS, 0, 3) != 'WIN') {

160 socket_set_timeout($handle, $this->timeout, 0);

161 }

core.php (https://github.com/mediamedics/ko3_modules.git) PHP · 374 lines

1 <?php

2

3 abstract class MM_Mail_Core extends Model{

316 if(is_string($this->attachment)){

317

318 if(file_exists($this->attachment)){

319 $message->attach(Swift_Attachment::fromPath($this->attachment));

320 }elseif(Validate::url($this->attachment)){

329

330 if(is_string($file)){

331 if(file_exists($file)){

332 $message->attach(Swift_Attachment::fromPath($file));

333 }elseif(Validate::url($file)){

ConfigListener.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 383 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

367 {

368 if (($this->getOptions()->getConfigCacheEnabled())

369 && (file_exists($this->getOptions()->getConfigCacheFile()))

370 ) {

371 return true;

DirectFilesystem.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 500 lines

1 <?php

2

3 /**

4 * File holding the DirectFilesystem class.

5 *

6 * @file DirectFilesystem.php

7 * @ingroup Deployment

8 * @ingroup Filesystem

16

17 /**

18 * Filesystem class for direct PHP file and folder manipulation.

19 *

20 * @author Jeroen De Dauw

175 }

176

177 if ( $success && file_exists( $path ) ) {

178 wfSuppressWarnings();

179 $rmdirRes = rmdir( $path );

theme.php (https://gitlab.com/x33n/respond) PHP · 363 lines

1 <?php

2

3 /**

28 $config = APP_LOCATION.THEMES_FOLDER.'/'.$dir.'/theme.json';

29

30 if(file_exists($config)){

31

32 $theme_json = file_get_contents($config);

182 $content = '';

183

184 if(file_exists($location)){

185 $content = file_get_contents($location);

186

TranslatorTest.php (https://gitlab.com/Marwamimo/Crowdrise_Web) PHP · 288 lines

1 <?php

2

3 /*

18 use Symfony\Component\Translation\MessageSelector;

19

20 class TranslatorTest extends \PHPUnit_Framework_TestCase

21 {

22 protected $tmpDir;

35 protected function deleteTmpDir()

36 {

37 if (!file_exists($dir = $this->tmpDir)) {

38 return;

39 }

mail.php (https://bitbucket.org/deringer/opencart.git) PHP · 406 lines

1 <?php

2 class Mail {

3 protected $to;

94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;

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;

98

123

124 foreach ($this->attachments as $attachment) {

125 if (file_exists($attachment)) {

126 $handle = fopen($attachment, 'r');

127

157 exit();

158 } else {

159 if (substr(PHP_OS, 0, 3) != 'WIN') {

160 socket_set_timeout($handle, $this->timeout, 0);

161 }

smarty_internal_config.php (https://github.com/9px/BookShare.git) PHP · 302 lines

1 <?php

2 /**

3 * Smarty Internal Plugin Config

118 }

119 $_compile_dir = $this->smarty->getCompileDir();

120 return $_compile_dir . $_filepath . '.' . basename($this->source->name) . '.config' . '.php';

121 }

122

129 {

130 return $this->compiled_timestamp === null

131 ? ($this->compiled_timestamp = (file_exists($this->getCompiledFilepath())) ? filemtime($this->getCompiledFilepath()) : false)

132 : $this->compiled_timestamp;

133 }

payment_address.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 245 lines

1 <?php

2 class ControllerCheckoutPaymentAddress extends Controller {

3 public function index() {

79 $this->data['countries'] = $this->model_localisation_country->getCountries();

80

81 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/checkout/payment_address.tpl')) {

82 $this->template = $this->config->get('config_template') . '/template/checkout/payment_address.tpl';

83 } else {

vfsStreamWrapperFileTestCase.php (https://github.com/acoulton/vfsStream.git) PHP · 335 lines

1 <?php

2 /**

3 * Test for org::bovigo::vfs::vfsStreamWrapper.

9 require_once 'org/bovigo/vfs/vfsStream.php';

10 require_once 'PHPUnit/Framework/TestCase.php';

11 require_once dirname(__FILE__) . '/vfsStreamWrapperBaseTestCase.php';

111 vfsStreamWrapper::setRoot(new vfsStreamDirectory('root', 0000));

112 $this->assertFalse(@file_put_contents(vfsStream::url('root/new.txt'), 'This does not work.'));

113 $this->assertFalse(file_exists(vfsStream::url('root/new.txt')));

114

115 }

316 vfsStream::newFile('new.txt', 0000)->at(vfsStreamWrapper::getRoot());

317 $this->assertFalse(unlink(vfsStream::url('root/new.txt')));

318 $this->assertTrue(file_exists(vfsStream::url('root/new.txt')));

319 }

320

GifCreator.php (https://gitlab.com/billyprice1/mc-skintools) PHP · 349 lines

1 <?php

2

3 namespace GifCreator;

8 * @link https://github.com/Sybio/GifCreator

9 * @author Sybio (Clément Guillemain / @Sybio01)

10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License

11 * @copyright Clément Guillemain

12 * @modified by Max Korlaar

104 } elseif (is_string($frames[$i])) { // File path or URL or Binary source code

105

106 if (file_exists($frames[$i]) || filter_var($frames[$i], FILTER_VALIDATE_URL)) { // File path

107

108 $frames[$i] = file_get_contents($frames[$i]);

categories.php (https://github.com/mcmurdok/oscommerce.git) PHP · 247 lines

1 <?php

2 /*

3 $Id: $

192

193 if ( $Qcheck->numberOfRows() === 0 ) {

194 if (file_exists(realpath('../' . DIR_WS_IMAGES . 'categories/' . $Qimage->value('categories_image')))) {

195 @unlink(realpath('../' . DIR_WS_IMAGES . 'categories/' . $Qimage->value('categories_image')));

196 }

YamlFileLoader.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 236 lines

1 <?php

2

3 /*

50 }

51

52 if (!file_exists($path)) {

53 throw new \InvalidArgumentException(sprintf('File "%s" not found.', $path));

54 }

Bin.php (https://github.com/jaws-project/jaws.git) PHP · 419 lines

1 <?php

2 /**

3 * Bin.php - Bin Class for all bin widgets

10 */

11

12 require_once PIWI_PATH . '/Widget/Widget.php';

13 require_once PIWI_PATH . '/JS/JSEnums.php';

374 {

375 if (is_string($validator)) {

376 $file = PIWI_PATH . '/JS/' . $validator . '.php';

377 if (file_exists($file)) {

Files.php (https://github.com/jaws-project/jaws.git) PHP · 282 lines

1 <?php

2 /**

3 * Directory Gadget

261 if (!$data['is_dir']) {

262 $filename = ROOT_DATA_PATH . 'directory/' . $data['host_filename'];

263 if (Jaws_FileManagement_File::file_exists($filename)) {

264 if (!Jaws_FileManagement_File::delete($filename)) {

265 return false;

270 $fileInfo = Jaws_FileManagement_File::pathinfo($filename);

271 $thumbnailPath = ROOT_DATA_PATH . 'directory/' . $fileInfo['filename'] . '.thumbnail.png';

272 if (Jaws_FileManagement_File::file_exists($thumbnailPath)) {

273 if (!Jaws_FileManagement_File::delete($thumbnailPath)) {

274 return false;

db_helper.php (https://github.com/mrbmc/erector.git) PHP · 338 lines

1 <?php

2 /**

3 * This file houses the MpmDbHelper class.

4 *

5 * @package mysql_php_migrations

6 * @subpackage Helpers

7 * @license http://www.opensource.org/licenses/bsd-license.php The New BSD License

8 * @link http://code.google.com/p/mysql-php-migrations/

9 */

10

199 {

200 $problems = array();

201 if (!file_exists(MPM_PATH . '/config/db_config.php'))

202 {

203 $problems[] = 'You have not yet run the init command. You must run this command before you can use any other commands.';

Filesystem.php (https://gitlab.com/kimting254/wbms) PHP · 441 lines

1 <?php namespace Illuminate\Filesystem;

2

3 use ErrorException;

19 public function exists($path)

20 {

21 return file_exists($path);

22 }

23

source_code.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 301 lines

1 <?php

2 /**

3 * File containing the ezcTemplateSourceCode class

56 *

57 * @property string $stream

58 * The PHP stream path for the template source file.

59 * @property string $resource

60 * The resource string which requested this template.

145 * Initialises the source object with the code and output context.

146 *

147 * @param string $stream The actual PHP stream path for the template source

148 * file.

149 * @param string $resource The requested resource string, if false $stream

164

165 /**

166 * Loads the data from the PHP stream into the $code member variable.

167 *

168 * @throws ezcTemplateFileNotFoundException if the file does not exist on disk.

TestCommon.php (https://github.com/apinstein/jqjobs.git) PHP · 204 lines

1 <?php

2

3 require_once dirname(__FILE__) . '/../src/JQJobs/JQJobs.php';

4 const JQJOB_ID_DOES_NOT_EXIST = 999999;

5

6 $composerAutoloader = dirname(__FILE__) . '/../vendor/autoload.php';

7 if (file_exists($composerAutoloader))

13 {

14 ini_set('include_path',

15 dirname(__FILE__) . "/../externals/pear/php"

16 . ":" . dirname(__FILE__) . "/../lib/propel"

17 );

18 require_once 'propel/Propel.php';

19 }

20

RenameTest.php (https://github.com/devilsansclue/ZendFramework.git) PHP · 473 lines

1 <?php

2 /**

3 * Zend Framework

21 */

22

23 if (!defined("PHPUnit_MAIN_METHOD")) {

24 define("PHPUnit_MAIN_METHOD", "Zend_Filter_File_RenameTest::main");

28 * @see Zend_Filter_File_Rename

29 */

30 require_once 'Zend/Filter/File/Rename.php';

31

32 /**

38 * @group Zend_Filter

39 */

40 class Zend_Filter_File_RenameTest extends PHPUnit_Framework_TestCase

41 {

42 /**

ezvatmanager.php (https://github.com/GunioRobot/ezpublish.git) PHP · 320 lines

1 <?php

2 /**

3 * File containing the eZVATManager class.

10

11 /*!

12 \class eZVATManager ezvatmanager.php

13 \brief The class eZVATManager does

14

289 {

290 $extensionPath = $baseDirectory . '/' . $extensionDirectory . '/vathandlers';

291 if ( file_exists( $extensionPath ) )

292 $repositoryDirectories[] = $extensionPath;

293 }

296 foreach ( $repositoryDirectories as $repositoryDirectory )

297 {

298 $includeFile = "$repositoryDirectory/{$handlerName}vathandler.php";

299

300 if ( file_exists( $includeFile ) )

smarty_internal_config.php (https://github.com/raphaelbastide/berta.git) PHP · 270 lines

1 <?php

2 /**

3 * Smarty Internal Plugin Config

81

82 $_filepath = $_config_dir . $this->config_resource_name;

83 if (file_exists($_filepath))

84 return $_filepath;

85 }

86 // check for absolute path

87 if (file_exists($this->config_resource_name))

88 return $this->config_resource_name;

89 // no tpl file found

115 {

116 // read source file

117 if (file_exists($this->getConfigFilepath())) {

118 $this->config_source = file_get_contents($this->getConfigFilepath());

119 return true;

MaildirMessageOldTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 192 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: MaildirMessageOldTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

24 * Zend_Mail_Storage_Maildir

25 */

26 require_once 'Zend/Mail/Storage/Maildir.php';

27

28 /**

29 * Zend_Config

30 */

31 require_once 'Zend/Config.php';

32

33 /**

CmsCompoundObjectTest.php (https://gitlab.com/fbi/october) PHP · 259 lines

1 <?php

2

3 use Cms\Classes\Theme;

102

103 $filePath = $themePath .= '/temporary/testcompound.htm';

104 if (file_exists($filePath))

105 @unlink($filePath);

106

171

172 $destFilePath = $theme->getPath().'/testobjects/compound-markup.htm';

173 if (file_exists($destFilePath))

174 unlink($destFilePath);

175

195

196 $destFilePath = $theme->getPath().'/testobjects/compound-markup-settings.htm';

197 if (file_exists($destFilePath))

198 unlink($destFilePath);

199

Image.php (https://github.com/back2arie/Panada.git) PHP · 317 lines

1 <?php

2 /**

3 * Panada Image Modifier.

5 * @package Resources

6 * @link http://panadaframework.com/

7 * @license http://www.opensource.org/licenses/bsd-license.php

8 * @author Iskandar Soesman <k4ndar@yahoo.com>

9 * @since Version 0.1

160 * Does the file exist?

161 */

162 if( ! file_exists($this->filePath) ) {

163 $this->errorMessages[] = 'File '.$this->filePath.' doesn\'t exists.';

164 return false;

category_widget.php (https://github.com/Matmon/WP-e-Commerce.git) PHP · 180 lines

140

141 <p>

142 <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('grid'); ?>" name="<?php echo $this->get_field_name('grid'); ?>"<?php checked( $grid ); ?> />

143 <label for="<?php echo $this->get_field_id('grid'); ?>"><?php _e('Use Category Grid View', 'wpsc'); ?></label><br />

149 <p>

150

151 <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('show_name'); ?>" name="<?php echo $this->get_field_name('show_name'); ?>"<?php checked( $show_name ); ?> /><label for="<?php echo $this->get_field_id('show_name'); ?>"><?php _e(' Show N/A when No Image Available', 'wpsc'); ?></label>

152 </p>

153 <p>

156 <label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height:', 'wpsc'); ?></label>

157 <input type="text" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" value="<?php echo $height ; ?>" size="3" />

158 </p>

159 </div>

174 $checked = ''; ?>

175

176 <input type="checkbox" class="checkbox" id="<?php echo $fieldconfig['id']; ?>-<?php echo $category->term_id; ?>" name="<?php echo $fieldconfig['name']; ?>[<?php echo $category->term_id; ?>]" <?php echo $checked; ?>></input> <label for="<?php echo $fieldconfig['id']; ?>-<?php echo $category->term_id; ?>"><?php echo htmlentities($category->name, ENT_QUOTES, 'UTF-8' ); ?></label><br />

177

178 <?php

index.php (https://github.com/thomascrepain/classCreator.git) PHP · 217 lines

1 <?php

2

3 require_once 'settings.php';

4 require_once 'dal/MySQLDatabase.php';

5 require_once 'libs/Smarty.class.php';

71 if (is_dir(TEMPLATE_DIRECTORY . '/' . $directory . $item)) {

72 // generate directory if not exists

73 if (!file_exists('generated_classes/' . $directory))

74 mkdir('generated_classes/' . $directory);

75

78 } else {

79 // create output directory if not exists

80 if (!file_exists('generated_classes/' . $directory))

81 mkdir('generated_classes/' . $directory);

82 // generate the files in this directory

Settings_Manager.php (https://gitlab.com/kath.de/cibedo_cibedo.de) PHP · 349 lines

1 <?php

2

3 class Tribe__Settings_Manager {

14 if ( is_multisite() ) {

15 $tribe_events_mu_defaults = array();

16 if ( file_exists( WP_CONTENT_DIR . '/tribe-events-mu-defaults.php' ) ) {

17 require_once WP_CONTENT_DIR . '/tribe-events-mu-defaults.php';

48 */

49 public function do_setting_tabs() {

50 include_once Tribe__Main::instance()->plugin_path . 'src/admin-views/tribe-options-general.php';

51 include_once Tribe__Main::instance()->plugin_path . 'src/admin-views/tribe-options-display.php';

212 $tribe_settings = Tribe__Settings::instance();

213 add_submenu_page(

214 'settings.php', $tribe_settings->menuName, $tribe_settings->menuName, 'manage_network_options', 'tribe-common', array(

215 $tribe_settings,

216 'generatePage',

Mail.php (https://github.com/shooray/oscommerce.git) PHP · 375 lines

1 <?php

2 /**

3 * osCommerce Online Merchant

104 function addAttachment($file, $is_uploaded = false) {

105 if ( $is_uploaded === true ) {

106 } elseif ( file_exists($file) && is_readable($file) ) {

107 $data = file_get_contents($file);

108 $filename = basename($file);

119 function addImage($file, $is_uploaded = false) {

120 if ( $is_uploaded === true ) {

121 } elseif ( file_exists($file) && is_readable($file) ) {

122 $data = file_get_contents($file);

123 $filename = basename($file);

plugins.php (https://github.com/sarriaroman/Cronos-Aion.git) PHP · 389 lines

1 <?php

2

3 /**

178 $plg = Plugin::getByPath($plugin);

179

180 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '&section=' . $section );

181 } else {

182 $permalink = getPermalink(0);

204 $plg = Plugin::getByPath($plugin);

205

206 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '&section=' . $section . "&module=" . $module );

207 } else {

208 $permalink = getPermalink(0);

230 $plg = Plugin::getByName($plugin);

231

232 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '&section=' . $section . "&module=" . $module );

233 } else {

234 $permalink = getPermalink(0);

class-itsec-lib-file.php (https://gitlab.com/kath.de/cibedo_cibedo.de) PHP · 368 lines

1 <?php

2 /**

3 * iThemes Security file library.

225

226

227 return new WP_Error( 'itsec-lib-file-write-file-put-contents-failed', sprintf( __( '%s could not be written. This could be due to a permissions issue. Ensure that PHP runs as a user that has permission to write to this location.', 'better-wp-security' ), $file ) );

228 }

229

301 @clearstatcache( true, $file );

302

303 return @file_exists( $file );

304 }

305

354 }

355

356 $perms = self::get_permissions( ABSPATH . 'index.php' );

357

358 if ( ! is_wp_error( $perms ) ) {

database.php (https://gitlab.com/jslee1/PrestaShop) PHP · 175 lines

1 <?php

2 /**

3 * 2007-2015 PrestaShop

8 * that is bundled with this package in the file LICENSE.txt.

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

12 * obtain it through the world-wide-web, please send an email

21 * @author PrestaShop SA <contact@prestashop.com>

22 * @copyright 2007-2015 PrestaShop SA

23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

24 * International Registered Trademark & Property of PrestaShop SA

25 */

136 {

137 if (!$this->session->database_server) {

138 if (file_exists(_PS_ROOT_DIR_.'/config/settings.inc.php')) {

139 @include_once _PS_ROOT_DIR_.'/config/settings.inc.php';

smarty_internal_cacheresource_file.php (https://github.com/taptouchclick/The-Event-Day.git) PHP · 207 lines

1 <?php

2

3 /**

54 $_cache_dir .= DS;

55 }

56 return $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';

57 }

58

66 {

67 // return @filemtime ($_template->getCachedFilepath());

68 return ($_template->getCachedFilepath() && file_exists($_template->getCachedFilepath())) ? filemtime($_template->getCachedFilepath()) : false ;

69 }

70

158 }

159 $_count = 0;

160 if (file_exists($_dir)) {

161 $_cacheDirs = new RecursiveDirectoryIterator($_dir);

162 $_cache = new RecursiveIteratorIterator($_cacheDirs, RecursiveIteratorIterator::CHILD_FIRST);

ezsqldiff.php (https://github.com/eeggenberger/ezpublish.git) PHP · 225 lines

1 #!/usr/bin/env php

2 <?php

3 /**

4 * File containing the ezsqldiff.php script.

5 *

6 * @copyright Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.

10 */

11

12 require 'autoload.php';

13

14 $cli = eZCLI::instance();

17 "and sets exit code based whether there is a difference or not\n" .

18 "\n" .

19 "ezsqldiff.php --type mysql --user=root stable32 stable33" ),

20 'use-session' => false,

21 'use-modules' => true,

Error.php (https://bitbucket.org/vaneves/repono.git) PHP · 220 lines

1 <?php

2 /*

3 * Copyright (c) 2012, Valdirene da Cruz Neves Júnior <vaneves@vaneves.com>

15 {

16 /**

17 * Método que é executado quando ocorre algum erro no PHP

18 * @param int $type tipo do erro, que pode ser E_STRICT

19 * @param sintrg $message mensagem do erro

64

65 /**

66 * Método executado quando ocorre algum erro fatal no PHP, esse método é chamado

67 * antes que o PHP pare a execução da página

96 {

97 if (Debug::enabled())

98 return require_once root . 'core/error/debug.php';

99

100 $files = array();

MaildirMessageOldTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 192 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: MaildirMessageOldTest.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

24 * Zend_Mail_Storage_Maildir

25 */

26 require_once 'Zend/Mail/Storage/Maildir.php';

27

28 /**

29 * Zend_Config

30 */

31 require_once 'Zend/Config.php';

32

33 /**

voucher.php (https://github.com/sansanwawa/e-commerse.git) PHP · 259 lines

1 <?php

2 class ControllerCheckoutVoucher extends Controller {

3 private $error = array();

158 }

159

160 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/checkout/voucher.tpl')) {

161 $this->template = $this->config->get('config_template') . '/template/checkout/voucher.tpl';

162 } else {

203 $this->data['continue'] = $this->url->link('checkout/cart');

204

205 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/success.tpl')) {

206 $this->template = $this->config->get('config_template') . '/template/common/success.tpl';

207 } else {

gallery.php (https://github.com/kelios/imshop.git) PHP · 306 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2

3 /**

250 {

251 /**

252 if ( file_exists($this->template->template_dir . 'gallery') )

253 {

254 if ( file_exists($this->template->template_dir . 'gallery/main.tpl') )

280 ));

281

282 if (file_exists(realpath(dirname(__FILE__)).'/templates/public/main.tpl'))

283 {

284 $file = realpath(dirname(__FILE__)).'/templates/public/main.tpl';

304 }

305

306 /* End of file gallery.php */

307

Cdb_PHP.php (https://github.com/daevid/MWFork.git) PHP · 445 lines

1 <?php

2 /**

3 * This is a port of D.J. Bernstein's CDB to PHP. It's based on the copy that

4 * appears in PHP 5.3. Changes are:

5 * * Error returns replaced with exceptions

6 * * Exception thrown if sizes or offsets are between 2GB and 4GB

82 * CDB reader class

83 */

84 class CdbReader_PHP extends CdbReader {

85 /** The file handle */

86 var $handle;

254 * CDB writer class

255 */

256 class CdbWriter_PHP extends CdbWriter {

257 var $handle, $realFileName, $tmpFileName;

258

Settings.php (https://gitlab.com/ilyales/vigma) PHP · 387 lines

8 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');

9 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

10 }

11

32 * @package PHPExcel_Settings

33 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)

34 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

35 * @version ##VERSION##, ##DATE##

117 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management

118 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

119 * @return boolean Success or failure

120 */

136 * @return string Name of the Zip handler Class that PHPExcel is configured to use

137 * for Zip file management

138 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

139 */

140 public static function getZipClass()

ezsysinfo.php (https://github.com/GunioRobot/ezpublish.git) PHP · 325 lines

1 <?php

2 /**

3 * File containing the eZSysInfo class.

10

11 /*!

12 \class eZSysInfo ezsysinfo.php

13 \brief Provides common information on the running system

14

202 $meminfoPath = '/proc/meminfo';

203

204 if ( !file_exists( $cpuinfoPath ) )

205 return false;

206 if ( !file_exists( $meminfoPath ) )

274 if ( !$dmesgPath )

275 $dmesgPath = '/var/run/dmesg.boot';

276 if ( !file_exists( $dmesgPath ) )

277 return false;

278 $fileLines = file( $dmesgPath );

ezmark.php (https://github.com/GunioRobot/ezpublish.git) PHP · 301 lines

1 #!/usr/bin/env php

2 <?php

42 {

43 $cli = eZCLI::instance();

44 if ( file_exists( 'settings/siteaccess/' . $optionData ) )

45 {

46 $siteaccess = $optionData;

237 {

238 $markPath = 'benchmarks/' . $markName;

239 $markDefinitionPath = $markPath . '/benchmark.php';

240 if ( file_exists( $markDefinitionPath ) )

249 $markTestFile = $markDefinition['file'];

250 $markTestPath = $markPath . '/' . $markTestFile;

251 if ( file_exists( $markTestPath ) )

252 {

253 include_once( $markTestPath );

cache.php (https://github.com/vaughnpaul/NOS.git) PHP · 245 lines

1 <?php

2 /*

3 $Id: cache.php,v 1.2 2008/06/23 00:18:17 datazen Exp $

39 $filename = DIR_FS_CATALOG . DIR_FS_CACHE . $filename;

40 $success = false;

41 if (($auto_expire == true) && file_exists($filename)) {

42 $now = time();

43 $filetime = filemtime($filename);

95 define(TEMPLATE_NAME, 'default');

96 }

97 // set all possible catagories X.php names

98 ob_start();

99 include(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes/categories.php');

120 define(TEMPLATE_NAME, 'default');

121 }

122 //set all possible catagories X.php names

123 ob_start();

124 include(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes/categories1.php');

container_builder.php (https://github.com/AJenbo/ubuntudanmark.dk.git) PHP · 404 lines

115 * Constructor

116 *

117 * @param \phpbb\config_php_file $config_php_file

118 * @param string $phpbb_root_path Path to the phpbb includes directory.

119 * @param string $php_ext php file extension

120 */

121 function __construct(\phpbb\config_php_file $config_php_file, $phpbb_root_path, $php_ext)

122 {

123 $this->config_php_file = $config_php_file;

313 if ($this->dbal_connection === null)

314 {

315 $dbal_driver_class = $this->config_php_file->convert_30_dbms_to_31($this->config_php_file->get('dbms'));

316 $this->dbal_connection = new $dbal_driver_class();

317 $this->dbal_connection->sql_connect(

400 protected function get_container_filename()

401 {

402 return $this->phpbb_root_path . 'cache/container_' . md5($this->phpbb_root_path) . '.' . $this->php_ext;

403 }

404 }

help-ticketing.php (https://github.com/livinglab/openlab.git) PHP · 244 lines

17 </p>

18

19 <?php // list of products ?>

20 <div class="tribe-events-admin-products tribe-events-admin-2col-grid">

21 <?php //requires valid links for all the products

55 // checks if plugin is installed but not activated

56 elseif ( ! $products[ $slug ]['is_installed'] && $plugin_exists ) { ?>

57 <a href="<?php echo esc_url( admin_url( 'plugins.php' ) ); ?>" class="tribe-events-admin-products-card__button">

58 <?php esc_html_e( 'Activate', 'tribe-common' ); ?>

116 src="<?php echo esc_url( tribe_resource_url( 'images/help/customizing.png', false, null, $main ) ); ?>"

117 alt="<?php esc_attr_e( 'book with Event Tickets logo', 'tribe-common' ); ?>"

118 />

119 <h4 class="tribe-events-admin-kb-card__title">

123 <li>

124 <a href="https://evnt.is/1apq" target="_blank" rel="noopener noreferrer">

125 <?php esc_html_e( 'Creating Tickets', 'tribe-common' ); ?>

126 </a>

127 </li>

ezsqldiff.php (https://github.com/Yannix/ezpublish.git) PHP · 225 lines

1 #!/usr/bin/env php

2 <?php

3 /**

4 * File containing the ezsqldiff.php script.

5 *

6 * @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.

10 */

11

12 require 'autoload.php';

13

14 $cli = eZCLI::instance();

17 "and sets exit code based whether there is a difference or not\n" .

18 "\n" .

19 "ezsqldiff.php --type mysql --user=root stable32 stable33" ),

20 'use-session' => false,

21 'use-modules' => true,

Settings.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 332 lines

22 * @package PHPExcel_Settings

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');

34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

35 }

36

112 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management

113 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

114 * @return boolean Success or failure

115 */

130 * @return string Name of the Zip handler Class that PHPExcel is configured to use

131 * for Zip file management

132 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

133 */

134 public static function getZipClass() {

IniFileTask.php (https://gitlab.com/Isaki/le331.fr) PHP · 355 lines

1 <?php

2 /**

3 * INI file modification task for Phing, the PHP build tool.

5 * Based on http://ant-contrib.sourceforge.net/tasks/tasks/inifile.html

6 *

7 * PHP version 5

8 *

9 * @category Tasks

10 * @package phing.tasks.ext

11 * @author Ken Guest <kguest@php.net>

12 * @license LGPL v3 or later http://www.gnu.org/licenses/lgpl.html

13 * @link http://www.phing.info/

14 */

15

16 require_once 'IniFileSet.php';

17 require_once 'IniFileRemove.php';

admin_menu.php (https://gitlab.com/Ltaimao/wecenter) PHP · 309 lines

1 <?php

2 $config[] = array(

3 'title' => AWS_APP::lang()->_t('概述'),

304 );

305

306 if (file_exists(AWS_PATH . 'config/admin_menu.extension.php'))

307 {

308 include_once(AWS_PATH . 'config/admin_menu.extension.php');

route.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 178 lines

1 <?php

2 /**

3 * @package Joomla.Site

41 $explodedAlias = explode('.', $typeAlias);

42 $explodedRouter = explode('::', $routerName);

43 if (file_exists($routerFile = JPATH_BASE . '/components/' . $explodedAlias[0] . '/helpers/route.php'))

44 {

45 JLoader::register($explodedRouter[0], $routerFile);

89 if (!empty($needles) && $item = self::_findItem($needles))

90 {

91 $link = 'index.php?Itemid=' . $item;

92 }

93 else

94 {

95 // Create the link

96 $link = 'index.php?option=com_tags&view=tag&id=' . $id;

97 }

98 }

special.php (https://gitlab.com/hazelnuts23/unitedfoodstuff) PHP · 277 lines

1 <?php

2 class ControllerProductSpecial extends Controller {

3 public function index() {

269 $data['header'] = $this->load->controller('common/header');

270

271 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/special.tpl')) {

272 $this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/product/special.tpl', $data));

273 } else {

Storage.php (https://github.com/jmarien/phpBayeux.git) PHP · 316 lines

1 <?php

2

3 /**

86 $clientPath = $this->_cacheBackend . DIRECTORY_SEPARATOR . 'client_'.$clientid;

87 //_log(' '.__FILE__.' '.__LINE__.' | get client info from '.$clientPath);

88 if (file_exists($clientPath)) {

89 $clientinfo = unserialize(file_get_contents($clientPath));

90 return($clientinfo);

brstmConv.php (https://gitlab.com/SplatModdingHub/ConversionTools) PHP · 207 lines

1 <?php

2

3

4 // Written by soneek [soneek00@gmail.com][http://github.com/soneek]

5

6 function hex2str($hex) { // from http://www.linux-support.com/cms/php-convert-hex-strings-to-ascii-strings/

7 $str = '';

8 for($i=0;$i<strlen($hex);$i+=2) $str .= chr(hexdec(substr($hex,$i,2)));

31

32 $file = $argv[1];

33 if ( !file_exists( $file ) ) {

34 echo "File doesn't exist (" . $file . ")\n";

35 exit;

Rename.php (https://github.com/gryzz/crystal_magento.git) PHP · 305 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Rename.php 16971 2009-07-22 18:05:45Z mikaelkael $

20 */

21

23 * @see Zend_Filter_Interface

24 */

25 #require_once 'Zend/Filter/Interface.php';

26

27 /**

59 $options = array('target' => $options);

60 } elseif (!is_array($options)) {

61 #require_once 'Zend/Filter/Exception.php';

62 throw new Zend_Filter_Exception('Invalid options argument provided to filter');

63 }

company_model.php (https://gitlab.com/MichelZuniga/neoinvoice) PHP · 282 lines

1 <?php

2 class Company_model extends Model {

3

253 function get_logo_image($company_id) {

254 $filename = $this->_get_filename_from_company_id($company_id);

255 if (file_exists($filename)) {

256 return $filename;

257 } else {

Serializer.php (https://gitlab.com/afzalpotenza/YII_salon) PHP · 291 lines

1 <?php

2

3 class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCache

15 }

16 $file = $this->generateFilePath($config);

17 if (file_exists($file)) {

18 return false;

19 }

52 }

53 $file = $this->generateFilePath($config);

54 if (!file_exists($file)) {

55 return false;

56 }

68 {

69 $file = $this->generateFilePath($config);

70 if (!file_exists($file)) {

71 return false;

72 }

payment.php (http://coderstalk.googlecode.com/svn/trunk/) PHP · 262 lines

1 <?php

2 class ControllerCheckoutPayment extends Controller {

3 private $error = array();

216 }

217

218 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/checkout/payment.tpl')) {

219 $this->template = $this->config->get('config_template') . '/template/checkout/payment.tpl';

220 } else {

guest_step_2.php (http://coderstalk.googlecode.com/svn/trunk/) PHP · 268 lines

1 <?php

2 class ControllerCheckoutGuestStep2 extends Controller {

3 private $error = array();

210 $this->data['back'] = $this->url->http('checkout/guest_step_1');

211

212 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/checkout/guest_step_2.tpl')) {

213 $this->template = $this->config->get('config_template') . '/template/checkout/guest_step_2.tpl';

214 } else {

types.php (https://github.com/milek/GamesRepository.git) PHP · 201 lines

1 <?php

2

3 class Group

115 {

116 $local = "covers/".strtolower($this->normalize($this->name)).".jpg";

117 if (file_exists($local))

118 {

119 return true;

131 {

132 $local = "covers/".strtolower($this->normalize($this->name)).".jpg";

133 if (file_exists($local))

134 {

135 return $local;

type.php (https://bitbucket.org/hudsonite/concrete5.git) PHP · 261 lines

143 $url = (is_dir(DIR_PACKAGES . '/' . $h)) ? BASE_URL . DIR_REL : ASSETS_URL;

144 $url = $url . '/' . DIRNAME_PACKAGES . '/' . $h . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $this->getAttributeTypeHandle() . $ff;

145 } else if (file_exists(DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $this->getAttributeTypeHandle() . $ff)) {

146 $url = ASSETS_URL . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $this->getAttributeTypeHandle() . $ff;

147 } else if (file_exists(DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $this->getAttributeTypeHandle() . $ff)) {

172 $file = DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

173 $url = BASE_URL . DIR_REL . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

174 } else if ($_file == FILENAME_ATTRIBUTE_CONTROLLER && file_exists(DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php')) {

175 $file = DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php';

183 $file = $dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

184 $url = BASE_URL . DIR_REL . '/' .DIRNAME_PACKAGES. '/' .$pkgHandle . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

185 } else if ($_file == FILENAME_ATTRIBUTE_CONTROLLER && file_exists($dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php')) {

186 $file = $dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php';

192 $file = DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

193 $url = ASSETS_URL . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

194 } else if ($_file == FILENAME_ATTRIBUTE_CONTROLLER && file_exists(DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php')) {

195 $file = DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php';

articles_controller.php (https://gitlab.com/matijabelec/vodic-za-prezivljavanje) PHP · 290 lines

1 <?php

2

3 class Articles_controller extends Controller {

102 $file = $dir . basename($_FILES['file_to_upl']['name'][$i]);

103 $ok = 1;

104 if(file_exists($file) ) $ok = 0;

105 if($_FILES['file_to_upl']["size"][$i] > 100000) $ok = 0;

106 if($ok) {

170 $file = $dir . basename($_FILES['file_to_upl']['name'][$i]);

171 $ok = 1;

172 if(file_exists($file) ) $ok = 0;

173 if($_FILES['file_to_upl']["size"][$i] > 100000) $ok = 0;

174 if($ok) {

banner.php (https://bitbucket.org/mjalajel/opencart.git) PHP · 440 lines

1 <?php

2 class ControllerDesignBanner extends Controller {

3 private $error = array();

374

375 foreach ($banner_images as $banner_image) {

376 if ($banner_image['image'] && file_exists(DIR_IMAGE . $banner_image['image'])) {

377 $image = $banner_image['image'];

378 } else {

crop-avatar.php (https://gitlab.com/oytunistrator/cropper) PHP · 197 lines

1 <?php

2 class CropAvatar {

3 private $src;

46 $dir = $this -> srcDir;

47

48 if (!file_exists($dir)) {

49 mkdir($dir, 0777);

50 }

55 if ($type == IMAGETYPE_GIF || $type == IMAGETYPE_JPEG || $type == IMAGETYPE_PNG) {

56

57 if (file_exists($src)) {

58 unlink($src);

59 }

83 $dir = $this -> dstDir;

84

85 if (!file_exists($dir)) {

86 mkdir($dir, 0777);

87 }

Settings.php (https://gitlab.com/techniconline/kmc) PHP · 392 lines

22 * @package PHPExcel_Settings

23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');

34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

35 }

36

118 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management

119 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

120 * @return boolean Success or failure

121 */

138 * @return string Name of the Zip handler Class that PHPExcel is configured to use

139 * for Zip file management

140 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

141 */

142 public static function getZipClass()

module.php (https://github.com/ismanramadhan/Panada.git) PHP · 309 lines

221 $request = array();

222

223 if( ! file_exists( $file = GEAR . 'module/' . $module_name . '/controller/' . $controller . '.php' ) ){

224

225 alias_controller:

238 $request = array();

239

240 if( ! file_exists( $file = GEAR . 'module/' . $module_name . '/controller/' . $controller . '.php' ) )

241 Library_error::_500('<b>Error:</b> No alias controller exists in module <b>' . $module_name . '</b>. Check your module configuration.');

242

288 public function config($as_array = false){

289

290 if( ! file_exists($file = GEAR . 'module/' . Panada_module::$_module_name . '/config.php') )

291 return false;

292

Behavior.php (https://github.com/hhamon/Propel2.git) PHP · 457 lines

1 <?php

2

3 /**

18 *

19 * @author François Zaninotto

20 * @author Hugo Hamon <webmaster@apprendre-php.com> (Propel)

21 */

22 class Behavior extends MappingModel

320

321 /**

322 * Use Propel simple templating system to render a PHP file using variables

323 * passed as arguments. The template file name is relative to the behavior's

324 * directory name.

332 {

333 $filePath = $this->getDirname() . $templateDir . $filename;

334 if (!file_exists($filePath)) {

335 // try with '.php' at the end

Settings.php (https://gitlab.com/team_fsn/fsn-php) PHP · 387 lines

22 * @package PHPExcel_Settings

23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.8.0, 2014-03-02

33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');

34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

35 }

36

118 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management

119 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

120 * @return boolean Success or failure

121 */

137 * @return string Name of the Zip handler Class that PHPExcel is configured to use

138 * for Zip file management

139 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

140 */

141 public static function getZipClass()

Ftp.php (https://gitlab.com/endomorphosis/jeffersonsmithmayor) PHP · 373 lines

1 <?php

2

3 /**

10 define('W3TC_CDN_FTP_CONNECT_TIMEOUT', 30);

11

12 require_once W3TC_LIB_W3_DIR . '/Cdn/Base.php';

13

14 /**

24

25 /**

26 * PHP5 Constructor

27 *

28 * @param array $config

43

44 /**

45 * PHP4 Constructor

46 *

47 * @param array $config

Profile.php (https://github.com/komola/ZendFramework.git) PHP · 237 lines

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_Tool_Project_Profile_FileParser_Xml

25 */

26 require_once 'Zend/Tool/Project/Profile/FileParser/Xml.php';

27

28 /**

29 * @see Zend_Tool_Project_Profile_Resource_Container

30 */

31 require_once 'Zend/Tool/Project/Profile/Resource/Container.php';

32

33 /**

83 public function getIterator()

84 {

85 require_once 'Zend/Tool/Project/Profile/Iterator/EnabledResourceFilter.php';

86

87 return new RecursiveIteratorIterator(

PhoneNumber.php (https://gitlab.com/x33n/ImpressPages) PHP · 249 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

170 }

171

172 $file = __DIR__ . '/PhoneNumber/' . $code . '.php';

173 if (!file_exists($file)) {

translate_m.php (http://twpug.googlecode.com/svn/trunk/) PHP · 222 lines

1 <?php

2 // Configuration area start

3 // Please config the following settings before translation besides Traditional Chinese :)

49 if ($dh = opendir($dir)) {

50 while (($folder = readdir($dh)) !== false) {

51 if (is_dir($dir . '/' . $folder) && $folder != '..' && $folder != '.' && file_exists($dir . '/' . $folder . '/language/en_us.lang.php')) {

52 echo '<option';

53 if ($folder == $_GET['kfolder']) echo ' selected';

67 @unlink('modules/' . $_GET['kfolder'] . '/language/' . $lang . '.lang.php_old');

68 @copy('modules/' . $_GET['kfolder'] . '/language/' . $lang . '.lang.php', 'modules/' . $_GET['kfolder'] . '/language/' . $lang . '.lang.php_old');

69 $fd = fopen('modules/' . $_GET['kfolder'] . '/language/' . $lang . '.lang.php', 'w');

115 $en_mod_list_strings = $mod_list_strings;

116 $en_mod_list_strings2 = $en_mod_list_strings;

117 if (file_exists('modules/' . $_GET['kfolder'] . '/language/' . $lang . '.lang.php')) include 'modules/' . $_GET['kfolder'] . '/language/' . $lang . '.lang.php';

118 $result1 = array_merge($en_mod_strings, $mod_strings);

119 if (is_array($en_mod_list_strings)) {

Modules.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 138 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Modules.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

24 * @see Zend_Application_Resource_ResourceAbstract

25 */

26 require_once 'Zend/Application/Resource/ResourceAbstract.php';

27

28

73 $bootstrapClass = $this->_formatModuleName($module) . '_Bootstrap';

74 if (!class_exists($bootstrapClass, false)) {

75 $bootstrapPath = dirname($moduleDirectory) . '/Bootstrap.php';

76 if (file_exists($bootstrapPath)) {

modifier.iconify.php (https://gitlab.com/ElvisAns/tiki) PHP · 159 lines

1 <?php

2

3 // (c) Copyright by authors of the Tiki Wiki CMS Groupware Project

43 return "<img src=\"$icon\" width=\"$width\"/>";

44 } else {

45 include_once('lib/mime/mimetypes.php');

46 global $mimetypes;

47 $mimes = array_keys($mimetypes, $filetype);

48 if ($prefs['theme_iconset'] === 'legacy') {

49 if (file_exists("img/icons/mime/$ext.png")) {

50 $icon = $ext;

51 } elseif (file_exists('img/icons/mime/' . substr($ext, 0, 3) . '.png')) {

53 } else {

54 foreach ($mimes as $m) {

55 if (file_exists("img/icons/mime/$m.png")) {

56 $icon = $m;

57 }

Settings.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 332 lines

22 * @package PHPExcel_Settings

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.8, 2012-10-12

33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');

34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

35 }

36

112 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management

113 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

114 * @return boolean Success or failure

115 */

130 * @return string Name of the Zip handler Class that PHPExcel is configured to use

131 * for Zip file management

132 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

133 */

134 public static function getZipClass() {

File.php (https://gitlab.com/staging06/myproject) PHP · 208 lines

1 <?php

2

3 /**

10 */

11

12 require_once dirname(__FILE__) . "/ClassLoader.php";

13 Swift_ClassLoader::load("Swift_FileException");

14

37 protected $handle = null;

38 /**

39 * The status of magic_quotes in php.ini

40 * @var boolean

41 */

59 public function setPath($path)

60 {

61 if (!file_exists($path))

62 {

63 throw new Swift_FileException("No such file '" . $path ."'");

shell_tester.php (https://github.com/nigeldaley/moodle.git) PHP · 333 lines

1 <?php

2 /**

3 * base include file for SimpleTest

10 * include other SimpleTest class files

11 */

12 require_once(dirname(__FILE__) . '/test_case.php');

13 /**#@-*/

14

31 /**

32 * Actually runs the command. Does not trap the

33 * error stream output as this need PHP 4.3+.

34 * @param string $command The actual command line

35 * to run.

65 * Test case for testing of command line scripts and

66 * utilities. Usually scripts that are external to the

67 * PHP code, but support it in some way.

68 * @package SimpleTest

69 * @subpackage UnitTester

Storage.php (https://gitlab.com/fiesta-framework/Documentation) PHP · 382 lines

1 <?php

2

3 /**

80 protected function existsNonStatic($name)

81 {

82 return file_exists($this->storagePath."/".$name);

83 }

84

86 {

87 $self=new self();

88 return file_exists($self->storagePath."/".$name);

89 }

90

image.php (https://github.com/katalystsol/joomla-platform.git) PHP · 190 lines

1 <?php

2 /**

3 * @package Joomla.Platform

76 if (!isset($paths[$path]))

77 {

78 if (file_exists(JPATH_SITE . '/templates/' . $cur_template . '/images/' . $file))

79 {

80 $paths[$path] = 'templates/' . $cur_template . '/images/' . $file;

154 else

155 {

156 if (file_exists(JPATH_ADMINISTRATOR . '/templates/' . $cur_template . '/images/' . $file))

157 {

158 $image = 'templates/' . $cur_template . '/images/' . $file;

PKPHelp.inc.php (https://github.com/davekisly/pkp-lib.git) PHP · 256 lines

1 <?php

2

3 /**

6

7 /**

8 * @file classes/help/PKPHelp.inc.php

9 *

10 * Copyright (c) 2000-2011 John Willinsky

59 function getLocale() {

60 $locale = AppLocale::getLocale();

61 if (!file_exists("help/$locale/.")) {

62 return 'en_US';

63 }

220 /**

221 * Returns the most recent modified file in the specified directory

222 * Taken from the php.net site under filemtime

223 * @param $dirName string

224 * @param $doRecursive bool

popularity.php (https://gitlab.com/3dplex/3d-plex-main-site) PHP · 346 lines

1 <?php

2 namespace Grav\Plugin;

3

81

82 // initial creation if it doesn't exist

83 if (!file_exists($this->data_path)) {

84 mkdir($this->data_path);

85 $this->flushPopularity();

318 protected function getData($path)

319 {

320 if (file_exists($path)) {

321 <<<<<<< HEAD

322 return (array) json_decode(file_get_contents($path), true);

shopexport.php (https://bitbucket.org/seyar/kinda.local.git) PHP · 141 lines

1 <?php

2

3 defined('SYSPATH') OR die('No direct access allowed.');

6 *

7 * Project: microshop.local

8 * File: shopexport.php *

9 *

10 * This library is commercial distributed software; you can't

113 function getExportFileURL( $target )

114 {

115 if( !file_exists($this->fileFolderUrl.$target.self::EXT) )

116 return false;

117

128 function saveExportFile( $target,$data )

129 {

130 if( !file_exists($this->fileFolderUrl) )

131 mkdir( $this->fileFolderUrl, 0755, TRUE );

132

windowsfslib.php (https://github.com/lxcenter/hypervm.git) PHP · 219 lines

1 <?php

2

3 function lxshell_getzipcontent($path)

54 throw new lxException('recursive_removal_low_level_directories_not_allowed', '');

55 }

56 if (lxfile_exists($file)) {

57 if (is_dir($file)) {

58 $obj->deleteFolder($file);

101 $dirdest = expand_real_root($dirdest);

102 $dirsource = expand_real_root($dirsource);

103 if (lfile_exists($dirdest)) {

104 $dirdest = $dirdest . "/" . basename($dirsource);

105 }

120 $dirdest = expand_real_root($dirdest);

121 $dirsource = expand_real_root($dirsource);

122 if (lfile_exists($dirdest) && is_dir($dirdest)) {

123 $dirdest = $dirdest . "/" . basename($dirsource);

124 }

post_handler.php (https://github.com/fryed/Brick_cms.git) PHP · 350 lines

1 <?php

2 //-----ALL POSTS COME THROUGH HERE AND ARE PROCESSED BY THE VAL OF THE SUBMIT BUTTON USED TO POST-----//

3

122 public function editPage() {

123

124 include("system/core/post_functions/edit_page.php");

125

126 }

129 public function deletePage(){

130

131 include("system/core/post_functions/delete_page.php");

132

133 }

136 public function createPage() {

137

138 include("system/core/post_functions/create_page.php");

139

140 }

common.php (https://github.com/paintitgold/myspace-php-sdk.git) PHP · 146 lines

1 <?php

2

3 define('LIB_PATH', "../../source/");

16 function displayError($message) {

17 $error = $message;

18 include 'index.php';

19 exit(0);

20 }

26 * Require the OpenID consumer code.

27 */

28 require_once "Auth/OpenID/Consumer.php";

29

30 /**

53 // http://en.wikipedia.org/wiki/Ternary_operation

54 // BOOL ? (eval if BOOL == true) : (eval if BOOL == false);

55 require_once LOCAL ? "config.MySpace.local.php" : "config.MySpace.php";

56 }

57

class-admin-asset-manager.php (https://gitlab.com/najomie/fit-hippie) PHP · 352 lines

1 <?php

2 /**

3 * @package WPSEO\Admin

121 $language = WPSEO_Utils::get_language( $locale );

122

123 if ( file_exists( WPSEO_PATH . "js/dist/select2/i18n/{$locale}.js" ) ) {

124 $select2_language = $locale; // Chinese and some others use full locale.

125 }

126 elseif ( file_exists( WPSEO_PATH . "js/dist/select2/i18n/{$language}.js" ) ) {

127 $select2_language = $language;

128 }

FolderTest.php (https://github.com/benbruscella/vpcounselling.com.git) PHP · 255 lines

1 <?php

2 /**

3 * @author Ingo Schommer (ingo at silverstripe dot com)

39 );

40

41 $this->assertTrue(file_exists(ASSETS_PATH . $path), 'File');

42 $parentFolder = DataObject::get_one('Folder', '"Name" = \'FolderTest\'');

43 $this->assertNotNull($parentFolder);

212 parent::setUp();

213

214 if(!file_exists(ASSETS_PATH)) mkdir(ASSETS_PATH);

215

216 // Create a test folders for each of the fixture references

218 foreach($folderIDs as $folderID) {

219 $folder = DataObject::get_by_id('Folder', $folderID);

220 if(!file_exists(BASE_PATH."/$folder->Filename")) mkdir(BASE_PATH."/$folder->Filename");

221 }

222

payment.php (https://github.com/smadi/arabian-land.git) PHP · 146 lines

1 <?php

2 class ControllerAffiliatePayment extends Controller {

3 private $error = array();

126 $this->data['back'] = $this->url->link('affiliate/account', '', 'SSL');

127

128 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/affiliate/payment.tpl')) {

129 $this->template = $this->config->get('config_template') . '/template/affiliate/payment.tpl';

130 } else {

type.php (https://bitbucket.org/selfeky/xclusivescardwebsite.git) PHP · 261 lines

172 $file = DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

173 $url = BASE_URL . DIR_REL . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

174 } else if ($_file == FILENAME_ATTRIBUTE_CONTROLLER && file_exists(DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php')) {

175 $file = DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php';

180 $pkgHandle = PackageList::getHandle($pkgID);

181 $dirp = is_dir(DIR_PACKAGES . '/' . $pkgHandle) ? DIR_PACKAGES . '/' . $pkgHandle : DIR_PACKAGES_CORE . '/' . $pkgHandle;

182 if (file_exists($dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file)) {

183 $file = $dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

184 $url = BASE_URL . DIR_REL . '/' .DIRNAME_PACKAGES. '/' .$pkgHandle . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

185 } else if ($_file == FILENAME_ATTRIBUTE_CONTROLLER && file_exists($dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php')) {

186 $file = $dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php';

192 $file = DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

193 $url = ASSETS_URL . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file;

194 } else if ($_file == FILENAME_ATTRIBUTE_CONTROLLER && file_exists(DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php')) {

195 $file = DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php';

wp-plugin.php (https://github.com/mterenzio/wordpress-mtv.git) PHP · 169 lines

61 $handle_ajax = function() {

62 // get the url patterns for the current theme

63 if ( file_exists( get_stylesheet_directory() . DIRECTORY_SEPARATOR . 'urls.php' ) )

64 include get_stylesheet_directory() . DIRECTORY_SEPARATOR . 'urls.php';

98 * If not, we don't want to hijack rewrite rules and template selection

99 **/

100 if ( ! file_exists( get_stylesheet_directory() . DIRECTORY_SEPARATOR . 'urls.php' ) &&

101 ! file_exists( get_template_directory() . DIRECTORY_SEPARATOR . 'urls.php' ) )

147

148 // get the url patterns for the current theme

149 if ( file_exists( get_stylesheet_directory() . DIRECTORY_SEPARATOR . 'urls.php' ) )

150 include get_stylesheet_directory() . DIRECTORY_SEPARATOR . 'urls.php';

151 else if ( file_exists( get_template_directory() . DIRECTORY_SEPARATOR . 'urls.php' ) )

152 include get_template_directory() . DIRECTORY_SEPARATOR . 'urls.php';

Modules.php (https://github.com/grjones/qframe.git) PHP · 138 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Modules.php 20816 2010-02-01 21:13:54Z freak $

21 */

22

24 * @see Zend_Application_Resource_ResourceAbstract

25 */

26 require_once 'Zend/Application/Resource/ResourceAbstract.php';

27

28

73 $bootstrapClass = $this->_formatModuleName($module) . '_Bootstrap';

74 if (!class_exists($bootstrapClass, false)) {

75 $bootstrapPath = dirname($moduleDirectory) . '/Bootstrap.php';

76 if (file_exists($bootstrapPath)) {

openid_file_store.php (https://github.com/F5/zetacomponents.git) PHP · 301 lines

1 <?php

2 /**

3 * File containing the ezcAuthenticationOpenidFileStore class.

201 $file = $this->path . DIRECTORY_SEPARATOR . $nonce;

202

203 if ( !file_exists( $file ) )

204 {

205 return false;

255 $file = $this->path . DIRECTORY_SEPARATOR . $this->convertToFilename( $url );

256

257 if ( !file_exists( $file ) )

258 {

259 return false;

276 $file = $this->path . DIRECTORY_SEPARATOR . $this->convertToFilename( $url );

277

278 if ( !file_exists( $file ) )

279 {

280 return false;

php.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2590 lines

11 </PROPS>

12 <RULES IGNORE_CASE="TRUE">

13 <SPAN TYPE="MARKUP" DELEGATE="PHP">

14 <BEGIN>&lt;?php</BEGIN>

16 </SPAN>

17

18 <SPAN TYPE="MARKUP" DELEGATE="PHP">

19 <BEGIN>&lt;?</BEGIN>

20 <END>?&gt;</END>

21 </SPAN>

22

23 <SPAN TYPE="MARKUP" DELEGATE="PHP">

24 <BEGIN>&lt;%=</BEGIN>

25 <END>%&gt;</END>

64

65 <RULES SET="TAGS" DEFAULT="MARKUP">

66 <SPAN TYPE="MARKUP" DELEGATE="PHP">

67 <BEGIN>&lt;?php</BEGIN>

home.ctp (https://bitbucket.org/floresj/notetime.git) Unknown · 189 lines

169 <ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li>

170 <li><a href="http://www.cakephp.org"><?php echo __d('cake_dev', 'CakePHP'); ?> </a>

171 <ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li>

172 <li><a href="http://book.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Documentation'); ?> </a>

173 <ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li>

174 <li><a href="http://api20.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a>

175 <ul><li><?php echo __d('cake_dev', 'Quick Reference'); ?></li></ul></li>

179 <ul><li><?php echo __d('cake_dev', 'The Show is a live and archived internet radio broadcast CakePHP-related topics and answer questions live via IRC, Skype, and telephone.'); ?></li></ul></li>

180 <li><a href="http://groups.google.com/group/cake-php"><?php echo __d('cake_dev', 'CakePHP Google Group'); ?> </a>

181 <ul><li><?php echo __d('cake_dev', 'Community mailing list'); ?></li></ul></li>

185 <ul><li><?php echo __d('cake_dev', 'For the Development of CakePHP Git repository, Downloads'); ?></li></ul></li>

186 <li><a href="http://cakephp.lighthouseapp.com/"><?php echo __d('cake_dev', 'CakePHP Lighthouse'); ?> </a>

187 <ul><li><?php echo __d('cake_dev', 'CakePHP Tickets, Wiki pages, Roadmap'); ?></li></ul></li>

pep_runtime.self (git://github.com/ticking/self.git) Unknown · 2620 lines

474 'Category: java\x7fCategory: io\x7fCategory: File\x7fModuleInfo: Module: pep_runtime InitialContents: FollowSlot'

475

476 java_io_File_exists0 = ( |

477 |

478 java_inst_sysAccessMode: 0 os accessModes f_ok).

template.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 603 lines

1 <?php

2 /**

3 * @package Joomla.Platform

144

145 // if it's on the fs...

146 if (file_exists($this->parent->getPath('extension_root')) && (!$this->parent->isOverwrite() || $this->parent->isUpgrade()))

147 {

148 $updateElement = $xml->update;

181 * installed or another template is using that directory.

182 */

183 if (file_exists($this->parent->getPath('extension_root')) && !$this->parent->isOverwrite())

184 {

185 JError::raiseWarning(

192 // If the template directory does not exist, let's create it

193 $created = false;

194 if (!file_exists($this->parent->getPath('extension_root')))

195 {

196 if (!$created = JFolder::create($this->parent->getPath('extension_root')))