PageRenderTime 616ms queryTime 37ms sortTime 29ms getByIdsTime 314ms findMatchingLines 163ms

100+ results results for 'php unlink repo:gencer/fosrestbundle' (616 ms)

Not the results you expected?
MaildirFolderTest.php https://github.com/obias/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
112                    }
                    
113                    unlink($entry);
                    
114                }
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
235
                    
236            // explicit call of __toString() needed for PHP < 5.2
                    
237            $found_folders[$folder->__toString()] = $localName;
                    
257
                    
258            // explicit call of __toString() needed for PHP < 5.2
                    
259            $found_folders[$folder->__toString()] = $localName;
                    
                
translated-object.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 272 lines
                    
1<?php
                    
2
                    
101
                    
102			// unlink removed translations
                    
103			$old_translations = $this->get_translations( $id );
                    
                
filebrowser.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 431 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @version $Id: filebrowser.php 292 2012-09-21 16:24:11Z cmb69 $
                    
5 */
                    
250// 設法在 Windows 能夠儲存中文命名檔案
                    
251if (substr(php_uname(), 0, 7) == "Windows")
                    
252{
                    
259
                    
260        if (@unlink($yenname)) {
                    
261            $this->view->success('success_deleted', $file);
                    
307// 設法在 Windows 能夠儲存中文命名檔案
                    
308if (substr(php_uname(), 0, 7) == "Windows")
                    
309{
                    
                
mcu-cli.php https://gitlab.com/Slind/MCUpdater | PHP | 380 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
10 *    server jar.
                    
11 * 1) Copy the default config to 'mcu-cli-config.php'
                    
12 * 2) Edit your new config, updating at a minimum the pack url, server id,
                    
13 *    server jar, and memory settings.
                    
14 * 3) Execute mcu-cli.php and hope for the best :)
                    
15 *
                    
22
                    
23msg("MCU-CLI.php Starting...");
                    
24msg(date("r"));
                    
38// load config, copying from default if one is not found
                    
39$cfg_default_filename = "mcu-cli-config.default.php";
                    
40$cfg_filename = "mcu-cli-config.php";
                    
212					msg("      ! MD5 mismatch on downloaded file", true);
                    
213					unlink($tmp);
                    
214					return;
                    
                
DevelErrorHandlerTest.php https://gitlab.com/Drulenium-bot/devel | PHP | 213 lines
                    
1<?php
                    
2
                    
51    // Ensures that selecting the DEVEL_ERROR_HANDLER_NONE option no error
                    
52    // (raw or message) is shown on the site in case of php errors.
                    
