PageRenderTime 794ms queryTime 80ms sortTime 230ms getByIdsTime 100ms findMatchingLines 178ms

100+ results results for 'php delete repo:AlexanderZon/tiuna' (794 ms)

Not the results you expected?
grid.locale-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 224 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl.html
                    
90        del: {
                    
91            caption: "Delete",
                    
92            msg: "Delete selected record(s)?",
                    
92            msg: "Delete selected record(s)?",
                    
93            bSubmit: "Delete",
                    
94            bCancel: "Cancel"
                    
101            deltext: "",
                    
102            deltitle: "Delete selected row",
                    
103            searchtext: "",
                    
158                masks: {
                    
159                    // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
                    
160                    // and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
                
WARCReader.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 290 lines
                    
114    @Override
                    
115    public ArchiveReader getDeleteFileOnCloseReader(final File f) {
                    
116        throw new NotImplementedException("TODO");
                    
186     * <p>Outputs using a pseudo-CDX format as described here:
                    
187     * <a href="http://www.archive.org/web/researcher/cdx_legend.php">CDX
                    
188     * Legent</a> and here
                    
188     * Legent</a> and here
                    
189     * <a href="http://www.archive.org/web/researcher/example_cdx.php">Example</a>.
                    
190     * Legend used in below is: 'CDX b e a m s c V (or v if uncompressed) n g'.
                    
                
yii.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 114 lines
                    
1<?php
                    
2/**
                    
21    'An internal server error occurred.' => 'Ett internt serverfel har inträffat.',
                    
22    'Are you sure you want to delete this item?' => 'Är du säker på att du vill radera objektet?',
                    
23    'Delete' => 'Radera',
                    
                
new-features-in-cakephp-2-0.rst https://github.com/MontBlanc-Sucks/docs.git | ReStructuredText | 312 lines
                    
32  See `#856 <http://cakephp.lighthouseapp.com/projects/42648/tickets/856>`_.
                    
33* ``loadConfig()`` has moved from :php:class:`Helper` to :php:class:`HtmlHelper`
                    
34  class. This method now uses the new reader classes (see 2.0 :php:class:`Configure`)
                    
88
                    
89:php:class:`CakeSession` and the :php:class:`SessionComponent` have had a number
                    
90of changes, see the session section for more information.
                    
145
                    
146:php:meth:`Configure::read()` without any arguments allows you to read all
                    
147values from configure, instead of just the debug value.
                    
193If a client sends a single Accept mime type that matches one of the extensions
                    
194enabled in :php:class`Router`, :php:class:`RequestHandler` will treat it the
                    
195same an extension. This expands CakePHP's support for REST style endpoints. To
                    
305
                    
306A new method :php:meth:`ConnectionManager::drop()` was added to allow
                    
307removing connections at runtime.
                    
                
Fl_Shared_Image.cxx https://github.com/paniwani/OTB.git | C++ | 467 lines
                    
24//
                    
25//     http://www.fltk.org/str.php
                    
26//
                    
135
                    
136      delete[] images_;
                    
137    }
                    
172Fl_Shared_Image::~Fl_Shared_Image() {
                    
173  if (name_) delete[] (char *)name_;
                    
174  if (alloc_image_) delete image_;
                    
200
                    
201  delete this;
                    
202
                    
203  if (num_images_ == 0 && images_) {
                    
204    delete[] images_;
                    
205
                    
                
class-wp-ms-users-list-table.php https://github.com/mhoofman/wordpress-heroku.git | PHP | 307 lines
                    
77		if ( current_user_can( 'delete_users' ) )
                    
78			$actions['delete'] = __( 'Delete' );
                    
79		$actions['spam'] = _x( 'Mark as Spam', 'user' );
                    
156
                    
157			$status_list = array( 'spam' => 'site-spammed', 'deleted' => 'site-deleted' );
                    
158
                    
181						<th scope="row" class="check-column">
                    
182							<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
                    
183							<input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" />
                    
192						echo "<td $attributes>"; ?>
                    
193							<?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php
                    
194							if ( in_array( $user->user_login, $super_admins ) )
                    
202								if ( current_user_can( 'delete_user', $user->ID ) && ! in_array( $user->user_login, $super_admins ) ) {
                    
203									$actions['delete'] = '<a href="' . $delete = esc_url( network_admin_url( add_query_arg( '_wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), wp_nonce_url( 'users.php', 'deleteuser' ) . '&amp;action=deleteuser&amp;id=' . $user->ID ) ) ) . '" class="delete">' . __( 'Delete' ) . '</a>';
                    
204								}
                    
                
DataWriter.html https://gitlab.com/rsilveira1987/Expresso | HTML | 214 lines
                    
31var proxy = new Ext.data.HttpProxy({
                    
32    url: 'app.php/users'    // &lt;--- Supports "provides"-type urls, such as '/users.json', '/products.xml' (Hello Rails/Merb)
                    
33});
                    
39    api: {
                    
40        read    : 'app.php/users/read',
                    
41        create  : 'app.php/users/create',
                    
41        create  : 'app.php/users/create',
                    
42        update  : 'app.php/users/update',
                    
43        destroy : {  // &lt;--- Supports object-syntax as well
                    
43        destroy : {  // &lt;--- Supports object-syntax as well
                    
44            url: 'app.php/users/destroy',
                    
45            method: "DELETE"
                    
186            if (rec.fields.containsKey(this.meta.idProperty) && Ext.isEmpty(rec.data[this.meta.idProperty])) {
                    
187                delete data[this.meta.idProperty];
                    
188            }
                    
                
CategoryRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 277 lines
                    
95        }
                    
96        // delete category to clean up auto-generated url rewrites
                    
97        $this->deleteCategory($result['id']);
                    
100    /**
                    
101     * @magentoApiDataFixture Magento/Catalog/_files/category.php
                    
102     */
                    
122        $this->assertTrue($this->deleteCategory($this->modelId));
                    
123        // After the category is deleted, assert that the associated url rewrite is also auto-deleted
                    
124        $this->assertNull($storage->findOneByData($data));
                    
129        try {
                    
130            $this->deleteCategory(-1);
                    
131        } catch (\Exception $e) {
                    
235     */
                    
236    protected function deleteCategory($id)
                    
237    {
                    
                
WifiRemote.cs https://github.com/MPExtended/MPExtended.git | C# | 258 lines
                    
4// The use and distribution terms for this software are covered by the
                    
5// Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)
                    
6// which can be found in the file CPL.TXT at the root of this distribution.
                    
85            // cleanup
                    
86            File.Delete(mpeiPackagePath);
                    
87            return ActionResult.Success;
                    
                
course_request_rejected.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 236 lines
                    
42$accept_course_request = intval($_GET['accept_course_request']);
                    
43$delete_course_request = intval($_GET['delete_course_request']);
                    
44$request_info = intval($_GET['request_info']);
                    
86        $course_request_code = CourseRequestManager::get_course_request_code($delete_course_request);
                    
87        $result = CourseRequestManager::delete_course_request($delete_course_request);
                    
88        if ($result) {
                    
109                    }
                    
110                    $message = $success ? get_lang('SelectedCourseRequestsDeleted') : get_lang('SomeCourseRequestsNotDeleted');
                    
111                    $is_error_message = !$success;
                    
176    }
                    
177    $result .= '&nbsp;<a href="?delete_course_request='.$id.'">'.Display::return_icon('delete.gif', get_lang('DeleteThisCourseRequest'), array('style' => 'vertical-align: middle;', 'onclick' => 'javascript: if (!confirm(\''.addslashes(api_htmlentities(sprintf(get_lang('ACourseRequestWillBeDeleted'), $code), ENT_QUOTES)).'\')) return false;')).'</a>';
                    
178
                    
230$table->set_column_filter(6, 'modify_filter');
                    
231$table->set_form_actions(array('delete_course_requests' => get_lang('DeleteCourseRequests')), 'course_request');
                    
232$table->display();
                    
                
gecko.js https://bitbucket.org/ferOnti/processmaker.git | JavaScript | 293 lines
                    
14 * 
                    
15 * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php
                    
16 */
                    
55		}
                    
56		else if(keyCode==46||keyCode==8) { // save to history when delete or backspace pressed
                    
57		 	CodePress.actions.history[CodePress.actions.next()] = editor.innerHTML;
                    
74		if(self.find(cc))
                    
75			window.getSelection().getRangeAt(0).deleteContents();
                    
76	},
                    
153	complete : function(trigger) {
                    
154		window.getSelection().getRangeAt(0).deleteContents();
                    
155		var complete = Language.complete;
                    
191			range.setEnd(range.endContainer, range.endOffset+1)
                    
192			range.deleteContents();
                    
193			return true;
                    
                
Form.php https://github.com/outlawscumbag/symfony.git | PHP | 390 lines
                    
1<?php
                    
2
                    
105    {
                    
106        if (!in_array($this->getMethod(), array('POST', 'PUT', 'DELETE'))) {
                    
107            return array();
                    
124    /**
                    
125     * Gets the field values as PHP.
                    
126     *
                    
127     * This method converts fields with th array notation
                    
128     * (like foo[bar] to arrays) like PHP does.
                    
129     *
                    
133     */
                    
134    public function getPhpValues()
                    
135    {
                    
142    /**
                    
143     * Gets the file field values as PHP.
                    
144     *
                    
                
JsonP.js https://bitbucket.org/gordonk66/testsenchatouch.git | JavaScript | 288 lines
                    
81 * The remote server side needs to be configured to return data in this format. Here are suggestions for how you might
                    
82 * achieve this using Java, PHP and ASP.net:
                    
83 *
                    
102 *
                    
103 * PHP:
                    
104 *
                    
227        return function(success, response, errorType) {
                    
228            delete me.lastRequest;
                    
229            me.processResponse(success, operation, request, response, callback, scope);
                    
251
                    
252        delete params.filters;
                    
253
                    
                
form.tpl https://bitbucket.org/enurkov/prestashop.git | Smarty Template | 273 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2012 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
60		
                    
61		function deleteCategoryReduction(id_category)
                    
62		{
                    
142						{
                    
143							$('#group_discount_category_table').append('<tr class="alt_row" id="'+jsonData.id_category+'"><td>'+jsonData.catPath+'</td><td>{l s='Discount:'}'+jsonData.discount+'{l s='%'}</td><td><a href="#" onclick="deleteCategoryReduction('+jsonData.id_category+');"><img src="../img/admin/delete.gif"></a></td></tr>');
                    
144							
                    
174						<td>
                    
175							<a href="#" onclick="deleteCategoryReduction({$category.id_category});"><img src="../img/admin/delete.gif"></a>
                    
176							<input type="hidden" class="category_reduction" name="category_reduction[{$category.id_category}]" value="{$category.reduction}">
                    
                
cURL.php https://gitlab.com/Slind/YOURLS | PHP | 349 lines
                    
1<?php
                    
2/**
                    
25	 *
                    
26	 * @var array cURL information array, see {@see http://php.net/curl_getinfo}
                    
27	 */
                    
223		$headers = Requests::flatten($headers);
                    
224		if (in_array($options['type'], array(Requests::HEAD, Requests::GET, Requests::DELETE)) & !empty($data)) {
                    
225			$url = self::format_get($url, $data);
                    
240				break;
                    
241			case Requests::DELETE:
                    
242				curl_setopt($this->fp, CURLOPT_CUSTOMREQUEST, 'DELETE');
                    
313	 * @param string $url
                    
314	 * @param array|object $data Data to build query using, see {@see http://php.net/http_build_query}
                    
315	 * @return string URL with data
                    
                
page.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 225 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Created by PhpStorm.
                    
4 * User: ductoan1991
                    
22        </div>
                    
23        <?php if($this->data): ?>
                    
24            <div class="panel-body">
                    
35                        <tbody class="text-center">
                    
36                        <?php foreach($this->data as $item): ?>
                    
37                            <tr data-id="<?php echo $item->setting_id; ?>">
                    
37                            <tr data-id="<?php echo $item->setting_id; ?>">
                    
38                                <td><?php echo $item->setting_id; ?></td>
                    
39                                <td><?php echo $item->position; ?></td>
                    
39                                <td><?php echo $item->position; ?></td>
                    
40                                <td><?php echo $item->title; ?></td>
                    
41                                <td class="text-center">
                    
                
index.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 272 lines
                    
67        }
                    
68        redirect($redirect, get_string('deleted'));
                    
69        break;
                    
182
                    
183    $strdelete   = get_string('delete');
                    
184    $strmoveup   = get_string('moveup');
                    
199        $editstr .= ' href="index.php?id='.$category->id.'&amp;action=deletecategory&amp;sesskey='.sesskey() . '">';
                    
200        $editstr .= $OUTPUT->pix_icon('t/delete', $strdelete).'</a> ';
                    
201    } else {
                    
233
                    
234    $strdelete   = get_string('delete');
                    
235    $strmoveup   = get_string('moveup');
                    
246    // Delete.
                    
247    $editstr .= '<a title="'.$strdelete.'" href="index.php?id='.$field->id.'&amp;action=deletefield&amp;sesskey='.sesskey().'">';
                    
248    $editstr .= $OUTPUT->pix_icon('t/delete', $strdelete) . '</a> ';
                    
                
projectteam.php https://gitlab.com/julienv/joomleague | PHP | 394 lines
                    
1<?php
                    
2/**
                    
3* @copyright	Copyright (C) 2006-2014 joomleague.at. All rights reserved.
                    
4* @license		GNU/GPL, see LICENSE.php
                    
5* Joomla! is free software. This version may have been modified pursuant
                    
8* other free or open source software licenses.
                    
9* See COPYRIGHT.php for copyright notices and details.
                    
10*/
                    
55		if ($model->isCheckedOut($user->get('id'))) {
                    
56			$this->setRedirect('index.php?option=com_joomleague&task=projectteam.display&view=projectteams', JText::_('EDITED BY ANOTHER ADMIN'));
                    
57		}
                    
97	    }	
                    
98	    $link = 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display';
                    
99	  	$this->setRedirect($link, $msg);  
                    
174
                    
175		$link = 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display';
                    
176		$this->setRedirect($link, $msg);
                    
                
file_helper.php https://gitlab.com/lisit1003/TTPHPServer | 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 *
                    
106/**
                    
107 * Delete Files
                    
108 *
                    
108 *
                    
109 * Deletes all files contained in the supplied directory path.
                    
110 * Files must be writable or owned by the system in order to be deleted.
                    
115 * @param	string	path to file
                    
116 * @param	bool	whether to delete any directories found in the path
                    
117 * @return	bool
                    
118 */
                    
119if ( ! function_exists('delete_files'))
                    
120{
                    
                
Cache.php https://github.com/cawago/ci_campusync_auth.git | PHP | 416 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.phpdoctrine.org
                    
223    /**
                    
224     * Delete all cache
                    
225     *
                    
253
                    
254                $this->_driver->delete($hash);
                    
255            }
                    
                
Calendar.php https://bitbucket.org/freshflow/sabredav-1.8.5-fork.git | PHP | 376 lines
                    
1<?php
                    
2
                    
197    /**
                    
198     * Deletes the calendar.
                    
199     *
                    
201     */
                    
202    public function delete() {
                    
203
                    
203
                    
204        $this->caldavBackend->deleteCalendar($this->calendarInfo['id']);
                    
205
                    
                
AdminAttachmentsController.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 256 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-2016 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
                    
43        $this->addRowAction('view');
                    
44        $this->addRowAction('delete');
                    
45
                    
73        $this->bulk_actions = array(
                    
74            'delete' => array(
                    
75                'text' => $this->l('Delete selected'),
                    
76                'icon' => 'icon-trash',
                    
77                'confirm' => $this->l('Delete selected items?')
                    
78            )
                    
                
main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 371 lines
                    
1<?php
                    
2/*
                    
234	public function onImageDeletion(ImageDeletionEvent $event) {
                    
235		$event->image->delete_tags_from_image();
                    
236	}
                    
301				log_info("tag_edit", "No images found with target tag, doing in-place rename");
                    
302				$database->execute("DELETE FROM tags WHERE tag=:replace",
                    
303					array("replace" => $replace_set[0]));
                    
                
cat_msproduct_get.php https://gitlab.com/ptisky/API_prestashop | PHP | 311 lines
                    
1<?php

                    
2/**

                    
33			FROM "._DB_PREFIX_."shop

                    
34			WHERE deleted!='1'

                    
35			ORDER BY name";

                    
                
trackBlobs.php https://github.com/daevid/MWFork.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
28if ( count( $args ) < 1 ) {
                    
29	echo "Usage: php trackBlobs.php <cluster> [... <cluster>]\n";
                    
30	echo "Adds blobs from a given ES cluster to the blob_tracking table\n";
                    
30	echo "Adds blobs from a given ES cluster to the blob_tracking table\n";
                    
31	echo "Automatically deletes the tracking table and starts from the start again when restarted.\n";
                    
32
                    
82			echo "Integrity check failed: found HistoryBlobStub objects in your text table.\n" .
                    
83				"This script could destroy these objects if it continued. Run resolveStubs.php\n" .
                    
84				"to fix this.\n";
                    
97			echo "Integrity check failed: found external storage pointers in your archive table.\n" .
                    
98				"Run normaliseArchiveTable.php to fix this.\n";
                    
99			exit( 1 );
                    
102				"These objects are probably already broken, continuing would make them\n" .
                    
103				"unrecoverable. Run \"normaliseArchiveTable.php --fix-cgz-bug\" to fix this.\n";
                    
104			exit( 1 );
                    
                
CsrfComponentTest.php https://gitlab.com/vannh/portal_training | PHP | 308 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
88        return [
                    
89            ['PATCH'], ['PUT'], ['POST'], ['DELETE']
                    
90        ];
                    
                
provider.php https://bitbucket.org/moodle/moodle.git | PHP | 259 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
183    /**
                    
184     * Delete all data for all users in the specified context.
                    
185     *
                    
185     *
                    
186     * @param   context $context The specific context to delete data for.
                    
187     */
                    
187     */
                    
188    public static function delete_data_for_all_users_in_context(\context $context) {
                    
189        global $DB;
                    
196
                    
197        $DB->delete_records('repository_onedrive_access', ['usermodified' => $userid]);
                    
198    }
                    
200    /**
                    
201     * Delete all user data for the specified user, in the specified contexts.
                    
202     *
                    
                
Ion_auth.php https://github.com/aletaschile/CodeIgniter-Ion-Auth.git | PHP | 375 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
17*
                    
18* Requirements: PHP5 or above
                    
19*
                    
290
                    
291		//delete the remember me cookies if they exist
                    
292		if (get_cookie('identity'))
                    
293		{
                    
294			delete_cookie('identity');
                    
295		}
                    
297		{
                    
298			delete_cookie('remember_code');
                    
299		}
                    
                
js.js https://gitlab.com/edward.pattillo/phpCourseExamples | JavaScript | 363 lines
                    
4  $('#mainSearch').focus();
                    
5  $('#delete').hide();
                    
6  $('#update').hide();
                    
181    
                    
182    $('#delete').show();
                    
183    $('#update').show();    
                    
213   
                    
214  $('#delete').click(function() {
                    
215  
                    
215  
                    
216    formData.append('action', 'delete');
                    
217    
                    
240      // specifices where the AJAX request will be sent to on the server
                    
241      url: "ajaxSubmit.php",
                    
242
                    
                
author.php https://gitlab.com/mucill/majalengka | PHP | 264 lines
                    
1<?php
                    
2/**
                    
38require SIMBIO.'simbio_GUI/table/simbio_table.inc.php';
                    
39require SIMBIO.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php';
                    
40require SIMBIO.'simbio_GUI/paging/simbio_paging.inc.php';
                    
40require SIMBIO.'simbio_GUI/paging/simbio_paging.inc.php';
                    
41require SIMBIO.'simbio_DB/datagrid/simbio_dbgrid.inc.php';
                    
42require SIMBIO.'simbio_DB/simbio_dbop.inc.php';
                    
119    } else {
                    
120        utility::jsAlert(__('Some or All Data NOT deleted successfully!\nPlease contact system administrator'));
                    
121        echo '<script type="text/javascript">parent.jQuery(\'#mainContent\').simbioAJAX(\''.$_SERVER['PHP_SELF'].'?'.$_POST['lastQueryStr'].'\');</script>';
                    
135	  <div class="btn-group">
                    
136      <a href="<?php echo MWB; ?>master_file/author.php" class="btn btn-default"><i class="glyphicon glyphicon-list-alt"></i>&nbsp;<?php echo __('Author List'); ?></a>
                    
137      <a href="<?php echo MWB; ?>master_file/author.php?action=detail" class="btn btn-default"><i class="glyphicon glyphicon-plus"></i>&nbsp;<?php echo __('Add New Author'); ?></a>
                    
138	  </div>
                    
139    <form name="search" action="<?php echo MWB; ?>master_file/author.php" id="search" method="get" style="display: inline;"><?php echo __('Search'); ?> :
                    
140    <input type="text" name="keywords" size="30" />
                    
                
Database.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 350 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        $adapter = $this->_getWriteAdapter();
                    
158        $adapter->delete($this->getMainTable());
                    
159
                    
289    /**
                    
290     * Delete files that starts with given $folderName
                    
291     *
                    
293     */
                    
294    public function deleteFolder($folderName = '')
                    
295    {
                    
                
Database.php https://github.com/rgranadino/magento-mirror.git | PHP | 350 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) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
157        $adapter = $this->_getWriteAdapter();
                    
158        $adapter->delete($this->getMainTable());
                    
159
                    
289    /**
                    
290     * Delete files that starts with given $folderName
                    
291     *
                    
293     */
                    
294    public function deleteFolder($folderName = '')
                    
295    {
                    
                
Api.php https://github.com/rgranadino/magento-mirror.git | PHP | 335 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) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
313    /**
                    
314     * Delete product
                    
315     *
                    
318     */
                    
319    public function delete($productId, $identifierType = null)
                    
320    {
                    
327        try {
                    
328            $product->delete();
                    
329        } catch (Mage_Core_Exception $e) {
                    
                
emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
                    
1<?php defined('_JEXEC') or die('Restricted access'); ?>
                    
2<?php
                    
20    2010-06-16  Added static caching for less processing overhead in situations where multiple emogrification takes place
                    
21    2010-07-26  Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott!
                    
22    2010-09-03  Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted
                    
140        $nodes = $xpath->query('//*[contains(translate(@style," ",""),"display:none")]');
                    
141        // the checks on parentNode and is_callable below are there to ensure that if we've deleted the parent node,
                    
142        // we don't try to call removeChild on a nonexistent child node
                    
                
class-ms-model-customposttype.php https://gitlab.com/najomie/fit-hippie | PHP | 471 lines
                    
1<?php
                    
2/**
                    
16	 *
                    
17	 * Both static and class property are used to handle php 5.2 limitations.
                    
18	 * Override this value in child object.
                    
246	/**
                    
247	 * Delete post from wp table
                    
248	 *
                    
252	 */
                    
253	public function delete() {
                    
254		MS_Factory::select_blog();
                    
254		MS_Factory::select_blog();
                    
255		do_action( 'MS_Model_CustomPostType_delete_before', $this );
                    
256		$res = false;
                    
258		if ( ! empty( $this->id ) ) {
                    
259			$res = ( false !== wp_delete_post( $this->id, true ) );
                    
260		}
                    
                
components.rst https://bitbucket.org/cakephp/docs.git | ReStructuredText | 260 lines
                    
6задуматься над созданием  компонентам, в котором будет описана часто используемая логика.
                    
7В CakePHP есть фантастический набор основных компонентов, которые упрощают 
                    
8работу с такими задачами:
                    
71pretty simple.  Each component you use is exposed as a property on your
                    
72controller.  If you had loaded up the :php:class:`SessionComponent` and
                    
73the :php:class:`CookieComponent` in your controller, you could access
                    
78        
                    
79        public function delete() {
                    
80            if ($this->Post->delete($this->request->data('Post.id')) {
                    
80            if ($this->Post->delete($this->request->data('Post.id')) {
                    
81                $this->Session->setFlash('Post deleted.');
                    
82                $this->redirect(array('action' => 'index'));
                    
119The first step is to create a new component file and class. Create
                    
120the file in ``/app/Controller/Component/MathComponent.php``. The basic
                    
121structure for the component would look something like this::
                    
                
en_us.lang.php https://github.com/albertobraschi/SuperSweetAdmin.git | PHP | 159 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
63	'LBL_EMAIL_DEFAULT_EDITOR'					=> 'Compose email using this client',
                    
64	'LBL_EMAIL_DEFAULT_DELETE_ATTACHMENTS'		=> 'Delete related notes & attachments with deleted Emails',
                    
65	'LBL_EMAIL_GMAIL_DEFAULTS'					=> 'Prefill Gmail&#153; Defaults',
                    
84	'LBL_LOCATION_ONLY'							=> 'Location',
                    
85	'LBL_LOCATION_TRACK'						=> 'Location of campaign tracking files (like campaign_tracker.php)',
                    
86    'LBL_CAMP_MESSAGE_COPY'                     => 'Keep copies of campaign messages:',
                    
124	'LBL_VIEW_QUEUED_EMAILS'					=> 'View Queued Emails',
                    
125	'TRACKING_ENTRIES_LOCATION_DEFAULT_VALUE'	=> 'Value of Config.php setting site_url',
                    
126	'TXT_REMOVE_ME_ALT'							=> 'To remove yourself from this email list go to',
                    
                
Protection.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 581 lines
                    
4 *
                    
5 * Copyright (c) 2006 - 2015 PHPExcel
                    
6 *
                    
22 * @package    PHPExcel_Worksheet
                    
23 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
33 * @package    PHPExcel_Worksheet
                    
34 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
334     * @param boolean $pValue
                    
335     * @return PHPExcel_Worksheet_Protection
                    
336     */
                    
488     * @param boolean $pValue
                    
489     * @return PHPExcel_Worksheet_Protection
                    
490     */
                    
                
WishlistController.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 326 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) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
173            try {
                    
174                $item->delete();
                    
175                $wishlist->save();
                    
200            foreach ($items as $item) {
                    
201                $item->delete();
                    
202            }
                    
309            ) {
                    
310                $item->delete();
                    
311
                    
                
Database.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 350 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) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
157        $adapter = $this->_getWriteAdapter();
                    
158        $adapter->delete($this->getMainTable());
                    
159
                    
289    /**
                    
290     * Delete files that starts with given $folderName
                    
291     *
                    
293     */
                    
294    public function deleteFolder($folderName = '')
                    
295    {
                    
                
ProjectsRegionsJobs.php https://gitlab.com/Anas7232/Layout-Changes | PHP | 211 lines
                    
1<?php
                    
2/*
                    
48  /**
                    
49   * Deletes the job from the project. If the job is active, the delete fails, and
                    
50   * the response returns FAILED_PRECONDITION. (jobs.delete)
                    
59   */
                    
60  public function delete($projectId, $region, $jobId, $optParams = array())
                    
61  {
                    
63    $params = array_merge($params, $optParams);
                    
64    return $this->call('delete', array($params), "Google_Service_Dataproc_DataprocEmpty");
                    
65  }
                    
                
Object.js https://github.com/stephaneerard/qooxdoo.git | JavaScript | 359 lines
                    
11     LGPL: http://www.gnu.org/licenses/lgpl.html
                    
12     EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
13     See the LICENSE file in the project's top-level directory for details.
                    
280
                    
281      // delete the target in the targets reference
                    
282      for (var i = 0; i < this.__targets.length; i++) {
                    
337          }
                    
338          // delete the entry and return
                    
339          currentListing.splice(i, 1);
                    
                
Cache.php https://github.com/abirmmu/codeigniter-cache.git | PHP | 431 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
108
                    
109		// See if we have this cached or delete if $expires is negative
                    
110		if($expires >= 0)
                    
115		{
                    
116			$this->delete($cache_file);
                    
117			return;
                    
223
                    
224		// Check cache expiration, delete and return FALSE when expired
                    
225		if ($use_expires && ! empty($this->_contents['__cache_expires']) && $this->_contents['__cache_expires'] < time())
                    
226		{
                    
227			$this->delete($filename);
                    
228			return FALSE;
                    
237
                    
238				// If dependency doesn't exist or is newer than this cache, delete and return FALSE
                    
239				if (! file_exists($this->_path.$dep.'.cache') or filemtime($this->_path.$dep.'.cache') > $cache_created)
                    
                
auth.php https://bitbucket.org/whiterabbitfl/ci_base.git | PHP | 333 lines
                    
1<?php
                    
2class Auth extends CI_Controller
                    
319			
                    
320			if ($this->dx_auth->get_permission_value('delete') != NULL AND $this->dx_auth->get_permission_value('delete'))
                    
321			{
                    
321			{
                    
322				echo 'Delete is allowed';
                    
323			}
                    
325			{
                    
326				echo 'Delete is not allowed';
                    
327			}
                    
                
dbcreate0.php https://bitbucket.org/simancms/simancms.git | PHP | 321 lines
                    
1<?php
                    
2	
                    
262				 `data_td_int` INT UNSIGNED NULL DEFAULT NULL,
                    
263				 `deleteafter_td` int(10) unsigned NOT NULL DEFAULT '0',
                    
264				 KEY `type_td` (`type_td`,`identifier_td`)
                    
268			$inst['tables'][16]['result'] = $result;
                    
269			$sql = "ALTER  TABLE ".$tableprefix."tempdata ADD INDEX ( `deleteafter_td` ) ;";
                    
270			$result = execsql($sql);
                    
                
CMssqlCommandBuilder.php https://bitbucket.org/haichau59/manga.git | PHP | 338 lines
                    
1<?php
                    
2/**
                    
108	/**
                    
109	 * Creates a DELETE command.
                    
110	 * Override parent implementation to check if an orderby clause if specified when querying with an offset
                    
112	 * @param CDbCriteria $criteria the query criteria
                    
113	 * @return CDbCommand delete command.
                    
114	 */
                    
114	 */
                    
115	public function createDeleteCommand($table,$criteria)
                    
116	{
                    
117		$criteria=$this->checkCriteria($table, $criteria);
                    
118		return parent::createDeleteCommand($table, $criteria);
                    
119	}
                    
                
SecurityControllerCatalog.php https://bitbucket.org/xsngroup/estadisticas.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
16 */
                    
17require_once "lib/db/Catalog.php";
                    
18require_once "application/models/beans/SecurityController.php";
                    
18require_once "application/models/beans/SecurityController.php";
                    
19require_once "application/models/exceptions/SecurityControllerException.php";
                    
20require_once "application/models/collections/SecurityControllerCollection.php";
                    
20require_once "application/models/collections/SecurityControllerCollection.php";
                    
21require_once "application/models/factories/SecurityControllerFactory.php";
                    
22
                    
189     */
                    
190    public function delete($securityController)
                    
191    {
                    
193            throw new SecurityControllerException("passed parameter isn't a SecurityController instance");
                    
194        $this->deleteById($securityController->getIdController());
                    
195    }
                    
                
browser.py https://github.com/geoffl/miro.git | Python | 281 lines
                    
25# exception, you may extend this exception to your version of the file(s),
                    
26# but you are not obligated to do so. If you do not wish to do so, delete
                    
27# this exception statement from your version. If you delete this exception
                    
27# this exception statement from your version. If you delete this exception
                    
28# statement from all source files in the program, then also delete it here.
                    
29
                    
46class Browser(Widget):
                    
47    """See https://develop.participatoryculture.org/index.php/WidgetAPI for a description of the API for this class."""
                    
48    def __init__(self):
                    
                
dynamicformfieldvalues.class.php https://github.com/pijulius/jcore.git | PHP | 458 lines
                    
71		$orders = null;
                    
72		$delete = null;
                    
73		$edit = null;
                    
82		if (isset($_GET['delete']))
                    
83			$delete = (int)$_GET['delete'];
                    
84
                    
108
                    
109		if ($delete) {
                    
110			if (!$this->delete($id))
                    
202			"<td align='center'>" .
                    
203				"<a class='admin-link delete confirm-link' " .
                    
204					"title='".htmlchars(__("Delete"), ENT_QUOTES)."' " .
                    
295		if (isset($_GET['delete']))
                    
296			$delete = (int)$_GET['delete'];
                    
297
                    
                
Interface.js https://github.com/Wkasel/qooxdoo.git | JavaScript | 523 lines
                    
11     LGPL: http://www.gnu.org/licenses/lgpl.html
                    
12     EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
13     See the LICENSE file in the project's top-level directory for details.
                    
412      var def = qx.lang.Object.clone(classDef);
                    
413      delete (def.members);
                    
414
                    
423      var def = qx.lang.Object.clone(classDef);
                    
424      delete (def.properties);
                    
425
                    
                
ApiTest.php https://bitbucket.org/ZephyrQG2/sf2bundleeditable.git | PHP | 311 lines
                    
1<?php
                    
2require_once dirname(__FILE__).'/config.php';
                    
2require_once dirname(__FILE__).'/config.php';
                    
3require_once dirname(__FILE__).'/../../uploadcare/lib/5.2/Uploadcare.php';
                    
4
                    
4
                    
5class ApiTest extends PHPUnit_Framework_TestCase
                    
6{
                    
33    $this->assertTrue(REQUEST_TYPE_PUT == 'put');
                    
34    $this->assertTrue(REQUEST_TYPE_DELETE == 'delete');
                    
35    $this->assertTrue(REQUEST_TYPE_GET == 'get');
                    
110    try {
                    
111      $api->request('DELETE', '/');
                    
112      $this->fail('We must get an exception but everything worked fine!');
                    
153    try {
                    
154      $api->request('DELETE', '/account/');
                    
155      $this->fail('We must get an exception but everything worked fine!');
                    
                
profile.php https://github.com/fluxbb/langs.git | PHP | 141 lines
                    
47'Partial upload'				=>	'O ficheiro seleccionado foi apenas parcialmente enviado. Por favor tente novamente.',
                    
48'No tmp directory'				=>	'O PHP n&#227;o pode guardar o ficheiro enviado num local tempor&#225;rio.',
                    
49'No file'						=>	'Voc&#234; n&#227;o seleccionou um ficheiro para enviar.',
                    
57'Avatar upload redirect'		=>	'Avatar enviado. Redireccionando &#8230;',
                    
58'Avatar deleted redirect'		=>	'Avatar apagado. Redireccionando &#8230;',
                    
59'Avatar desc'					=>	'Um avatar &#233; uma pequena imagem que ser&#225; exibida abaixo do seu nome de usu&#225;rio nas suas mensagens. N&#227;o pode ser maior que',
                    
61'Upload avatar legend'			=>	'Escolha um ficheiro para enviar e usar como avatar',
                    
62'Delete avatar'					=>	'Apagar avatar', // only for admins
                    
63'File'							=>	'Ficheiro',
                    
126'Delete ban legend'				=>	'Apagar (administradores apenas) ou banir usu&#225;rio',
                    
127'Delete user'					=>	'Apagar usu&#225;rio',
                    
128'Ban user'						=>	'Banir usu&#225;rio',
                    
133'Delete posts'					=>	'Apagar quaisquer mensagens e t&#243;picos que este usu&#225;rio tenha criado.',
                    
134'Delete'						=>	'Apagar', // submit button (confirm user delete)
                    
135'User delete redirect'			=>	'Usu&#225;rio apagado. Redireccionando &#8230;',
                    
                
actions.class.php https://github.com/bb-dev/OpenPNE3.git | PHP | 347 lines
                    
1<?php
                    
2
                    
255 /**
                    
256  * Execute bannerdelete action
                    
257  *
                    
259  */
                    
260  public function executeBannerdelete(sfWebRequest $request)
                    
261  {
                    
270      $request->checkCSRFProtection();
                    
271      $banner->delete();
                    
272      $this->redirect('design/banner');
                    
                
settings.php https://github.com/mgsisk/webcomic.git | PHP | 459 lines
                    
106		function() {
                    
107			require __DIR__ . '/settings-inc-page.php';
                    
108		}
                    
131			$args = [
                    
132				'file'      => __DIR__ . '/settings-inc-section.php',
                    
133				'option'    => webcomic( 'option.components' ),
                    
139			if ( webcomic( 'option.uninstall' ) ) {
                    
140				$args['uninstall'] = __( 'Deactivating a component will delete all data related to it.', 'webcomic' );
                    
141			}
                    
187		'webcomic_general', [
                    
188			'file'      => __DIR__ . '/settings-inc-field-debug.php',
                    
189			'option'    => webcomic( 'option.debug' ),
                    
333	// Translators: The number of sites with the uninstall option enabled.
                    
334	webcomic_notice( sprintf( _n( 'Deactivating Webcomic will delete all data related to it on %s site.', 'Deactivating Webcomic will delete all data related to it on %s sites.', $uninstall, 'webcomic' ), number_format_i18n( $uninstall ) ), 'warning' );
                    
335}
                    
                
Version.php https://github.com/noelg/symfony-sandbox.git | PHP | 333 lines
                    
1<?php
                    
2/*
                    
28 *
                    
29 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
30 * @link        www.doctrine-project.org
                    
151        $this->configuration->createMigrationTable();
                    
152        $this->connection->executeQuery("DELETE FROM " . $this->configuration->getMigrationsTableName() . " WHERE version = ?", array($this->version));
                    
153    }
                    
                
Api.php https://github.com/guiohm/magento-french.git | PHP | 313 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) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
291    /**
                    
292     * Delete product
                    
293     *
                    
296     */
                    
297    public function delete($productId, $identifierType = null)
                    
298    {
                    
305        try {
                    
306            $product->delete();
                    
307        } catch (Mage_Core_Exception $e) {
                    
                
PermissibleAco.php https://github.com/kiang/olc_baker.git | PHP | 313 lines
                    
1<?php
                    
2
                    
105                if (!in_array($child, $keys)) {
                    
106                    $this->delete($id);
                    
107                    unset($children[$id]);
                    
263        foreach ($controllers[1] as $file) {
                    
264            if (substr($file, -14) === 'Controller.php') {
                    
265                $cont = Inflector::camelize(substr($file, 0, -4));
                    
291                foreach ($controllers[1] as $file) {
                    
292                    if (substr($file, -14) === 'Controller.php') {
                    
293                        $cont = Inflector::camelize(substr($file, 0, -4));
                    
                
provider.php https://github.com/CLAMP-IT/moodle.git | PHP | 237 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
166    /**
                    
167     * Delete all data for all users in the specified context.
                    
168     *
                    
168     *
                    
169     * @param context $context The specific context to delete data for.
                    
170     * @throws \dml_exception
                    
171     */
                    
172    public static function delete_data_for_all_users_in_context(context $context) {
                    
173        global $DB;
                    
181    /**
                    
182     * Delete all user data for the specified user, in the specified contexts.
                    
183     *
                    
183     *
                    
184     * @param request\approved_contextlist $contextlist The approved contexts and user information to delete information for.
                    
185     * @throws \dml_exception
                    
                
Api.php https://github.com/ticean/magento-mirror.git | PHP | 335 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) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
313    /**
                    
314     * Delete product
                    
315     *
                    
318     */
                    
319    public function delete($productId, $identifierType = null)
                    
320    {
                    
327        try {
                    
328            $product->delete();
                    
329        } catch (Mage_Core_Exception $e) {
                    
                
FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
                    
6 * @copyright  Copyright (c) 2004, 2010 David Grudl
                    
7 * @license    http://nettephp.com/license  Nette license
                    
8 * @link       http://nettephp.com
                    
26	 * 1) reading: open(r+b), lock(SH), read
                    
27	 *     - delete?: delete*, close
                    
28	 * 2) deleting: delete*
                    
228		$head = serialize($meta) . '?>';
                    
229		$head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head;
                    
230		$headLen = strlen($head);
                    
262	{
                    
263		$this->delete($this->getCacheFile($key));
                    
264	}
                    
292				if ($all) {
                    
293					$this->delete($path);
                    
294
                    
                
manage_vote_sites.php https://gitlab.com/Tamm/RFCP | PHP | 280 lines
                    
1<?php
                    
2
                    
29    }
                    
30    else if ($page == "delete" || $page == "delete_site")
                    
31    {
                    
32      $active_index = 2;
                    
33      $links[] = "<a href='#'>Delete Item</a>";
                    
34    }
                    
64        $out .= "<td style=\"text-align: center;\" nowrap><a href=\"" . $script_name . "?action=" . $_GET['action'] . "&page=addedit&vote_id=" . $row['vote_id'] . "\"  style=\"text-decoration: none;\">Edit</a></td>";
                    
65        $out .= "<td style=\"text-align: center;\" nowrap><a href=\"" . $script_name . "?action=" . $_GET['action'] . "&page=delete&vote_id=" . $row['vote_id'] . "\"  style=\"text-decoration: none;\">Delete</a></td>";
                    
66        $out .= "</tr>";
                    
220      }
                    
221      else if ($page == "delete")
                    
222      {
                    
230          $out .= "<form class=\"ink-form\" method=\"post\">";
                    
231          $out .= "<p style=\"text-align: center; font-weight: bold;\">Are you sure you want to DELETE the site: <u>" . antiject($attempt["rows"][$vote_id]['vote_site_name']) . "</u> (ID: " . $vote_id . ")?</p>";
                    
232          $out .= "<p style=\"text-align: center;\"><input type=\"hidden\" name=\"vote_id\" value=\"" . $vote_id . "\"/><input type=\"hidden\" name=\"page\" value=\"delete_site\"/><input type=\"submit\" name=\"yes\" value=\"Yes\"/> <input type=\"submit\" name=\"no\" value=\"No\"/></p>";
                    
                
Abstract.php https://github.com/hettema/Stages.git | PHP | 393 lines
                    
1<?php
                    
2/**
                    
292            if (!$this->_validate()) {
                    
293                $this->getCookie()->delete(session_name());
                    
294                return false;
                    
                
CMssqlCommandBuilder.php https://github.com/pittwt/myjackshop.git | PHP | 335 lines
                    
1<?php
                    
2/**
                    
18 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
                    
19 * @version $Id: CMssqlCommandBuilder.php 2821 2011-01-06 17:41:53Z qiang.xue $
                    
20 * @package system.db.schema.mssql
                    
105	/**
                    
106	 * Creates a DELETE command.
                    
107	 * Override parent implementation to check if an orderby clause if specified when querying with an offset
                    
109	 * @param CDbCriteria $criteria the query criteria
                    
110	 * @return CDbCommand delete command.
                    
111	 */
                    
111	 */
                    
112	public function createDeleteCommand($table,$criteria)
                    
113	{
                    
114		$criteria=$this->checkCriteria($table, $criteria);
                    
115		return parent::createDeleteCommand($table, $criteria);
                    
116	}
                    
                
FeedbackModule.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 409 lines
                    
1<?php
                    
2
                    
381                        'type' => AuthItem::TYPE_OPERATION,
                    
382                        'name' => 'Feedback.FeedbackBackend.Delete',
                    
383                        'description' => Yii::t('FeedbackModule.feedback', 'Removing feedback'),
                    
                
phplist.css https://github.com/condesan/infoandina.git | CSS | 236 lines
                    
60
                    
61.phphead,
                    
62a:active.phphead,
                    
62a:active.phphead,
                    
63a:link.phphead,
                    
64a:hover.phphead,
                    
64a:hover.phphead,
                    
65a:visited.phphead {font-size: 14px; color: #000000; font-style: normal; font-family: verdana, sans-serif; text-decoration: none; padding-left:20px;}
                    
66
                    
101
                    
102.delete {font-family: verdana, sans-serif;font-size : 11px; color : red;background-color : #DEDEB6; font-weight: bold; border-top: 1px black solid;  border-bottom: 1px black solid;display : block; text-align : right; text-decoration : none; padding: 2px;vertical-align : top; padding-left : 3px;}
                    
103
                    
103
                    
104a.deletelink,
                    
105a:link.deletelink,
                    
                
WishlistController.php https://github.com/arush/desparation-deprecated.git | PHP | 326 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) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
173            try {
                    
174                $item->delete();
                    
175                $wishlist->save();
                    
200            foreach ($items as $item) {
                    
201                $item->delete();
                    
202            }
                    
309            ) {
                    
310                $item->delete();
                    
311
                    
                
User.php https://github.com/redokes/Framework.git | PHP | 418 lines
                    
1<?php
                    
2class User_Model_User extends Redokes_Model_Model {
                    
167	
                    
168	function delete($doAudit = true) {
                    
169		return;
                    
178		// remove addresses
                    
179		$db->delete('user_address', 'userId = ' . $db->quote($this->row['userId']));
                    
180
                    
180
                    
181		parent::delete($doAudit);
                    
182	}
                    
389
                    
390			$userInvite->delete();
                    
391
                    
                
Listing_1.php https://gitlab.com/gothcon/cthulhu | PHP | 310 lines
                    
17							<th class="idCol"><a href="?<?php $this->printHeaderLink("id");?>"><?php echo $this->translate("resources/id");?></a></th>
                    
18							<th class="nameCol"><a href="?<?php $this->printHeaderLink("name")?>"><?php echo $this->translate("resources/name");?></a></th>
                    
19							<th class="typeCol"><a href="?<?php $this->printHeaderLink("type")?>"><?php echo $this->translate("resources/type");?></a></th>
                    
48						newUrl : "<?php $this->internalLink("resource","new?format=json");?>",
                    
49						deleteUrl : "<?php $this->internalLink("resource","{0}/delete?format=json");?>",
                    
50						typeListUrl : "<?php $this->internalLink("resource","?format=json");?>"
                    
190						function createDeleteButton(){
                    
191							var $deleteButton = $("<a href='#' class='submitButtonLink deleteButton'>"+ $.translate("general/delete")+"<span class='end'></span></a>");
                    
192							return $deleteButton;
                    
252									// create the delete button
                    
253									$deleteButton = createDeleteButton()
                    
254									// create the click callback
                    
269							return function(event){
                    
270								doAjaxDelete(deleteUrl,typeId,ajaxCallback);
                    
271								event.stopPropagation();
                    
                
%%18^180^180E8F63%%edit.tpl.php https://github.com/roycocup/Tests.git | PHP | 192 lines
                    
28						<?php endif; ?>
                    
29						<option <?php if ($this->_tpl_vars['posted']['client']['id'] == $this->_tpl_vars['client']->id): ?> selected <?php endif; ?>value="<?php echo $this->_tpl_vars['client']->id; ?>
                    
30"><?php echo $this->_tpl_vars['client']->name; ?>
                    
52						<?php endif; ?>
                    
53						<option <?php if ($this->_tpl_vars['posted']['jobId'] == $this->_tpl_vars['job']->job_id): ?> selected <?php endif; ?> value="<?php echo $this->_tpl_vars['job']->job_id; ?>
                    
54"><?php echo $this->_tpl_vars['job']->job_number; ?>
                    
107'); " /><?php endif; ?>
                    
108				Alter description (optional) <input type="text" name="editJob[thumbAlt]" class="medium" <?php if ($this->_tpl_vars['posted']['media']['thumbs']['0']['description'] != ''): ?> value="<?php echo $this->_tpl_vars['posted']['media']['thumbs']['0']['description']; ?>
                    
109" <?php endif; ?> />
                    
123				<div id="date">
                    
124					<input type="text" id="editJob[datePublished]" name="editJob[datePublished]" <?php if ($this->_tpl_vars['posted']['datePublished'] != ''): ?> value=<?php echo $this->_tpl_vars['posted']['datePublished']->tostring('dd/MM/YYYY'); ?>
                    
125 <?php endif; ?> />
                    
134?>
                    
135						<option <?php if ($this->_tpl_vars['posted']['status']->id == $this->_tpl_vars['state']['id']): ?> selected <?php endif; ?> value="<?php echo $this->_tpl_vars['state']['id']; ?>
                    
136"><?php echo $this->_tpl_vars['state']['name']; ?>
                    
                
tasklist.tpl https://github.com/temperatio/collabtive.git | Smarty Template | 300 lines
                    
37				{if $userpermissions.tasks.del}
                    
38				<li class="link"><a class="del" href="javascript:void(0);" onclick="confirmit('{#confirmdel#}','managetasklist.php?action=del&amp;tlid={$tasklist.ID}&amp;id={$project.ID}');" title="{#delete#}"></a></li>
                    
39				{/if}
                    
76					<a class="edit" href="#"><span>{#edit#}</span></a>
                    
77					<a class="del" href="#"><span>{#delete#}</span></a>
                    
78					-->
                    
144							</td>
                    
145							<td><a href="manageuser.php?action=profile&amp;tlid={$tasks[task].user_id}&amp;id={$project.ID}">{$tasks[task].user|truncate:23:"...":true}</a></td>
                    
146							<td>{$tasks[task].daysleft}</td>
                    
150								{if $userpermissions.tasks.del}
                    
151								<a class="tool_del" href="javascript:confirmfunction('{#confirmdel#}','deleteElement(\'task_{$tasks[task].ID}\',\'managetask.php?action=del&amp;tid={$tasks[task].ID}&amp;id={$project.ID}\')');"  title="{#delete#}"></a>
                    
152								{/if}
                    
233									{if $userpermissions.tasks.del}
                    
234									<a class="tool_del" href="javascript:confirmfunction('{#confirmdel#}','deleteElement(\'task_{$donetasks[donetask].ID}\',\'managetask.php?action=del&amp;tid={$donetasks[donetask].ID}&amp;id={$project.ID}\')');"  title="{#delete#}"></a>
                    
235									{/if}
                    
                
scanner.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 386 lines
                    
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          |
                    
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   +----------------------------------------------------------------------+
                    
17#ifndef incl_HPHP_PARSER_SCANNER_H_
                    
18#define incl_HPHP_PARSER_SCANNER_H_
                    
19
                    
27#include "hphp/util/exception.h"
                    
28#include "hphp/util/portability.h"
                    
29#include "hphp/parser/location.h"
                    
29#include "hphp/parser/location.h"
                    
30#include "hphp/parser/hphp.tab.hpp"
                    
31
                    
                
admin.php https://github.com/shamoons/pyrocms.git | PHP | 464 lines
                    
367	 * @access public
                    
368	 * @param int $id The ID of the user to delete
                    
369	 * @return void
                    
370	 */
                    
371	public function delete($id = 0)
                    
372	{
                    
380			{
                    
381				// Make sure the admin is not trying to delete themself
                    
382				if ($this->ion_auth->get_user()->id == $id)
                    
383				{
                    
384					$this->session->set_flashdata('notice', $this->lang->line('user_delete_self_error'));
                    
385					continue;
                    
396			{
                    
397				$this->session->set_flashdata('success', sprintf($this->lang->line('user_mass_delete_success'), $deleted, $to_delete));
                    
398			}
                    
                
report.php https://github.com/mkassaei/Moodle-Question-Engine-2.git | PHP | 245 lines
                    
1<?php
                    
2
                    
26
                    
27require_once($CFG->dirroot.'/mod/quiz/report/attemptsreport.php');
                    
28require_once($CFG->dirroot.'/mod/quiz/report/responses/responsessettings_form.php');
                    
28require_once($CFG->dirroot.'/mod/quiz/report/responses/responsessettings_form.php');
                    
29require_once($CFG->dirroot.'/mod/quiz/report/responses/responses_table.php');
                    
30
                    
61
                    
62        $reporturl = new moodle_url($CFG->wwwroot . '/mod/quiz/report.php', $pageoptions);
                    
63        $qmsubselect = quiz_report_qm_filter_select($quiz);
                    
102
                    
103        // We only want to show the checkbox to delete attempts
                    
104        // if the user has permissions and if the report mode is showing attempts.
                    
104        // if the user has permissions and if the report mode is showing attempts.
                    
105        $candelete = has_capability('mod/quiz:deleteattempts', $this->context)
                    
106                && ($attemptsmode != QUIZ_REPORT_ATTEMPTS_STUDENTS_WITH_NO);
                    
                
Ftp.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 660 lines
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
393			{
                    
394				$this->_error('ftp_unable_to_delete');
                    
395			}
                    
404	/**
                    
405	 * Delete a folder and recursively delete everything (including sub-folders)
                    
406	 * containted within it.
                    
428				// If we can't delete the item it's probaly a folder so
                    
429				// we'll recursively call delete_dir()
                    
430				if ( ! @ftp_delete($this->conn_id, $item))
                    
431				{
                    
432					$this->delete_dir($item);
                    
433				}
                    
                
_toolbar.php https://github.com/schmunk42/p3media.git | PHP | 226 lines
                    
61            <div class="btn-group">
                    
62                <?php
                    
63                $this->widget(
                    
79            <div class="btn-group">
                    
80                <?php
                    
81                $this->widget(
                    
126                        ),
                    
127                        "visible" => $showDeleteButton && (Yii::app()->user->checkAccess(
                    
128                                    "P3media.P3MediaTranslation.*"
                    
128                                    "P3media.P3MediaTranslation.*"
                    
129                                ) || Yii::app()->user->checkAccess("P3media.P3MediaTranslation.Delete"))
                    
130                    )
                    
219    <div class="search-form" style="display:none">
                    
220    <?php Yii::beginProfile('P3MediaTranslation.view.toolbar.search'); ?>    <?php $this->renderPartial(
                    
221        '_search',
                    
225<?php endif; ?>
                    
226<?php Yii::endProfile('P3MediaTranslation.view.toolbar'); ?>
                    
                
Page.php https://github.com/bblc/tomatocms208v1.git | PHP | 297 lines
                    
1<?php
                    
2/**
                    
16 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
                    
17 * @version 	$Id: Page.php 4891 2010-08-24 20:06:55Z huuphuoc $
                    
18 * @since		2.0.5
                    
142	
                    
143	public function delete($page)
                    
144	{
                    
144	{
                    
145		$sql = sprintf("DELETE FROM " . $this->_prefix . "page  
                    
146						WHERE page_id = '%s'",
                    
                
CreationMinerais.php https://github.com/Canop/braldahim.git | PHP | 340 lines
                    
1<?php
                    
2
                    
67				if ($nb == $limit) {
                    
68					$filonTable->delete($where);
                    
69					$nb = 0;
                    
74			if ($where != "") {
                    
75				$filonTable->delete($where);
                    
76			}
                    
79		if ($where != "") {
                    
80			$filonTable->delete($where);
                    
81		}
                    
112				if ($nb == $limit) {
                    
113					$filonTable->delete($where);
                    
114					$nb = 0;
                    
119			if ($where != "") {
                    
120				$filonTable->delete($where);
                    
121			}
                    
                
LayoutEditorAction.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 349 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * @file classes/submission/layoutEditor/LayoutEditorAction.inc.php
                    
9 *
                    
18
                    
19// $Id: LayoutEditorAction.inc.php,v 1.38.2.1 2009/04/08 19:42:50 asmecher Exp $
                    
20
                    
47	/**
                    
48	 * Delete a galley.
                    
49	 * @param $article object
                    
51	 */
                    
52	function deleteGalley($article, $galleyId) {
                    
53		import('file.ArticleFileManager');
                    
57
                    
58		if (isset($galley) && !HookRegistry::call('LayoutEditorAction::deleteGalley', array(&$article, &$galley))) {
                    
59			$articleFileManager = &new ArticleFileManager($article->getArticleId());
                    
                
group.php https://github.com/itamart/moodle.git | PHP | 183 lines
                    
50$string['defaultgroupname'] = 'Group';
                    
51$string['deleteallgroupings'] = 'Delete all groupings';
                    
52$string['deleteallgroups'] = 'Delete all groups';
                    
52$string['deleteallgroups'] = 'Delete all groups';
                    
53$string['deletegroupconfirm'] = 'Are you sure you want to delete group \'{$a}\'?';
                    
54$string['deletegrouping'] = 'Delete grouping';
                    
54$string['deletegrouping'] = 'Delete grouping';
                    
55$string['deletegroupingconfirm'] = 'Are you sure you want to delete grouping \'{$a}\'? (Groups in the grouping are not deleted.)';
                    
56$string['deletegroupsconfirm'] = 'Are you sure you want to delete the following groups?';
                    
56$string['deletegroupsconfirm'] = 'Are you sure you want to delete the following groups?';
                    
57$string['deleteselectedgroup'] = 'Delete selected group';
                    
58$string['editgroupingsettings'] = 'Edit grouping settings';
                    
73$string['eventgroupcreated'] = 'Group created';
                    
74$string['eventgroupdeleted'] = 'Group deleted';
                    
75$string['eventgroupmemberadded'] = 'Group member added';
                    
                
actions.class.php https://github.com/appflower/appflower_engine.git | PHP | 558 lines
                    
1<?php
                    
2
                    
8 * @author     Your name here
                    
9 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
                    
10 */
                    
106
                    
107	public function executeDelete()
                    
108	{
                    
109
                    
110		$result = array('success' => true, 'message' => 'This is delete');
                    
111		$result = json_encode($result);
                    
444				$id = call_user_func(array($object,"getId"));
                    
445				$tmp = call_user_func(array($object,"get".$column["phpname"]));
                    
446				if(in_array($column["phpname"],$parser["foreign_keys"])) {
                    
521					
                    
522				if(method_exists($object,"get".$column["phpname"])) {
                    
523					$tmp = call_user_func(array($object,"get".$column["phpname"]));
                    
                
users.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 181 lines
                    
1<?php // $Id: users.php,v 1.26.2.18 2010/04/10 15:11:49 iarenaza Exp $
                    
2
                    
24    $temp->add(new admin_setting_configtext('alternateloginurl', get_string('alternateloginurl', 'auth'),
                    
25                                            get_string('alternatelogin', 'auth', htmlspecialchars($CFG->wwwroot.'/login/index.php')), ''));
                    
26    $temp->add(new admin_setting_configtext('forgottenpasswordurl', get_string('forgottenpasswordurl', 'auth'),
                    
49        foreach ($authbyname as $strauthname=>$authname) {
                    
50            if (file_exists($CFG->dirroot.'/auth/'.$authname.'/settings.php')) {
                    
51                // do not show disabled auths in tree, keep only settings link on manage page
                    
53                if ($ADMIN->fulltree) {
                    
54                    include($CFG->dirroot.'/auth/'.$authname.'/settings.php');
                    
55                }
                    
59            } else {
                    
60                $ADMIN->add('authsettings', new admin_externalpage('authsetting'.$authname, $strauthname, "$CFG->wwwroot/$CFG->admin/auth_config.php?auth=$authname", 'moodle/site:config', !in_array($authname, $authsenabled)));
                    
61            }
                    
72    $ADMIN->add('accounts', new admin_externalpage('editusers', get_string('userlist','admin'), "$CFG->wwwroot/$CFG->admin/user.php", array('moodle/user:update', 'moodle/user:delete')));
                    
73    $ADMIN->add('accounts', new admin_externalpage('userbulk', get_string('userbulk','admin'), "$CFG->wwwroot/$CFG->admin/user/user_bulk.php", array('moodle/user:update', 'moodle/user:delete')));
                    
74    $ADMIN->add('accounts', new admin_externalpage('addnewuser', get_string('addnewuser'), "$securewwwroot/user/editadvanced.php?id=-1", 'moodle/user:create'));
                    
                
blocksadmin.inc.php https://github.com/severnaya99/Sg-2010.git | PHP | 260 lines
                    
1<?php
                    
2// $Id: main.php,v 1.12 2004/01/06 09:36:20 okazu Exp $
                    
3//  ------------------------------------------------------------------------ //
                    
45if ( isset($HTTP_GET_VARS['op']) ) {
                    
46	if ($HTTP_GET_VARS['op'] == "edit" || $HTTP_GET_VARS['op'] == "delete" || $HTTP_GET_VARS['op'] == "delete_ok" || $HTTP_GET_VARS['op'] == "clone" || $HTTP_GET_VARS['op'] == 'previewpopup') {
                    
47		$op = $HTTP_GET_VARS['op'];
                    
135	}
                    
136//	redirect_header("admin.php?fct=blocksadmin",1,_AM_DBUPDATED); GIJ
                    
137	redirect_header("myblocksadmin.php",1,_AM_DBUPDATED);
                    
152	$msg = myblocksadmin_update_block($bid, $bside, $bweight, $bvisible, $btitle, $bcontent, $bctype, $bcachetime, $bmodule, $options); // GIJ c
                    
153	redirect_header('myblocksadmin.php',1,$msg); // GIJ +
                    
154}
                    
156
                    
157if ( $op == "delete_ok" ) {
                    
158    delete_block_ok($bid);
                    
                
Relationship.php https://github.com/michaelmcandrew/cic.git | PHP | 311 lines
                    
1<?php
                    
2
                    
45
                    
46require_once 'api/utils.php';
                    
47
                    
47
                    
48require_once 'CRM/Contact/BAO/Relationship.php';
                    
49require_once 'CRM/Contact/BAO/RelationshipType.php';
                    
72    $targetContact          = $target_contact->id;
                    
73    require_once 'CRM/Contact/DAO/RelationshipType.php';
                    
74    $reletionType = & new CRM_Contact_DAO_RelationshipType();
                    
98    $params['contact_check'] = array ( $targetContact => $targetContact) ;
                    
99    require_once 'CRM/Contact/BAO/Relationship.php';
                    
100    
                    
149    
                    
150    require_once 'CRM/Contact/BAO/Relationship.php';
                    
151    $contactID = $contact_a->id;
                    
                
policy.inc.php https://github.com/opengeek/revolution.git | PHP | 81 lines
                    
1<?php
                    
2/**
                    
17$_lang['permission_err_ns'] = 'ไม่ได้ระบุสิทธิ์การใช้งาน';
                    
18$_lang['permission_err_remove'] = 'An error occurred while trying to delete this permission.';
                    
19$_lang['permission_err_save'] = 'เกิดข้อผิดพลาดขณะที่พยายามบันทึกสิทธิ์การใช้งานนี้';
                    
21$_lang['permission_remove'] = 'ลบสิทธิ์การใช้งาน';
                    
22$_lang['permission_remove_confirm'] = 'Are you sure you want to delete this permission?';
                    
23$_lang['permission_update'] = 'Edit Permission';
                    
57$_lang['policy_template'] = 'แม่แบบนโยบาย';
                    
58$_lang['policy_template.desc'] = 'A Policy Template defines which Permissions will show up in the Permissions grid when editing a specific Policy. You can add or delete specific Permissions from this template below. Note that deleting a Permission from a Template will delete it from any Policies that use this Template.';
                    
59$_lang['policy_template_create'] = 'สร้างแม่แบบนโยบาย';
                    
74$_lang['policy_template_remove'] = 'ลบแม่แบบนโยบาย';
                    
75$_lang['policy_template_remove_confirm'] = 'Are you sure you want to delete this Policy Template? It will delete all Policies attached to this Template as well - this could break your MODX installation if any active Policies are attached to this Template.';
                    
76$_lang['policy_template_remove_multiple'] = 'ลบแม่แบบนโยบายที่เลือก';
                    
76$_lang['policy_template_remove_multiple'] = 'ลบแม่แบบนโยบายที่เลือก';
                    
77$_lang['policy_template_remove_multiple_confirm'] = 'Are you sure you want to delete these Policy Templates? It will delete all Policies attached to these Templates as well - this could break your MODX installation if any active Policies are attached to these Templates.';
                    
78$_lang['policy_template_update'] = 'Edit Policy Template';
                    
                
ichiring.c https://github.com/baoilleach/openbabel-svn-mirror.git | C | 336 lines
                    
14 * Foundation:
                    
15 * http://www.opensource.org/licenses/lgpl-2.1.php
                    
16 */
                    
150
                    
151QUEUE *QueueDelete( QUEUE *q )
                    
152{
                    
305        inchi_free ( cSource );
                    
306    QueueDelete( q );
                    
307*/
                    
                
ExtensionManagementUtilityTest.php https://github.com/andreaswolf/TYPO3.CMS.git | PHP | 277 lines
                    
1<?php
                    
2namespace TYPO3\CMS\Core\Tests\Unit\Utility;
                    
59     * @param array $packageMethods
                    
60     * @return PackageManager|\PHPUnit_Framework_MockObject_MockObject
                    
61     */
                    
65        GeneralUtility::mkdir_deep($packagePath);
                    
66        $this->testFilesToDelete[] = $packagePath;
                    
67        $package = $this->getMockBuilder(Package::class)
                    
118        $packageName = $this->getUniqueId('foo');
                    
119        /** @var PackageManager|\PHPUnit_Framework_MockObject_MockObject $packageManager */
                    
120        $packageManager = $this->getMockBuilder(PackageManager::class)
                    
139                ->getMock();
                    
140        /** @var PackageManager|\PHPUnit_Framework_MockObject_MockObject $packageManager */
                    
141        $packageManager = $this->getMockBuilder(PackageManager::class)
                    
209                ->will($this->returnValue($extensionKey));
                    
210        /** @var PackageManager|\PHPUnit_Framework_MockObject_MockObject $packageManager */
                    
211        $packageManager = $this->getMockBuilder(PackageManager::class)
                    
                
view.php https://github.com/Br3nda/mahara.git | PHP | 273 lines
                    
37require_once(get_config('docroot') . 'interaction/lib.php');
                    
38require_once('pieforms/pieform.php');
                    
39
                    
50    FROM {interaction_instance} f
                    
51    INNER JOIN {group} g ON (g.id = f."group" AND g.deleted = ?)
                    
52    LEFT JOIN {interaction_forum_topic} t ON (t.forum = f.id AND t.deleted != 1 AND t.sticky != 1)
                    
94    // check that user is only messing with topics from this forum
                    
95    $alltopics = get_column('interaction_forum_topic', 'id', 'forum', $forumid, 'deleted', 0);
                    
96    if ($checked == array_intersect($checked, $alltopics)) { // $checked is a subset of the topics in this forum
                    
125        else if ($type == 'unsubscribe' && !$forum->subscribed) {
                    
126            delete_records_sql('DELETE FROM {interaction_forum_subscription_topic}
                    
127                WHERE topic IN (' . implode($checked, ',') . ') AND "user" = ?',
                    
217$pagination = build_pagination(array(
                    
218    'url' => get_config('wwwroot') . 'interaction/forum/view.php?id=' . $forumid,
                    
219    'count' => $forum->topiccount,
                    
                
Request.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 397 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 */
                    
186        if ($store->getWebsite()->getDefaultStore()->getId() == $store->getId()) {
                    
187            $this->_app->getCookie()->delete(Mage_Core_Model_Store::COOKIE_NAME);
                    
188        } else {
                    
                
wp-diff.php https://github.com/shlomsky/lim.git | PHP | 478 lines
                    
1<?php
                    
2/**
                    
12	/** Text_Diff class */
                    
13	require( dirname(__FILE__).'/Text/Diff.php' );
                    
14	/** Text_Diff_Renderer class */
                    
14	/** Text_Diff_Renderer class */
                    
15	require( dirname(__FILE__).'/Text/Diff/Renderer.php' );
                    
16	/** Text_Diff_Renderer_inline class */
                    
16	/** Text_Diff_Renderer_inline class */
                    
17	require( dirname(__FILE__).'/Text/Diff/Renderer/inline.php' );
                    
18}
                    
62	/**
                    
63	 * PHP4 Constructor - Call parent constructor with params array.
                    
64	 *
                    
110	 */
                    
111	function deletedLine( $line ) {
                    
112		return "<td>-</td><td class='diff-deletedline'>{$line}</td>";
                    
                
manager.php https://gitlab.com/alexprowars/bitrix | PHP | 507 lines
                    
1<?php
                    
2
                    
267
                    
268	public static function deleteScript($id): Main\Result
                    
269	{
                    
281		{
                    
282			\CBPWorkflowTemplateLoader::getLoader()->deleteTemplate($script['WORKFLOW_TEMPLATE_ID']);
                    
283			Entity\ScriptTable::delete($id);
                    
283			Entity\ScriptTable::delete($id);
                    
284			Entity\ScriptQueueTable::deleteByScript($id);
                    
285
                    
338
                    
339	public static function deleteQueue(int $queueId, int $userId)
                    
340	{
                    
340	{
                    
341		ScriptQueueTable::delete($queueId);
                    
342		ScriptQueueDocumentTable::deleteByQueue($queueId);
                    
                
PdfTest.php https://github.com/pschuele/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
9 * @author      Philipp Schuele <p.schuele@metaways.de>
                    
10 * @version     $Id: PdfTest.php 10879 2009-10-11 19:21:50Z p.schuele@metaways.de $
                    
11 * 
                    
16 */
                    
17require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
                    
18
                    
18
                    
19if (!defined('PHPUnit_MAIN_METHOD')) {
                    
20    define('PHPUnit_MAIN_METHOD', 'Crm_Export_PdfTest::main');
                    
25 */
                    
26class Crm_Export_PdfTest extends PHPUnit_Framework_TestCase
                    
27{
                    
40    {
                    
41		$suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Crm_Export_PdfTest');
                    
42        PHPUnit_TextUI_TestRunner::run($suite);
                    
                
ControllerTest.php https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
119    
                    
120    public function testDeleteFolder()
                    
121    {
                    
125    
                    
126        $controller->deleteFolder($syncrotonFolder);
                    
127    }
                    
177    /**
                    
178     * testDeleteEntry
                    
179     */
                    
179     */
                    
180    public function testDeleteEntry()
                    
181    {
                    
187        
                    
188        $controller->deleteEntry($syncrotonFolder->serverId, $serverId, null);
                    
189        
                    
                
completion.php https://github.com/andreev-artem/moodle.git | PHP | 164 lines
                    
1<?php
                    
2
                    
72$string['csvdownload'] = 'Download in spreadsheet format (UTF-8 .csv)';
                    
73$string['deletecoursecompletiondata'] = 'Delete course completion data';
                    
74$string['deletecompletiondata'] = 'Delete completion data';
                    
123$string['err_noroles']='There are no roles with the capability \'moodle/course:markcomplete\' in this course. You can enable this criteria type by adding this capability to role(s).';
                    
124$string['err_settingslocked']='One or more students have already completed a criteria so the settings have been locked. Unlocking the completion criteria settings will delete any existing user data and may cause confusion.';
                    
125$string['datepassed']='Date passed';
                    
158$string['unenrolment']='Unenrolment';
                    
159$string['unlockcompletiondelete']='Unlock completion options and delete user completion data';
                    
160$string['usealternateselector']='Use the alternate course selector';
                    
                
UnitOfWorkTest.php https://bitbucket.org/iiic/iszp.git | PHP | 344 lines
                    
1<?php
                    
2
                    
13
                    
14require_once __DIR__ . '/../TestInit.php';
                    
15
                    
43        $user->username = 'romanb';
                    
44        $this->assertFalse($this->_unitOfWork->isScheduledForDelete($user));
                    
45        $this->_unitOfWork->scheduleForDelete($user);
                    
45        $this->_unitOfWork->scheduleForDelete($user);
                    
46        $this->assertFalse($this->_unitOfWork->isScheduledForDelete($user));
                    
47    }
                    
68        $this->assertEquals(0, count($userPersister->getUpdates()));
                    
69        $this->assertEquals(0, count($userPersister->getDeletes()));
                    
70        $this->assertFalse($this->_unitOfWork->isInIdentityMap($user));
                    
82        $this->assertEquals(0, count($userPersister->getUpdates()));
                    
83        $this->assertEquals(0, count($userPersister->getDeletes()));
                    
84
                    
                
Save.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 349 lines
                    
1<?php
                    
2/**
                    
12 *
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 */
                    
84        if (isset($data['image']) && is_array($data['image'])) {
                    
85            if (!empty($data['image']['delete'])) {
                    
86                $data['image'] = null;
                    
101     * @return \Magento\Framework\Controller\ResultInterface
                    
102     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
103     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
103     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
104     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
105     */
                    
260            unset($data['image']);
                    
261            $data['image']['delete'] = true;
                    
262        }
                    
                
Tab.php https://github.com/michaelmcandrew/vaw.git | PHP | 319 lines
                    
1<?php
                    
2
                    
61        //validate case configuration.
                    
62        require_once 'CRM/Case/BAO/Case.php';
                    
63        $configured = CRM_Case_BAO_Case::isCaseConfigured( $this->_contactId );
                    
76            // check logged in user permission
                    
77            require_once 'CRM/Contact/Page/View.php';
                    
78            if ( $this->_id && ($this->_action & CRM_Core_Action::VIEW) ) {
                    
123        $this->assign( 'caseId',$this->_id);
                    
124        require_once 'CRM/Activity/Selector/Activity.php' ;
                    
125        require_once 'CRM/Core/Selector/Controller.php';
                    
209                      ( CRM_Core_Action::UPDATE | CRM_Core_Action::ADD | 
                    
210                        CRM_Core_Action::DELETE | CRM_Core_Action::RENEW ) ) ||
                    
211                    ! empty( $_POST ) ) {
                    
231        if (!(self::$_links)) {
                    
232            $deleteExtra = ts('Are you sure you want to delete this case?');
                    
233            self::$_links = array(
                    
                
provider.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 283 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
149    /**
                    
150     * Deletes all tag instances for given context, component, itemtype, itemid
                    
151     *
                    
158     * @param   int         $itemid The itemid within that component and itemtype (optional)
                    
159     * @param   int         $userid Only delete tag instances made by this user, per-user tags must be enabled for the tagarea
                    
160     */
                    
160     */
                    
161    public static function delete_item_tags(\context $context, $component, $itemtype,
                    
162            $itemid = null, $userid = null) {
                    
170        }
                    
171        $DB->delete_records('tag_instance', $params);
                    
172    }
                    
174    /**
                    
175     * Deletes all tag instances for given context, component, itemtype using subquery for itemids
                    
176     *
                    
                
restore_controller_dbops.class.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 265 lines
                    
1<?php
                    
2
                    
30 *
                    
31 * TODO: Finish phpdocs
                    
32 */
                    
56        if ($includeobj and $cleanobj) {
                    
57            throw new restore_dbops_exception('restore_controller_dbops_saving_cannot_include_and_delete');
                    
58        }
                    
                
ExportToGoogleLiveData.php https://gitlab.com/digaotinfo/agenciaabear.com.br | PHP | 192 lines
                    
21
                    
22require_once('CF7DBPlugin.php');
                    
23require_once('CFDBExport.php');
                    
125                            <div class="popup-content">
                    
126                                <img src="<?php echo $imageUrlDir ?>/GooglePasteScriptEditor.png" alt="Paste script text" height="75%" width="75%"/>
                    
127                            </div>
                    
131                <td>
                    
132                    <p><?php echo htmlspecialchars(__('Delete any text that is already there', 'contact-form-7-to-database-extension')); ?></p>
                    
133                    <p><?php _e('<strong>Copy</strong> the text from ', 'contact-form-7-to-database-extension'); ?>
                    
133                    <p><?php _e('<strong>Copy</strong> the text from ', 'contact-form-7-to-database-extension'); ?>
                    
134                        <a target="_gscript" href="<?php echo($scriptLink) ?>"><?php echo htmlspecialchars(__('THIS SCRIPT FILE', 'contact-form-7-to-database-extension')); ?></a>
                    
135                        <?php _e('and <strong>paste</strong> it into the Google script editor', 'contact-form-7-to-database-extension'); ?></p>
                    
175                    <p>
                    
176                        <a href="<?php echo $scBuilderPageUrl ?>" target="sc"><?php echo htmlspecialchars(__('Customize the output by creating a Google Spreadsheet Function call with additional options', 'contact-form-7-to-database-extension')); ?></a>
                    
177                    </p>
                    
                
index.php https://github.com/lowiebenoot/forkcms.git | PHP | 310 lines
                    
1<?php
                    
2
                    
109		// add mass action dropdown
                    
110		$ddmMassAction = new SpoonFormDropdown('action', array('delete' => BL::lbl('Delete')), 'delete');
                    
111		$this->dgQueuedMailings->setMassAction($ddmMassAction);
                    
189		// add mass action dropdown
                    
190		$ddmMassAction = new SpoonFormDropdown('action', array('delete' => BL::lbl('Delete')), 'delete');
                    
191		$this->dgSentMailings->setMassAction($ddmMassAction);
                    
264		// add mass action dropdown
                    
265		$ddmMassAction = new SpoonFormDropdown('action', array('delete' => BL::lbl('Delete')), 'delete');
                    
266		$this->dgUnsentMailings->setMassAction($ddmMassAction);
                    
                
frmresourceslist.html https://github.com/pteyssandier/Silverpeas-Core.git | HTML | 382 lines
                    
73	oCell.innerHTML = sLink + '<img alt="' + folderName + '" src="images/Folder96.jpg" width="96" height="96" border="0"><br />' + folderName + '</a><br />';
                    
74	oCell.innerHTML += dLink + '<img border="0" src="images/delete.gif" width="16" height="16" alt="Delete Folder" title="Delete Folder"></a>&nbsp;';
                    
75	oCell.innerHTML += rLink + '<img border="0" src="images/edit.gif" width="16" height="16" alt="Rename Folder" title="Rename Folder"></a>' ;
                    
106	var sLink = '<a href="#" title="Size: ' + fileSize + 'kb" onclick="OpenFile(\'' + escape(fileUrl) + '\');return false;">' ;
                    
107	var dLink = '<a href="#" title="Delete file" onclick="DeleteFile(\'' + escape(fileName) + '\');return false;">' ;
                    
108	var eLink = '<a href="#" title="Rename file" onclick="RenameFile(\'' + escape(fileName) + '\');return false;">' ;
                    
126		fileName + '</a><br />';
                    
127	oCell.innerHTML += dLink + '<img border="0" src="images/delete.gif" width="16" height="16" alt="Delete File" title="Delete File"></a>&nbsp;';
                    
128	oCell.innerHTML += eLink + '<img border="0" src="images/edit.gif" width="16" height="16" alt="Edit/Rename File" title="Rename File"></a>' ;
                    
182	if (confirm('Are you sure you wish to delete ' + unescape(fileName) + '?')) {
                    
183		oConnector.SendCommand( 'DeleteFile', "FileName=" + fileName, DeleteFileCallBack ) ;
                    
184	}
                    
189	if (confirm('Are you sure you wish to delete ' + unescape(folderName) + ' and all files in it?')) {
                    
190		oConnector.SendCommand( 'DeleteFolder', "FolderName=" + folderName, DeleteFolderCallBack ) ;
                    
191	}
                    
                
formcustomization.inc.php https://github.com/pixelchutes/revolution.git | PHP | 131 lines
                    
1<?php
                    
2/**
                    
50$_lang['profile_new'] = 'New Form Customizaton Profile';
                    
51$_lang['profile_remove'] = 'Delete Profile';
                    
52$_lang['profile_remove_confirm'] = 'Are you sure you want to completely remove this Profile? This is irreversible.';
                    
52$_lang['profile_remove_confirm'] = 'Are you sure you want to completely remove this Profile? This is irreversible.';
                    
53$_lang['profile_remove_multiple'] = 'Delete Multiple Profiles';
                    
54$_lang['profile_remove_multiple_confirm'] = 'Are you sure you want to completely remove these Profiles? This is irreversible.';
                    
72$_lang['rule_err_save'] = 'An error occurred while trying to save the rule.';
                    
73$_lang['rule_remove'] = 'Delete Rule';
                    
74$_lang['rule_remove_confirm'] = 'Are you sure you want to remove this Rule?';
                    
74$_lang['rule_remove_confirm'] = 'Are you sure you want to remove this Rule?';
                    
75$_lang['rule_remove_multiple'] = 'Delete Multiple Rules';
                    
76$_lang['rule_remove_multiple_confirm'] = 'Are you sure you want to remove these Rules? This is irreversible.';
                    
95$_lang['set_new'] = 'Create New Set';
                    
96$_lang['set_remove'] = 'Delete Set';
                    
97$_lang['set_remove_confirm'] = 'Are you sure you want to permanently remove this set? This is irreversable.';
                    
                
formcustomization.inc.php https://github.com/pixelchutes/revolution.git | PHP | 132 lines
                    
1<?php
                    
2/**
                    
50$_lang['profile_new'] = 'New Form Customizaton Profile';
                    
51$_lang['profile_remove'] = 'Delete Profile';
                    
52$_lang['profile_remove_confirm'] = 'Are you sure you want to completely remove this Profile? This is irreversible.';
                    
52$_lang['profile_remove_confirm'] = 'Are you sure you want to completely remove this Profile? This is irreversible.';
                    
53$_lang['profile_remove_multiple'] = 'Delete Multiple Profiles';
                    
54$_lang['profile_remove_multiple_confirm'] = 'Are you sure you want to completely remove these Profiles? This is irreversible.';
                    
72$_lang['rule_err_save'] = 'An error occurred while trying to save the rule.';
                    
73$_lang['rule_remove'] = 'Delete Rule';
                    
74$_lang['rule_remove_confirm'] = 'Are you sure you want to remove this Rule?';
                    
74$_lang['rule_remove_confirm'] = 'Are you sure you want to remove this Rule?';
                    
75$_lang['rule_remove_multiple'] = 'Delete Multiple Rules';
                    
76$_lang['rule_remove_multiple_confirm'] = 'Are you sure you want to remove these Rules? This is irreversible.';
                    
96$_lang['set_edit'] = 'Edit Set';
                    
97$_lang['set_remove'] = 'Delete Set';
                    
98$_lang['set_remove_confirm'] = 'Are you sure you want to permanently remove this set? This is irreversable.';
                    
                
config.php https://github.com/magwai/zkernel.git | PHP | 163 lines
                    
1<?php
                    
2		$basepath = isset($basepath) ? $basepath : '';
                    
2		$basepath = isset($basepath) ? $basepath : '';
                    
3        require_once($basepath . "FileManager/FileManagerPlugin.php");
                    
4
                    
9        $mcFileManagerConfig['general.user_friendly_paths'] = true;
                    
10        $mcFileManagerConfig['general.tools'] = "imagemanager,createdir,refresh,zip,upload,edit,rename,cut,copy,paste,delete,selectall,unselectall,view,download,insert,addfavorite,removefavorite";
                    
11        $mcFileManagerConfig['general.disabled_tools'] = "";
                    
31
                    
32		$p = preg_replace('/\/zkernel\/ctl\/mce\/plugins\/filemanager\/.*index\.php/i', '', $_SERVER['SCRIPT_FILENAME']).'/upload/mce';
                    
33        // General file system options
                    
43        $mcFileManagerConfig['filesystem.invalid_file_name_msg'] = "";
                    
44        $mcFileManagerConfig['filesystem.extensions'] = "gif,jpg,htm,html,pdf,zip,txt,php,png,swf,dcr,mov,qt,ram,rm,avi,mpg,mpeg,asf,flv,xml,doc,docx,rtf,rar,xls";
                    
45        //$mcFileManagerConfig['filesystem.file_templates'] = '${rootpath}/templates/document.htm,${rootpath}/templates/another_document.htm';
                    
48        $mcFileManagerConfig['filesystem.writable'] = true;
                    
49        $mcFileManagerConfig['filesystem.delete_recursive'] = true;
                    
50        $mcFileManagerConfig['filesystem.force_directory_template'] = false;
                    
                
 

Source

Language