PageRenderTime 1025ms queryTime 45ms sortTime 29ms getByIdsTime 405ms findMatchingLines 335ms

100+ results results for 'php unlink repo:heiglandreas/joind.in' (1025 ms)

Not the results you expected?
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 );
                    
                
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();
                    
                
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//			)
                    
                
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/isissoftware | 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
                    
                
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     */
                    
                
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            }
                    
                
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);
                    
                
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;
                    
                
import.php https://github.com/m-fuji-0616/vtigercrm-5.1.x-ja.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">
                    
                
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');
                    
                
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
                    
                
task_test.php https://bitbucket.org/moodle/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)
                    
                
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 */
                    
                
file_helper.php https://gitlab.com/vince.omega/pos | 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			{
                    
                
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
                    
                
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
                    
                
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
                    
                
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
                    
                
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');
                    
                
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://bitbucket.org/simukti/zf1.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');
                    
                
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			}
                    
                
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.'"' :
                    
                
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
                    
                
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
                    
                
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'>";
                    
                
bankart_diners.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			}
                    
                
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;" >
                    
                
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		}
                    
                
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    {
                    
                
plugin-mods.php https://gitlab.com/ravenseyedesign/ravensegg | PHP | 403 lines
                    
1<?php
                    
2/**
                    
133//		'link',
                    
134//		'unlink',
                    
135//	);
                    
                
xpdofilevehicle.class.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 235 lines
                    
1<?php
                    
2/*
                    
145                            $uninstalled = true;
                    
146                        } elseif (is_file($path) && unlink($path)) {
                    
147                            $uninstalled = true;
                    
                
CaptureCache.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 387 lines
                    
1<?php
                    
2/**
                    
31
                    
32            // http://php.net/manual/function.ob-start.php
                    
33            // -> If output_callback  returns FALSE original input is sent to the browser.
                    
148            ErrorHandler::start();
                    
149            $res = unlink($file);
                    
150            $err = ErrorHandler::stop();
                    
178            if ($entry->isFile()) {
                    
179                unlink($pathname);
                    
180            }
                    
                
file.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 380 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: file.php 9764 2007-12-30 07:48:11Z ircmaxell $
                    
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 */
                    
157			// as long as the owner is either the webserver or the ftp
                    
158			if (@unlink($file)) {
                    
159				// Do nothing
                    
305	 *
                    
306	 * @param string $src The name of the php (temporary) uploaded file
                    
307	 * @param string $dest The path (including filename) to move the uploaded file to
                    
                
MaildirWritableTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 418 lines
                    
1<?php
                    
2
                    
12 */
                    
13require_once 'Zend/Mail/Storage/Writable/Maildir.php';
                    
14
                    
15/**
                    
16 * PHPUnit test case
                    
17 */
                    
17 */
                    
18require_once 'PHPUnit/Framework/TestCase.php';
                    
19
                    
25 */
                    
26class Zend_Mail_MaildirWritableTest extends PHPUnit_Framework_TestCase
                    
27{
                    
104                    }
                    
105                    unlink($entry);
                    
106                }
                    
                
css_optimiser.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 506 lines
                    
1<?php
                    
2header('Content-Type:text/html; charset=utf-8');
                    
2header('Content-Type:text/html; charset=utf-8');
                    
3require ('class.csstidy.php');
                    
4require ('lang.inc.php');
                    
20    {
                    
21        return unlink($dirname);
                    
22    }
                    
119<title>
                    
120      <?php
                    
121    echo $lang[$l][0];
                    
146<h1 style="display: inline">
                    
147      <?php
                    
148    echo $lang[$l][1];
                    
150    </h1>
                    
151    <?php
                    
152    echo $lang[$l][2];
                    
                
php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
25    multiLineStrings: true,
                    
54    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
55    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
56
                    
82        return style;
                    
83      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
84        state.curMode = htmlMode;
                    
103        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
104            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
105        if (state.curMode == htmlMode) cur = htmlNew;
                    
130  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
131  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
132})();
                    
                
Filesystem.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 23964 2011-05-03 14:20:58Z adamlundrigan $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_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');
                    
                
ClienteController.php https://gitlab.com/fabiorf/edigital | PHP | 397 lines
                    