53    $edit = [
                    
69    // Ensures that selecting the DEVEL_ERROR_HANDLER_BACKTRACE_KINT option a
                    
70    // backtrace above the rendered page is shown on the site in case of php
                    
71    // errors.
                    
86    // Ensures that selecting the DEVEL_ERROR_HANDLER_BACKTRACE_DPM option a
                    
87    // backtrace in the message area is shown on the site in case of php errors.
                    
88    $edit = [
                    
102    // Ensures that when multiple handlers are selected, the output produced by
                    
103    // every handler is shown on the site in case of php errors.
                    
104    $edit = [
                    
127    // Ensures that setting the error reporting to all the output produced by
                    
128    // handlers is shown on the site in case of php errors.
                    
129    $config->set('error_level', ERROR_REPORTING_DISPLAY_ALL)->save();
                    
                
transformation.php https://github.com/oluwalataz/zetacomponents.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
237                copy( $fileTmp, $fileOut );
                    
238                unlink( $fileTmp );
                    
239                return;
                    
246            // Clean up
                    
247            unlink( $fileTmp );
                    
248            // Rethrow
                    
321            {
                    
322                unlink( $fileTmp );
                    
323            }
                    
335            // Windows does not allows overwriting files using rename,
                    
336            // therefore the file is unlinked here first.
                    
337            if ( unlink( $fileOut ) === false )
                    
339                // Cleanup
                    
340                unlink( $fileTmp );
                    
341                throw new ezcImageFileNotProcessableException( $fileOut, 'The file exists and could not be unlinked.' );
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
6    if (!file_exists($dir)) return true;
                    
7    if (!is_dir($dir)) return unlink($dir);
                    
8    foreach (scandir($dir) as $item) {
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
55    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
56	require_once('php_image_magician.php');
                    
57	$magicianObj = new imageLib($imgfile);
                    
111            if(!in_array(mb_strtolower($fileinfo['extension']),$ext))
                    
112                unlink($path);
                    
113        else
                    
114            if(!in_array(Tools::strtolower($fileinfo['extension']),$ext))
                    
115                unlink($path);
                    
116    }else{
                    
                
theme-support.php https://gitlab.com/ravenseyedesign/ravensegg | PHP | 367 lines
                    
1<?php
                    
2/**
                    
114//				'flex-height'          => true,
                    
115//				'unlink-homepage-logo' => true,
                    
116//			)
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
xpdomanager.class.php https://github.com/gbds/revolution.git | PHP | 308 lines
                    
1<?php
                    
2/*
                    
30 */
                    
31require_once (dirname(dirname(__FILE__)) . '/xpdomanager.class.php');
                    
32
                    
66                if (file_exists($dbfile)) {
                    
67                    $removed = unlink($dbfile);
                    
68                    if (!$removed) {
                    
279            $defaultVal= $meta['default'];
                    
280            if ($defaultVal === null || strtoupper($defaultVal) === 'NULL' || in_array($this->xpdo->driver->getPhpType($dbtype), array('integer', 'float')) || (in_array($meta['phptype'], array('datetime', 'date', 'timestamp', 'time')) && in_array($defaultVal, array_merge($this->xpdo->driver->_currentTimestamps, $this->xpdo->driver->_currentDates, $this->xpdo->driver->_currentTimes)))) {
                    
281                $default= ' DEFAULT ' . $defaultVal;
                    
                
Parser.pm https://github.com/tokuhirom/rpc-xml.git | Perl | 326 lines
                    
5# Copying and distribution are permitted under the terms of the Artistic
                    
6# License 2.0 (http://www.opensource.org/licenses/artistic-license-2.0.php) or
                    
7# the GNU LGPL (http://www.opensource.org/licenses/lgpl-2.1.php).
                    
173is to be spooled to a filehandle opened onto an anonymous temporary file. The
                    
174file itself is unlinked after opening, though the resulting B<RPC::XML::base64>
                    
175object can use its C<to_file> method to save the data to a specific file at a
                    
308Copying and distribution are permitted under the terms of the Artistic
                    
309License 2.0 (L<http://www.opensource.org/licenses/artistic-license-2.0.php>) or
                    
310the GNU LGPL 2.1 (L<http://www.opensource.org/licenses/lgpl-2.1.php>).
                    
                
backupdb.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 484 lines
                    
1<?php
                    
2/**
                    
52
                    
53$page->add_breadcrumb_item($lang->database_backups, "index.php?module=tools-backupdb");
                    
54
                    
61		flash_message($lang->error_file_not_specified, 'error');
                    
62		admin_redirect("index.php?module=tools-backupdb");
                    
63	}
                    
90		flash_message($lang->error_invalid_backup, 'error');
                    
91		admin_redirect("index.php?module=tools-backupdb");
                    
92	}
                    
98	{
                    
99		admin_redirect("index.php?module=tools-backupdb");
                    
100	}
                    
106		flash_message($lang->error_backup_doesnt_exist, 'error');
                    
107		admin_redirect("index.php?module=tools-backupdb");
                    
108	}
                    
                
upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * upload.php
                    
9 *
                    
145						GFCommon::log_debug( 'GFAsyncUpload::upload(): Deleting file: ' . $tmp_file_path );
                    
146						@unlink( $tmp_file_path );
                    
147					}
                    
183					@fclose( $out );
                    
184					@unlink( $_FILES['file']['tmp_name'] );
                    
185				} else {
                    
195				// Read binary input stream and append it to temp file
                    
196				$in = @fopen( 'php://input', 'rb' );
                    
197
                    
                
import.php https://github.com/hitchby/PLEXUS.git | PHP | 302 lines
                    
1<?php
                    
2/*********************************************************************************
                    
12
                    
13require_once 'Excel/reader.php';
                    
14require_once('database/DatabaseConnection.php');
                    
35    echo $error;
                    
36    include "fetchfile.php";
                    
37    //unlink($HTTP_POST_FILES['userfile']['tmp_name']);
                    
47      echo $error;
                    
48      include "fetchfile.php";
                    
49      unlink($HTTP_POST_FILES['userfile']['tmp_name']);
                    
57      echo $error;
                    
58      include "fetchfile.php";
                    
59      unlink($HTTP_POST_FILES['userfile']['tmp_name']);
                    
105
                    
106             <form method="post" action="index.php?module=imports&action=result&filename=<?=$filename?>" onsubmit="VtigerJS_DialogBox.block();">
                    
107             <table border="0" cellpadding="2" cellspacing="2">
                    
                
SqliteSchemaManager.php https://gitlab.com/techniconline/kmc | PHP | 396 lines
                    
1<?php
                    
2/*
                    
40        if (file_exists($database)) {
                    
41            unlink($database);
                    
42        }
                    
                
Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 576 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
157        if (is_file(self::COOKIE_FILE)) {
                    
158            @unlink(self::COOKIE_FILE);
                    
159        }
                    
252     *
                    
253     * @param string $uri uri relative to host, ex. "/index.php"
                    
254     */
                    
                
filter.php https://github.com/plymouthstate/moodle.git | PHP | 226 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
120                foreach ($concepts as $key => $concept) {
                    
121                    // Trim empty or unlinkable concepts
                    
122                    $currentconcept = trim(strip_tags($concept->concept));
                    
155                    $href_tag_begin = '<a class="glossary autolink category glossaryid'.$concept->glossaryid.'" title="'.$title.'" '.
                    
156                                      'href="'.$CFG->wwwroot.'/mod/glossary/view.php?g='.$concept->glossaryid.
                    
157                                      '&amp;mode=cat&amp;hook='.$concept->id.'">';
                    
168                    // a link that opens another popup.
                    
169                    $link = new moodle_url('/mod/glossary/showentry.php', array('courseid'=>$courseid, 'eid'=>$concept->id, 'displayformat'=>'dictionary'));
                    
170                    $attributes = array(
                    
                
categories.php https://github.com/tomtom127/oscommerce.git | PHP | 247 lines
                    
1<?php
                    
2/*
                    
194                    if (file_exists(realpath('../' . DIR_WS_IMAGES . 'categories/' . $Qimage->value('categories_image')))) {
                    
195                      @unlink(realpath('../' . DIR_WS_IMAGES . 'categories/' . $Qimage->value('categories_image')));
                    
196                    }
                    
                
Think.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 344 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
13/**
                    
14 * ThinkPHP 引导类
                    
15 */
                    
39
                    
40      $runtimefile  = RUNTIME_PATH.APP_MODE.'~runtime.php';
                    
41      if(!APP_DEBUG && Storage::has($runtimefile)){
                    
44          if(Storage::has($runtimefile))
                    
45              Storage::unlink($runtimefile);
                    
46          $content =  '';
                    
47          // 读取应用模式
                    
48          $mode   =   include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php';
                    
49          // 加载核心文件
                    
299            if(IS_CLI){
                    
300                exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']);
                    
301            }
                    
                
MaildirTest.php https://github.com/mrbanzai/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
97                }
                    
98                unlink($entry);
                    
99            }
                    
344
                    
345        unlink($this->_maildir . '/' . $dir);
                    
346        if (file_exists($this->_maildir . '/' . $dir . 'bak')) {
                    
                
FilesystemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 240 lines
                    
1<?php
                    
2
                    
120     */
                    
121    public function testRemoveDirectoryPhp()
                    
122    {
                    
127        $fs = new Filesystem;
                    
128        $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir"));
                    
129        $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt"));
                    
182     */
                    
183    public function testUnlinkSymlinkedDirectory()
                    
184    {
                    
201        $fs     = new Filesystem();
                    
202        $result = $fs->unlink($symlinked);
                    
203        $this->assertTrue($result);
                    
                
index.php https://github.com/cbulock/Band-CMS.git | PHP | 268 lines
                    
68			if(db_delete("albums", $_REQUEST['index'])) {
                    
69				if (!unlink("../../images/music/album" . $_REQUEST['index'] . "_large.jpg")) echo "<div class='error'>An error occured removing album art image.</div>\n";
                    
70        foreach(db_get_table("tracks", "`album` = " . $_REQUEST['index']) as $item)
                    
164    <div class="item_body">
                    
165    <form name="modify" action="index.php?act=postalbum&amp;page=<?php echo $page + 1; ?>" method="post" enctype="multipart/form-data">
                    
166      <table>
                    
176        	$timestamp = time();
                    
177        	include('when.php');
                    
178        ?>
                    
191            <br />
                    
192            <input type="hidden" name="index" value="<?php echo $albumindex; ?>">
                    
193            <input type="submit" name="submit" value="Add this item">
                    
217  	echo " - released " . date(MUSIC_DATE, $item['date']);
                    
218    if($auth['loggedIn']) echo " - <a href='modify.php?act=modifyalbum&amp;page=" . intval($page + 1) . "&amp;index=" . $item['index'] . "'>Modify Album</a> - <a href='modify.php?act=posttrack&amp;page=" . intval($page + 1) . "&amp;index=" . $item['index'] . "'>Add Track</a>";
                    
219  	echo "</div>";
                    
                
Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
                    
1<?php namespace Illuminate\Filesystem;
                    
2
                    
120            try {
                    
121                if (!@unlink($path)) {
                    
122                    $success = false;
                    
                
MantenimientosController.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 382 lines
                    
1<?php
                    
2
                    
190			    ob_start();
                    
191			    include(app_path().'/views/pdf/informemantenimiento.php');
                    
192			    $content = ob_get_clean();
                    
194			    // convert to PDF
                    
195			    require_once(public_path().'/packages/html2pdf/html2pdf.class.php');
                    
196		        $html2pdf = new HTML2PDF('P', 'A4', 'es');
                    
254			if(file_exists($rutapdfcomprobacion)){
                    
255				unlink(public_path().'/pdf/informemantenimiento/'.$mantenimiento->id.'.pdf');
                    
256			}
                    
259			    ob_start();
                    
260			    include(app_path().'/views/pdf/informemantenimiento.php');
                    
261			    $content = ob_get_clean();
                    
263			    // convert to PDF
                    
264			    require_once(public_path().'/packages/html2pdf/html2pdf.class.php');
                    
265		        $html2pdf = new HTML2PDF('P', 'A4', 'es');
                    
                
Nirvanix.php https://github.com/mrbanzai/zf2.git | PHP | 403 lines
                    
1<?php
                    
2/**
                    
141            $path = $this->_getFullPath($path);
                    
142            $this->_imfNs->unlink($path);
                    
143        } catch(Zend\Service\Nirvanix\Exception $e) {
                    
                
class-zip.php https://gitlab.com/endomorphosis/falkenstein | PHP | 306 lines
                    
1<?php
                    
2
                    
56		# BinZip does not like zero-sized zip files
                    
57		if (file_exists($this->path) && 0 == filesize($this->path)) @unlink($this->path);
                    
58
                    
217	public function open($path, $flags = 0) {
                    
218		if(!class_exists('PclZip')) include_once(ABSPATH.'/wp-admin/includes/class-pclzip.php');
                    
219		if(!class_exists('PclZip')) {
                    
225
                    
226		if ($flags == $ziparchive_create_match && file_exists($path)) @unlink($path);
                    
227
                    
                
AssetCompressHelperTest.php https://github.com/renan/asset_compress.git | PHP | 491 lines
                    
1<?php
                    
2App::uses('AssetConfig', 'AssetCompress.Lib');
                    
56		// @codingStandardsIgnoreStart
                    
57		@unlink(TMP . AssetConfig::BUILD_TIME_FILE);
                    
58		// @codingStandardsIgnoreEnd
                    
                
task_test.php https://github.com/mackensen/moodle.git | PHP | 307 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
114
                    
115        // Let's unlink the plan and run the task again, it should not be recreated.
                    
116        $currenttime = $currenttime + 1;
                    
117        $plan = plan::get_record(array('userid' => $user5->id, 'templateid' => $tpl->get('id')));
                    
118        api::unlink_plan_from_template($plan);
                    
119        $DB->execute($plansql, array('currenttime' => $currenttime, 'planid' => $plan->get('id')));
                    
211
                    
212        // Let's unlink the plan and run the task again, it should not be recreated.
                    
213        $plan = plan::get_record(array('userid' => $user5->id, 'templateid' => $tpl->get('id')));
                    
213        $plan = plan::get_record(array('userid' => $user5->id, 'templateid' => $tpl->get('id')));
                    
214        api::unlink_plan_from_template($plan);
                    
215        $this->assertTrue(plan::record_exists_select('userid = ?', array($user5->id)));
                    
                
interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
                    
12
                    
13	<tr class="hmbkp_manage_backups_row<?php if ( file_exists( hmbkp_path() . '/.backup_complete' ) ) : ?> completed<?php unlink( hmbkp_path() . '/.backup_complete' ); endif; ?>">
                    
14
                    
71		function hmbkp_safe_mode_warning() {
                    
72			echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>';
                    
73		}
                    
119	if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) )
                    
120		$plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools &rarr; Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools &rarr; Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] );
                    
121
                    
244	
                    
245	<span class="hmbkp-status"><?php echo $schedule->get_status() ? $schedule->get_status() : __( 'Starting Backup', 'hmbkp' ); ?> <a href="<?php echo add_query_arg( array( 'action' => 'hmbkp_cancel', 'hmbkp_schedule_id' => $schedule->get_id() ), HMBKP_ADMIN_URL ); ?>"><?php _e( 'cancel', 'hmbkp' ); ?></a></span>
                    
246
                    
254
                    
255		<a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a>  |
                    
256
                    
                
wp_loaded.php https://gitlab.com/najomie/fit-hippie | PHP | 281 lines
                    
1<?php
                    
2
                    
174
                    
175								// unlink previous logs
                    
176								$by = array();
                    
184										$historyRecord->getBy('id', $file['id']);
                    
185										if ( ! $historyRecord->isEmpty()) $historyRecord->delete(); // unlink history file only
                    
186										if ($i == $logsToRemove)
                    
                
ARC2_StoreLoadQueryHandler.php https://github.com/drobbins/s3db.git | PHP | 386 lines
                    
1<?php
                    
2/*
                    
69    if ($this->log_inserts) {
                    
70      @unlink("arc_insert_log.txt");
                    
71      $this->inserts = array();
                    
                
file_helper.php https://github.com/romaricdrigon/Keypass-server.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 *
                    
144				{
                    
145					unlink($path.DIRECTORY_SEPARATOR.$filename);
                    
146				}
                    
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)))
                    
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
                    
354		{
                    
355			if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
                    
356			{
                    
                
file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | 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 *
                    
144				{
                    
145					unlink($path.DIRECTORY_SEPARATOR.$filename);
                    
146				}
                    
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)))
                    
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
                    
477
                    
478/* End of file file_helper.php */
                    
479/* Location: ./system/helpers/file_helper.php */
                    
                
wiki.php https://bitbucket.org/eithansmith/waka-wiki.git | PHP | 499 lines
                    
1<?php
                    
2
                    
10		
                    
11		require_once 'loader.php';
                    
12		$this->_loader = new Loader($this->_template);
                    
483        	chmod($file, 0666);
                    
484        	unlink($file);
                    
485        }
                    
                
delete.php https://github.com/AndyRixon/LayerBulletin.git | PHP | 344 lines
                    
190	
                    
191		include 'scripts/php/auto_cache.php';
                    
192		
                    
261					
                    
262			include 'scripts/php/auto_cache.php';	
                    
263
                    
269			
                    
270			template_hook('forums/delete.template.php', 'form_1');
                    
271			lb_redirect('index.php?forum=' . $forum_id, 'forum/' . $forum_title . '-' . $redirect);
                    
283			$query21 = "select TOPIC_ID from {$db_prefix}posts WHERE ID='$post'" ;
                    
284			$result21 = mysql_query($query21) or die("delete.php - Error in query: $query21") ;                                  
                    
285			$topic_id = mysql_result($result21, 0);				
                    
328			
                    
329				include "scripts/php/auto_cache.php";	
                    
330
                    
                
File_lib.php https://github.com/dmcb/dmcb-cms.git | PHP | 441 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
156				{
                    
157					unlink($this->folder.$dirfile);
                    
158				}
                    
194		{
                    
195			unlink($this->path);
                    
196			$this->_clear_cache();
                    
295			{
                    
296				unlink($tempfilepath);
                    
297			}
                    
374						}
                    
375						unlink($this->path);
                    
376						$this->_clear_cache();
                    
                
zbzippclzip.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
118			
                    
119				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
120				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
134					
                    
135						if ( !unlink( $test_file ) ) {
                    
136					
                    
212				
                    
213				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
214				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
304				pb_backupbuddy::status( 'details', __('Existing ZIP Archive file will be replaced.','it-l10n-backupbuddy' ) );
                    
305				unlink( $zip );
                    
306
                    
                
smarty_internal_cacheresource_file.php https://gitlab.com/adamlwalker/generatedata | PHP | 264 lines
                    
1<?php
                    
2/**
                    
62        }
                    
63        $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';
                    
64        $cached->timestamp = @filemtime($cached->filepath);
                    
213                    }
                    
214                    $_count += @unlink((string) $_file) ? 1 : 0;
                    
215                }
                    
229    {
                    
230        if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
                    
231            clearstatcache(true, $cached->lock_id);
                    
259        $cached->is_locked = false;
                    
260        @unlink($cached->lock_id);
                    
261    }
                    
                
ApiData.php https://github.com/holsinger/openfloor.git | PHP | 418 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
199		function getPersonalInfo ($id) {
                    
200			$resultsArray = $this->callAPI ('http://api.sunlightlabs.com/people.getPersonInfo.php?id='.$id,'getPersonInfo');
                    
201			return $resultsArray;
                    
217			//sunlight api url
                    
218			$url='http://api.sunlightlabs.com/places.getDistrictsFromZip.php?zip='.$zip;
                    
219
                    
242			//sunlight api url
                    
243			$url='http://api.sunlightlabs.com/people.reps.getRepFromDistrict.php?state='.$this->state.'&district='.$value;
                    
244
                    
270			//sunlight api url
                    
271			$url='http://api.sunlightlabs.com/people.reps.getRepsFromCityState.php?city='.$city.'&state='.$state;
                    
272
                    
298			//sunlight api url
                    
299			$url='http://api.sunlightlabs.com/people.sens.getSensFromState.php?state='.$state;
                    
300
                    
                
FUXmlWriter.cpp https://bitbucket.org/ardalanaz/dava.framework.git | C++ | 259 lines
                    
5	
                    
6	MIT License: http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
255	{
                    
256		xmlUnlinkNode(node);
                    
257		AddChild(newParent, node);
                    
                
processes_Import_Ajax.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 292 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * processes_ImportFile.php
                    
4 *
                    
239                        if (($sObjectName != '.') && ($sObjectName != '..')) {
                    
240                            unlink( PATH_OUTTRUNK . 'compiled' . PATH_SEP . 'xmlform' . PATH_SEP . $sProUid . PATH_SEP . $sObjectName );
                    
241                        }
                    
                
Controller.php https://gitlab.com/yasminmostfa/thomas-site | PHP | 372 lines
                    
1<?php
                    
2/**
                    
90     *
                    
91     * To avoid a server/PHP timeout & to show progress of the download to the user, we
                    
92     * use the HTTP Range header to download one chunk of the file at a time. After each
                    
121                if ($result['current_size'] >= $result['expected_file_size']) {
                    
122                    GeoIPAutoUpdater::unzipDownloadedFile($outputPath, $unlink = true);
                    
123
                    
264                if ($result['current_size'] >= $result['expected_file_size']) {
                    
265                    GeoIPAutoUpdater::unzipDownloadedFile($outputPath, $unlink = true);
                    
266
                    
                
WindowsAzure.php https://bitbucket.org/jokusafet/magento2.git | PHP | 443 lines
                    
1<?php
                    
2/**
                    
19
                    
20#require_once 'Zend/Cloud/StorageService/Adapter.php';
                    
21#require_once 'Zend/Service/WindowsAzure/Storage/Blob.php';
                    
21#require_once 'Zend/Service/WindowsAzure/Storage/Blob.php';
                    
22#require_once 'Zend/Cloud/StorageService/Exception.php';
                    
23
                    
50    const RETURN_STRING = 2; // return data as string
                    
51    const RETURN_STREAM = 3; // return PHP stream
                    
52
                    
226        } catch(Zend_Service_WindowsAzure_Exception $e) {
                    
227            @unlink($temporaryFilePath);
                    
228            throw new Zend_Cloud_StorageService_Exception('Error on store: '.$e->getMessage(), $e->getCode(), $e);        
                    
230        if ($removeTemporaryFilePath) {
                    
231            @unlink($temporaryFilePath);
                    
232        }
                    
                
class.jetpack-xmlrpc-server.php https://gitlab.com/relacilia/cakra | PHP | 429 lines
                    
1<?php
                    
2
                    
35				'jetpack.disconnectBlog'    => array( $this, 'disconnect_blog' ),
                    
36				'jetpack.unlinkUser'        => array( $this, 'unlink_user' ),
                    
37			) );
                    
237	/**
                    
238	 * Unlink a user from WordPress.com
                    
239	 *
                    
241	 */
                    
242	function unlink_user() {
                    
243		Jetpack::log( 'unlink' );
                    
243		Jetpack::log( 'unlink' );
                    
244		return Jetpack::unlink_user();
                    
245	}
                    
404		// needed?
                    
405		require_once ABSPATH . 'wp-admin/includes/admin.php';
                    
406
                    
                
TemplateRange.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 293 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
72				$module = $_REQUEST['view_module'];
                    
73                if (file_exists('modules/'.$module.'/metadata/SearchFields.php')) 
                    
74                {
                    
74                {
                    
75                	require('modules/'.$module.'/metadata/SearchFields.php');
                    
76                }
                    
77                
                    
78			    if(file_exists('custom/modules/'.$module.'/metadata/SearchFields.php'))
                    
79			    {
                    
79			    {
                    
80                    require('custom/modules/'.$module.'/metadata/SearchFields.php');
                    
81			    }                
                    
111                	
                    
112                	if(!file_exists('custom/modules/'.$module.'/metadata/SearchFields.php'))
                    
113                	{
                    
                
ZoneServiceImpl.php https://bitbucket.org/blackriver/openx.git | PHP | 375 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: ZoneServiceImpl.php 81772 2012-09-11 00:07:29Z chris.nutting $
                    
26*/
                    
34// Base class BaseLogonService
                    
35require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';
                    
36
                    
37// Zone Dll class
                    
38require_once MAX_PATH . '/lib/OA/Dll/Zone.php';
                    
39
                    
340
                    
341    function unlinkBanner($sessionId, $zoneId, $bannerId)
                    
342    {
                    
343        if ($this->verifySession($sessionId)) {
                    
344            return $this->_validateResult($this->_dllZone->unlinkBanner($zoneId, $bannerId));
                    
345        } else {
                    
                
DBFile.class.php https://github.com/Krassmus/tsc.git | PHP | 241 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__file__)."/vendor/qqUpload.php";
                    
4require_once dirname(__file__)."/Cache.class.php";
                    
50     * Liefert die aktuelle Datei aus, wenn der Nutzer das Recht zum Sehen hat.
                    
51     * Ignoriert alle anderen Ausgaben von PHP und beendet das Programm, sodass nur die Datei
                    
52     * zurückgegeben werden kann!
                    
134        if (file_exists($result['path'])) {
                    
135            unlink($result['path']);
                    
136        }
                    
183        if (file_exists($result['path'])) {
                    
184            unlink($result['path']);
                    
185        }
                    
237        if (file_exists($result['path'])) {
                    
238            unlink($result['path']);
                    
239        }
                    
                
String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
                    
1<?php
                    
2
                    
303		if (!@rename($temp, $cachedFile)) {
                    
304			@unlink($cachedFile);
                    
305			@rename($temp, $cachedFile);
                    
327
                    
328		return !file_exists($cachedFile) || (filectime($cachedFile) < (time() - $olderThan) && unlink($cachedFile));
                    
329	}
                    
355					if (class_exists('Dwoo_Compiler', false) === false) {
                    
356						include DWOO_DIRECTORY . 'Dwoo/Compiler.php';
                    
357					}
                    
424		}
                    
425		return $dwoo->getCompileDir() . $this->compileId.'.d'.Dwoo::RELEASE_TAG.'.php';
                    
426	}
                    
454	/**
                    
455	 * returns some php code that will check if this template has been modified or not
                    
456	 *
                    
                
define_pages_editor.php https://github.com/ZenMagick/zc-base.git | PHP | 270 lines
                    
125<!-- header //-->
                    
126<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
                    
127<!-- header_eof //-->
                    
228              <tr>
                    
229                <td class="smallText"><a href="<?php echo zen_href_link($_GET['filename'], 'lngdir=' . $_SESSION['language'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td>
                    
230<?php
                    
233    if ($dir) {
                    
234      $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
                    
235      while ($file = $dir->read()) {
                    
264<!-- footer //-->
                    
265<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
                    
266<!-- footer_eof //-->
                    
269</html>
                    
270<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
                    
271
                    
                
WindowsAzure.php https://github.com/necrogami/zf2.git | PHP | 448 lines
                    
1<?php
                    
2/**
                    
55    const RETURN_STRING = 2; // return data as string
                    
56    const RETURN_STREAM = 3; // return PHP stream
                    
57
                    
231        } catch(WindowsAzureException\ExceptionInterface $e) {
                    
232            @unlink($temporaryFilePath);
                    
233            throw new Exception\RuntimeException('Error on store: '.$e->getMessage(), $e->getCode(), $e);
                    
235        if ($removeTemporaryFilePath) {
                    
236            @unlink($temporaryFilePath);
                    
237        }
                    
                
EntityGeneratorTest.php https://github.com/gedrox/doctrine2.git | PHP | 292 lines
                    
1<?php
                    
2
                    
9
                    
10require_once __DIR__ . '/../../TestInit.php';
                    
11
                    
37            if ($file->isFile()) {
                    
38                \unlink($file->getPathname());
                    
39            }
                    
83    {
                    
84        $path = $this->_tmpDir . '/'. $this->_namespace . '/EntityGeneratorBook.php';
                    
85        $this->assertFileExists($path);
                    
128
                    
129        $this->assertFileExists($this->_tmpDir . "/" . $this->_namespace . "/EntityGeneratorBook.php~");
                    
130
                    
211     */
                    
212    public function testParseTokensInEntityFile($php, $classes)
                    
213    {
                    
                
ServiceBuilderTest.php https://gitlab.com/x33n/respond | PHP | 317 lines
                    
1<?php
                    
2
                    
148        $b = ServiceBuilder::factory($tmp);
                    
149        unlink($tmp);
                    
150        $s = $b->get('billy.testing');
                    
                
commonfslib.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 532 lines
                    
1<?php 
                    
2
                    
107
                    
108function lxshell_php($cmd)
                    
109{
                    
109{
                    
110	lxshell_return("__path_php_path", $cmd);
                    
111}
                    
296		} else {
                    
297			return unlink($file);
                    
298		}
                    
364
                    
365	if(file_exists($dir)){ # Real check by PHP
                    
366		return true; 
                    
                
Root.php https://gitlab.com/albert925/lading-ach | PHP | 453 lines
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
19//
                    
20// $Id: Root.php,v 1.9 2005/04/23 21:53:49 dufuz Exp $
                    
21
                    
29*/
                    
30class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS
                    
31	{
                    
124				$raList[$i]->Size = $raList[$i]->_DataLen();
                    
125				if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
                    
126					$iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
                    
                
Nirvanix.php https://github.com/sidealice/zf2.git | PHP | 399 lines
                    
1<?php
                    
2/**
                    
19
                    
20require_once 'Zend/Cloud/StorageService/Adapter.php';
                    
21require_once 'Zend/Cloud/StorageService/Exception.php';
                    
21require_once 'Zend/Cloud/StorageService/Exception.php';
                    
22require_once 'Zend/Service/Nirvanix.php';
                    
23
                    
136            $path = $this->_getFullPath($path);
                    
137            $this->_imfNs->unlink($path);
                    
138        } catch(Zend_Service_Nirvanix_Exception $e) {
                    
201    {
                    
202        require_once 'Zend/Cloud/OperationNotAvailableException.php';
                    
203        throw new Zend_Cloud_OperationNotAvailableException('Renaming not implemented');
                    
                
Filesystem.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25// require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                // require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    // require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
182        unset($this->_fileHandlers[$filename]);
                    
183        // require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
184        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
                
nfslock.php https://github.com/denisbz/SPIP.git | PHP | 297 lines
                    
1<?php
                    
2/* 
                    
7 * rewritten by: Alexis Rosen <alexis@panix.com>
                    
8 * rewritten by: Cedric Morin <cedric@yterium.com> for php&SPIP
                    
9 *
                    
22 * NB: It is _critical_ that nfslock()ed files be unlocked by nfsunlock().
                    
23 * Simply unlinking the lock file is a good way to trash someone else's lock
                    
24 * file. All it takes is for the process doing the unlink to get hung for
                    
107	$tpath = _DIR_TMP."slock.$id";
                    
108	$tmpfd = @fopen($tpath, 'w'); // hum, le 'x' necessite php4,3,2 ...
                    
109	if (!$tmpfd) {	/* open failed */
                    
110		@fclose($tmpfd);
                    
111		spip_unlink($tpath);
                    
112		return false; //NFSL_SYSF
                    
126		if (link($tpath, $lock_file) == 1) {
                    
127			spip_unlink($tpath); /* got it! */
                    
128			@fclose($tmpfd);
                    
                
Cache.php https://github.com/abirmmu/codeigniter-cache.git | PHP | 431 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
301			{
                    
302				// create non existing dirs, asumes PHP5
                    
303				if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE;
                    
365
                    
366		if (file_exists($file_path)) unlink($file_path);
                    
367
                    
399			{
                    
400				unlink($this->_path.$file);
                    
401			}
                    
429
                    
430/* End of file Cache.php */
                    
431/* Location: ./application/libraries/Cache.php */
                    
                
FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
                    
1<?php
                    
2
                    
6 * @copyright  Copyright (c) 2004, 2010 David Grudl
                    
7 * @license    http://nettephp.com/license  Nette license
                    
8 * @link       http://nettephp.com
                    
30	 *
                    
31	 * delete* = try unlink, if fails (on NTFS) { lock(EX), truncate, close, unlink } else close (on ext3)
                    
32	 */
                    
82				self::$useDirectories = TRUE;
                    
83				unlink("$dir/$uniq/_");
                    
84			}
                    
228		$head = serialize($meta) . '?>';
                    
229		$head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head;
                    
230		$headLen = strlen($head);
                    
358			if (is_array($meta)) {
                    
359				fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6
                    
360				$meta[self::FILE] = $file;
                    
                
all.php https://github.com/Yannix/ImprovedZipArchive.git | PHP | 271 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
5 * Requirements:
                    
6 * - PHP 5 with extensions: spl, zip, pcre, iconv, mbstring
                    
7 * - SimpleTest (not bundled)
                    
15
                    
16if (PHP_SAPI != 'cli') {
                    
17    die("It is a very bad idea to run these tests with a non CLI sapi.");
                    
19
                    
20if (strpos(PHP_OS, 'WIN') === 0) {
                    
21    set_include_path('C:/AMP/;.'); // To find external SimpleTest
                    
54
                    
55require_once('simpletest/unit_tester.php');
                    
56require_once('simpletest/reporter.php');
                    
56require_once('simpletest/reporter.php');
                    
57require_once('simpletest/simpletest/colortext_reporter.php');
                    
58
                    
                
plan_page.mustache https://github.com/pauln/moodle.git | Mustache | 203 lines
                    
23        {{#plan.canbeedited}}
                    
24            <a href="{{pluginbaseurl}}/editplan.php?id={{plan.id}}&amp;userid={{plan.userid}}">{{#pix}}t/edit, core, {{#str}}editplan, tool_lp{{/str}}{{/pix}}</a>
                    
25        {{/plan.canbeedited}}
                    
79                    {{#canread}}
                    
80                        <a href="{{pluginbaseurl}}/templatecompetencies.php?templateid={{id}}&amp;pagecontextid={{contextid}}">
                    
81                    {{/canread}}
                    
83                    {{#plan.isunlinkallowed}}
                    
84                        (<a data-action="plan-unlink" href="#">{{#str}}unlinkplantemplate, tool_lp{{/str}}</a>)
                    
85                    {{/plan.isunlinkallowed}}
                    
                
tsrm_virtual_cwd.h https://github.com/tstarling/hiphop-php.git | C Header | 339 lines
                    
134CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat);
                    
135# define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0)
                    
136# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1)
                    
136# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1)
                    
137CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len);
                    
138#else
                    
138#else
                    
139# define php_sys_stat stat
                    
140# define php_sys_lstat lstat
                    
271# define VCWD_LSTAT(path, buff) virtual_lstat(path, buff TSRMLS_CC)
                    
272#define VCWD_UNLINK(path) virtual_unlink(path TSRMLS_CC)
                    
273#define VCWD_MKDIR(pathname, mode) virtual_mkdir(pathname, mode TSRMLS_CC)
                    
307#define VCWD_LSTAT(path, buff) lstat(path, buff)
                    
308#define VCWD_UNLINK(path) unlink(path)
                    
309#define VCWD_MKDIR(pathname, mode) mkdir(pathname, mode)
                    
                
tag.php https://github.com/mcatm/blox.git | PHP | 439 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
227	function set($tagstr = "", $type = '', $row_id, $author_id = 0) {//タグの登録処理
                    
228		$this->_unlink_tag($type, $row_id);
                    
229		if ($tagstr != "") {
                    
303	
                    
304	function _unlink_tag($type = '', $row_id) {//タグを解除
                    
305		if ($type != "") {
                    
335				'label'		=> 'post',
                    
336				'datatype'	=> 'php',
                    
337				'content'	=> '',
                    
419					
                    
420				$CI->linx->unlink('tag', $id);//リンクを削除
                    
421			}
                    
                
Filesystem.php https://bitbucket.org/haichau59/manga.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25//require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                //require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    //require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
182        unset($this->_fileHandlers[$filename]);
                    
183        //require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
184        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
                
xpdofilevehicle.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 235 lines
                    
1<?php
                    
2/*
                    
145                            $uninstalled = true;
                    
146                        } elseif (is_file($path) && unlink($path)) {
                    
147                            $uninstalled = true;
                    
                
mark.php https://github.com/shafiqissani/ASTRA-College-Website.git | PHP | 382 lines
                    
1<?php
                    
2// +------------------------------------------------------------------------+
                    
15// | along with this program; if not, you can view it at				  	|
                    
16// | http://www.opensource.org/licenses/gpl-license.php				   		|
                    
17// +------------------------------------------------------------------------+
                    
26* @copyright Christchurch College of Education 2001 
                    
27* @version $Id: mark.php,v 1.30 2007/07/30 01:56:58 glendavies Exp $
                    
28* 
                    
33*/
                    
34require_once('../../local/config.inc.php');
                    
35
                    
38
                    
39require_once($CONFIG['LANGUAGE_CPATH'].'/dropbox_strings.inc.php');
                    
40
                    
92
                    
93			require_once('../gradebook/lib.inc.php');
                    
94			$gradebook = new Interactgradebook($space_key, $module_key, $group_key, $is_admin, $gradebook_strings);
                    
                
DBObject.inc.php https://gitlab.com/nacridan/Nacridan | PHP | 221 lines
                    
1require_once(HOMEPATH."/lib/utils.inc.php"); DEFINE
                    
2("FOREIGN_KEY_SYNTAX","/id_([^_\$]*)[_]?([^\$]*)(.*)/"); DEFINE
                    
77{ $this->m_object[$key]->resetExternDBObj(); }
                    
78$this->m_linkdbobject[$key]=false; } } function unlinkExternDBObj($name)
                    
79{ if(is_object($this->m_object[$name])) {
                    
                
PrestaShopBackup.php https://gitlab.com/jslee1/PrestaShop | PHP | 308 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
22 * @copyright 2007-2015 PrestaShop SA
                    
23 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
24 * International Registered Trademark & Property of PrestaShop SA
                    
147    {
                    
148        return __PS_BASE_URI__.basename(_PS_ADMIN_DIR_).'/backup.php?filename='.basename($this->id);
                    
149    }
                    
157    {
                    
158        if (!$this->id || !unlink($this->id)) {
                    
159            $this->error = Tools::displayError('Error deleting').' '.($this->id ? '"'.$this->id.'"' :
                    
                
transport.settings.php https://github.com/Mark-H/TinyMCE.git | PHP | 325 lines
                    
1<?php
                    
2/**
                    
46    'key' => 'tiny.custom_buttons1',
                    
47    'value' => 'undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,modxlink,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help',
                    
48    'xtype' => 'textfield',
                    
                
OLE_Root.php https://PHPExcel.svn.codeplex.com/svn | PHP | 482 lines
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2002 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
22
                    
23require_once 'PHPExcel/Shared/OLE/OLE_PPS.php';
                    
24
                    
31*/
                    
32class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS
                    
33	{
                    
152				$raList[$i]->Size = $raList[$i]->_DataLen();
                    
153				if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
                    
154					$iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
                    
                
Connection.php https://gitlab.com/reasonat/test8 | PHP | 413 lines
                    
1<?php
                    
2
                    
154            // remove the database file.
                    
155            unlink($this->connectionOptions['database'] . '-' . $prefix);
                    
156          }
                    
                
file.php https://github.com/boluak/lifefm-github.git | PHP | 379 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: file.php 10707 2008-08-21 09:52:47Z eddieajau $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
156			// as long as the owner is either the webserver or the ftp
                    
157			if (@unlink($file)) {
                    
158				// Do nothing
                    
304	 *
                    
305	 * @param string $src The name of the php (temporary) uploaded file
                    
306	 * @param string $dest The path (including filename) to move the uploaded file to
                    
                
ChannelManager.php https://bitbucket.org/skudatech/azure-sdk-for-php.git | PHP | 453 lines
                    
1<?php
                    
2/**
                    
13 * 
                    
14 * PHP version 5
                    
15 *
                    
17 * @package   WindowsAzure
                    
18 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
19 * @copyright 2012 Microsoft Corporation
                    
20 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
21 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
22 */
                    
40 * @package   WindowsAzure
                    
41 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
42 * @copyright 2012 Microsoft Corporation
                    
338    {
                    
339        self::_executeCommand('php ..\package.php make');
                    
340		self::_executeCommand('pear package ..\package.xml');
                    
                
default.php https://github.com/carleton/reason_package.git | PHP | 439 lines
                    
1<?php
                    
2/**
                    
10	 */
                    
11	include_once( 'reason_header.php' );
                    
12	reason_include_once( '/content_listers/tree.php3' );
                    
198		/**
                    
199		 * Forces the current page to be a link rather than unlinked text
                    
200		 *
                    
                
file.php https://github.com/xoops-pi/legacy.git | PHP | 537 lines
                    
18 * @author          Taiwen Jiang <phppp@users.sourceforge.net>
                    
19 * @version         $Id: file.php 1509 2008-04-27 10:18:38Z phppp $
                    
20 * @package         class
                    
26 *
                    
27 * PHP versions 4 and 5
                    
28 *
                    
28 *
                    
29 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
                    
30 * Copyright 2005-2008, Cake Software Foundation, Inc.
                    
38 * @copyright        Copyright 2005-2008, Cake Software Foundation, Inc.
                    
39 * @link                http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
40 * @package            cake
                    
41 * @subpackage        cake.cake.libs
                    
42 * @since            CakePHP(tm) v 0.2.9
                    
43 * @version            $Revision: 6311 $
                    
                
ut-query-capture.cpp https://github.com/sileht/debbot-seeks.git | C++ | 439 lines
                    
52  "http://www.seeks-project.info/",
                    
53  "http://seeks-project.info/wiki/index.php/Documentation",
                    
54  "http://www.seeks-project.info/wiki/index.php/Download"
                    
69    {
                    
70      unlink(dbfile.c_str());
                    
71      seeks_proxy::_configfile = basedir + "config";
                    
101      delete seeks_proxy::_config;
                    
102      unlink(dbfile.c_str());
                    
103    }
                    
                
File.php https://github.com/gryzz/crystal_magento.git | PHP | 460 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: File.php 16212 2009-06-21 19:24:49Z thomas $
                    
22 */
                    
26 */
                    
27#require_once "Zend/OpenId/Consumer/Storage.php";
                    
28
                    
75                 */
                    
76                #require_once 'Zend/OpenId/Exception.php';
                    
77                throw new Zend_OpenId_Exception(
                    
85             */
                    
86            #require_once 'Zend/OpenId/Exception.php';
                    
87            throw new Zend_OpenId_Exception(
                    
95             */
                    
96            #require_once 'Zend/OpenId/Exception.php';
                    
97            throw new Zend_OpenId_Exception(
                    
                
base.php https://gitlab.com/morganestes/wordpress-develop | PHP | 440 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 *   phpunit -d safe_mode=on --group http
                    
7 *
                    
10 *
                    
11 * The WP_HTTP tests require a class-http.php file of r17550 or later.
                    
12 */
                    
13abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
                    
14	// You can use your own version of data/WPHTTP-testcase-redirection-script.php here.
                    
15	var $redirection_script = 'http://api.wordpress.org/core/tests/1.0/redirection.php';
                    
43		if ( is_callable( array( 'WP_Http', '_getTransport' ) ) ) {
                    
44			$this->markTestSkipped( 'The WP_Http tests require a class-http.php file of r17550 or later.' );
                    
45			return;
                    
182	function test_no_redirection_on_PUT() {
                    
183		$url = 'http://api.wordpress.org/core/tests/1.0/redirection.php?201-location=1';
                    
184
                    
                
s3-stream-wrapper.rst https://gitlab.com/github-cloud-corp/aws-sdk-php | ReStructuredText | 321 lines
                    
71buffered into memory. If you need a stream to be seekable, you can pass
                    
72``seekable`` into the `stream context options <http://www.php.net/manual/en/function.stream-context-create.php>`_
                    
73of a function.
                    
130
                    
131PHP's `fopen() <http://php.net/manual/en/function.fopen.php>`_ function
                    
132requires that a ``$mode`` option is specified. The mode option specifies
                    
258The `opendir() <http://www.php.net/manual/en/function.opendir.php>`_,
                    
259`readdir() <http://www.php.net/manual/en/function.readdir.php>`_,
                    
260`rewinddir() <http://www.php.net/manual/en/function.rewinddir.php>`_, and
                    
260`rewinddir() <http://www.php.net/manual/en/function.rewinddir.php>`_, and
                    
261`closedir() <http://php.net/manual/en/function.closedir.php>`_ PHP functions
                    
262can be used with the Amazon S3 stream wrapper to traverse the contents of a
                    
279You can recursively list each object and prefix in a bucket using PHP's
                    
280`RecursiveDirectoryIterator <http://php.net/manual/en/class.recursivedirectoryiterator.php>`_.
                    
281
                    
                
loader.php https://github.com/srahn/kvwmap.git | PHP | 309 lines
                    
1<?php
                    
2class NASLoader extends DOMDocument {
                    
33				#echo '<br>Lösche Datei: ' . $rm_file;
                    
34				unlink(str_replace('\\', '/', $file['dirname'] . '/' . $unziped_file));
                    
35
                    
                
sql.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 238 lines
                    
1<?php
                    
2if (!$error && $_POST["export"]) {
                    
42				$history[] = array($q, time()); //! add elapsed time
                    
43				set_session("queries", $history_all); // required because reference is unlinked by stop_session()
                    
44				stop_session();
                    
186<form action="" method="post" enctype="multipart/form-data" id="form">
                    
187<?php
                    
188$execute = "<input type='submit' value='" . lang('Execute') . "' title='Ctrl+Enter'>";
                    
                
DirectFilesystem.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 500 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * @file DirectFilesystem.php
                    
7 * @ingroup Deployment
                    
17/**
                    
18 * Filesystem class for direct PHP file and folder manipulation.
                    
19 * 
                    
152			wfSuppressWarnings();
                    
153			$result = (bool)unlink( $path );
                    
154			wfRestoreWarnings();			
                    
426	public function makeDir( $path, $chmod = false, $chown = false, $chgrp = false ) {
                    
427		// Safe mode fails with a trailing slash under certain PHP versions.
                    
428		$path = rtrim( $path, '/' );
                    
                
bankart_slovenia.SecureResource.php https://gitlab.com/jo0054/bankart-opencart | PHP | 433 lines
                    
1<?php
                    
2/******************************************************************************
                    
3*
                    
4* File:         SecureResource.php
                    
5* Description:  Razred SecureResource je namenjen dekripciji podatkov iz
                    
9* Modified:     01.12.2008
                    
10* Language:     PHP (v 5.2.6)
                    
11*               Extensions: ZIP
                    
11*               Extensions: ZIP
                    
12* Package:      paymentpipephp (testna koda ze testiranje spletnih transakcij)
                    
13*
                    
72    {
                    
73        unlink($this->getResourcePath() . "resource.cgz");
                    
74        $this->bSecureResourceDecoded = false;
                    
                
Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Logger.php
                    
4 *
                    
442			if (file_exists($delfile)) {
                    
443				unlink($delfile);
                    
444			}
                    
                
assets_model.php https://github.com/be3/FUEL-CMS.git | PHP | 331 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
3// not pulling from the database so just extend the normal model
                    
4require_once(APPPATH.'libraries/Validator.php');
                    
5
                    
194		{
                    
195			$deleted = unlink($filepath);
                    
196		}
                    
                
insert_media.php https://github.com/shafiqissani/ASTRA-College-Website.git | PHP | 395 lines
                    
1<?php
                    
2
                    
36
                    
37		if (unlink($CONFIG['BASE_PATH'].$file)) {
                    
38			$message = "The image has been deleted";
                    
231<div class="title">Insert Audio</div>
                    
232<?php
                    
233echo "<div align=\"center\">$message</div>";
                    
256                            <table border=0 cellpadding=3 cellspacing=0 width=220>
                    
257                                <?php
                    
258
                    
285		                        <tr bgcolor=Gainsboro>
                    
286    	                            <td valign=top><?php echo $entry?></td>
                    
287                                    <td valign=top></td>
                    
288                                    <td valign=top></td>
                    
289                                    <td valign=top style="cursor:hand;" onClick="selectImage('<?php echo "$url_path/$entry" ?>', '<?php echo "%MP3%$url_path/$entry%MP3%" ?>', '<?php echo "$url_path/$entry" ?>')"><u><font color=blue>select</font></u></td>
                    
290                                    <td valign=top style="cursor:hand;" onClick="deleteImage('<?php echo "$url_path/$entry" ?>')">	<u><font color=blue>del</font></u></td>
                    
                
setup.js https://bitbucket.org/dnejedly/eaparts.git | JavaScript | 358 lines
                    
8 * It is also available through the world-wide-web at this URL:
                    
9 * http://opensource.org/licenses/afl-3.0.php
                    
10 * If you did not receive a copy of the license and are unable to
                    
22 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
23 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24 */
                    
102            theme_advanced_buttons1 : magentoPlugins + 'magentowidget,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect',
                    
103            theme_advanced_buttons2 : 'cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,forecolor,backcolor',
                    
104            theme_advanced_buttons3 : 'tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,media,advhr,|,ltr,rtl,|,fullscreen',
                    
                
ContainerDebugCommandTest.php https://github.com/FabienD/symfony.git | PHP | 279 lines
                    
1<?php
                    
2
                    
30
                    
31        @unlink(static::getContainer()->getParameter('debug.container.dump'));
                    
32
                    
94
                    
95        @unlink(static::getContainer()->getParameter('debug.container.dump'));
                    
96
                    
131
                    
132        @unlink(static::getContainer()->getParameter('debug.container.dump'));
                    
133
                    
147            'message' => 'The "Symfony\Bundle\FrameworkBundle\Controller\Controller" class is deprecated since Symfony 4.2, use Symfony\Bundle\FrameworkBundle\Controller\AbstractController instead.',
                    
148            'file' => '/home/hamza/projet/contrib/sf/vendor/symfony/framework-bundle/Controller/Controller.php',
                    
149            'line' => 17,
                    
150            'trace' => [[
                    
151                'file' => '/home/hamza/projet/contrib/sf/src/Controller/DefaultController.php',
                    
152                'line' => 9,
                    
                
site-config.php https://bitbucket.org/gracedigital/iob.git | PHP | 222 lines
                    
1<?php
                    
2	
                    
147	DEFINE("TH_EDIT", "Edit");
                    
148	DEFINE("TH_UNLINK", "Unlink");
                    
149	DEFINE("TH_DELETE", "Delete");
                    
                
FileEngine.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 373 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * PHP 5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
12 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @since         CakePHP(tm) v 1.2.0.4933
                    
19 * @since         CakePHP(tm) v 1.2.0.4933
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
21 */
                    
211		$this->_File = null;
                    
212		return unlink($path);
                    
213	}
                    
                
alljs.php https://gitlab.com/varsha_evonix/intranet | PHP | 264 lines
                    
1<!-- GLOBAL SCRIPTS -->
                    
2    <script src="<?php echo base_url();?>assets/js/1.7.2.jquery.min.js"></script>
                    
3
                    
3
                    
4    <script src="<?php echo base_url();?>assets/js/plugins/bootstrap/bootstrap.min.js"></script>
                    
5    <script src="<?php echo base_url();?>assets/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
                    
5    <script src="<?php echo base_url();?>assets/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
                    
6    <script src="<?php echo base_url();?>assets/js/plugins/popupoverlay/jquery.popupoverlay.js"></script>
                    
7    <script src="<?php echo base_url();?>assets/js/plugins/popupoverlay/defaults.js"></script>
                    
12
                    
13        <?php 
                    
14         if($this->session->userdata("role")== "STUDENT" )
                    
18                        ?>
                    
19                       <img class="img-circle img-logout" src="<?php if($r->profile_picture) {echo base_url()."".$r->profile_picture;} else {echo base_url()."assets/img/avtar.jpg";} ?>" alt="" 
                    
20                                        style=" height: 160px; width: 150px;  margin-left: 15px;" >
                    
                
freeswitch.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 291 lines
                    
1<?php defined('SYSPATH') or die('No direct access allowed.');
                    
2/**
                    
2/**
                    
3 * freeswitch.php - Provides logic for the installer telephony configuration step
                    
4 * @author K Anderson
                    
124            message::set('This driver requires '
                    
125                . html::anchor('http://us3.php.net/manual/en/class.domdocument.php', 'DOMDocument', array('target' => '_new'))
                    
126                . ' to be installed and active');
                    
153
                    
154        // Write $telephonyOptions to freeswitch.php
                    
155        if ( ! Installer_Controller::updateConfig($telephonyOptions, 'freeswitch'))
                    
159
                    
160        // Set the driver name in telephony.php
                    
161        if (!Installer_Controller::updateConfig(array('driver' => 'FreeSwitch'), 'telephony'))
                    
254                {
                    
255                    Kohana::log('error', 'Unable to unlink ' . $conflictXmlFile);
                    
256                    
                    
                
class-wp-filesystem-ftpext.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 387 lines
                    
1<?php
                    
2/**
                    
27		if ( ! extension_loaded('ftp') ) {
                    
28			$this->errors->add('no_ftp_ext', __('The ftp PHP extension is not available'));
                    
29			return false;
                    
110		fclose($temp);
                    
111		unlink($tempfile);
                    
112		return $contents;
                    
130		fclose($temp);
                    
131		unlink($tempfile);
                    
132
                    
                
MassSaveAjax.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 263 lines
                    
1<?php
                    
2/*+***********************************************************************************
                    
85
                    
86            $attachmentsToUnlink = array();
                    
87            $documentsToUnlink = array();
                    
100                    if(array_key_exists('docid',$attachInfo)) {
                    
101                        $documentsToUnlink[] = $attachInfo['docid'];
                    
102                    }else{
                    
102                    }else{
                    
103                        $attachmentsToUnlink[] = $attachInfo;
                    
104                    }
                    
109            $existingAttachments = array();
                    
110            if(!empty($documentsToUnlink)) {
                    
111                $recordModel->deleteDocumentLink($documentsToUnlink);
                    
113
                    
114            if(!empty($attachmentsToUnlink)){
                    
115                $recordModel->deleteAttachment($attachmentsToUnlink);
                    
                
Storage.php https://gitlab.com/fiesta-framework/Documentation | PHP | 382 lines
                    
1<?php 
                    
2
                    
166		{
                    
167			return unlink($this->path($name));
                    
168		}
                    
177		{
                    
178			return unlink ($self->path($name));	
                    
179		}
                    
                
Filesystem.php https://github.com/Enrise/Zend.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25// require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                // require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    // require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
182        unset($this->_fileHandlers[$filename]);
                    
183        // require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
184        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
                
FileSystem.php https://github.com/dmi3x/test-CMS-for-Kohana-3.git | PHP | 474 lines
                    
1<?php
                    
2/*
                    
92    /**
                    
93     * Unlink file/folder
                    
94     *
                    
99     */
                    
100    public static function unlink($path)
                    
101    {
                    
108        if(is_file($path) || is_link($path)) {
                    
109            return @unlink($path);
                    
110        }
                    
280         * The absolute pathname of the currently executing script.
                    
281         * Notatka: If a script is executed with the CLI, as a relative path, such as file.php or ../file.php,
                    
282         * $_SERVER['SCRIPT_FILENAME'] will contain the relative path specified by the user.
                    
295         * The filename of the currently executing script, relative to the document root.
                    
296         * For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar
                    
297         * would be /test.php/foo.bar.
                    
                
filespec_test.php https://github.com/VSEphpbb/phpbb.git | PHP | 338 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
13
                    
14require_once __DIR__ . '/../../phpBB/includes/functions.php';
                    
15require_once __DIR__ . '/../../phpBB/includes/utf/utf_tools.php';
                    
15require_once __DIR__ . '/../../phpBB/includes/utf/utf_tools.php';
                    
16require_once __DIR__ . '/../../phpBB/includes/functions_upload.php';
                    
17
                    
17
                    
18class phpbb_filespec_test extends phpbb_test_case
                    
19{
                    
297	{
                    
298		// Global $phpbb_root_path and $phpEx are required by phpbb_chmod
                    
299		global $phpbb_root_path, $phpEx;
                    
                
Installer.php https://gitlab.com/asun89/socianovation-web | PHP | 370 lines
                    
1<?php
                    
2namespace Grav\Common\GPM;
                    
218                } else {
                    
219                    @unlink($path);
                    
220                    @copy($tmp . DS . $filename, $path);
                    
289        if (
                    
290            !file_exists($target . DS . 'index.php') ||
                    
291            !file_exists($target . DS . 'bin') ||
                    
                
smarty_internal_cacheresource_file.php https://gitlab.com/ilya.webcity/anna | PHP | 259 lines
                    
1<?php
                    
2/**
                    
62        }
                    
63        $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';
                    
64        Smarty::muteExpectedErrors();
                    
208                    }
                    
209                    $_count += @unlink((string) $_file) ? 1 : 0;
                    
210                }
                    
224    {
                    
225        if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
                    
226            clearstatcache(true, $cached->lock_id);
                    
254        $cached->is_locked = false;
                    
255        @unlink($cached->lock_id);
                    
256    }
                    
                
File.php https://github.com/jpratt/cal.git | PHP | 460 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: File.php 12969 2008-12-01 12:54:06Z dmitry $
                    
22 */
                    
26 */
                    
27#require_once "Zend/OpenId/Consumer/Storage.php";
                    
28
                    
75                 */
                    
76                #require_once 'Zend/OpenId/Exception.php';
                    
77                throw new Zend_OpenId_Exception(
                    
85             */
                    
86            #require_once 'Zend/OpenId/Exception.php';
                    
87            throw new Zend_OpenId_Exception(
                    
95             */
                    
96            #require_once 'Zend/OpenId/Exception.php';
                    
97            throw new Zend_OpenId_Exception(
                    
                
Filesystem.php https://gitlab.com/Sigpot/AirSpot | PHP | 514 lines
                    
1<?php
                    
2
                    
155            try {
                    
156                if (! @unlink($path)) {
                    
157                    $success = false;
                    
                
CheckAttachmentGalleryTest.php https://gitlab.com/ElvisAns/tiki | PHP | 404 lines
                    
1<?php
                    
2
                    
13use org\bovigo\vfs\vfsStream;
                    
14use PHPUnit\Framework\TestCase;
                    
15use Tiki\Files\CheckAttachmentGallery;
                    
230        if (file_exists($this->files_dir . $filename)) {
                    
231            unlink($this->files_dir . $filename);
                    
232        }
                    
                
Reporting.php https://gitlab.com/yousafsyed/easternglamor | PHP | 318 lines
                    
19} else {
                    
20    include_once 'PHP/CodeSniffer.php';
                    
21}
                    
109     * 
                    
110     * @param PHP_CodeSniffer_File $phpcsFile The file that has been processed.
                    
111     * @param array                $cliValues An array of command line arguments.
                    
114     */
                    
115    public function cacheFileReport(PHP_CodeSniffer_File $phpcsFile, array $cliValues)
                    
116    {
                    
232     *
                    
233     * @param PHP_CodeSniffer_File $phpcsFile The file that has been processed.
                    
234     *
                    
236     */
                    
237    public function prepareFileReport(PHP_CodeSniffer_File $phpcsFile)
                    
238    {
                    
                
 

Source

Language