PageRenderTime 239ms queryTime 43ms sortTime 24ms getByIdsTime 31ms findMatchingLines 38ms

100+ results results for 'php file_exists repo:daveschwan/ronin-group' (239 ms)

Not the results you expected?
guest_step_2.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 268 lines
                    
1<?php 
                    
2class ControllerCheckoutGuestStep2 extends Controller {
                    
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';
                    
                
payment.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 262 lines
                    
1<?php  
                    
2class ControllerCheckoutPayment extends Controller {
                    
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';
                    
                
ctl.delivery_printer.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 242 lines
                    
1<?php
                    
2include_once('objectPage.php');
                    
51
                    
52        if(file_exists(HOME_DIR.'/upload/dly_bg_'.$_POST['dly_tmpl_id'].'.jpg')){
                    
53            $this->pagedata['tmpl_bg'] = 'index.php?ctl=order/delivery_printer&act=show_bg_picture&p[0]='.DPGB_HOME_MODE.'&p[1]='.$_POST['dly_tmpl_id'];
                    
68        if($this->pagedata['tmpl'] = $this->model->instance($tmpl_id)){
                    
69            if(file_exists(HOME_DIR.'/upload/dly_bg_'.$tmpl_id.'.jpg')){
                    
70                $this->pagedata['tmpl_bg'] = 'index.php?ctl=order/delivery_printer&act=show_bg_picture&p[0]='.DPGB_HOME_MODE.'&p[1]='.$tmpl_id;
                    
74        }else{
                    
75            $this->splash('failed','index.php?ctl=order/delivery_printer&act=index',__('????????id'));
                    
76        }
                    
83    function do_upload_pkg(){
                    
84        $this->begin('index.php?ctl=order/delivery_printer&act=import');
                    
85        $file = $_FILES['package'];
                    
105        }
                    
106        $this->end(true,__('???????'),'index.php?ctl=order/delivery_printer&act=index');
                    
107    }
                    
                
translate_m.php http://twpug.googlecode.com/svn/trunk/ | PHP | 222 lines
                    
1<?php
                    
2// Configuration area start
                    
24?>
                    
25<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php echo $lang; ?>">
                    
26
                    
27  <head>
                    
28	<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $encode; ?>" />
                    
29	<style type="text/css">
                    
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';
                    
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');
                    
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);
                    
                
headfoot.inc git://pkgs.fedoraproject.org/nordugrid-arc | PHP | 275 lines
                    
1<?php
                    
2
                    
84	  $locfile = $option.".inc";
                    
85	  if ( !file_exists("lang/".$locfile) ) continue;
                    
86	  $yazyk   = $option;
                    
172    echo "     <img src=\"./mon-icons/icon-print.png\" vspace=\"4\" width=\"24\" height=\"24\" border=\"0\" align=\"absmiddle\" title=\"".$this->errors["302"]."\" alt=\"".$this->errors["302"]."\"></a>\n";
                    
173    echo "     <a href=\"javascript:monitor('help.php?module=".$this->module."&lang=".$lang."',400,300,10);\" onClick=\"javascript:monitor('help.php?module=".$this->module."',400,300,10);\">\n";
                    
174    echo "     <img src=\"./mon-icons/icon-help.png\" vspace=\"4\" width=\"24\" height=\"24\" border=\"0\" align=\"absmiddle\" title=\"".$this->errors["303"]."\" alt=\"".$this->errors["303"]."\"></a>\n";
                    
188
                    
189    if ( file_exists("README") ) {
                    
190      $readme = fopen("README","r");
                    
                
check.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 216 lines
                    
1<?php
                    
2
                    
24    $contents = "<center><br /><b>" . $lang_module['nv_lang_error_exit'] . "</b></center>";
                    
25    $contents .= "<meta http-equiv=\"Refresh\" content=\"3;URL=" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=setting\" />";
                    
26    include ( NV_ROOTDIR . "/includes/header.php" );
                    
27    echo nv_admin_theme( $contents );
                    
28    include ( NV_ROOTDIR . "/includes/footer.php" );
                    
29    exit();
                    
35{
                    
36    if ( file_exists( NV_ROOTDIR . "/language/" . $value . "/global.php" ) )
                    
37    {
                    
72
                    
73$contents .= "<br /><form action=\"" . NV_BASE_ADMINURL . "index.php\" method=\"get\"><center>";
                    
74$contents .= "<input type=\"hidden\" name =\"" . NV_NAME_VARIABLE . "\"value=\"" . $module_name . "\" />";
                    
166    {
                    
167        $contents .= "<form action=\"" . NV_BASE_ADMINURL . "index.php\" method=\"post\">";
                    
168        $contents .= "<input type=\"hidden\" name =\"" . NV_NAME_VARIABLE . "\"value=\"" . $module_name . "\" />";
                    
                
global.menu_theme_modern.php http://viet-group.googlecode.com/svn/trunk/ | 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( 
                    
                
sfPropelFormGenerator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 492 lines
                    
99
                    
100      file_put_contents($baseDir.'/base/Base'.$table->getPhpName().'Form.class.php', $this->evalTemplate('sfPropelFormGeneratedTemplate.php'));
                    
101      if (!file_exists($classFile = $baseDir.'/'.$table->getPhpName().'Form.class.php'))
                    
123      {
                    
124        if ($column->isForeignKey() && $column->isPrimaryKey() && $this->table->getPhpName() == $this->getForeignTable($column)->getPhpName())
                    
125        {
                    
129          {
                    
130            if ($relatedColumn->isForeignKey() && $relatedColumn->isPrimaryKey() && $this->table->getPhpName() != $this->getForeignTable($relatedColumn)->getPhpName())
                    
131            {
                    
167      {
                    
168        $names[] = array($this->getForeignTable($column)->getPhpName(), $column->getPhpName(), $column->isNotNull(), false);
                    
169      }
                    
173    {
                    
174      $names[] = array($tables['relatedTable']->getPhpName(), $tables['middleTable']->getPhpName(), false, true);
                    
175    }
                    
                
kfmDirectory.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 364 lines
                    
1<?php
                    
2class kfmDirectory extends kfmObject{
                    
74		}
                    
75		if(file_exists($physical_address)){
                    
76			$this->error(kfm_lang('alreadyExists',$short_version));
                    
79		mkdir($physical_address);
                    
80		if(!file_exists($physical_address)){
                    
81			$this->error(kfm_lang('failedCreateDirectoryCheck',$name));
                    
102	function exists(){
                    
103		return (file_exists($this->path()) && is_dir($this->path()));
                    
104	}
                    
126			$sprites[]=array('sprite'=>$md5,'files'=>$igroup);
                    
127			if(!file_exists(WORKPATH.'css_sprites/'.$md5.'.png')){
                    
128				$thumbs=array();
                    
147		$tmp=array();
                    
148		if(file_exists($this->path()) && is_dir($this->path())) {
                    
149			foreach(new directoryIterator($this->path()) as $f){
                    
                
View.php git://github.com/concrete5/concrete5.git | PHP | 478 lines
                    
1<?php
                    
2namespace Concrete\Core\View;
                    
90        $path = $env->getPath(DIRNAME_THEMES.'/'.$this->themeHandle.'/'.$file, $this->themePkgHandle);
                    
91        if (!file_exists($path)) {
                    
92            $path2 = $env->getPath(DIRNAME_THEMES.'/'.$this->themeHandle.'/'.$file, $this->viewPkgHandle);
                    
92            $path2 = $env->getPath(DIRNAME_THEMES.'/'.$this->themeHandle.'/'.$file, $this->viewPkgHandle);
                    
93            if (file_exists($path2)) {
                    
94                $path = $path2;
                    
210        if (!$this->innerContentFile) { // will already be set in a legacy tools file
                    
211            $this->setInnerContentFile($env->getPath($this->viewRootDirectoryName.'/'.trim($this->viewPath, '/').'.php', $this->viewPkgHandle));
                    
212        }
                    
248        // Render the template around it
                    
249        if (file_exists($this->template)) {
                    
250            $contents = $this->renderTemplate($scopeItems, $contents);
                    
466
                    
467        $_record = $_locator->getRecord(DIRNAME_ELEMENTS . '/' . $_file . '.php');
                    
468        $_file = $_record->getFile();
                    
                
fooLoader.php http://kosimpin.googlecode.com/svn/trunk/ | PHP | 387 lines
                    
1<?php
                    
2
                    
6* Released under the MIT license, see:
                    
7* http://www.opensource.org/licenses/mit-license.php
                    
8*/
                    
58			// Is this a class extension request?
                    
59			if (file_exists($subclass))
                    
60			{
                    
61				$baseclass = BASEPATH.'libraries/'.ucfirst($class).EXT;
                    
62                if (file_exists(FSPATH.config_item('fooStack_prefix').$class.EXT))
                    
63                {
                    
67
                    
68				if ( !file_exists($baseclass) )
                    
69				{
                    
109				// Does the file exist?  No?  Bummer...
                    
110				if ( ! file_exists($filepath))
                    
111				{
                    
                
Standards.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
6 * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
                    
7 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
                    
8 */
                    
9
                    
10namespace PHP_CodeSniffer\Util;
                    
11
                    
11
                    
12use PHP_CodeSniffer\Config;
                    
13
                    
66     * @param string  $standardsDir   A specific directory to look for standards
                    
67     *                                in. If not specified, PHP_CodeSniffer will
                    
68     *                                look in its default locations.
                    
155     * @param string  $standardsDir   A specific directory to look for standards
                    
156     *                                in. If not specified, PHP_CodeSniffer will
                    
157     *                                look in its default locations.
                    
                
wikiparser_test.php git://github.com/moodle/moodle.git | PHP | 247 lines
                    
54    private function assertTestFile($num, $markup) {
                    
55        if(!file_exists(__DIR__."/fixtures/input/$markup/$num") || !file_exists(__DIR__."/fixtures/output/$markup/$num")) {
                    
56            return false;
                    
91        $input = '<h1>Code &amp; Test</h1>';
                    
92        $output = '<h3><a name="toc-1"></a>Code &amp; Test <a href="edit.php?pageid=&amp;section=Code+%26amp%3B+Test" '.
                    
93            'class="wiki_edit_section">[edit]</a></h3>' . "\n";
                    
141        $actual = wiki_parser_proxy::parse($input, 'html', array(
                    
142            'link_callback' => '/mod/wiki/locallib.php:wiki_parser_link',
                    
143            'link_callback_args' => array('swid' => 1)
                    
152        $input = '= Code & Test =';
                    
153        $output = '<h3><a name="toc-1"></a>Code &amp; Test <a href="edit.php?pageid=&amp;section=Code+%26amp%3B+Test" '.
                    
154            'class="wiki_edit_section">[edit]</a></h3>' . "\n";
                    
236        $toc = '<div class="wiki-toc"><p class="wiki-toc-title">Table of contents</p><p class="wiki-toc-section-1 '.
                    
237            'wiki-toc-section">1. <a href="#toc-1">Heading test <a href="edit.php?pageid=&amp;section=Heading+'.
                    
238            'test" class="wiki_edit_section">[edit]</a></a></p><p class="wiki-toc-section-2 wiki-toc-section">'.
                    
                
create_app.task.php https://github.com/onivan/akelos.git | PHP | 430 lines
                    
1<?php
                    
2
                    
19Example:
                    
20    akelos ~/Code/PHP/weblog
                    
21
                    
21
                    
22    This generates a skeletal Akelos installation in ~/Code/PHP/weblog.
                    
23    See the README in the newly created application to get going.
                    
136        if(AK_WIN){
                    
137            if(file_exists('C:/xampp/apache/conf/httpd.conf')){
                    
138                return 'DefaultXamppOnWindows';
                    
226        $paths = array(
                    
227        $this->options['directory'].DS.'config'.DS.'boot.php',
                    
228        $this->options['directory'].DS.'makelos',
                    
298     *
                    
299     * Giving /path/to/the_framework/lib/Ak.php will rerturn /my/project/path/lib/Ak.php
                    
300     */
                    
                
mdl.magickwand.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 439 lines
                    
1<?php
                    
2/**
                    
5 * @package
                    
6 * @version $Id: mdl.magickwand.php 1867 2008-04-23 04:00:24Z hujianxin $
                    
7 * @copyright 2003-2007 ShopEx
                    
426    {
                    
427        if(!file_exists($file)) return false;
                    
428        $data = getimagesize($file);
                    
                
MaildirTest.php git://github.com/zendframework/zf2.git | PHP | 445 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);
                    
                
enigma_driver_gnupg.php git://pkgs.fedoraproject.org/roundcubemail | PHP | 306 lines
                    
1<?php
                    
2/*
                    
23
                    
24require_once 'Crypt/GPG.php';
                    
25
                    
54        // check if homedir exists (create it if not) and is readable
                    
55        if (!file_exists($homedir))
                    
56            return new enigma_error(enigma_error::E_INTERNAL,
                    
64        // check if user's homedir exists (create it if not) and is readable
                    
65        if (!file_exists($homedir))
                    
66            mkdir($homedir, 0700);
                    
67
                    
68        if (!file_exists($homedir))
                    
69            return new enigma_error(enigma_error::E_INTERNAL,
                    
                
index.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 548 lines
                    
43/* Check for config */
                    
44if ((!file_exists('admin/config.php')) or (filesize('admin/config.php') < 10)) {
                    
45	/* redirect to installer */
                    
45	/* redirect to installer */
                    
46	if (file_exists('admin/install/index.php')) {
                    
47		header('Location: admin/install/');
                    
50	/* Redirect to an error page if down */
                    
51	if (!file_exists('admin/install/index.php')) {
                    
52		require_once 'admin/lib/lib_db.php';
                    
88	}
                    
89	/* New! Built in php function. Tell php what the server timezone is so that we can use php 5's rewritten time and date functions with the correct time and without error messages */
                    
90	date_default_timezone_set("$server_timezone");
                    
141		if (isset($s)) {
                    
142			if (file_exists("admin/modules/{$s}_functions.php")) {
                    
143				include("admin/modules/{$s}_functions.php");
                    
                
SP_Uri.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 280 lines
                    
1<?php
                    
2
                    
18
                    
19        @include(APPBASE.'Config/routes.php');
                    
20        $this->routes = ( ! isset($ROUTE) OR ! is_array($ROUTE)) ? array() : $ROUTE;
                    
30
                    
31            if(!file_exists(APPBASE.'Controllers/'.$this->default_controller.'.php')){
                    
32                showError(__T('Unable to load your default controller.  Please make sure the controller specified in your Routes.php file is valid.'));
                    
171            $strlen = strlen(_getScriptPath());
                    
172            $totallen = strlen($_SERVER['PHP_SELF']);
                    
173            return substr($_SERVER['PHP_SELF'],$strlen,$totallen);
                    
                
Website.php https://bitbucket.org/deniskulikouski/belvg.deniska.git | PHP | 229 lines
                    
1<?php
                    
2/**
                    
92                $_moduleConfigFilePath = Mage::getConfig()->getModuleDir('etc', $moduleName) . DS . 'config.xml';
                    
93                if (!file_exists($_moduleConfigFilePath)) {
                    
94                    continue;
                    
                
tenpay.php https://bitbucket.org/huanteng/touyou.git | PHP | 242 lines
                    
1<?php
                    
2
                    
12 * $Author: liubo $
                    
13 * $Id: tenpay.php 17217 2011-01-19 06:29:08Z liubo $
                    
14 */
                    
20
                    
21$payment_lang = ROOT_PATH . 'languages/' .$GLOBALS['_CFG']['lang']. '/payment/tenpay.php';
                    
22
                    
22
                    
23if (file_exists($payment_lang))
                    
24{
                    
35    /* 代码 */
                    
36    $modules[$i]['code']    = basename(__FILE__, '.php');
                    
37
                    
                
paypal_ec.php https://bitbucket.org/huanteng/touyou.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" );
                    
                
theme_config_test.php git://github.com/moodle/moodle.git | PHP | 216 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
20 * @package   core
                    
21 * @category  phpunit
                    
22 * @copyright 2012 Sam Hemelryk
                    
28global $CFG;
                    
29require_once($CFG->libdir . '/outputlib.php');
                    
30
                    
47        // The two required tests.
                    
48        $this->assertTrue(file_exists($CFG->dirroot.'/pix/i/test.svg'));
                    
49        $this->assertTrue(file_exists($CFG->dirroot.'/pix/i/test.png'));
                    
188
                    
189        $this->assertTrue(file_exists($editorscss));
                    
190        $compiler = new core_scss();
                    
207
                    
208        $this->assertTrue(file_exists($editorscss));
                    
209        $compiler = new core_scss();
                    
                
PraizedOAuth.php http://praized.googlecode.com/svn/trunk/ | PHP | 441 lines
                    
1<?php
                    
2/**
                    
15    if ( ! class_exists('PraizedCipher') )
                    
16        include_once dirname(realpath(__FILE__)) . "/PraizedCipher.php";
                    
17    if ( ! class_exists('OAuthConsumer') )
                    
17    if ( ! class_exists('OAuthConsumer') )
                    
18        include_once dirname(realpath(__FILE__)) . "/vendor/OAuth.php";
                    
19    if ( ! class_exists('Snoopy') )
                    
19    if ( ! class_exists('Snoopy') )
                    
20        include_once dirname(realpath(__FILE__)) . "/vendor/Snoopy.php";
                    
21
                    
64    		
                    
65		    $devInc = dirname(realpath(__FILE__)).'/Praized/Dev.php';
                    
66            if ( file_exists($devInc) ) {
                    
131        	            ( isset($_SERVER['HTTPS']) ) ? 'https' : 'http',
                    
132        	            ( isset($_SERVER['PHP_AUTH_USER']) ) ? $_SERVER['PHP_AUTH_USER'].':'.$_SERVER['PHP_AUTH_PQ'].'@' : '',
                    
133        	            $_SERVER['HTTP_HOST'],
                    
                
PHPWebdriverTest.php http://php-webdriver-bindings.googlecode.com/svn/trunk/ | PHP | 282 lines
                    
1<?php
                    
2
                    
2
                    
3if(is_file('../definedVars.php')) require_once '../definedVars.php';
                    
4require_once 'phpwebdriver/WebDriver.php';
                    
11 */
                    
12class PHPWebDriverTest extends PHPUnit_Framework_TestCase {
                    
13
                    
178        $result = $this->webdriver->getScreenshotAndSaveToFile($tmp_filename);
                    
179        $this->assertTrue(file_exists($tmp_filename));
                    
180        $this->assertTrue(filesize($tmp_filename)>100);
                    
                
LocalServer.php git://github.com/Codeception/Codeception.git | PHP | 296 lines
                    
1<?php
                    
2namespace Codeception\Coverage\Subscriber;
                    
14/**
                    
15 * When collecting code coverage data from local server HTTP requests are sent to c3.php file.
                    
16 * Coverage Collection is started by sending cookies/headers.
                    
75                    CodeCoverage Error.
                    
76                    Check the file "c3.php" is included in your application.
                    
77                    We tried to access "/c3/report/clear" but this URI was not accessible.
                    
108        $retries = 5;
                    
109        while (!file_exists($coverageFile) && --$retries >= 0) {
                    
110            usleep(0.5 * 1000000); // 0.5 sec
                    
112
                    
113        if (!file_exists($coverageFile)) {
                    
114            if (file_exists(Configuration::outputDir() . 'c3tmp/error.txt')) {
                    
                
admin.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 434 lines
                    
1<?php
                    
2/**
                    
14 */
                    
15//require_once dirname(__FILE__) . DS . 'factory.php';
                    
16
                    
18 * JFusion Admin class for Magento 1.1
                    
19 * For detailed descriptions on these functions please check the model.abstractadmin.php
                    
20 * @package JFusion_Magento
                    
37		$xmlfile = $forumpath.'app'.DS.'etc'.DS.'local.xml';
                    
38		if (file_exists($xmlfile)) {
                    
39			$xml = JFactory::getXMLParser('Simple');
                    
208			$source_path = $params->get('source_path', '');
                    
209			if(!file_exists($source_path . DS . 'app'. DS .'Mage.php')){
                    
210				return JText::_('MAGE_CONFIG_SOURCE_PATH');
                    
217			$mod_exists = false;
                    
218			if(file_exists($source_path . DS .'app'. DS .'etc'. DS .'modules'. DS .'Jfusion_All.xml')){
                    
219				$mod_exists = true;
                    
                
FileExtend.php http://gestion-calls.googlecode.com/svn/trunk/ | PHP | 464 lines
                    
1<?php
                    
2// Require class
                    
3// Find in oi package
                    
4require_once('exception/FileException.php');
                    
5
                    
7// PEAR
                    
8require_once('File/Util.php');
                    
9
                    
60	public function __construct($pathName,$name=null) {
                    
61		self::$FILE_WIN = defined('OS_WINDOWS') ? OS_WINDOWS : !strncasecmp(PHP_OS, 'win', 3);
                    
62		$parts = array();
                    
215		} else {
                    
216			if ($this->isFile() && file_exists($this->buildPath()))
                    
217				return true;
                    
                
Language.php git://github.com/egeniq/adapto.git | PHP | 282 lines
                    
1<?php
                    
2/**
                    
214        
                    
215        $path .= $lng . '.php';
                    
216        
                    
216        
                    
217        if (!file_exists($path)) {
                    
218            throw new Adapto_Exception("Language '$lng' not available in module '$module'");
                    
                
myocamlbuild.ml git://github.com/naokirin/carameliser.git | OCaml | 491 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
                    
                
anekdotru.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 393 lines
                    
1<?php
                    
2//
                    
12
                    
13include("config.php");
                    
14
                    
112
                    
113					if(file_exists($export_dir.$slidename))
                    
114					{
                    
149
                    
150				if(file_exists($export_dir.$slidename))
                    
151					{
                    
                
class_session.php http://malleo-cms.googlecode.com/svn/trunk/ | PHP | 344 lines
                    
1<?php
                    
2/*
                    
69			}else{
                    
70				// On charge la session PHP
                    
71				session_start();
                    
160		// en cache
                    
161		if (file_exists($this->path_cache.$this->id_session)){
                    
162			unlink($this->path_cache.$this->id_session);
                    
165		setcookie($this->cf['cookie_name'], null, ($this->time-3600)); // cookie malleo
                    
166		setcookie(get_cfg_var('session.name'), null, ($this->time-3600)); // eventuelle session type PHPSESSID
                    
167		$this->id_session = null;
                    
                
API.php git://github.com/matthiasplappert/CloudApp-API-PHP-wrapper.git | PHP | 363 lines
                    
1<?php
                    
2
                    
34/**
                    
35 * Cloud_API is a simple PHP wrapper for the CloudApp API using cURL.
                    
36 *
                    
60     */
                    
61    private $_user_agent = 'Cloud API PHP wrapper';
                    
62
                    
177        // Check if file exists
                    
178        if (!file_exists($path)) {
                    
179            throw new Exception('File at path \'' . $path . '\' not found', CLOUD_EXCEPTION_FILE_NOT_FOUND);
                    
209        // Parse location
                    
210        $query = parse_url($location, PHP_URL_QUERY);
                    
211        $query_parts = explode('&', $query);
                    
                
ExtensionsLocalesController.php git://github.com/croogo/croogo.git | PHP | 244 lines
                    
1<?php
                    
2
                    
13 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
14 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
15 * @link     http://www.croogo.org
                    
55				}
                    
56				if (!file_exists($path . $locale . DS . 'LC_MESSAGES' . DS . 'croogo.po')) {
                    
57					continue;
                    
234
                    
235			if (file_exists($poFile)) {
                    
236				return $poFile;
                    
                
curl.php http://commonshell.googlecode.com/svn/trunk/ | PHP | 314 lines
                    
1<?php
                    
2/**
                    
5 * @author               yangyu
                    
6 * @file                 $RCSfile: ZZTest.class.php,v $
                    
7 * @version              $Revision: 1.25 $
                    
10 * @copyright            Copyright (c) 2005, eYou.com
                    
11 * ??????php????url???
                    
12 */
                    
65        $this->mCookFile = tempnam('/tmp','cookie');
                    
66        if(file_exists($this->mCookFile)){//????
                    
67            $fp = @fopen($this->mCookFile,"r+");
                    
195     * <code>
                    
196     * <?php
                    
197     *     //??????
                    
271    function setSslKey($filename,$passwd){
                    
272        if(file_exists($filename)){
                    
273            $this->mSslKey = $filename;
                    
                
user.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 385 lines
                    
1<?php
                    
2
                    
6
                    
7	$Id: user.php 969 2009-10-29 02:07:08Z zhaoxiongfei $
                    
8*/
                    
264		$app = $this->cache['apps'][$appid];
                    
265		$apifilename = isset($app['apifilename']) && $app['apifilename'] ? $app['apifilename'] : 'uc.php';
                    
266		if($app['extra']['apppath'] && @include $app['extra']['apppath'].'./api/'.$apifilename) {
                    
294		$tmpavatar = UC_DATADIR.'./tmp/upload'.$uid.$filetype;
                    
295		file_exists($tmpavatar) && @unlink($tmpavatar);
                    
296		if(@copy($_FILES['Filedata']['tmp_name'], $tmpavatar) || @move_uploaded_file($_FILES['Filedata']['tmp_name'], $tmpavatar)) {
                    
352		if(!$biginfo || !$middleinfo || !$smallinfo || $biginfo[2] == 4 || $middleinfo[2] == 4 || $smallinfo[2] == 4) {
                    
353			file_exists($bigavatarfile) && unlink($bigavatarfile);
                    
354			file_exists($middleavatarfile) && unlink($middleavatarfile);
                    
354			file_exists($middleavatarfile) && unlink($middleavatarfile);
                    
355			file_exists($smallavatarfile) && unlink($smallavatarfile);
                    
356			$success = 0;
                    
                
SYLK.php https://PHPExcel.svn.codeplex.com/svn | PHP | 507 lines
                    
37/** PHPExcel */
                    
38require_once PHPEXCEL_ROOT . 'PHPExcel.php';
                    
39
                    
40/** PHPExcel_Reader_IReader */
                    
41require_once PHPEXCEL_ROOT . 'PHPExcel/Reader/IReader.php';
                    
42
                    
43/** PHPExcel_Worksheet */
                    
44require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet.php';
                    
45
                    
46/** PHPExcel_Cell */
                    
47require_once PHPEXCEL_ROOT . 'PHPExcel/Cell.php';
                    
48
                    
52 /** PHPExcel_Reader_DefaultReadFilter */
                    
53require_once PHPEXCEL_ROOT . 'PHPExcel/Reader/DefaultReadFilter.php';
                    
54
                    
                
cp_man.php https://gitlab.com/BGCX261/zjrenju-svn-to-git.git | PHP | 457 lines
                    
42
                    
43			$cplist.=" [<a  href=\"index.php?mode=cp_man&action=makepage&cp_id=$cpdata[cp_id]\">生成(刷新)报表</a>]";
                    
44
                    
173
                    
174	require_once('../include/m_func.php');
                    
175	$players=array();
                    
242	}
                    
243	Header("Location: index.php?mode=cp_man");
                    
244	exit();
                    
288	$buf.="</h5>";
                    
289	$buf.="<h5>Totally $total games, $finished finished. [<a href=\"g_search.php?&action=list&cp_id=$cp_id\">view</a>] [<a href=\"g_search.php?&action=list&cp_id=$cp_id&packdown=1\">download</a>]  </h5>";
                    
290			
                    
324		$buf.='<b>Group '.chr(65+$num)." ($str_status)</b>";
                    
325		$buf.="</td><td align=\"right\">$finished/$total finished.[<a href=\"g_search.php?&action=list&group_id=$gpdata[group_id]\">view</a>] [<a href=\"g_search.php?&action=list&group_id=$gpdata[group_id]&packdown=1\">download</a>]</td></tr></table>";
                    
326		//生成表格
                    
                
class.ExportMySQLDAO.php git://github.com/ginatrapani/ThinkUp.git | PHP | 360 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * ThinkUp/webapp/_lib/model/class.ExportMySQLDAO.php
                    
5 *
                    
235    public function exportPostsLinksUsersToFile($posts_file, $links_file, $users_file) {
                    
236        if (file_exists($posts_file)) {
                    
237            unlink($posts_file);
                    
238        }
                    
239        if (file_exists($links_file)) {
                    
240            unlink($links_file);
                    
241        }
                    
242        if (file_exists($users_file)) {
                    
243            unlink($users_file);
                    
263    $users_followees_file) {
                    
264        if (file_exists($follows_file)) {
                    
265            unlink($follows_file);
                    
                
trilulilu_s.php https://code.google.com/p/hdforall/ | PHP | 338 lines
                    
15   $dir = "/tmp/usbmounts/sdb1/download/log/";
                    
16} elseif (file_exists("/tmp/usbmounts/sdc1/download")) {
                    
17   $dir = "/tmp/usbmounts/sdc1/download/log/";
                    
194     showIdle();
                    
195     url="<?php echo $host; ?>" + "/scripts/clip/php/trilulilu_link.php?file=" + getItemInfo(getFocusItemIndex(),"download");
                    
196     movie=getUrl(url);
                    
200     do_down=1;
                    
201     log_file="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log";
                    
202     setRefreshTime(2000);
                    
234<destination>
                    
235	<link>http://127.0.0.1/cgi-bin/scripts/util/level.php
                    
236	</link>
                    
300    showIdle();
                    
301    url="'.$host.'/scripts/clip/php/trilulilu_link.php?file='.$link.'";
                    
302    movie=getUrl(url);
                    
                
tools_webftp.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 555 lines
                    
64	 */
                    
65	public $edit_file = array('php', 'php3', 'php4', 'php5', 'htm', 'html', 'tpl', 'txt', 'css', 'js', 'xml', 'rss', 'htaccess');
                    
66	
                    
113			'mode' => array(
                    
114				'highlight_php' =>	'page_php_highlight',
                    
115				'codepress' =>		'page_codepress',
                    
192			{
                    
193				$u_dir = sid('index.' . PHPEXT . '?p=tools_webftp&amp;mode=highlight_php&amp;dir=' . $this->dir . '&amp;phpfile=' . $value['name']);
                    
194			}
                    
219	 * Converti des permissions (octal) en permissions symboliques (rwx)
                    
220	 * http://fr.php.net/manual/fr/function.fileperms.php
                    
221	 *
                    
498		$phpfile = Http::request('phpfile');
                    
499		if (file_exists(ROOT . $this->dir . $phpfile))
                    
500		{
                    
                
css_optimiser.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 506 lines
                    
1<?php
                    
2header('Content-Type:text/html; charset=utf-8');
                    
2header('Content-Type:text/html; charset=utf-8');
                    
3require ('class.csstidy.php');
                    
4require ('lang.inc.php');
                    
13    // Sanity check
                    
14    if (! file_exists($dirname))
                    
15    {
                    
119<title>
                    
120      <?php
                    
121    echo $lang[$l][0];
                    
146<h1 style="display: inline">
                    
147      <?php
                    
148    echo $lang[$l][1];
                    
150    </h1>
                    
151    <?php
                    
152    echo $lang[$l][2];
                    
                
File.php git://github.com/tcm-project/tangocms.git | PHP | 307 lines
                    
1<?php
                    
2
                    
38									'cant_write'	=> 'failed to write file "%s" to disk',
                    
39									'extension'		=> 'PHP extension blocked file upload for "%s"',
                    
40									'mime'			=> 'requested file "%s" has invalid mime of "%s"',
                    
94		 * thrown in this method to indicate the errors that could occur
                    
95		 * (such as the main PHP error codes).
                    
96		 *
                    
176					++$i;
                    
177				} while ( $this->uploader->overwrite === false && file_exists( $path ) );
                    
178			} else {
                    
295		 * Checks the extension of a file to make sure the uplaoded
                    
296		 * file is not a PHP, Perl etc script.
                    
297		 *
                    
301		protected function checkExtension( $name ) {
                    
302			return !(bool) preg_match('#(?:php[0-9]?|pl|rb|aspx?|x?html?|exe|cgi)$#i', pathinfo($name, PATHINFO_EXTENSION));
                    
303		}
                    
                
kuveytturk.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 181 lines
                    
1<?php //00d4b
                    
2// *************************************************************************
                    
33// *************************************************************************
                    
34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
                    
35?>
                    
133CbwjoEHcxL9j2mBa60034531nxTJRTgzm17AJrvaUsEu3Is5R12rAXzI8nuCdkfYyHWmCZ8a0V7d
                    
134xuYYBp8ntsQ9YVdwiLtQ0eBL7PH8KhmRcrlUozOVLDKY/E2sitR3z9AVwYFDGnE943PhpvpgXrGp
                    
135+ixWPXu+cZKxr31FE8kXUEffDXXXKz652h0AYVthytpd1iIP4j2314aGAxxcmj6Plxpg9Cph9XHM
                    
                
admin_login.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 220 lines
                    
1<?php
                    
2
                    
73            define( 'NV_IS_MOD_USER', true );
                    
74            require_once ( NV_ROOTDIR . '/' . DIR_FORUM . '/nukeviet/login.php' );
                    
75        }
                    
136
                    
137if ( file_exists( NV_ROOTDIR . "/language/" . NV_LANG_INTERFACE . "/admin_global.php" ) )
                    
138{
                    
138{
                    
139    require_once ( NV_ROOTDIR . "/language/" . NV_LANG_INTERFACE . "/admin_global.php" );
                    
140}
                    
140}
                    
141elseif ( file_exists( NV_ROOTDIR . "/language/en/admin_global.php" ) )
                    
142{
                    
201    {
                    
202        if ( file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/global.php" ) and file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/admin_global.php" ) )
                    
203        {
                    
                
admin_functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 472 lines
                    
1<?php
                    
2
                    
79
                    
80	$content_config = "<?php\n\n";
                    
81	$content_config .= NV_FILEHEAD . "\n\n";
                    
99
                    
100	$return = file_put_contents( NV_ROOTDIR . "/" . NV_DATADIR . "/config_global.php", $content_config, LOCK_EX );
                    
101	nv_delete_all_cache();
                    
154
                    
155	if( file_exists( $my_file ) and @filemtime( $my_file ) > $p )
                    
156	{
                    
160	{
                    
161		include ( NV_ROOTDIR . "/includes/class/geturl.class.php" );
                    
162		$getContent = new UrlGetContents( $global_config, 6 );
                    
245		$rewrite_rule .= "                    </conditions>\n";
                    
246		$rewrite_rule .= "                    <action type=\"Rewrite\" url=\"robots.php?action={HTTP_HOST}\" appendQueryString=\"false\" />\n";
                    
247		$rewrite_rule .= "                </rule>\n";
                    
                
install.php http://feed-on-feeds.googlecode.com/svn/trunk/ | PHP | 363 lines
                    
40
                    
41$php_ok = (function_exists('version_compare') && version_compare(phpversion(), '4.3.2', '>='));
                    
42$xml_ok = extension_loaded('xml');
                    
113<?php
                    
114if($php_ok) echo "<span class='pass'>PHP ok...</span> ";
                    
115else
                    
116{
                    
117    echo "<br><span class='fail'>Your PHP version is too old!</span>  Feed on Feeds requires at least PHP 4.3.2.  Sorry!";
                    
118    echo "</div></body></html>";
                    
154{
                    
155    echo "<br><span class='warn'>Your PHP installation is missing the Zlib extension!</span>  Feed on Feeds will not be able to save bandwidth by requesting compressed feeds.<br>";
                    
156}
                    
166{
                    
167    echo "<br><span class='warn'>Your PHP installation is missing the mbstring extension!</span>  The number of international languages that Feed on Feeds can handle will be reduced.<br>";
                    
168}
                    
                
filemanager.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 442 lines
                    
1<?php
                    
2class ControllerCommonFileManager extends Controller {
                    
133				
                    
134				if (file_exists($directory . '/' . str_replace('../', '', $this->request->post['name']))) {
                    
135					$json['error'] = $this->language->get('error_exists');
                    
162			 
                    
163			if (!file_exists($path)) {
                    
164				$json['error'] = $this->language->get('error_select');
                    
222			
                    
223			if (!file_exists($from)) {
                    
224				$json['error'] = $this->language->get('error_missing');
                    
232
                    
233			if (!file_exists($to)) {
                    
234				$json['error'] = $this->language->get('error_move');
                    
236			
                    
237			if (file_exists($to . '/' . basename($from))) {
                    
238				$json['error'] = $this->language->get('error_exsits');
                    
                
UsageTest.php git://github.com/drupal/drupal.git | PHP | 295 lines
                    
1<?php
                    
2
                    
165      ->execute();
                    
166    $this->assertTrue(file_exists($temp_old->getFileUri()), 'Old temp file was created correctly.');
                    
167
                    
173      ->execute();
                    
174    $this->assertTrue(file_exists($temp_new->getFileUri()), 'New temp file was created correctly.');
                    
175
                    
181      ->execute();
                    
182    $this->assertTrue(file_exists($perm_old->getFileUri()), 'Old permanent file was created correctly.');
                    
183
                    
185    $perm_new = file_save_data('');
                    
186    $this->assertTrue(file_exists($perm_new->getFileUri()), 'New permanent file was created correctly.');
                    
187    return [$temp_old, $temp_new, $perm_old, $perm_new];
                    
197    $this->container->get('cron')->run();
                    
198    $this->assertFalse(file_exists($temp_old->getFileUri()), 'Old temp file was correctly removed.');
                    
199    $this->assertTrue(file_exists($temp_new->getFileUri()), 'New temp file was correctly ignored.');
                    
                
FileUpload.php https://bitbucket.org/datdiep/visatravel.vn.git | PHP | 198 lines
                    
1<?php
                    
2
                    
142
                    
143            if (file_exists($sFilePath)) {
                    
144                $iCounter++;
                    
176        //resize image if required
                    
177        require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/Thumbnail.php";
                    
178        $_imagesConfig = $_config->getImagesConfig();
                    
                
CopyFiles.php https://gitlab.com/kidaa/quantum.git | PHP | 216 lines
                    
1<?php
                    
2
                    
4
                    
5require_once QFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
                    
6
                    
131                // check #8 (invalid file name)
                    
132                if (!file_exists($sourceFilePath) || !is_file($sourceFilePath)) {
                    
133                    $errorCode = QFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND;
                    
157                // check if file exists if we don't force overwriting
                    
158                else if (file_exists($destinationFilePath) && strpos($options, "overwrite") === false) {
                    
159                    if (strpos($options, "autorename") !== false) {
                    
                
MaildirFolderTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
12 */
                    
13require_once 'Zend/Mail/Storage/Folder/Maildir.php';
                    
14
                    
17 */
                    
18require_once 'Zend/Config.php';
                    
19
                    
20/**
                    
21 * PHPUnit test case
                    
22 */
                    
22 */
                    
23require_once 'PHPUnit/Framework/TestCase.php';
                    
24
                    
53            }
                    
54            if (!file_exists($this->_tmpdir)) {
                    
55                mkdir($this->_tmpdir);
                    
                
ms-load.php http://comanda2015.googlecode.com/svn/trunk/ | 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';
                    
                
InfoParserDynamic.php git://github.com/drupal/drupal.git | PHP | 215 lines
                    
1<?php
                    
2
                    
44  public function parse($filename) {
                    
45    if (!file_exists($filename)) {
                    
46      $parsed_info = [];
                    
                
view_render_php.php http://enaj.googlecode.com/svn/trunk/ | PHP | 479 lines
                    
1<?php
                    
2// $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
3
                    
9 * @license New BSD License {@link http://qeephp.com/license/}
                    
10 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
11 * @package mvc
                    
17 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
18 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
19 * @package mvc
                    
67     *
                    
68     * @var QView_Render_PHP_Parser
                    
69     */
                    
234 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
235 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
236 * @package mvc
                    
                
sagepay.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 260 lines
                    
1<?php
                    
2class ControllerPaymentSagepay extends Controller {
                    
119
                    
120		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/sagepay.tpl')) {
                    
121			$this->template = $this->config->get('config_template') . '/template/payment/sagepay.tpl';
                    
                
colorizeit.php git://github.com/phpbb/customisation-db.git | PHP | 320 lines
                    
14if (!defined('TITANIA_ROOT')) define('TITANIA_ROOT', './');
                    
15if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
16require TITANIA_ROOT . 'common.' . PHP_EXT;
                    
43$result = phpbb::$db->sql_query_limit($sql, 1);
                    
44$attachment = phpbb::$db->sql_fetchrow($result);
                    
45phpbb::$db->sql_freeresult($result);
                    
88    $contrib_tools = new titania_contrib_tools($zip_file, $new_dir_name);
                    
89    $phpbb_data = clr_phpbb_data($contrib_tools->unzip_dir);
                    
90    $contrib_tools->remove_temp_files();
                    
98        WHERE revision_id = ' . $revision['revision_id'];
                    
99    phpbb::$db->sql_query($sql);
                    
100}
                    
145{
                    
146    if(isset(phpbb::$user->lang[$message])) $message = phpbb::$user->lang[$message];
                    
147    echo '<?xml version="1.0" encoding="UTF-8"?>', "\n", '<error>', $message, '</error>';
                    
                
file.php http://kak.googlecode.com/svn/trunk/ | PHP | 265 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: file.php 14401 2010-01-26 14:10:00Z louis $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
57		$this->_setExpire($id, $group);
                    
58		if (file_exists($path)) {
                    
59			$data = file_get_contents($path);
                    
83		$expirePath	= $path . '_expire';
                    
84		$die		= '<?php die("Access Denied"); ?>'."\n";
                    
85
                    
                
class.Thumbnail.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 464 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
23*
                    
24* Tested with Apache 1.3.27 and PHP 4.3.3
                    
25* Last change: 2003-09-25
                    
31* @package Thumbnail
                    
32* @example sample_thumb.php Sample script
                    
33* @version 1.001
                    
249	function readSourceImageData() {
                    
250		if (!file_exists($this->image_path)) { // if source pic wasnt found
                    
251			$this->image_path = 'error_pic';
                    
                
spark_cli.php git://github.com/ci-bonfire/Bonfire.git | PHP | 269 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__FILE__) . '/spark_utils.php';
                    
4require_once dirname(__FILE__) . '/spark_exception.php';
                    
4require_once dirname(__FILE__) . '/spark_exception.php';
                    
5require_once dirname(__FILE__) . '/spark_source.php';
                    
6
                    
50        Spark_utils::line('Spark (v' . SPARK_VERSION . ')');
                    
51        Spark_utils::line('For help: `php tools/spark help`');
                    
52    }
                    
159        $dir_to_remove = SPARK_PATH . ($version == null ? "/$spark_name" : "/$spark_name/$version");
                    
160        if (!file_exists($dir_to_remove))
                    
161        {
                    
                
MTimeProtectedFastFileStorage.php git://github.com/drupal/drupal.git | PHP | 235 lines
                    
1<?php
                    
2
                    
2
                    
3namespace Drupal\Component\PhpStorage;
                    
4
                    
7/**
                    
8 * Stores PHP code in files with securely hashed names.
                    
9 *
                    
9 *
                    
10 * The goal of this class is to ensure that if a PHP file is replaced with
                    
11 * an untrusted one, it does not get loaded. Since mtime granularity is 1
                    
132    if (!isset($directory_mtime)) {
                    
133      $directory_mtime = file_exists($directory) ? filemtime($directory) : 0;
                    
134    }
                    
134    }
                    
135    return $directory . '/' . Crypt::hmacBase64($name, $this->secret . $directory_mtime) . '.php';
                    
136  }
                    
                
shell.test.php git://github.com/abalonepaul/eav_behavior.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);
                    
                
dump.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 350 lines
                    
1<?php
                    
2
                    
158    $path_dump = "";
                    
159    if ( file_exists( NV_ROOTDIR . "/themes/" . $global_config['site_theme'] . "/system/dump.tpl" ) )
                    
160    {
                    
170    $patterns = array( 
                    
171        "/\{\|SERVER_NAME\|\}/", "/\{\|GENERATION_TIME\|\}/", "/\{\|SQL_VERSION\|\}/", "/\{\|PHP_VERSION\|\}/", "/\{\|DB_NAME\|\}/" 
                    
172    );
                    
173    $replacements = array( 
                    
174        $db->server, gmdate( "F j, Y, h:i A", NV_CURRENTTIME ) . " GMT", $db->sql_version, PHP_VERSION, $db->dbname 
                    
175    );
                    
284    //kiem tra file
                    
285    if ( ! file_exists( $file ) ) return false;
                    
286    
                    
                
index.php http://swx-format.googlecode.com/svn/trunk/ | PHP | 441 lines
                    
10require $resdir.'/functions.php';
                    
11$starttime = microtime_c(); // PHP4 compatible microtime, see functions.php for details
                    
12
                    
29
                    
30if(file_exists($langfile = $resdir.'/languages/'.$conf['Language'].'.ini')) {
                    
31
                    
60
                    
61require $resdir.'/filters.php';
                    
62$filters = prepare_filters($filters);
                    
313<head>
                    
314<title><?php echo htmlentities($conf['Title']); ?></title>
                    
315<link rel="stylesheet" type="text/css" href="<?php echo $resdir.'/themes/'.$conf['Theme']; ?>" />
                    
439<div id="footer">
                    
440<?php require('../../site/footer.php');  ?>
                    
441
                    
                
menu-header.php git://github.com/wordpress/wordpress.git | PHP | 288 lines
                    
159			}
                    
160			if ( ! empty( $menu_hook ) || ( ( 'index.php' != $submenu_items[0][2] ) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) ) {
                    
161				$admin_is_parent = true;
                    
166		} elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) {
                    
167			$menu_hook = get_plugin_page_hook( $item[2], 'admin.php' );
                    
168			$menu_file = $item[2];
                    
172			}
                    
173			if ( ! empty( $menu_hook ) || ( ( 'index.php' != $item[2] ) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) ) {
                    
174				$admin_is_parent = true;
                    
239
                    
240				if ( ! empty( $menu_hook ) || ( ( 'index.php' != $sub_item[2] ) && file_exists( WP_PLUGIN_DIR . "/$sub_file" ) && ! file_exists( ABSPATH . "/wp-admin/$sub_file" ) ) ) {
                    
241					// If admin.php is the current page or if the parent exists as a file in the plugins or admin directory.
                    
241					// If admin.php is the current page or if the parent exists as a file in the plugins or admin directory.
                    
242					if ( ( ! $admin_is_parent && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! is_dir( WP_PLUGIN_DIR . "/{$item[2]}" ) ) || file_exists( $menu_file ) ) {
                    
243						$sub_item_url = add_query_arg( array( 'page' => $sub_item[2] ), $item[2] );
                    
                
mkdist.php git://pkgs.fedoraproject.org/php | PHP | 549 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 */
                    
                
BrandController.php https://bitbucket.org/hhhunan/smart_make_up_mirror.git | PHP | 280 lines
                    
1<?php
                    
2
                    
243        // remove files
                    
244        if (file_exists(public_path($brand->images->uri))) {
                    
245            unlink(public_path($brand->images->uri));
                    
                
phpbb2_template.class.php https://bitbucket.org/chamilo/chamilo/ | PHP | 478 lines
                    
1<?php
                    
2/***************************************************************************
                    
2/***************************************************************************
                    
3 *                              template.php
                    
4 *                            -------------------
                    
5 *   begin                : Saturday, Feb 13, 2001
                    
6 *   copyright            : (C) 2001 The phpBB Group
                    
7 *   email                : support@phpbb.com
                    
8 *
                    
9 *   $Id: template.php 5142 2005-05-06 20:50:13Z acydburn $
                    
10 *
                    
23/**
                    
24 * Template class. By Nathan Codding of the phpBB group.
                    
25 * The interface was originally inspired by PHPLib templates,
                    
29
                    
30class Phpbb2Template {
                    
31	var $classname = "Phpbb2Template";
                    
                
lazyest-thumbs.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 255 lines
                    
1<?php
                    
2
                    
40				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
41					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.png'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
42				else
                    
47				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
48					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.jpg'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
49				else
                    
54				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
55					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.jpeg'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
56				else
                    
61				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
62					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.gif'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
63				else
                    
100
                    
101				if( file_exists($gallery_root.$currentdir.'captions.xml')){
                    
102					$caption = clean_image_caption($img, $currentdir);
                    
                
file_conf.php https://code.google.com/p/faxocr/ | PHP | 534 lines
                    
1<?php
                    
2/*
                    
26
                    
27require_once "config.php";
                    
28require_once "lib/common.php";
                    
204
                    
205		if (file_exists($conf_path)) {
                    
206			$lines = file($conf_path);
                    
                
home.php https://bitbucket.org/vsepessarii/vsepessarii.git | PHP | 406 lines
                    
1<?php   
                    
2class ControllerCommonHome extends Controller {   
                    
54		
                    
55		if (!file_exists($file)) {
                    
56			$this->data['error_image'] = sprintf($this->language->get('error_image'). DIR_IMAGE);
                    
71		
                    
72		if (!file_exists($file)) {
                    
73			$this->data['error_image_cache'] = sprintf($this->language->get('error_image_cache'). DIR_IMAGE . 'cache/');
                    
88		
                    
89		if (!file_exists($file)) {
                    
90			$this->data['error_cache'] = sprintf($this->language->get('error_image_cache'). DIR_CACHE);
                    
105		
                    
106		if (!file_exists($file)) {
                    
107			$this->data['error_download'] = sprintf($this->language->get('error_download'). DIR_DOWNLOAD);
                    
122		
                    
123		if (!file_exists($file)) {
                    
124			$this->data['errorlogs'] = sprintf($this->language->get('error_logs'). DIR_LOGS);
                    
                
tab_admincp.php http://thegamesdb.googlecode.com/svn/trunk/ | PHP | 320 lines
                    
72				<ul>
                    
73					<li<?php if($cptab == "userinfo"){ ?> class="active" <?php } ?>><a href="<?= $baseurl ?>/admincp/?cptab=userinfo">My User Info</a></li>
                    
74					<li<?php if($cptab == "addplatform"){ ?> class="active" <?php } ?>><a href="<?= $baseurl ?>/admincp/?cptab=addplatform">Add New Platform</a></li>
                    
74					<li<?php if($cptab == "addplatform"){ ?> class="active" <?php } ?>><a href="<?= $baseurl ?>/admincp/?cptab=addplatform">Add New Platform</a></li>
                    
75					<li<?php if($cptab == "publishers"){ ?> class="active" <?php } ?>><a href="<?= $baseurl ?>/admincp/?cptab=pubdev">Manage Publishers &amp; Developers</a></li>
                    
76					<li<?php if($cptab == "sendpm"){ ?> class="active" <?php } ?>><a href="<?= $baseurl ?>/admincp/?cptab=sendpm">Send PM</a></li>
                    
76					<li<?php if($cptab == "sendpm"){ ?> class="active" <?php } ?>><a href="<?= $baseurl ?>/admincp/?cptab=sendpm">Send PM</a></li>
                    
77					<li<?php if($cptab == "platformalias"){ ?> class="active" <?php } ?>><a href="<?= $baseurl ?>/admincp/?cptab=platformalias">Generate Platform Alias's</a></li>
                    
78				</ul>
                    
105									<p style="text-align: center;"><img src="<?= $baseurl; ?>/images/common/icons/user-black_64.png" alt="Current User Image" title="Current User Image" /></p>
                    
106								<?php
                    
107								}
                    
195									
                    
196								<?php
                    
197								$pubdevQuery = mysql_query(" SELECT * FROM pubdev ORDER BY keywords ASC");
                    
                
class.I18N.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 265 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
35* @abstract
                    
36* @example i18n_example_script.php Sample script
                    
37* @package i18n
                    
100	* if you have a big badwords string you might want to change this to a
                    
101	* bigger value. if it's to small PHP should create an error
                    
102	*
                    
181
                    
182		if (!file_exists($this->i18n_ini_file)) {
                    
183			return (boolean) FALSE;
                    
229		$languagefile_path =& $GLOBALS[$this->i18n_globalname]['Translator']['languagefile_path'];
                    
230		if (!file_exists($languagefile_path . '/' . $locale . '/' . $this->l10n_ini_file)) {
                    
231			return (boolean) FALSE;
                    
                
mysql_class_v1_1.php http://htdocstest.googlecode.com/svn/trunk/ | PHP | 411 lines
                    
1<?php 
                    
2
                    
154    function readconf($file){
                    
155    //if (!file_exists($file) || !is_readable($file)) die ("Error reading configuration file. ");
                    
156    $def = file($file);
                    
287    * $action is insert update based
                    
288    * $form_action is this example (action='index.php')
                    
289    * BETA TESTED WORKS GOOD ON SMALL CODE 
                    
                
Router.php http://php-personal-budget.googlecode.com/svn/trunk/ | PHP | 374 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
80		
                    
81		// Load the routes.php file.
                    
82		@include(APPPATH.'config/routes'.EXT);
                    
186		// Does the requested controller exist in the root folder?
                    
187		if (file_exists(APPPATH.'controllers/'.$segments[0].EXT))
                    
188		{
                    
201				// Does the requested controller exist in the sub-folder?
                    
202				if ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$segments[0].EXT))
                    
203				{
                    
212				// Does the default controller exist in the sub-folder?
                    
213				if ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$this->default_controller.EXT))
                    
214				{
                    
                
c3.php git://github.com/Codeception/Codeception.git | PHP | 388 lines
                    
57    class_alias('SebastianBergmann\CodeCoverage\Report\Text', 'PHP_CodeCoverage_Report_Text');
                    
58    class_alias('SebastianBergmann\CodeCoverage\Report\PHP', 'PHP_CodeCoverage_Report_PHP');
                    
59    class_alias('SebastianBergmann\CodeCoverage\Report\Clover', 'PHP_CodeCoverage_Report_Clover');
                    
65// phpunit version
                    
66if (!class_exists('PHPUnit_Runner_Version') && class_exists('PHPUnit\Runner\Version')) {
                    
67    class_alias('PHPUnit\Runner\Version', 'PHPUnit_Runner_Version');
                    
172
                    
173    function __c3_build_phpunit_report(PHP_CodeCoverage $codeCoverage, $path)
                    
174    {
                    
174    {
                    
175        $writer = new PHP_CodeCoverage_Report_XML(\PHPUnit_Runner_Version::id());
                    
176        $writer->process($codeCoverage, $path . 'phpunit');
                    
241                //php-code-coverage 8 or older
                    
242                $phpCoverage = new PHP_CodeCoverage();
                    
243            }
                    
                
dbase.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 402 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * \file        dev/initdata/dbf/includes/dbase.class.php
                    
4 * \ingroup     dev
                    
7
                    
8// source : https://github.com/donfbecker/php-dbase
                    
9
                    
30	{
                    
31        if (!file_exists($filename))
                    
32            return false;
                    
43	{
                    
44        if (file_exists($filename))
                    
45            return false;
                    
                
ExtractTaskTest.php git://github.com/cakephp/cakephp.git | PHP | 361 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP Project
                    
12 * @since         1.2.0
                    
12 * @since         1.2.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
85        $this->Task->main();
                    
86        $this->assertTrue(file_exists($this->path . DS . 'default.pot'));
                    
87        $result = file_get_contents($this->path . DS . 'default.pot');
                    
88
                    
89        $this->assertFalse(file_exists($this->path . DS . 'cake.pot'));
                    
90
                    
                
cacher.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 442 lines
                    
1<?php
                    
2
                    
60	$u = substr($nom_cache, 2, 2);
                    
61	if (file_exists($f = _DIR_CACHE . "$d/$u.cache")
                    
62		and lire_fichier($f, $tmp)
                    
171	// #CACHE{n,statique} => on n'invalide pas avec derniere_modif
                    
172	// cf. ecrire/public/balises.php, balise_CACHE_dist()
                    
173	if (!isset($page['entetes']['X-Spip-Statique']) or $page['entetes']['X-Spip-Statique'] !== 'oui') {
                    
285		foreach (preg_files($dircache, '[.]txt$') as $f) {
                    
286			if ($_SERVER['REQUEST_TIME'] - (@file_exists($f) ? @filemtime($f) : 0) > $duree) {
                    
287				spip_unlink($f);
                    
385			|| isset($_COOKIE['spip_admin'])
                    
386			|| @file_exists(_ACCESS_FILE_NAME))
                    
387	) {
                    
                
jtpl_pluginsTest.php git://github.com/jelix/jelix.git | PHP | 291 lines
                    
1<?php
                    
2/**
                    
16    public function setUp() : void {
                    
17        self::initClassicRequest(TESTAPP_URL.'index.php');
                    
18        jApp::pushCurrentModule('jelix_tests');
                    
26            'test_plugin_jurl', // template selector
                    
27            '<p><a href="%BASEPATH%index.php/jelix_tests/urlsig/url1">aaa</a></p>', // generated content
                    
28        ),
                    
131            $cache = $sel->getCompiledFilePath();
                    
132            if(file_exists($cache))
                    
133                unlink($cache);
                    
171<li class="pagelinks-current">1</li>
                    
172<li><a href="'.$basePath.'index.php/jelix_tests/urlsig/url1?offset=10">2</a></li>
                    
173<li><a href="'.$basePath.'index.php/jelix_tests/urlsig/url1?offset=20">3</a></li>
                    
173<li><a href="'.$basePath.'index.php/jelix_tests/urlsig/url1?offset=20">3</a></li>
                    
174<li><a href="'.$basePath.'index.php/jelix_tests/urlsig/url1?offset=30">4</a></li>
                    
175<li><a href="'.$basePath.'index.php/jelix_tests/urlsig/url1?offset=40">5</a></li>
                    
                
destinations.file.inc git://pkgs.fedoraproject.org/drupal7-backup_migrate | Pascal | 273 lines
                    
1<?php
                    
2
                    
69    $filepath = $this->get_filepath($file_id);
                    
70    if (file_exists($filepath)) {
                    
71      backup_migrate_include('files');
                    
166  function edit_form_submit($form, &$form_state) {
                    
167    // Add a 0 to the start of a 3 digit file mode to make it proper PHP encoded octal.
                    
168    if (strlen($form_state['values']['settings']['chmod']) == 3) {
                    
                
file_helper.php git://github.com/philsturgeon/codeigniter-restserver.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
                    
                
language.class.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 284 lines
                    
1<?php
                    
2/**
                    
4*
                    
5* @version $Id: language.class.php 1475 2008-07-16 17:35:35Z soeren_nb $
                    
6* @package VirtueMart
                    
7* @copyright Copyright (C) 2007 soeren, thepisu - All rights reserved.
                    
8* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
9* VirtueMart is free software. This version may have been modified pursuant
                    
12* other free or open source software licenses.
                    
13* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
14*
                    
240		$module = basename( $module );
                    
241		if (file_exists( ADMINPATH. 'languages/'.$module.'/'.strtolower($mosConfig_lang).'.php' )) {
                    
242			require_once( ADMINPATH. 'languages/'.$module.'/'.strtolower($mosConfig_lang).'.php' );
                    
243			return true;
                    
244		} else if (file_exists( ADMINPATH. 'languages/'.$module.'/english.php' )) {
                    
245			require_once( ADMINPATH. 'languages/'.$module.'/english.php' );
                    
                
Settings.php git://github.com/moodle/moodle.git | PHP | 388 lines
                    
8    define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');
                    
9    require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
10}
                    
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
                    
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
                    
137     *    for Zip file management
                    
138     *    e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive
                    
139     */
                    
214     * @param string $libraryName    Internal reference name of the library
                    
215     *    e.g. PHPExcel_Settings::CHART_RENDERER_JPGRAPH
                    
216     *
                    
                
SetupCommand.php git://github.com/c9s/phpbrew.git | PHP | 404 lines
                    
138        $root   = Config::getRoot();
                    
139        $phpdir = "$root/php/$buildName";
                    
140        $config = <<<"EOS"
                    
181PIDFile=$pidFile
                    
182ExecStart=$fpmBin --nodaemonize --fpm-config $phpdir/etc/php-fpm.conf --pid $pidFile
                    
183ExecReload=/bin/kill -USR2 \$MAINPID
                    
195        $phpdir = "$root/php/$buildName";
                    
196        $pidFile = $phpdir . '/var/run/php-fpm.pid';
                    
197        $config = <<<"EOS"
                    
213PHPBREW_ROOT=$root
                    
214CONFFILE=$phpdir/etc/php-fpm.conf
                    
215DAEMON=$fpmBin
                    
239    # FIXME
                    
240    # /usr/lib/php/phpbrew-fpm-checkconf || return 1
                    
241    return 0
                    
                
SimpleMediaLogger.php https://bitbucket.org/GraphicFusion/crafti-landing.git | PHP | 375 lines
                    
1<?php
                    
2
                    
85
                    
86		if ( file_exists( $file ) ) {
                    
87			$file_size = filesize( $file );
                    
202					// For example images deleted on file system but not in WP cause broken images (rare case, but has happened to me.)
                    
203					if ( file_exists( $attached_file ) && $thumb_src ) {
                    
204						$context["attachment_thumb"] = sprintf('<div class="SimpleHistoryLogitemThumbnail"><img src="%1$s" alt=""></div>', $thumb_src[0] );
                    
280
                    
281		if ( file_exists( $file ) ) {
                    
282			$file_size = filesize( $file );
                    
362
                    
363			$permalink = add_query_arg(array("action" => "edit", "post" => $row->context["attachment_id"]), admin_url( "post.php" ) );
                    
364
                    
                
MboxTest.php git://github.com/zendframework/zf2.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
17 */
                    
18class MboxTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
32            }
                    
33            if (!file_exists($this->_tmpdir)) {
                    
34                mkdir($this->_tmpdir);
                    
                
HtmlModule.php https://gitlab.com/leijianbin/gotobus.git | PHP | 166 lines
                    
1<?php
                    
2class ControllerModuleHtmlModule extends Controller {
                    
156
                    
157		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/'.$this->_name.'.tpl')) {
                    
158			$this->template = $this->config->get('config_template') . '/template/module/'.$this->_name.'.tpl';
                    
                
InstallController.php https://gitlab.com/lcp0578/simpleforum.git | PHP | 294 lines
                    
55		if (version_compare(PHP_VERSION, '4.3', '<')) {
                    
56		    echo 'php版本过低,请先安装php4.3以上版本';
                    
57		    exist;
                    
88		    array(
                    
89		        'name' => 'PHP版本',
                    
90		        'mandatory' => true,
                    
176		    // PHP ini :
                    
177		    'phpExposePhp' => array(
                    
178		        'name' => 'php.ini的expose_php设值',
                    
179		        'mandatory' => false,
                    
180		        'condition' => $requirementsChecker->checkPhpIniOff("expose_php"),
                    
181		        'by' => '安全问题',
                    
201		        'condition' => extension_loaded('mbstring'),
                    
202		        'by' => '<a href="http://www.php.net/manual/en/book.mbstring.php">Multibyte string</a> processing',
                    
203		        'memo' => ''
                    
                
DocumentTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: DocumentTest.php 24208 2011-07-06 16:44:54Z 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
                    
                
Description.php git://github.com/thibaud-rohmer/PhotoShow.git | PHP | 194 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
97		/// Check that description file exists
                    
98		if(file_exists($this->descriptionfile)){
                    
99			$this->parse_description_file();
                    
121			/// Description is empty, might as well delete the file
                    
122			if(file_exists($description->descriptionfile))
                    
123				unlink($description->descriptionfile);
                    
144
                    
145		if(!file_exists(dirname($this->descriptionfile))){
                    
146			@mkdir(dirname($this->descriptionfile),0750,true);
                    
                
slide_list.php https://github.com/zeitin/vidipublic.git | PHP | 271 lines
                    
1<?php 
                    
2require "config.php";
                    
2require "config.php";
                    
3require "log.php";
                    
4require "vidi.php";
                    
68    $path = "$slide_path/$slide_name";
                    
69    if (!file_exists($path)) {
                    
70        mkdir($path,0755);
                    
233                <center>
                    
234                <a href="new_slide.php?slidename=<?=$slide_name?>&clientname=<?=$client_name?>">Add Page</a>&nbsp;
                    
235                        <a href="#">Delete Selected</a>
                    
249                            <td><?=$value?></td>
                    
250                            <td><a href="new_slide.php?slidename=<?=$slide_name?>&clientname=<?=$client_name?>&page=<?=$value?>">edit</a></td>
                    
251                            <td><a href="<?=$slide_path."/".$slide_name."/".$value?>/index.html">show</a></td>
                    
                
GitRepo.php git://github.com/kbjr/Git.php.git | PHP | 630 lines
                    
1<?php
                    
2
                    
33	{
                    
34		if (is_dir($repoPath) && file_exists($repoPath . "/.git")) {
                    
35			throw new Exception('"' . $repoPath . '" is already a git repository');
                    
92					// Is this a work tree?
                    
93					if (file_exists($repoPath . "/.git")) {
                    
94						$this->repoPath = $repoPath;
                    
                
ImageTest.php git://github.com/silverstripe/sapphire.git | PHP | 306 lines
                    
1<?php
                    
2
                    
33			$sourcePath = BASE_PATH . '/framework/tests/model/testimages/' . $image->Name;
                    
34			if(!file_exists($filePath)) {
                    
35				SS_Filesystem::makeFolder(dirname($filePath));
                    
                
image_gd.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 494 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Id: image_gd.php 228 2011-09-19 03:39:11Z lingter@gmail.com $
                    
4 * 
                    
300    function waterMarkImg(){
                    
301        if(empty($this->param['water_mark_image']) || !file_exists($this->param['water_mark_image'])){
                    
302            return false;
                    
                
DocumentTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 345 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: DocumentTest.php 24594 2012-01-05 21:27:01Z 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
                    
                
ContentTypes.php https://PHPExcel.svn.codeplex.com/svn | PHP | 245 lines
                    
38/** PHPExcel_Shared_File */
                    
39require_once 'PHPExcel/Shared/File.php';
                    
40
                    
63	 */
                    
64	public function writeContentTypes(PHPExcel $pPHPExcel = null)
                    
65	{
                    
68		if ($this->getParentWriter()->getUseDiskCaching()) {
                    
69			$objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK);
                    
70		} else {
                    
70		} else {
                    
71			$objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
                    
72		}
                    
194	{
                    
195		if (PHPExcel_Shared_File::file_exists($pFile)) {
                    
196			$image = getimagesize($pFile);
                    
                
ModulesDuplicates.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 357 lines
                    
1<?php
                    
2
                    
166			$file = rtrim($rootPath, '/') . $file;
                    
167			if(!file_exists($file)) {
                    
168				unset($files[$key]);
                    
205		}
                    
206		if(!file_exists($rootPath . ltrim($pathname, '/'))) {
                    
207			throw new WireException("Duplicate module file does not exist: $pathname");
                    
333				$pathname = rtrim($this->wire('config')->paths->root, '/') . $file;
                    
334				if(!file_exists($pathname)) {
                    
335					unset($this->duplicates[$className][$key]);
                    
344					$pathname = rtrim($this->wire('config')->paths->root, '/') . $this->duplicatesUse[$className];
                    
345					if(file_exists($pathname)) {
                    
346						$configData['-dups-use'] = $this->duplicatesUse[$className];
                    
                
DropboxSpec.php git://github.com/knplabs/Gaufrette.git | PHP | 289 lines
                    
1<?php
                    
2
                    
5use Dropbox_API;
                    
6use PhpSpec\ObjectBehavior;
                    
7use Prophecy\Argument;
                    
58     */
                    
59    function it_checks_if_file_exists(Dropbox_API $dropbox)
                    
60    {
                    
                
Router.php git://github.com/fabpot/symfony.git | PHP | 208 lines
                    
1<?php
                    
2
                    
72            try {
                    
73                $containerFile = ($this->paramFetcher)('kernel.cache_dir').'/'.($this->paramFetcher)('kernel.container_class').'.php';
                    
74                if (file_exists($containerFile)) {
                    
88     *
                    
89     * @return string[] A list of classes to preload on PHP 7.4+
                    
90     */
                    
                
YamlLintCommandTest.php git://github.com/fabpot/symfony.git | PHP | 176 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Bundle\FrameworkBundle\Command\YamlLintCommand;
                    
76
                    
77  <info>php %command.full_name% @AcmeDemoBundle</info>
                    
78EOF;
                    
169        foreach ($this->files as $file) {
                    
170            if (file_exists($file)) {
                    
171                unlink($file);
                    
                
ExtensionFactory.php git://github.com/c9s/phpbrew.git | PHP | 346 lines
                    
28            $configM4Path = $extensionDir . DIRECTORY_SEPARATOR . "config{$i}.m4";
                    
29            if (file_exists($configM4Path)) {
                    
30                $files[] = $configM4Path;
                    
62        //
                    
63        // http://grokbase.com/t/php/php-dev/023cpdc9k6/quick-summary-of-changes
                    
64        //
                    
87            $lookupDirs[] = Config::getBuildDir()
                    
88                . DIRECTORY_SEPARATOR . Config::getCurrentPhpName()
                    
89                . DIRECTORY_SEPARATOR . 'ext'
                    
93        foreach ($lookupDirs as $lookupDir) {
                    
94            if (!file_exists($lookupDir)) {
                    
95                continue;
                    
289                //
                    
290                //   dnl PHP_ARG_WITH(arg-name, check message, help text[, default-val[, extension-or-not]])
                    
291                //
                    
                
helper.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 286 lines
                    
1<?php
                    
2
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
77                'bbcode_html_printable',
                    
78                'bbcode_php_printable',
                    
79                'bbcode_quote_printable',
                    
86            global $vbulletin;
                    
87            if (file_exists(CWD)) {
                    
88                require_once CWD . '/includes/init.php';
                    
                
almanahe.php https://code.google.com/p/hdforall/ | PHP | 320 lines
                    
15   $dir = "/tmp/usbmounts/sdb1/download/log/";
                    
16} elseif (file_exists("/tmp/usbmounts/sdc1/download")) {
                    
17   $dir = "/tmp/usbmounts/sdc1/download/log/";
                    
174     showIdle();
                    
175     url="<?php echo $host; ?>" + "/scripts/clip/php/almanahe_link.php?file=" + getItemInfo(getFocusItemIndex(),"download");
                    
176     movie=getUrl(url);
                    
205<destination>
                    
206	<link>http://127.0.0.1/cgi-bin/scripts/util/level.php
                    
207	</link>
                    
209<channel>
                    
210 <title><?php echo $tit; ?></title>
                    
211	<menu>main menu</menu>
                    
284    showIdle();
                    
285    url="'.$host.'/scripts/clip/php/almanahe_link.php?file='.$link.'";
                    
286    movie=getUrl(url);
                    
                
Template.php git://github.com/thorsten/phpMyFAQ.git | PHP | 401 lines
                    
1<?php
                    
2
                    
14 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
15 * @link      https://www.phpmyfaq.de
                    
16 * @since     2002-08-22
                    
18
                    
19namespace phpMyFAQ;
                    
20
                    
20
                    
21use phpMyFAQ\Template\FileNotFoundException;
                    
22use phpMyFAQ\Template\TemplateHelper;
                    
282        // Security measure: avoid the injection of php/shell-code
                    
283        $search = ['#<\?php#i', '#\{$\{#', '#<\?#', '#<\%#', '#`#', '#<script[^>]+php#mi'];
                    
284        $phpPattern1 = '&lt;?php';
                    
285        $phpPattern2 = '&lt;?';
                    
286        $replace = [$phpPattern1, '', $phpPattern2, '', ''];
                    
287
                    
                
tdomf-form-ajax.php https://github.com/firebelly/Radio-Arte-Wordpress.git | PHP | 234 lines
                    
1<?php
                    
2
                    
8//
                    
9$wp_load = realpath("../../../wp-load.php");
                    
10if(!file_exists($wp_load)) {
                    
10if(!file_exists($wp_load)) {
                    
11  $wp_config = realpath("../../../wp-config.php");
                    
12  if (!file_exists($wp_config)) {
                    
12  if (!file_exists($wp_config)) {
                    
13      exit("Can't find wp-config.php or wp-load.php");
                    
14  } else {
                    
                
default.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 432 lines
                    
169	<a
                    
170		href="index.php?option=com_jfusion&task=install&file=<?php  base64_encode($this->VersionData->latest[0]->remotefile[0]->data());?>"><?JText::_('UPGRADE');?></a>
                    
171	</td>
                    
194	$server_compatible = true;
                    
195	if (version_compare(phpversion(), $this->VersionData->requirements[0]->php[0]->data()) == -1){
                    
196		?><tr class = "bad0"><?php
                    
203		<td>PHP</td>
                    
204		<td><?php echo phpversion();?></td>
                    
205		<td><?php echo $this->VersionData->requirements[0]->php[0]->data();?></td>
                    
223		<td><?php echo $joomla_version;?></td>
                    
224		<td><?php echo $this->VersionData->requirements[0]->joomla[0]->data();?></td>
                    
225		</tr>
                    
379					class="button" type="button"
                    
380					value="<?php echo JText::_( 'UPLOAD_FILE' ); ?> &amp; <?php echo JText::_( 'INSTALL' ); ?>"
                    
381					onclick="submitbutton()" /></td>
                    
                
Docman_VersionFactory.class.php https://gitlab.com/prenaud76/tuleap.git | PHP | 296 lines
                    
1<?php
                    
2/*
                    
21 */
                    
22require_once('Docman_VersionDao.class.php');
                    
23require_once('Docman_Version.class.php');
                    
184
                    
185        if (file_exists($version->getPath()) && $this->physicalDeleteVersion($version->getPath())) {
                    
186            $dao = $this->_getVersionDao();
                    
204            $row = $dar->getRow();
                    
205            if (!$row['purge_date'] && file_exists($row['path'])) {
                    
206                if ($dao->restore($version->getItemId(), $version->getNumber())) {
                    
                
FileEngineTest.php git://github.com/cakephp/cakephp.git | PHP | 393 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
15 * @package       Cake.Test.Case.Cache.Engine
                    
15 * @package       Cake.Test.Case.Cache.Engine
                    
16 * @since         CakePHP(tm) v 1.2.0.5434
                    
17 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
201		$this->assertTrue(file_exists(CACHE . 'cake_serialize_test2'));
                    
202		$this->assertTrue(file_exists(CACHE . 'cake_serialize_test3'));
                    
203		sleep(2);
                    
205		$this->assertTrue($result);
                    
206		$this->assertFalse(file_exists(CACHE . 'cake_serialize_test1'));
                    
207		$this->assertFalse(file_exists(CACHE . 'cake_serialize_test2'));
                    
                
tco.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 120 lines
                    
1<?php //00d4b
                    
2// *************************************************************************
                    
33// *************************************************************************
                    
34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
                    
35?>
                    
                
fedora_external_repository_manager.class.php https://bitbucket.org/chamilo/chamilo-ext-repo-fedora-dev/ | PHP | 303 lines
                    
1<?php
                    
2
                    
22
                    
23require_once dirname(__FILE__) . '/fedora_external_repository_manager_connector.class.php';
                    
24
                    
103
                    
104    /* (non-PHPdoc)
                    
105     * @see application/common/external_repository_manager/ExternalRepositoryManager#get_application_component_path()
                    
112
                    
113    /* (non-PHPdoc)
                    
114     * @see application/common/external_repository_manager/ExternalRepositoryManager#validate_settings()
                    
120
                    
121    /* (non-PHPdoc)
                    
122     * @see application/common/external_repository_manager/ExternalRepositoryManager#support_sorting_direction()
                    
181
                    
182    /* (non-PHPdoc)
                    
183     * @see application/common/external_repository_manager/ExternalRepositoryManager#is_ready_to_be_used()
                    
                
template_engine.php https://code.google.com/p/aoc/ | PHP | 479 lines
                    
1<?php
                    
2/***************************************************************************
                    
2/***************************************************************************
                    
3 *                              template.php
                    
4 *                            -------------------
                    
5 *   begin                : Saturday, Feb 13, 2001
                    
6 *   copyright            : (C) 2001 The phpBB Group
                    
7 *   email                : support@phpbb.com
                    
8 *
                    
9 *   $Id: template.php,v 1.10.2.3 2002/12/21 19:09:57 psotfx Exp $
                    
10 *
                    
23/**
                    
24 * Template class. By Nathan Codding of the phpBB group.
                    
25 * The interface was originally inspired by PHPLib templates,
                    
235
                    
236		if (!file_exists($filename))
                    
237		{
                    
                
Widget.php http://xinc.googlecode.com/svn/trunk/ | PHP | 238 lines
                    
34require_once 'Xinc/Plugin/Repos/Gui/Dashboard/Detail/Extension.php';
                    
35require_once 'Xinc/Plugin/Repos/Gui/PhpUnitTestResults/Extension/Dashboard.php';
                    
36require_once 'Xinc/Data/Repository.php';
                    
104                try {
                    
105                    $outputFileName = Xinc_Ini::getInstance()->get('tmp_dir', 'xinc') . DIRECTORY_SEPARATOR . 'phpunit_details_' . $projectName . '_' . $buildTime;
                    
106                } catch (Exception $e) {
                    
114                }
                    
115                //$click = 'openMenuTab(\'phpunit-'.$projectName.'-'.$buildTimestamp.'\',\'PHPUnit - '.$projectName.'\',\''.$url.'\',null,false,false,\'auto\');';
                    
116                $title='PHPUnit Test Results';
                    
131    {
                    
132        return array('/phpunit/results/', '/phpunit/results');
                    
133    }
                    
166            }
                    
167            //$click = 'openMenuTab(\'phpunit-'.$projectName.'-'.$buildTimestamp.'\',\'PHPUnit - '.$projectName.'\',\''.$url.'\',null,false,false,\'auto\');';
                    
168            $detailsLink='<a href="'.$url.'">Details</a>';
                    
                
draftfiles_manager.php git://pkgs.fedoraproject.org/moodle | PHP | 394 lines
                    
1<?php
                    
2
                    
34
                    
35require_once('../config.php');
                    
36require_once($CFG->libdir.'/filelib.php');
                    
36require_once($CFG->libdir.'/filelib.php');
                    
37require_once('lib.php');
                    
38
                    
73$params = array('ctx_id' => $contextid, 'itemid' => $itemid, 'env' => $env, 'course'=>$courseid, 'maxbytes'=>$maxbytes, 'maxfiles'=>$maxfiles, 'subdirs'=>$subdirs, 'sesskey'=>sesskey());
                    
74$PAGE->set_url('/repository/draftfiles_manager.php', $params);
                    
75$filepicker_url = new moodle_url($CFG->httpswwwroot."/repository/filepicker.php", $params);
                    
77$params['action'] = 'browse';
                    
78$home_url = new moodle_url('/repository/draftfiles_manager.php', $params);
                    
79
                    
123
                    
124    if ($fs->file_exists($user_context->id, 'user', 'draft', $itemid, $draftpath, $newfilename)) {
                    
125        print_error('fileexists');
                    
                
CroogoRouter.php git://github.com/croogo/croogo.git | PHP | 222 lines
                    
1<?php
                    
2
                    
15 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
16 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
17 * @link     http://www.croogo.org
                    
149		foreach ($plugins as $plugin) {
                    
150			$path = App::pluginPath($plugin) . 'Config' . DS . 'routes.php';
                    
151			if (file_exists($path)) {
                    
                
html_helper.php git://github.com/ci-bonfire/Bonfire.git | 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			}
                    
                
 

Source

Language