1<?php
                    
2
                    
316                foreach ($oCliente->getDocumentoss()->get() as $oDoc){
                    
317                    @unlink($caminhoDoc.$oDoc->caminhodoc);
                    
318
                    
                
test_ext_stream.cpp https://github.com/zsj888/hiphop-php.git | C++ | 440 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
350  Variant f = f_fopen("test/test_ext_file.tmp", "w");
                    
351  f_stream_set_write_buffer(f, 1 /* PHP_STREAM_BUFFER_LINE */);
                    
352  f_fputs(f, "testing\nanother line\n");
                    
                
ShellTest.php https://gitlab.com/Laolballs/cbtapp | PHP | 325 lines
                    
1<?php
                    
2
                    
19
                    
20class ShellTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
65    {
                    
66        $config = $this->getConfig(array('configFile' => __DIR__ . '/../../fixtures/empty.php'));
                    
67
                    
76        $config = $this->getConfig(array(
                    
77            'defaultIncludes' => array('/file.php'),
                    
78            'configFile'      => __DIR__ . '/../../fixtures/empty.php',
                    
83        $includes = $shell->getIncludes();
                    
84        $this->assertEquals('/file.php', $includes[0]);
                    
85    }
                    
106
                    
107        $this->assertContains('PHP Parse error', $streamContents);
                    
108        $this->assertContains('message', $streamContents);
                    
                
Filesystem.php https://gitlab.com/Ltaimao/wecenter | PHP | 364 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25//require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
120            if (file_exists($path)) {
                    
121                //require_once 'Zend/Search/Lucene/Exception.php';
                    
122                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
124                if (!self::mkdirs($path)) {
                    
125                    //require_once 'Zend/Search/Lucene/Exception.php';
                    
126                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
184        unset($this->_fileHandlers[$filename]);
                    
185        //require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
186        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
209
                    
210        global $php_errormsg;
                    
211        $trackErrors = ini_get('track_errors');
                    
                
mysql-cluster.rb https://github.com/steingrd/homebrew.git | Ruby | 326 lines
                    
7      launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
                    
8      brew unlink mysql
                    
9
                    
50  # CMake patch needed for CMake 2.8.8.
                    
51  # Reported here: http://bugs.mysql.com/bug.php?id=65050
                    
52  # See also the mysql formula.
                    
                
FileSystem.php https://github.com/summerg/cobraEEv1.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.
                    
                
Filesystem.php https://bitbucket.org/hermescarretero/simon-iniesta.git | PHP | 417 lines
                    
1<?php
                    
2
                    
136            } else {
                    
137                // https://bugs.php.net/bug.php?id=52176
                    
138                if (defined('PHP_WINDOWS_VERSION_MAJOR') && is_dir($file)) {
                    
142                } else {
                    
143                    if (true !== @unlink($file)) {
                    
144                        throw new IOException(sprintf('Failed to remove file %s', $file));
                    
279                if (is_array($report)) {
                    
280                    if (defined('PHP_WINDOWS_VERSION_MAJOR') && false !== strpos($report['message'], 'error code(1314)')) {
                    
281                        throw new IOException('Unable to create symlink due to error code 1314: \'A required privilege is not held by the client\'. Do you have the required Administrator-rights?');
                    
299        // Normalize separators on windows
                    
300        if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
                    
301            $endPath = strtr($endPath, '\\', '/');
                    
395            )
                    
396            || null !== parse_url($file, PHP_URL_SCHEME)
                    
397        ) {
                    
                
Filesystem.php https://gitlab.com/yousafsyed/easternglamor | PHP | 364 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25#require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
120            if (file_exists($path)) {
                    
121                #require_once 'Zend/Search/Lucene/Exception.php';
                    
122                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
124                if (!self::mkdirs($path)) {
                    
125                    #require_once 'Zend/Search/Lucene/Exception.php';
                    
126                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
184        unset($this->_fileHandlers[$filename]);
                    
185        #require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
186        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
209
                    
210        global $php_errormsg;
                    
211        $trackErrors = ini_get('track_errors');
                    
                
Rename.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
134        if ($file['overwrite'] && file_exists($file['target'])) {
                    
135            unlink($file['target']);
                    
136        }
                    
                
config.m4 https://github.com/kennyb/php-broken.git | m4 | 537 lines
                    
231PHP_ARG_WITH(regex,,
                    
232[  --with-regex=TYPE       regex library type: system, apache, php. [TYPE=php]
                    
233                          WARNING: Do NOT use unless you know what you are doing!], php, no)
                    
236  system)
                    
237    if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then
                    
238      REGEX_TYPE=php
                    
254
                    
255if test "$REGEX_TYPE" = "php"; then
                    
256  AC_DEFINE(HAVE_REGEX_T_RE_MAGIC, 1, [ ])
                    
296])
                    
297AC_DEFINE_UNQUOTED(PHP_ROUND_FUZZ, $PHP_ROUND_FUZZ, [ see #24142 ])
                    
298
                    
323
                    
324if test "$PHP_SAPI" = "cgi" || test "$PHP_SAPI" = "cli" || test "$PHP_SAPI" = "embed"; then
                    
325  AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function])
                    
                
ar.js https://gitlab.com/yutiansut/nodecms | JavaScript | 233 lines
                    
6* @site http://www.kindsoft.net/
                    
7* @licence http://www.kindsoft.net/license.php
                    
8* Arabic Translation By daif alotaibi (http://daif.net/)
                    
50	link : 'رابط',
                    
51	unlink : 'إزالة الرابط',
                    
52	fullscreen : 'محرر ملئ الشاشة',
                    
                
captcha_helper.php https://gitlab.com/piratemovin/piratesite | PHP | 341 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
115			{
                    
116				@unlink($img_path.$filename);
                    
117			}
                    
131
                    
132			// PHP7 or a suitable polyfill
                    
133			if (function_exists('random_int'))
                    
234		// Create image
                    
235		// PHP.net recommends imagecreatetruecolor(), but it isn't always available
                    
236		$im = function_exists('imagecreatetruecolor')
                    
                
MaildirFolderTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 438 lines
                    
1<?php
                    
2
                    
12 */
                    
13require_once 'Zend/Mail/Storage/Folder/Maildir.php';
                    
14
                    
17 */
                    
18require_once 'Zend/Config.php';
                    
19
                    
20/**
                    
21 * PHPUnit test case
                    
22 */
                    
22 */
                    
23require_once 'PHPUnit/Framework/TestCase.php';
                    
24
                    
30 */
                    
31class Zend_Mail_MaildirFolderTest extends PHPUnit_Framework_TestCase
                    
32{
                    
                
Stream.php https://gitlab.com/yousafsyed/easternglamor | PHP | 297 lines
                    
1<?php
                    
2/**
                    
16/**
                    
17 * Represents an HTTP response message as PHP stream resource
                    
18 */
                    
292            ErrorHandler::start(E_WARNING);
                    
293            unlink($this->streamName);
                    
294            ErrorHandler::stop();
                    
                
AdminController.php https://gitlab.com/katakutu/gisgis | PHP | 480 lines
                    
1<?php
                    
2
                    
141			{
                    
142				unlink('source/thumb/100x100/'.$old_thumb);
                    
143				unlink('source/thumb/410x250/'.$old_thumb);
                    
214		{
                    
215			unlink('source/uploads'.$filename);
                    
216		}
                    
233		{
                    
234			unlink('source/thumb/w960/'.$filename);
                    
235		}
                    
237		{
                    
238			unlink('source/thumb/100x100/'.$filename);
                    
239		}
                    
241		{
                    
242			unlink('source/thumb/410x250/'.$filename);
                    
243		}
                    
                
FilesystemTest.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 314 lines
                    
1<?php
                    
2
                    
163     */
                    
164    public function testRemoveDirectoryPhp()
                    
165    {
                    
169        $fs = new Filesystem;
                    
170        $this->assertTrue($fs->removeDirectoryPhp($this->workingDir));
                    
171        $this->assertFalse(file_exists($this->workingDir . "/level1/level2/hello.txt"));
                    
229     */
                    
230    public function testUnlinkSymlinkedDirectory()
                    
231    {
                    
247        $fs     = new Filesystem();
                    
248        $result = $fs->unlink($symlinked);
                    
249        $this->assertTrue($result);
                    
291        // Non-Windows systems do not support this and will return false on all tests, and an exception on creation
                    
292        if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
                    
293            $this->assertFalse($fs->isJunction($this->workingDir));
                    
                
Filesystem.php https://bitbucket.org/efdac/e-forest_platform.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 */
                    
25require_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');
                    
                
FileStorage.php https://github.com/PJK/Nette-Exceptions---Independent-Components.git | PHP | 416 lines
                    
1<?php
                    
2
                    
34	 *
                    
35	 * delete* = try unlink, if fails (on NTFS) { lock(EX), truncate, close, unlink } else close (on ext3)
                    
36	 */
                    
85				self::$useDirectories = TRUE;
                    
86				unlink("$dir/$uniq/_");
                    
87			}
                    
218		$head = serialize($meta) . '?>';
                    
219		$head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head;
                    
220		$headLen = strlen($head);
                    
328			if (is_array($meta)) {
                    
329				fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6
                    
330				$meta[self::FILE] = $file;
                    
385	{
                    
386		if (@unlink($file)) { // @ - file may not already exist
                    
387			if ($handle) fclose($handle);
                    
                
GeneratorTest.php https://bitbucket.org/pcelta/zf2.git | PHP | 395 lines
                    
1<?php
                    
2/**
                    
17use Zend\Di\Definition\Builder;
                    
18use PHPUnit_Framework_TestCase as TestCase;
                    
19
                    
37        if ($this->tmpFile) {
                    
38            unlink($this->tmpFile);
                    
39            $this->tmpFile = false;
                    
50    {
                    
51        $inspect = new Builder\PhpClass();
                    
52        $inspect->setName('ZendTest\Di\TestAsset\InspectedClass');
                    
58
                    
59        $composed = new Builder\PhpClass();
                    
60        $composed->setName('ZendTest\Di\TestAsset\ComposedClass');
                    
61
                    
62        $struct = new Builder\PhpClass();
                    
63        $struct->setName('ZendTest\Di\TestAsset\Struct');
                    
                
class-itsec-backup.php https://gitlab.com/gabdark/aceit | PHP | 382 lines
                    
1<?php
                    
2
                    
135
                    
136			$return .= PHP_EOL . PHP_EOL . $row2[1] . ";" . PHP_EOL . PHP_EOL;
                    
137
                    
148						$row[$j] = addslashes( $row[$j] );
                    
149						$row[$j] = preg_replace( '#' . PHP_EOL . '#', "\n", $row[$j] );
                    
150
                    
166
                    
167					$return .= ");" . PHP_EOL;
                    
168
                    
172
                    
173			$return .= PHP_EOL . PHP_EOL;
                    
174
                    
176
                    
177		$return .= PHP_EOL . PHP_EOL;
                    
178
                    
                
utils.php https://gitlab.com/megathrone86/SoftwareProjects | PHP | 381 lines
                    
1<?php
                    
2class utilsBup {
                    
37		$all = 'DENY FROM ALL';
                    
38		$custom = '<Files ~ "\.(php|html)$">'.$eol.'DENY FROM ALL'.$eol.'</Files>';
                    
39        $content = $c ? $custom : $all;
                    
106    static public function deleteFile($str) {
                    
107        return @unlink($str);
                    
108    }
                    
374	static public function isSessionStarted() {
                    
375		if(version_compare(PHP_VERSION, '5.4.0') >= 0 && function_exists('session_status')) {
                    
376			return !(session_status() == PHP_SESSION_NONE);
                    
                
media.php https://github.com/PHPFrame/Mashine.git | PHP | 495 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * src/controllers/api/media.php
                    
4 *
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
6 *
                    
7 * @category   PHPFrame_Applications
                    
8 * @package    Mashine
                    
11 * @copyright  2010 E-NOISE.COM LIMITED
                    
12 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
13 * @link       http://github.com/E-NOISE/Mashine
                    
18 *
                    
19 * @category PHPFrame_Applications
                    
20 * @package  Mashine
                    
                
editlib.php https://github.com/andreev-artem/moodle.git | PHP | 337 lines
                    
1<?php
                    
2
                    
46    global $CFG, $DB;
                    
47    require_once("$CFG->libdir/gdlib.php");
                    
48
                    
76                // Delete temporary file
                    
77                @unlink($iconfile);
                    
78                // Remove uploaded file.
                    
114    if ((!isset($user->trackforums) || ($usernew->trackforums != $user->trackforums)) and !$usernew->trackforums) {
                    
115        require_once($CFG->dirroot.'/mod/forum/lib.php');
                    
116        forum_tp_delete_read_records($usernew->id);
                    
151        $notice = get_string('emailchangepending', 'auth', $user);
                    
152        $notice .= '<br /><a href="edit.php?cancelemailchange=1&amp;id='.$user->id.'">'
                    
153                . get_string('emailchangecancel', 'auth') . '</a>';
                    
                
Filesystem.php https://github.com/bhaumik25/zend-framework.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Search_Lucene_Storage_Directory */
                    
24require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
25
                    
26/** Zend_Search_Lucene_Storage_File_Filesystem */
                    
27require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
28
                    
184
                    
185        global $php_errormsg;
                    
186        $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1');
                    
188            ini_set('track_errors', $trackErrors);
                    
189            throw new Zend_Search_Lucene_Exception($php_errormsg);
                    
190        }
                    
210
                    
211        global $php_errormsg;
                    
212        $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1');
                    
                
fck_image.js https://github.com/okbutton/ispCP-distributed.git | JavaScript | 442 lines
                    
5 * Licensed under the terms of the GNU Lesser General Public License:
                    
6 * 		http://www.opensource.org/licenses/lgpl-license.php
                    
7 * 
                    
199		if ( oLink )
                    
200			FCK.ExecuteNamedCommand( 'Unlink' ) ;
                    
201	}
                    
                
Filesystem.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 18954 2009-11-12 20:01:33Z alexander $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_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');
                    
                
functions_styles.php https://gitlab.com/bulwye/reliquerunt | PHP | 324 lines
                    
1<?php
                    
2/***************************************************************************
                    
2/***************************************************************************
                    
3 * Module           : PNphpBB2 (The forum for Postnuke)
                    
4 * Filename         : functions_styles.php
                    
6 * Original file by : Carl Slaughter
                    
7 * Copyright        : (C) 2003 The PNphpBB Group
                    
8 * Contact          : support@pnphpbb.com
                    
8 * Contact          : support@pnphpbb.com
                    
9 *                  : http://www.pnphpbb.com
                    
10 *
                    
10 *
                    
11 * $Id: functions_styles.php,v 1.6 2004/10/18 19:47:28 carls Exp $
                    
12 *
                    
23
                    
24if ( !defined('IN_PHPBB') )
                    
25{
                    
                
class.ProcessManager.php http://scalr.googlecode.com/svn/ | PHP | 322 lines
                    
2	/**
                    
3     * This file is a part of LibWebta, PHP class library.
                    
4     *
                    
25     * @author Igor Savchenko <http://webta.net/company.html>
                    
26     * @example tests.php
                    
27     * @see tests.php
                    
189			    						$this->Logger->debug("Delete thread PID file $pid");
                    
190			    						@unlink($this->PIDDir . "/" . $pid);
                    
191			    					}
                    
210		    						$this->Logger->debug("Delete thread PID file {$this->PIDs[$k]}");
                    
211		    						@unlink($this->PIDDir . "/" . $this->PIDs[$k]);
                    
212		    					}
                    
230            	$this->Logger->debug("Delete Process PID file {$pid}");
                    
231            	@unlink("{$this->PIDDir}/{$pid}");
                    
232            } 
                    
                
editnews.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 396 lines
                    
1<?php
                    
2if($_SESSION['id_user']) {
                    
4	$tpl->prepare();
                    
5	require ("lib/upload.php");
                    
6	require ("lib/imaging.php");
                    
89						{
                    
90							unlink($CONFIG['root_path'].$CONFIG['upload_image_path'].$lastfile);
                    
91						}
                    
93						{
                    
94							unlink($CONFIG['root_path'].$CONFIG['upload_image_path'].$lastnormal);
                    
95						}
                    
97						{
                    
98							unlink($CONFIG['root_path'].$CONFIG['upload_image_path'].$lastsmall);
                    
99						}						
                    
116						{
                    
117							unlink($CONFIG['root_path'].$CONFIG['upload_image_path'].$lastfile);
                    
118						}
                    
                
SugarTinyMCE.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 263 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
49/**
                    
50 * PHP wrapper class for Javascript driven TinyMCE WYSIWYG HTML editor
                    
51 */
                    
53	var $jsroot = "include/javascript/tiny_mce/";
                    
54	var $customConfigFile = 'custom/include/tinyButtonConfig.php';
                    
55	var $customDefaultConfigFile = 'custom/include/tinyMCEDefaultConfig.php';
                    
60	                    'buttonConfig2' => "cut,copy,paste,pastetext,pasteword,selectall,separator,search,replace,separator,bullist,numlist,separator,outdent,
                    
61	                     					indent,separator,ltr,rtl,separator,undo,redo,separator, link,unlink,anchor,image,separator,sub,sup,separator,charmap,
                    
62	                     					visualaid",
                    
65						'buttonConfig' => "code,help,separator,bold,italic,underline,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,
                    
66	                     					justifyfull,separator,link,unlink,separator,forecolor,backcolor,separator,styleselect,formatselect,fontselect,fontsizeselect,",
                    
67	                    'buttonConfig2' => "",
                    
70						'buttonConfig' => "code,separator,bold,italic,underline,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,
                    
71	                     					justifyfull,separator,link,unlink,separator,forecolor,backcolor,separator,formatselect,fontselect,fontsizeselect,",
                    
72	                    'buttonConfig2' => "",
                    
                
learn_export.php https://gitlab.com/alexprowars/bitrix | PHP | 294 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3
                    
5{
                    
6	require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php'); // second system's prolog
                    
7
                    
12
                    
13	require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_admin.php');	// system's epilog
                    
14	exit();
                    
16
                    
17require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/learning/prolog.php");
                    
18IncludeModuleLangFile(__FILE__);
                    
21
                    
22require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/tar_gz.php");
                    
23
                    
                
Filesystem.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 354 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 */
                    
23/** Zend_Search_Lucene_Storage_Directory */
                    
24require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
25
                    
114            if (file_exists($path)) {
                    
115                require_once 'Zend/Search/Lucene/Exception.php';
                    
116                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
118                if (!self::mkdirs($path)) {
                    
119                    require_once 'Zend/Search/Lucene/Exception.php';
                    
120                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
178        unset($this->_fileHandlers[$filename]);
                    
179        require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
180        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
                
class-wp-filesystem-direct.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 384 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Filesystem Class for direct PHP file and folder manipulation.
                    
11 *
                    
244		if ( 'f' == $type || $this->is_file($file) )
                    
245			return @unlink($file);
                    
246		if ( ! $recursive && $this->is_dir($file) )
                    
307	function mkdir($path, $chmod = false, $chown = false, $chgrp = false) {
                    
308		// safe mode fails with a trailing slash under certain PHP versions.
                    
309		$path = untrailingslashit($path);
                    
                
ErrorHandlerTest.php https://gitlab.com/geeta7/drupal | PHP | 213 lines
                    
1<?php
                    
2
                    
51      '%function' => 'Drupal\error_test\Controller\ErrorTestController->Drupal\error_test\Controller\{closure}()',
                    
52      '@message' => 'Argument 1 passed to Drupal\error_test\Controller\ErrorTestController::Drupal\error_test\Controller\{closure}() must be of the type array, string given, called in ' . \Drupal::root() . '/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php on line 66 and defined',
                    
53    );
                    
53    );
                    
54    if (version_compare(PHP_VERSION, '7.0.0-dev') >= 0)  {
                    
55      // In PHP 7, instead of a recoverable fatal error we get a TypeError.
                    
56      $fatal_error['%type'] = 'TypeError';
                    
57      // The error message also changes in PHP 7.
                    
58      $fatal_error['@message'] = 'Argument 1 passed to Drupal\error_test\Controller\ErrorTestController::Drupal\error_test\Controller\{closure}() must be of the type array, string given, called in ' . \Drupal::root() . '/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php on line 66';
                    
83    // Remove the recoverable fatal error from the assertions, it's wanted here.
                    
84    // Ensure that we just remove this one recoverable fatal error (in PHP 7 this
                    
85    // is a TypeError).
                    
182    // The exceptions are expected. Do not interpret them as a test failure.
                    
183    // Not using File API; a potential error must trigger a PHP warning.
                    
184    unlink(\Drupal::root() . '/' . $this->siteDirectory . '/error.log');
                    
                
Config.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 211 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 */
                    
60            if($ftp) {
                    
61                @unlink($config->getFilename());
                    
62            }
                    
66            if($ftp) {
                    
67                @unlink($config->getFilename());
                    
68            }
                    
115            if($ftp) {
                    
116                @unlink($config->getFilename());
                    
117            }
                    
                
execute.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 205 lines
                    
1<?php
                    
2include('config/config.php');
                    
3if ($_SESSION['verify'] != 'RESPONSIVEfilemanager') die('forbiden');
                    
4include('include/utils.php');
                    
5
                    
16
                    
17$language_file = 'lang/en.php';
                    
18if (isset($_GET['lang']) && $_GET['lang'] != 'undefined' && $_GET['lang'] != '')
                    
20	$path_parts = pathinfo($_GET['lang']);
                    
21	if (is_readable('lang/'.$path_parts['basename'].'.php'))
                    
22		$language_file = 'lang/'.$path_parts['basename'].'.php';
                    
40
                    
41	if (file_exists($path.'config.php'))
                    
42	{
                    
42	{
                    
43		require_once($path.'config.php');
                    
44		$cycle = false;
                    
                
Collection.php https://bitbucket.org/thesyncim/front-biarq.git | PHP | 338 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2011, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
290	 * Executes when the associated result resource pointer reaches the end of its data set. The
                    
291	 * resource is freed by the connection, and the reference to the connection is unlinked.
                    
292	 *
                    
                
SerializerTest.php https://gitlab.com/potion/librechan | PHP | 229 lines
                    
1<?php
                    
2
                    
9        // to do equality checks. Unfortunately, this makes some
                    
10        // versions of PHP segfault. So we need to define a better,
                    
11        // homebrew notion of equality and use that instead.  For now,
                    
25        );
                    
26        if($file && file_exists($file)) unlink($file); // prevent previous failures from causing problems
                    
27
                    
200
                    
201        unlink($dir . '/Test/1.0.0,serial,1.ser');
                    
202        rmdir( $dir . '/Test');
                    
222
                    
223        unlink($dir . '/Test/1.0.0,serial,1.ser');
                    
224        rmdir( $dir . '/Test');
                    
                
index.php https://github.com/hinablue/TextCube.git | PHP | 226 lines
                    
63    ?>
                    
64        popup_css_add: "<?php echo $context->getProperty("plugin.uri"); ?>/popup.css",
                    
65        menubar: false,
                    
73
                    
74    <?php
                    
75    if ($config['editormode'] == 'simple') {
                    
111            jsFiles: [          // Additional JS files to load
                    
112            '<?php echo implode('\',\'', $config['codemirror_jsfiles']); ?>'
                    
113            ],
                    
114            cssFiles: [
                    
115            'theme/<?php echo $config['srctheme'] ?>.css'
                    
116            ],
                    
202    editor.on('mousedown',editorChanged);
                    
203    editor.propertyFilePath = "<?php echo $context->getProperty('uri.service'); ?>/attach/<?php echo $context->getProperty('blog.id'); ?>/";
                    
204    editor.tcformatter = '<?php echo $config['formatter']; ?>';
                    
                
Sqlite.php https://github.com/bhaumik25/zend-framework.git | PHP | 406 lines
                    
1<?php
                    
2
                    
26 */
                    
27require_once 'Zend/Cache/Backend/Interface.php';
                    
28
                    
31 */
                    
32require_once 'Zend/Cache/Backend.php';
                    
33
                    
238     * 
                    
239     * Unlink the database file
                    
240     */
                    
243        @sqlite_close($this->_db);
                    
244        @unlink($this->_options['cacheDBCompletePath']);
                    
245    }
                    
                
WriteTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 210 lines
                    
1<?php
                    
2/**
                    
11
                    
12class WriteTest extends \PHPUnit_Framework_TestCase
                    
13{
                    
186    {
                    
187        unlink($this->currentFilePath);
                    
188    }
                    
                
Common.php https://gitlab.com/vince.omega/pos | PHP | 540 lines
                    
34*
                    
35* Since there are a few places where we conditionally test for PHP > 5
                    
36* we'll set a static variable.
                    
41*/
                    
42if ( ! function_exists('is_php'))
                    
43{
                    
50		{
                    
51			$_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE;
                    
52		}
                    
158			{
                    
159				require(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.'.php');
                    
160			}
                    
205/**
                    
206* Loads the main config.php file
                    
207*
                    
                
Stream.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 246 lines
                    
1<?php
                    
2
                    
230        if($this->_cleanup) {
                    
231            @unlink($this->stream_name);
                    
232        }
                    
                
uploadpicture.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 249 lines
                    
1<?php // $Id: uploadpicture.php,v 1.1.2.8 2010/01/22 02:01:03 rwijaya Exp $
                    
2
                    
6//                                                                       //
                    
7// Based on .../admin/uploaduser.php and .../lib/gdlib.php               //
                    
8//                                                                       //
                    
22
                    
23require_once('../config.php');
                    
24require_once($CFG->libdir.'/uploadlib.php');
                    
24require_once($CFG->libdir.'/uploadlib.php');
                    
25require_once($CFG->libdir.'/adminlib.php');
                    
26require_once($CFG->libdir.'/gdlib.php');
                    
26require_once($CFG->libdir.'/gdlib.php');
                    
27require_once('uploadpicture_form.php');
                    
28
                    
68    } else {
                    
69        // Large files are likely to take their time and memory. Let PHP know
                    
70        // that we'll take longer, and that the process should be recycled soon
                    
                
CFileHelper.php https://gitlab.com/dwi.nurhadi17/uns-log | PHP | 311 lines
                    
1<?php
                    
2/**
                    
21	 * Returns the extension name of a file path.
                    
22	 * For example, the path "path/to/something.php" would return "php".
                    
23	 * @param string $path the file path
                    
80			else
                    
81				unlink($item);
                    
82		}
                    
237	 * @param string $magicFile name of a magic database file, usually something like /path/to/magic.mime.
                    
238	 * This will be passed as the second parameter to {@link http://php.net/manual/en/function.finfo-open.php finfo_open}.
                    
239	 * Magic file format described in {@link http://linux.die.net/man/5/magic man 5 magic}, note that this file does not
                    
239	 * Magic file format described in {@link http://linux.die.net/man/5/magic man 5 magic}, note that this file does not
                    
240	 * contain a standard PHP array as you might suppose. Specified magic file will be used only when fileinfo
                    
241	 * PHP extension is available. This parameter has been available since version 1.1.3.
                    
275		if($magicFile===null && $extensions===null)
                    
276			$extensions=require(Yii::getPathOfAlias('system.utils.mimeTypes').'.php');
                    
277		elseif($magicFile!==null && !isset($customExtensions[$magicFile]))
                    
                
 

Source

Language