100+ results results for 'php delete repo:gencer/punbb' (780 ms)
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/formatDateWARCReader.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/I-NOZex/quiz | 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',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 {DataWriter.html https://gitlab.com/rsilveira1987/Expresso | HTML | 214 lines
31var proxy = new Ext.data.HttpProxy({ 32 url: 'app.php/users' // <--- 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 : { // <--- Supports object-syntax as well 43 destroy : { // <--- 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 }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.'&action=deletecategory&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.'&action=deletefield&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{cURL.php https://gitlab.com/sschand/WeatherShouldIGo | 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 dataclass-wp-ms-users-list-table.php https://gitlab.com/woxiprogrammers/infinia-wordpress | 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' ) . '&action=deleteuser&id=' . $user->ID ) ) ) . '" class="delete">' . __( 'Delete' ) . '</a>'; 204 }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 )Form.php https://gitlab.com/fbi/radyo-api-server | 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 *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";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 ];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", 242Database.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 {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 nodeauthor.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> <?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> <?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" />Protection.php https://gitlab.com/ilyales/vigma | 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 */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'),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();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" 31Request.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 {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);Ftp.php https://gitlab.com/bandana/Astro-Veda | 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 }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 }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>return_status.php https://gitlab.com/shapcy/opencart | PHP | 375 lines
1<?php 2class ControllerLocalisationReturnStatus extends Controller { 78 79 public function delete() { 80 $this->load->language('localisation/return_status'); 85 86 if (isset($this->request->post['selected']) && $this->validateDelete()) { 87 foreach ($this->request->post['selected'] as $return_status_id) { 87 foreach ($this->request->post['selected'] as $return_status_id) { 88 $this->model_localisation_return_status->deleteReturnStatus($return_status_id); 89 } 158 $data['add'] = $this->url->link('localisation/return_status/add', 'token=' . $this->session->data['token'] . $url, true); 159 $data['delete'] = $this->url->link('localisation/return_status/delete', 'token=' . $this->session->data['token'] . $url, true); 160 192 $data['button_edit'] = $this->language->get('button_edit'); 193 $data['button_delete'] = $this->language->get('button_delete'); 194projectmilestones.tpl https://gitlab.com/vectorci/Collabtive | Smarty Template | 293 lines
85 <span class="acc-toggle" onclick="javascript:accord_miles_new.activate($$('#accordion_miles_new .accordion_toggle')[{$smarty.section.stone.index}]);toggleAccordeon('done_{$myprojects[project].ID}',this);"></span> 86 <a href="managemilestone.php?action=showmilestone&msid={$milestones[stone].ID}&id={$project.ID}" title="{$milestones[stone].name}">{$milestones[stone].name|truncate:30:"...":true}</a> 87 </div> 92 {if $userpermissions.milestones.edit} 93 <a class="tool_edit" href="managemilestone.php?action=editform&mid={$milestones[stone].ID}&id={$project.ID}" title="{#edit#}"></a> 94 {/if} 95 {if $userpermissions.milestones.del} 96 <a class="tool_del" href="javascript:confirmit('{#confirmdel#}','managemilestone.php?action=del&mid={$milestones[stone].ID}&id={$project.ID}');" title="{#delete#}"></a> 97 {/if} 159 {if $userpermissions.milestones.del} 160 <a class="tool_del" href="javascript:confirmit('{#confirmdel#}','managemilestone.php?action=del&mid={$latemilestones[latestone].ID}&id={$project.ID}');" title="{#delete#}"></a> 161 {/if} 231 {if $userpermissions.milestones.del} 232 <a class="tool_del" href="javascript:confirmit('{#confirmdel#}','managemilestone.php?action=del&mid={$donemilestones[stone].ID}&id={$project.ID}');" title="{#delete#}"></a> 233 {/if}TokenFieldUiTest.php https://gitlab.com/guillaumev/alkarama | PHP | 280 lines
1<?php 2 184 185 // Delete the image derivatives, to make sure they are re-created. 186 unlink('public://styles/thumbnail/public/example1-test.png');upgrade_slims8_akasia.sql.php https://gitlab.com/mucill/majalengka | PHP | 269 lines
1<?php 2 2 3$sql['delete'][] = "DELETE FROM `setting` WHERE `setting`.`setting_name` = 'barcode_encoding';"; 4$sql['update'][] = "UPDATE `setting` SET `setting_value` = 'a:2:{s:5:\"theme\";s:7:\"default\";s:3:\"css\";s:26:\"template/default/style.css\";}' WHERE `setting_id` = 3;"; 222$sql['insert'][] = "INSERT IGNORE INTO `setting` (`setting_name`, `setting_value`) VALUES 223('shortcuts_1', 'a:6:{i:0;s:42:\"Daftar Bibliografi|/bibliography/index.php\";i:1;s:61:\"Tambah Bibliografi Baru|/bibliography/index.php?action=detail\";i:2;s:51:\"Mulai Transaksi|/circulation/index.php?action=start\";i:3;s:48:\"Pengembalian Kilat|/circulation/quick_return.php\";i:4;s:42:\"Lihat Daftar Anggota|/membership/index.php\";i:5;s:37:\"Shortcut Setting|/system/shortcut.php\";}');"; 224cache.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 503 lines
1<?php 2/** 50 * @uses $wp_object_cache Object Cache Class 51 * @see WP_Object_Cache::delete() 52 * 56 */ 57function wp_cache_delete($id, $flag = '') { 58 global $wp_object_cache; 59 60 return $wp_object_cache->delete($id, $flag); 61} 465 /** 466 * PHP4 constructor; Calls PHP 5 style constructor 467 * 483 /** 484 * @todo This should be moved to the PHP4 style constructor, PHP5 485 * already calls __destruct()jquery.storageapi.js https://gitlab.com/Mirros/cdnjs | JavaScript | 412 lines
6 * Licensed under the MIT license: 7 * http://www.opensource.org/licenses/mit-license.php 8 * 141 for(var j in a[i]){ 142 delete tmp[a[i][j]]; 143 } 144 }else{ 145 delete tmp[a[i]]; 146 } 299 }, 300 // Delete items 301 remove:function(){ 304 }, 305 // Delete all items 306 removeAll:function(reinit_ns){Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
1<?php 2 158 foreach ($itensExcluidos as $itemExcluido) { 159 $deleteItem = $this->itemDescarteService->delete($itemExcluido->getId()); 160 $adicionaEstoque = $this->estoqueProdutoService->adicionarEstoque($itemExcluido->getProduto()->getId(), $itemExcluido->getSolicitacaoDescarte()->getEstoqueOrigem()->getId(), $itemExcluido->getQtd(), '+', false); 161 162 if (!$deleteItem || !$adicionaEstoque) { 163 $this->getEm()->rollback(); 270 //Remove todas as movimentacoes pertencentes ao pedido de transferencia 271 $delete = $this->getEm()->createQueryBuilder()->delete('Estoque\Entity\Movimentacao', 'm')->where('m.descarte = :id ')->setParameter('id', $id)->getQuery()->execute(); 272 316 //Remove todas as movimentacoes pertencentes ao pedido de transferencia 317 $deleteMovimentacao = $this->getEm()->createQueryBuilder()->delete('Estoque\Entity\Movimentacao', 'm')->where('m.descarte = :id ')->setParameter('id', $solicitacao->getId())->getQuery()->execute(); 318 323 324 $delete = parent::delete($solicitacao->getId()); 325class-wc-api-webhooks.php https://gitlab.com/webkod3r/tripolis | PHP | 462 lines
1<?php 2/** 41 42 # GET|PUT|DELETE /webhooks/<id> 43 $routes[ $this->base . '/(?P<id>\d+)' ] = array( 45 array( array( $this, 'edit_webhook' ), WC_API_Server::EDITABLE | WC_API_Server::ACCEPT_DATA ), 46 array( array( $this, 'delete_webhook' ), WC_API_Server::DELETABLE ), 47 ); 222 223 delete_transient( 'woocommerce_webhook_ids' ); 224 308 309 delete_transient( 'woocommerce_webhook_ids' ); 310 319 /** 320 * Delete a webhook 321 *Country.php https://gitlab.com/jslee1/PrestaShop | PHP | 417 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 22 * @copyright 2007-2015 PrestaShop SA 23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24 * International Registered Trademark & Property of PrestaShop SA 103 104 public function delete() 105 { 105 { 106 if (!parent::delete()) { 107 return false; 108 } 109 return Db::getInstance()->execute('DELETE FROM '._DB_PREFIX_.'cart_rule_country WHERE id_country = '.(int)$this->id); 110 }Profiles.php https://gitlab.com/gregtyka/opensis | PHP | 258 lines
48 49 if(Prompt('Confirm Delete','Are you sure you want to delete the user profile <i>'.$profile_RET[1]['TITLE'].'</i>?','Users of that profile will retain their permissions as a custom set which can be modified on a per-user basis through the User Permissions program.')) 50 { 50 { 51 DBQuery("DELETE FROM USER_PROFILES WHERE ID='".$_REQUEST['profile_id']."'"); 52 DBQuery("DELETE FROM STAFF_EXCEPTIONS WHERE USER_ID IN (SELECT STAFF_ID FROM STAFF WHERE PROFILE_ID='".$_REQUEST['profile_id']."')"); 125 126if($_REQUEST['modfunc']!='delete') 127{ 143 if($_REQUEST['profile_id']!='' && $id==$_REQUEST['profile_id']) 144 echo '<TR id=selected_tr onmouseover="" onmouseout="" bgcolor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",20):'').'</TD><TD '.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">'; 145 else 145 else 146 echo '<TR onmouseover=\'this.style.backgroundColor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\' onmouseout=\'this.style.cssText="background-color:transparent; color:black;";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",15):'').'</TD><TD'.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">'; 147 echo '<b><a style="cursor: pointer; cursor:hand; text-decoration:none;">'.($id>3?'':'<b>').$profile[1]['TITLE'].($id>3?'':'</b>').'</a></b> ';Option.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 307 lines
1<?php 2 113 } 114 static function delete($name = '') { 115 if(empty($name)) { 118 } 119 $delOpts = DB::Query(self::OPTION_TABLE)->Where('name', '=', $name)->Delete(); 120 if($delOpts->status) return true; 121 else { 122 Error::Set('Cannot delete option ' . $name); 123 return false; 247 if($Field['type'] == 'tags') { 248 $TagsTextText = 'Theme::JqueryUI(\'autocomplete\');' . PHP_EOL; 249 $TagsTextText .= "\t\t" . 'Theme::JqueryPlugin(\'TagsInput\');' . PHP_EOL; 287 288 $returnString = '<?php ' . implode(PHP_EOL, $PrepareOptions) . '?> 289 <form action="' . $hook['form_action'] . '" class="' . $hook['form_class'] . '" id="' . $hook['form_id'] . '" method="post">ProductCustomOptionRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 373 lines
1<?php 2/** 35 /** 36 * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php 37 * @magentoAppIsolation enabled 49 'resourcePath' => "/V1/products/$sku/options/$optionId", 50 'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_DELETE, 51 ], 54 'serviceVersion' => 'V1', 55 'operation' => self::SERVICE_NAME . 'DeleteByIdentifier', 56 ], 66 /** 67 * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php 68 * @magentoAppIsolation enabled 92 unset($option['option_id']); 93 $excepted = include '_files/product_options.php'; 94 $this->assertEquals($excepted[0], $option);RbacController.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 399 lines
52 // add "museumDelete" permission 53 $museumDelete = $auth->createPermission('museumDelete'); 54 $museumDelete->description = 'delete a museum'; 54 $museumDelete->description = 'delete a museum'; 55 $auth->add($museumDelete); 56 107 // add "fileDelete" permission 108 $fileDelete = $auth->createPermission('fileDelete'); 109 $fileDelete->description = 'delete a file'; 109 $fileDelete->description = 'delete a file'; 110 $auth->add($fileDelete); 111 190 $userDelete = $auth->createPermission('userDelete'); 191 $userDelete->description = 'delete a user'; 192 $auth->add($userDelete);Feed.php https://gitlab.com/yousafsyed/easternglamor | PHP | 409 lines
1<?php 2 23/** @see Zend_Xml_Security */ 24#require_once 'Zend/Xml/Security.php'; 25 47 /** 48 * Override HTTP PUT and DELETE request methods? 49 * 88 */ 89 #require_once 'Zend/Http/Client.php'; 90 self::$_httpClient = new Zend_Http_Client(); 97 /** 98 * Toggle using POST instead of PUT and DELETE HTTP methods 99 * 99 * 100 * Some feed implementations do not accept PUT and DELETE HTTP 101 * methods, or they can't be used because of proxies or otherMemcacheEngineTest.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 482 lines
4 * 5 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 14 * @package Cake.Test.Case.Cache.Engine 14 * @package Cake.Test.Case.Cache.Engine 15 * @since CakePHP(tm) v 1.2.0.5434 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 208 209 Cache::delete('test', 'memcache'); 210 } 268 269 $result = Cache::delete('delete_test', 'memcache'); 270 $this->assertTrue($result);Updater.php https://gitlab.com/reasonat/test8 | PHP | 411 lines
1<?php 2 225 if (!$this->name) { 226 // This is bad, don't want to delete the install directory. 227 throw new UpdaterException(t('Fatal error in update, cowardly refusing to wipe out the install directory.'));catalog3.php https://gitlab.com/Rad1calDreamer/honey | PHP | 221 lines
71 "ACTIVE" => "Y", 72 "FIELDS" => array ( 'IBLOCK_SECTION' => array ( 'IS_REQUIRED' => 'Y', 'DEFAULT_VALUE' => '', ), 'ACTIVE' => array ( 'IS_REQUIRED' => 'Y', 'DEFAULT_VALUE' => 'Y', ), 'ACTIVE_FROM' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => '', ), 'ACTIVE_TO' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => '', ), 'SORT' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => '', ), 'NAME' => array ( 'IS_REQUIRED' => 'Y', 'DEFAULT_VALUE' => '', ), 'PREVIEW_PICTURE' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => array ( 'FROM_DETAIL' => 'N', 'SCALE' => 'N', 'WIDTH' => '', 'HEIGHT' => '', 'IGNORE_ERRORS' => 'N', 'METHOD' => 'resample', 'COMPRESSION' => 95, 'DELETE_WITH_DETAIL' => 'N', 'UPDATE_WITH_DETAIL' => 'N', ), ), 'PREVIEW_TEXT_TYPE' => array ( 'IS_REQUIRED' => 'Y', 'DEFAULT_VALUE' => 'text', ), 'PREVIEW_TEXT' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => '', ), 'DETAIL_PICTURE' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => array ( 'SCALE' => 'N', 'WIDTH' => '', 'HEIGHT' => '', 'IGNORE_ERRORS' => 'N', 'METHOD' => 'resample', 'COMPRESSION' => 95, ), ), 'DETAIL_TEXT_TYPE' => array ( 'IS_REQUIRED' => 'Y', 'DEFAULT_VALUE' => 'text', ), 'DETAIL_TEXT' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => '', ), 'XML_ID' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => '', ), 'CODE' => array ( 'IS_REQUIRED' => 'Y', 'DEFAULT_VALUE' => array ( 'UNIQUE' => 'Y', 'TRANSLITERATION' => 'Y', 'TRANS_LEN' => 100, 'TRANS_CASE' => 'L', 'TRANS_SPACE' => '_', 'TRANS_OTHER' => '_', 'TRANS_EAT' => 'Y', 'USE_GOOGLE' => 'Y', ), ), 'TAGS' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => '', ), 'SECTION_NAME' => array ( 'IS_REQUIRED' => 'Y', 'DEFAULT_VALUE' => '', ), 'SECTION_PICTURE' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => array ( 'FROM_DETAIL' => 'N', 'SCALE' => 'N', 'WIDTH' => '', 'HEIGHT' => '', 'IGNORE_ERRORS' => 'N', 'METHOD' => 'resample', 'COMPRESSION' => 95, 'DELETE_WITH_DETAIL' => 'N', 'UPDATE_WITH_DETAIL' => 'N', ), ), 'SECTION_DESCRIPTION_TYPE' => array ( 'IS_REQUIRED' => 'Y', 'DEFAULT_VALUE' => 'text', ), 'SECTION_DESCRIPTION' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => '', ), 'SECTION_DETAIL_PICTURE' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => array ( 'SCALE' => 'N', 'WIDTH' => '', 'HEIGHT' => '', 'IGNORE_ERRORS' => 'N', 'METHOD' => 'resample', 'COMPRESSION' => 95, ), ), 'SECTION_XML_ID' => array ( 'IS_REQUIRED' => 'N', 'DEFAULT_VALUE' => '', ), 'SECTION_CODE' => array ( 'IS_REQUIRED' => 'Y', 'DEFAULT_VALUE' => array ( 'UNIQUE' => 'Y', 'TRANSLITERATION' => 'Y', 'TRANS_LEN' => 100, 'TRANS_CASE' => 'L', 'TRANS_SPACE' => '_', 'TRANS_OTHER' => '_', 'TRANS_EAT' => 'Y', 'USE_GOOGLE' => 'Y', ), ), ), 73 "CODE" => "clothes", 110 { 111 WizardServices::IncludeServiceLang("property_names.php", $languageID); 112 $arLabelNames[$languageID] = GetMessage($userField); 183 } 184 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/interface/admin_lib.php"); 185 CAdminFilter::AddPresetToBase( array( 196//delete 1c props 197 $arPropsToDelete = array("CML2_TAXES", "CML2_BASE_UNIT", "CML2_TRAITS", "CML2_ATTRIBUTES", "CML2_ARTICLE", "CML2_BAR_CODE", "CML2_FILES", "CML2_MANUFACTURER", "CML2_PICTURES"); 198 foreach ($arPropsToDelete as $code) 217 CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH."/_index.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID, "OFFERS_IBLOCK_ID" => $IBLOCK_OFFERS_ID)); 218 CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH."/catalog/sect_sidebar.php.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID)); 219 CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH."/include/viewed_product.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID, "OFFERS_IBLOCK_ID" => $IBLOCK_OFFERS_ID));Subscribe.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 404 lines
1<?php 2/* 34 35require_once 'Mail/mime.php'; 36 91LEFT JOIN civicrm_email ON contact_a.id = civicrm_email.contact_id 92 WHERE civicrm_email.email = %1 AND contact_a.is_deleted = 0"; 93 327 LEFT JOIN civicrm_group ON civicrm_group.id = group_a.group_id 328 LEFT JOIN civicrm_contact ON ( group_a.contact_id = civicrm_contact.id ) AND civicrm_contact.is_deleted = 0 329 LEFT JOIN civicrm_email ON civicrm_contact.id = civicrm_email.contact_idlinear_solver.h https://gitlab.com/khumba/cglab | C Header | 478 lines
27 * YEAR=November 2005, 28 * URL=http://www.loria.fr/~levy/php/article.php?pub=../publications/papers/2005/Numerics 29 * } 232 ~LinearSolver() { 233 delete[] variable_ ; 234 delete A_ ; 234 delete A_ ; 235 delete x_ ; 236 delete b_ ; 390 391 delete A_ ; A_ = NULL ; 392 delete b_ ; b_ = NULL ; 392 delete b_ ; b_ = NULL ; 393 delete x_ ; x_ = NULL ; 394http-messages.rst https://gitlab.com/x33n/respond | ReStructuredText | 483 lines
154:PUT: ``$client->put('http://httpbin.org/put', [/** options **/])`` 155:DELETE: ``$client->delete('http://httpbin.org/delete', [/** options **/])`` 156:OPTIONS: ``$client->options('http://httpbin.org/get', [/** options **/])`` 224 225.. code-block:: php 226 243This method returns a ``GuzzleHttp\Query`` object. A Query object can be 244accessed like a PHP array, iterated in a foreach statement like a PHP array, 245and cast to a string. 246 247.. code-block:: php 248 280convert the complex structure into a string. Query objects will use 281`PHP style query strings <http://www.php.net/http_build_query>`_ when complex 282query string parameters are converted to a string. You can customize howuser-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
101 public function uninstall() { 102 delete_option( $this->options_key ); 103 remove_role( 'pending' ); 180 ?> 181 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_none" value="none"<?php checked( $this->get_option( 'type' ), 'none' ); ?> /> 182 <label for="<?php echo $this->options_key; ?>_type_none"><?php _e( 'None', 'theme-my-login' ); ?></label> 184 185 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_email" value="email" <?php checked( $this->get_option( 'type' ), 'email' ); ?> /> 186 <label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label> 188 189 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_admin" value="admin" <?php checked( $this->get_option( 'type' ), 'admin' ); ?> /> 190 <label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label> 234 // Where did we come from? 235 $redirect_to = isset( $_REQUEST['wp_http_referer'] ) ? remove_query_arg( array( 'wp_http_referer', 'updated', 'delete_count' ), stripslashes( $_REQUEST['wp_http_referer'] ) ) : 'users.php'; 236Profiler.php https://gitlab.com/florianocomercial/centreon | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 56 * An operation related to deleting data in the database, 57 * such as SQL's DELETE. 58 */ 58 */ 59 const DELETE = 16; 60 265 break; 266 case 'delete': 267 $queryType = self::DELETE; 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);Behavior.php https://gitlab.com/vannh/portal_training | PHP | 399 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 */ 45 * Behaviors can listen to any events fired on a Table. By default 46 * CakePHP provides a number of lifecycle events your behaviors can 47 * listen to: 252 'Model.afterSave' => 'afterSave', 253 'Model.beforeDelete' => 'beforeDelete', 254 'Model.afterDelete' => 'afterDelete',DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
1<?php 2 309 public function getReservedColumns() { 310 return array('deleted'); 311 } 317 * The field storage definition. 318 * @param bool $is_deleted 319 * (optional) Whether the table name holding the values of a deleted field 324 */ 325 public function getDedicatedDataTableName(FieldStorageDefinitionInterface $storage_definition, $is_deleted = FALSE) { 326 if ($is_deleted) { 326 if ($is_deleted) { 327 // When a field is a deleted, the table is renamed to 328 // {field_deleted_data_FIELD_UUID}. To make sure we don't end up with 331 // unique ID. 332 return "field_deleted_data_" . substr(hash('sha256', $storage_definition->getUniqueStorageIdentifier()), 0, 10); 333 }Collection.php https://gitlab.com/habracoder/advertising | PHP | 509 lines
1<?php 2 21 22 const OP_DELETE = 3; 23 457 /** 458 * Deletes a model instance. Returning true on success or false otherwise. 459 * <code> 460 * $robot = Robots::findFirst(); 461 * $robot->delete(); 462 * foreach (Robots::find() as $robot) { 462 * foreach (Robots::find() as $robot) { 463 * $robot->delete(); 464 * } 468 */ 469 public function delete() {} 470media.browser.js https://gitlab.com/makkooz/nikestreetbeat | JavaScript | 362 lines
29 url: { 30 upload: 'index.php?r=media/ajax-upload', 31 update: 'index.php?r=media/ajax-update', 31 update: 'index.php?r=media/ajax-update', 32 json: 'index.php?r=media-browser/get-json', 33 insert: 'index.php?r=media-browser/field-insert' 153 this.form.html(''); 154 delete this.selected[id]; 155 var selectedIndex = Object.keys(this.selected); 234 235 this.actionDeleteItem = function () { 236 self.browser.on('click', '.delete-media', function (e) { 248 self.form.html(''); 249 delete self.selected[$this.data('id')]; 250 }class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 531 $sql = array( 532 'select' => sprintf( 'DELETE FROM %s', $this->table ), 533 );tab_class.php https://gitlab.com/mohsentm/downloadchibashi | PHP | 346 lines
83 else if(!empty( $_REQUEST['status']) && ($_REQUEST['status'] == "success" || $_REQUEST['status'] == "failed" )) 84 $wpdb->delete( 85 "{$wpdb->prefix}downloadchibashi_files_list", 193 194 $delete_nonce = wp_create_nonce( 'sp_delete_download' ); 195 200 $actions = [ 201 'delete' => sprintf( '<a href="?page=%s&action=%s&download=%s&_wpnonce=%s">Delete</a>', esc_attr( $_REQUEST['page'] ), 'delete', absint( $item['f_id'] ), $delete_nonce ) 202 ]; 208 $actions = [ 209 'delete' => sprintf( '<a href="?page=%s&action=%s&download=%s&_wpnonce=%s">Delete</a>', esc_attr( $_REQUEST['page'] ), 'delete', absint( $item['f_datetime'] ), $delete_nonce ) 210 ]; 331 332 $delete_ids = esc_sql( $_POST['bulk-delete'] ); 333wpsc-swfupload-handlers.js https://gitlab.com/endomorphosis/reservationtelco | JavaScript | 348 lines
59 // Bind AJAX to the new Delete button 60 jQuery('#media-item-' + fileObj.id + ' a.delete').bind('click',function(){ 61 // Tell the server to delete it. TODO: handle exceptions 61 // Tell the server to delete it. TODO: handle exceptions 62 jQuery.ajax({url:'admin-ajax.php',type:'post',success:deleteSuccess,error:deleteError,id:fileObj.id,data:{ 63 id : this.id.replace(/[^0-9]/g,''), 63 id : this.id.replace(/[^0-9]/g,''), 64 action : 'delete-post', 65 _ajax_nonce : this.href.replace(/^.*wpnonce=/,'')} 83 84function wpsc_deleteSuccess(data, textStatus) { 85 if ( data == '-1' ) 87 if ( data == '0' ) 88 return itemAjaxError(this.id, 'Could not be deleted. Has it been deleted already?'); 89user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
1<?php 2/** 42$_lang['role_err_duplicate'] = 'An error occurred while duplicating the role.'; 43$_lang['role_err_has_users'] = 'There are users with this role. It cannot be deleted.'; 44$_lang['role_err_nf'] = 'Role not found.'; 48$_lang['role_err_remove'] = 'An error occurred while trying to remove the role.'; 49$_lang['role_err_remove_admin'] = 'The role you are trying to delete is the admin role. This role cannot be deleted!'; 50$_lang['role_remove'] = 'Delete Role'; 50$_lang['role_remove'] = 'Delete Role'; 51$_lang['role_remove_confirm'] = 'Are you sure you want to delete this role?'; 52$_lang['roles'] = 'Roller'; 84$_lang['user_err_cannot_delete_last_admin'] = 'You cannot remove the last User in the Administrator group, as this will prevent administration of your site.'; 85$_lang['user_err_cannot_delete_self'] = 'You cannot delete yourself!'; 86$_lang['user_err_nf'] = 'User not found.'; 147$_lang['user_group_parent'] = 'Parent Group'; 148$_lang['user_group_remove'] = 'Delete User Group'; 149$_lang['user_group_remove_confirm'] = 'Are you sure you want to delete this User Group?';class-wp-terms-list-table.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 454 lines
106 $actions = array(); 107 $actions['delete'] = __( 'Delete' ); 108 112 function current_action() { 113 if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['delete_tags'] ) && ( 'delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'] ) ) 114 return 'bulk-delete'; 298 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 299 $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>"; 300 if ( $tax->public ) 374 if ( $count ) 375 $count = "<a href='link-manager.php?cat_id=$tag->term_id'>$count</a>"; 376 return $count; 410 <fieldset><div class="inline-edit-col"> 411 <h4><?php _e( 'Quick Edit' ); ?></h4> 412end_vevent.php https://gitlab.com/endomorphosis/fusenews | PHP | 386 lines
1<?php 2/* end_vevent.php 80 81 $recurrence_delete["$recurrence_d"]["$recurrence_t"] = $uid; 82} 191If COUNT is not set (default is 1,000,000) then we don't have to start at start_date; we can start at the minimum interval for the view. 192variables ending in date are in phpical date format: YYYYMMDD 193variables ending with time are in phpical time format: HHMM 195 196mArray_begin and mArray_end are set in initialization by date_range.php and may be overwritten by rss_common.php. 197 380//print_r($byday_arr); 381//print_r($recurrence_delete); 382//print_r($cal_displaynames);DeleteComment.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 355 lines
1<?php 2 5 */ 6require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); 7 15 */ 16class Tests_Ajax_DeleteComment extends WP_Ajax_UnitTestCase { 17 41 unset($_POST['unspam']); 42 unset($_POST['delete']); 43 $this->_last_response = ''; 66 $_POST['id'] = $comment->comment_ID; 67 $_POST['_ajax_nonce'] = wp_create_nonce( 'delete-comment_' . $comment->comment_ID ); 68 $_POST[$action] = 1; 71 $_POST['_page'] = 1; 72 $_POST['_url'] = admin_url( 'edit-comments.php' ); 73fckeditor.css https://gitlab.com/ptisky/API_prestashop | CSS | 536 lines
230#actionCut{background-image:url(../images/cut.png);} 231#actionDelete{background-image:url(../images/delete.png);} 232#actionZip{background-image:url(../images/zip.png);} 266span.fileFlash, span.fileVideo, span.filePicture, 267span.filePPT, span.fileExcel, span.filePhp, 268span.fileMusic, span.fileExe, span.fileAcrobat, 269span.fileRTF, span.fileXml, span.fileCode, 270span.fileZip, span.addMore, span.deleteFile, 271span.cancel,span.uploadProcessing{ 289span.fileExcel{background-image:url(../images/small_icon/fileExcel.png);} 290span.filePhp{background-image:url(../images/small_icon/filePhp.png);} 291span.fileMusic{background-image:url(../images/small_icon/fileMusic.png);} 328dt.fileExcel{background-image:url(../images/big_icon/fileExcel.png);} 329dt.filePhp{background-image:url(../images/big_icon/filePhp.png);} 330dt.fileMusic{background-image:url(../images/big_icon/fileMusic.png);}AclVoterTest.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 432 lines
1<?php 2 22 23class AclVoterTest extends \PHPUnit_Framework_TestCase 24{ 97 98 $this->assertSame(VoterInterface::ACCESS_ABSTAIN, $voter->vote($this->getToken(), null, array('VIEW', 'EDIT', 'DELETE'))); 99 }Profiler.php https://gitlab.com/luisrepo/ClienteWS | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 56 * An operation related to deleting data in the database, 57 * such as SQL's DELETE. 58 */ 58 */ 59 const DELETE = 16; 60 265 break; 266 case 'delete': 267 $queryType = self::DELETE; 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);editar_factura_prov.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 434 lines
1<?php 2 2 3require_model('asiento.php'); 4require_model('asiento_factura.php'); 4require_model('asiento_factura.php'); 5require_model('divisa.php'); 6require_model('fabricante.php'); 6require_model('fabricante.php'); 7require_model('forma_pago.php'); 8require_model('proveedor.php'); 8require_model('proveedor.php'); 9require_model('recibo_proveedor.php'); 10 109 { 110 if( $asiento->delete() ) 111 {class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
1<?php 2/** 12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes 13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes. 14 * 14 * 15 * @see config/map.php 16 * @see include/helpers/helpers_api.php 69 * 70 * if $is_init is FALSE, then all activity like add, update and delete for shortcodes attributes will be hold in 71 * the list of activity and will be executed after initialization. 126 * You need to shortcode's tag and settings to map correctly. 127 * Default shortcodes are mapped in config/map.php file. 128 * The best way is to call this method with "init" action callback function of WP. 541 /** 542 * Sorting method for WPBMap::generateUserData method. Called by usort php function. 543 * @deprecated - use Vc_Sort::sortByKey since 4.4SnsClient.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 378 lines
1<?php 2 6 7w3_require_once(W3TC_LIB_W3_DIR . '/Enterprise/SnsBase.php'); 8 182 /** 183 * Reloads/compiles a PHP file. 184 * @param string $filename 191 /** 192 * Reloads/compiles a PHP file. 193 * @param string[] $filenames 201 /** 202 * Deletes files based on regular expression matching. 203 * @param string $mask 205 */ 206 function apc_delete_files_based_on_regex($mask) { 207 return $this->_prepare_message(array('action' => 'apc_delete_files_based_on_regex', 'regex' => $mask));ThemeTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 489 lines
1<?php 2/** 16/** 17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 18 */ 18 */ 19class ThemeTest extends \PHPUnit_Framework_TestCase 20{ 21 /** 22 * @var \Magento\Theme\Model\Theme|\PHPUnit_Framework_MockObject_MockObject 23 */ 26 /** 27 * @var \PHPUnit_Framework_MockObject_MockObject 28 */ 31 /** 32 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\View\Design\Theme\FlyweightFactory 33 */Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
1<?php 2/** 156 * 157 * @SuppressWarnings(PHPMD.NPathComplexity) 158 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 175 * 176 * @SuppressWarnings(PHPMD.NPathComplexity) 177 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 263 $options[$key] = [ 264 'is_delete' => '', 265 'option_id' => 0, 269 foreach ($customOption['options'] as $index => $option) { 270 $customOption['options'][$index]['is_delete'] = ''; 271 $customOption['options'][$index]['price_type'] = strtolower($option['price_type']); 308 * 309 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 310 * @SuppressWarnings(PHPMD.NPathComplexity)Flat.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 362 lines
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 */ 44 Mage_Index_Model_Event::TYPE_SAVE, 45 Mage_Index_Model_Event::TYPE_DELETE, 46 ), 48 Mage_Index_Model_Event::TYPE_SAVE, 49 Mage_Index_Model_Event::TYPE_DELETE 50 ), 154 } else if ($entity == Mage_Core_Model_Store::ENTITY) { 155 if ($event->getType() == Mage_Index_Model_Event::TYPE_DELETE) { 156 $result = true; 339 } else if (!empty($data['catalog_product_flat_delete_store_id'])) { 340 $this->_getIndexer()->deleteStore($data['catalog_product_flat_delete_store_id']); 341 }makeXMLForOneService.php https://gitlab.com/florianocomercial/centreon | PHP | 287 lines
1<?php 2/* 29 * exception to your version of the program, but you are not obliged to do so. If you 30 * do not wish to do so, delete this exception statement from your version. 31 * 38 */ 39require_once realpath(dirname(__FILE__) . "/../../../../../../config/centreon.config.php"); 40 40 41include_once $centreon_path . "www/class/centreonUtils.class.php"; 42 45 */ 46include_once _CENTREON_PATH_ . "www/class/centreonXMLBGRequest.class.php"; 47include_once _CENTREON_PATH_ . "www/class/centreonLang.class.php";SetTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 295 lines
1<?php 2/** 11 12class SetTest extends \PHPUnit_Framework_TestCase 13{ 14 /** 15 * @var \PHPUnit_Framework_MockObject_MockObject|Set 16 */ 19 /** 20 * @var \PHPUnit_Framework_MockObject_MockObject 21 */ 24 /** 25 * @var \PHPUnit_Framework_MockObject_MockObject 26 */ 29 /** 30 * @var \PHPUnit_Framework_MockObject_MockObject 31 */Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
1<?php namespace Illuminate\Filesystem; 2 107 /** 108 * Delete the file at a given path. 109 * 112 */ 113 public function delete($paths) 114 { 379 /** 380 * Recursively delete a directory. 381 * 387 */ 388 public function deleteDirectory($directory, $preserve = false) 389 { 395 // If the item is a directory, we can just recurse into the function and 396 // delete that sub-directory otherwise we'll just delete the file and 397 // keep iterating through each file until the directory is cleaned.simple.html https://gitlab.com/victor.flores/prueba | HTML | 374 lines
31 editor = new $.fn.dataTable.Editor( { 32 ajax: "../php/staff.php", 33 table: "#example", 61 dom: "Tfrtip", 62 ajax: "../php/staff.php", 63 columns: [ 95 <div class="info"> 96 <p><a href="//editor.datatables.net">Editor</a> is a Create, Read, Update and Delete (CRUD) extension 97 for <a href="//datatables.net">DataTables</a> that provides the ability to easily add, edit and delete 146 editor = new $.fn.dataTable.Editor( { 147 ajax: "../php/staff.php", 148 table: "#example", 176 dom: "Tfrtip", 177 ajax: "../php/staff.php", 178 columns: [SensorRunner.php https://gitlab.com/Drulenium-bot/monitoring | PHP | 351 lines
1<?php 2/** 346 } 347 $this->cache->deleteMultiple($cids); 348 }newsfeed.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 546 lines
1<?php 2/** 13 14JLoader::register('NewsfeedsHelper', JPATH_ADMINISTRATOR . '/components/com_newsfeeds/helpers/newsfeeds.php'); 15 139 /** 140 * Method to test whether a record can be deleted. 141 * 143 * 144 * @return boolean True if allowed to delete the record. Defaults to the permission set in the component. 145 * 147 */ 148 protected function canDelete($record) 149 { 160 { 161 return $user->authorise('core.delete', 'com_newsfeed.category.' . (int) $record->catid); 162 }Database.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | 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) 2014 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 {options.php https://gitlab.com/alexprowars/bitrix | PHP | 134 lines
18$MESS["FILEMAN_OPTION_PROPS_KEYW"] = "Ключевые слова"; 19$MESS["FILEMAN_OPTION_EDITOR_PHP"] = "Редактирование PHP скрипта"; 20$MESS["FILEMAN_OPTION_USE_OLD_VER"] = "Использовать предыдущую версию визуального HTML редактора:"; 31$MESS["FILEMAN_OPTION_INSTALL_PSPELL"] = "Установка pSpell"; 32$MESS["FILEMAN_OPTION_INSTALL_PSPELL_TITLE"] = "Инструкция по установке pSpell для PHP."; 33$MESS["FILEMAN_OPTION_USE_CUSTOM_SPELL"] = "Использовать собственную систему проверки орфографии:"; 41$MESS["FILEMAN_OPTION_INDEX_DIC"] = "Индексировать"; 42$MESS["FILEMAN_OPTION_DELETE"] = "Удалить"; 43$MESS["FILEMAN_OPTION_ADD_DICTIONARY"] = "Добавить словарь";Profiler.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 56 * An operation related to deleting data in the database, 57 * such as SQL's DELETE. 58 */ 58 */ 59 const DELETE = 16; 60 265 break; 266 case 'delete': 267 $queryType = self::DELETE; 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);ListController.php https://gitlab.com/gideonmarked/atls-express | PHP | 486 lines
1<?php namespace Backend\Behaviors; 2 253 /** 254 * Bulk delete records. 255 * @return void 256 */ 257 public function index_onDelete() 258 { 258 { 259 if (method_exists($this->controller, 'onDelete')) { 260 return call_user_func_array([$this->controller, 'onDelete'], func_get_args()); 268 if (!$checkedIds || !is_array($checkedIds) || !count($checkedIds)) { 269 Flash::error(Lang::get('backend::lang.list.delete_selected_empty')); 270 return $this->controller->listRefresh(); 300 /* 301 * Delete records 302 */class-wc-gateway-stripe-addons.php https://gitlab.com/hunt9310/ras | PHP | 394 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 20 add_action( 'woocommerce_scheduled_subscription_payment_' . $this->id, array( $this, 'scheduled_subscription_payment' ), 10, 2 ); 21 add_action( 'wcs_resubscribe_order_created', array( $this, 'delete_resubscribe_meta' ), 10 ); 22 add_action( 'wcs_renewal_order_created', array( $this, 'delete_renewal_meta' ), 10 ); 233 */ 234 public function delete_resubscribe_meta( $resubscribe_order ) { 235 delete_post_meta( $resubscribe_order->id, '_stripe_customer_id' ); 235 delete_post_meta( $resubscribe_order->id, '_stripe_customer_id' ); 236 delete_post_meta( $resubscribe_order->id, '_stripe_card_id' ); 237 $this->delete_renewal_meta( $resubscribe_order ); 243 */ 244 public function delete_renewal_meta( $renewal_order ) { 245 delete_post_meta( $renewal_order->id, 'Stripe Fee' ); 245 delete_post_meta( $renewal_order->id, 'Stripe Fee' ); 246 delete_post_meta( $renewal_order->id, 'Net Revenue From Stripe' ); 247 delete_post_meta( $renewal_order->id, 'Stripe Payment ID' );ajax.php https://gitlab.com/milo-ft/osTicket | PHP | 269 lines
60 url_post('^field-config/(?P<id>\d+)$', 'saveFieldConfiguration'), 61 url_delete('^answer/(?P<entry>\d+)/(?P<field>\d+)$', 'deleteAnswer'), 62 url_post('^upload/(\d+)?$', 'upload'), 77 url('^(?P<list>\w+)/manage$', 'massManageListItems'), 78 url_post('^(?P<list>\w+)/delete$', 'deleteItems'), 79 url_post('^(?P<list>\w+)/disable$', 'disableItems'), 135 url_get('^/(?P<id>\d+)/delete$', 'delete'), 136 url_delete('^/(?P<id>\d+)/delete$', 'delete'), 137 url_post('^/(?P<id>\d+)/note$', 'createNote'), 209 url_post('^(?P<id>\d+)$', 'updateDraft'), 210 url_delete('^(?P<id>\d+)$', 'deleteDraft'), 211 url_post('^(?P<id>\d+)/attach$', 'uploadInlineImage'), 219 url_post('^(?P<id>\d+)$', 'updateNote'), 220 url_delete('^(?P<id>\d+)$', 'deleteNote'), 221 url_post('^attach/(?P<ext_id>\w\d+)$', 'createNote')PayOperationTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 444 lines
1<?php 2/** 10 */ 11class PayOperationTest extends \PHPUnit_Framework_TestCase 12{ 18 /** 19 * @var \Magento\Sales\Model\Order|\PHPUnit_Framework_MockObject_MockObject 20 */ 23 /** 24 * @var \Magento\Sales\Api\Data\InvoiceInterface|\PHPUnit_Framework_MockObject_MockObject 25 */ 28 /** 29 * @var \Magento\Framework\Model\Context|\PHPUnit_Framework_MockObject_MockObject 30 */ 33 /** 34 * @var \Magento\Sales\Api\Data\InvoiceItemInterface|\PHPUnit_Framework_MockObject_MockObject 35 */TargetHttpProxies.php https://gitlab.com/efabian/maya | PHP | 242 lines
1<?php 2/* 88 /** 89 * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) 90 * 92 * @param string $targetHttpProxy Name of the TargetHttpProxy resource to 93 * delete. 94 * @param array $optParams Optional parameters. 109 */ 110 public function delete($project, $targetHttpProxy, $optParams = array()) 111 { 113 $params = array_merge($params, $optParams); 114 return $this->call('delete', array($params), "Google_Service_Compute_Operation"); 115 }class-wp-media-list-table.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 396 lines
361 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 362 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-attachment_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>"; 363 } else { 364 $delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 365 $actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-attachment_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>"; 366 } 375 if ( $this->is_trash ) 376 $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-attachment_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>"; 377 elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) 377 elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) 378 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-attachment_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>"; 379 if ( $this->is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) { 380 $delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : ''; 381 $actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-attachment_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>"; 382 }index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 317 lines
14<!-- Generated by Rakefile:build --> 15A JavaScript equivalent of PHP's array_multisort 16 100 // Store first argument into sortArrs and sortKeys if an Object. 101 // First Argument should be either a Javascript Array or an Object, otherwise function would return FALSE like in PHP 102 if (Object.prototype.toString.call(arr) === '[object Array]') { 114 115 // arrMainLength: Holds the length of the first array. All other arrays must be of equal length, otherwise function would return FALSE like in PHP 116 // 294 } 295 delete sortArrs[i]; 296 delete sortKeys[i]; 304 305Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are 306the closest match to this hashtable-like data structure.em-ml-io.php https://gitlab.com/pankajmohale/chef2go | PHP | 266 lines
1<?php 2/** 9 * Since ML Plugins can change default languages and you can potentially create events in non-default languages first, the first language will be the 'orignal' event. 10 * If an event is deleted and is the original event, but there are still other translations, the original event is reassigned to the default language translation, or whichever other event is found first 11 */ 20 //Deletion 21 add_action('em_event_delete_meta_event_pre', 'EM_ML_IO::event_delete', 10, 1); 22 add_action('em_location_delete_meta_pre', 'EM_ML_IO::location_delete', 10, 1); 141 /** 142 * When a master event is deleted, translations are not necessarily deleted so things like bookings must be transferred to a translation and that must now be the master event. 143 * @param EM_Event $EM_Location 144 */ 145 public static function event_delete($EM_Event){ 146 global $wpdb, $sitepress; 224 /** 225 * When a master location is deleted, translations are not necessarily deleted so things like event-location linkage must be transferred to a translation and that must now be the master event. 226 * @param EM_Location $EM_Locationclass-social-facebook.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 482 lines
1<?php 2/** 99 100 return trim( parse_url( $admin_id, PHP_URL_PATH ), '/' ); 101 } 133 if ( $delfbadmin = filter_input( INPUT_GET, 'delfbadmin' ) ) { 134 $this->delete_admin( $delfbadmin ); 135 } 141 /** 142 * Deletes the admin from the options 143 * 145 */ 146 private function delete_admin( $delfbadmin ) { 147 $this->verify_nonce( 'delfbadmin' ); 243 */ 244 private $admin_url = 'admin.php?page=wpseo_social'; 245SessionTest.php https://gitlab.com/reasonat/test8 | PHP | 324 lines
1<?php 2 185 $this->assertText(t('This is a dummy message.'), 'Message was displayed.'); 186 $this->assertTrue(preg_match('/SESS\w+=deleted/', $this->drupalGetHeader('Set-Cookie')), 'Session cookie was deleted.'); 187 245 $this->settingsSet('session_write_interval', 0); 246 // Write that value also into the test settings.php file. 247 $settings['settings']['session_write_interval'] = (object) array(wpml-post-duplication.class.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 361 lines
1<?php 2 2 3require_once 'wpml-wordpress-actions.class.php'; 4 70 $sync_post_status = ( ! isset( $post_array[ 'ID' ] ) 71 || ( $this->sitepress->get_setting( 'sync_delete' ) && $master_post->post_status === 'trash' ) || $is_duplicated ); 72 } 89 90 require_once ICL_PLUGIN_PATH . '/inc/cache.php'; 91 icl_cache_clear(); 155 foreach ( $comments_on_translation as $comment ) { 156 wp_delete_comment( $comment->comment_ID, true ); 157 clean_comment_cache( $comment->comment_ID ); 212 */ 213 wp_delete_object_term_relationships( $duplicate_post_id, $taxonomies ); 214 } else {storage.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 506 lines
1<?php 2 9 * 10 * LICENSE: This source file is subject to version 3.0 of the PHP license 11 * that is available through the world-wide-web at the following URI: 12 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 13 * the PHP License and are unable to obtain it through the web, please 14 * send a note to license@php.net so we can mail you a copy immediately. 17 * @package DB 18 * @author Stig Bakken <stig@php.net> 19 * @copyright 1997-2007 The PHP Group 19 * @copyright 1997-2007 The PHP Group 20 * @license http://www.php.net/license/3_0.txt PHP License 3.0 21 * @version CVS: $Id: storage.php,v 1.24 2007/08/12 05:27:25 aharvey Exp $ 39 * @copyright 1997-2007 The PHP Group 40 * @license http://www.php.net/license/3_0.txt PHP License 3.0 41 * @version Release: 1.7.13cookie.test.php https://gitlab.com/hakimkal/evricaevents | PHP | 481 lines
6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 261 262 $this->Controller->Cookie->write(array('Encrytped_array' => array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!'))); 263 $this->Controller->Cookie->write(array('Encrytped_multi_cookies.name' => 'CakePHP')); 429 $data = $this->Controller->Cookie->read('Plain_array'); 430 $expected = array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!'); 431 $this->assertEqual($data, $expected); 433 $data = $this->Controller->Cookie->read('Plain_multi_cookies'); 434 $expected = array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!'); 435 $this->assertEqual($data, $expected);PageRepositoryTest.php https://gitlab.com/svillegas/magento2 | PHP | 282 lines
1<?php 2/** 63 if ($this->currentPage) { 64 $this->pageRepository->delete($this->currentPage); 65 $this->currentPage = null; 181 /** 182 * Test delete \Magento\Cms\Api\Data\PageInterface 183 * @expectedException \Magento\Framework\Exception\NoSuchEntityException 184 */ 185 public function testDelete() 186 { 197 'resourcePath' => self::RESOURCE_PATH . '/' . $this->currentPage->getId(), 198 'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_DELETE, 199 ], 202 'serviceVersion' => self::SERVICE_VERSION, 203 'operation' => self::SERVICE_NAME . 'DeleteById', 204 ],Routers.php https://gitlab.com/ndhoang93/ytb | PHP | 254 lines
1<?php 2/* 83 /** 84 * Deletes the specified Router resource. (routers.delete) 85 * 87 * @param string $region Name of the region for this request. 88 * @param string $router Name of the Router resource to delete. 89 * @param array $optParams Optional parameters. 91 */ 92 public function delete($project, $region, $router, $optParams = array()) 93 { 95 $params = array_merge($params, $optParams); 96 return $this->call('delete', array($params), "Google_Service_Compute_Operation"); 97 }order_status.php https://gitlab.com/dadangnh/sb1-bon | PHP | 386 lines
1<?php 2class ControllerLocalisationOrderStatus extends Controller { 78 79 public function delete() { 80 $this->load->language('localisation/order_status'); 85 86 if (isset($this->request->post['selected']) && $this->validateDelete()) { 87 foreach ($this->request->post['selected'] as $order_status_id) { 87 foreach ($this->request->post['selected'] as $order_status_id) { 88 $this->model_localisation_order_status->deleteOrderStatus($order_status_id); 89 } 158 $data['add'] = $this->url->link('localisation/order_status/add', 'token=' . $this->session->data['token'] . $url, true); 159 $data['delete'] = $this->url->link('localisation/order_status/delete', 'token=' . $this->session->data['token'] . $url, true); 160 192 $data['button_edit'] = $this->language->get('button_edit'); 193 $data['button_delete'] = $this->language->get('button_delete'); 194Controller.php https://gitlab.com/yasminmostfa/thomas-site | PHP | 323 lines
29{ 30 const OPTION_LAST_DELETE_PIWIK_LOGS = "lastDelete_piwik_logs"; 31 const ACTIVATE_DNT_NONCE = 'PrivacyManager.activateDnt'; 96 // delete reports settings 97 $settings['delete_reports_enable'] = Common::getRequestVar("deleteReportsEnable", 0); 98 $deleteReportsOlderThan = Common::getRequestVar("deleteReportsOlderThan", 3); 98 $deleteReportsOlderThan = Common::getRequestVar("deleteReportsOlderThan", 3); 99 $settings['delete_reports_older_than'] = $deleteReportsOlderThan < 3 ? 3 : $deleteReportsOlderThan; 100 $settings['delete_reports_keep_basic_metrics'] = Common::getRequestVar("deleteReportsKeepBasic", 0); 106 $settings['delete_reports_keep_segment_reports'] = Common::getRequestVar("deleteReportsKeepSegments", 0); 107 $settings['delete_logs_max_rows_per_query'] = PiwikConfig::getInstance()->Deletelogs['delete_logs_max_rows_per_query']; 108 284 //Calculate next run based on last run + interval 285 $nextScheduleRun = (int)($deleteDataInfos["lastRun"] + $deleteDataInfos["config"]["delete_logs_schedule_lowest_interval"] * 24 * 60 * 60); 286weight_class.php https://gitlab.com/reclamare/mao | PHP | 401 lines
1<?php 2class ControllerLocalisationWeightClass extends Controller { 78 79 public function delete() { 80 $this->load->language('localisation/weight_class'); 85 86 if (isset($this->request->post['selected']) && $this->validateDelete()) { 87 foreach ($this->request->post['selected'] as $weight_class_id) { 87 foreach ($this->request->post['selected'] as $weight_class_id) { 88 $this->model_localisation_weight_class->deleteWeightClass($weight_class_id); 89 } 158 $data['add'] = $this->url->link('localisation/weight_class/add', 'token=' . $this->session->data['token'] . $url, 'SSL'); 159 $data['delete'] = $this->url->link('localisation/weight_class/delete', 'token=' . $this->session->data['token'] . $url, 'SSL'); 160 196 $data['button_edit'] = $this->language->get('button_edit'); 197 $data['button_delete'] = $this->language->get('button_delete'); 198length_class.php https://gitlab.com/reclamare/mao | PHP | 399 lines
1<?php 2class ControllerLocalisationLengthClass extends Controller { 78 79 public function delete() { 80 $this->load->language('localisation/length_class'); 85 86 if (isset($this->request->post['selected']) && $this->validateDelete()) { 87 foreach ($this->request->post['selected'] as $length_class_id) { 87 foreach ($this->request->post['selected'] as $length_class_id) { 88 $this->model_localisation_length_class->deleteLengthClass($length_class_id); 89 } 158 $data['add'] = $this->url->link('localisation/length_class/add', 'token=' . $this->session->data['token'] . $url, 'SSL'); 159 $data['delete'] = $this->url->link('localisation/length_class/delete', 'token=' . $this->session->data['token'] . $url, 'SSL'); 160 196 $data['button_edit'] = $this->language->get('button_edit'); 197 $data['button_delete'] = $this->language->get('button_delete'); 198ClienteController.php https://gitlab.com/fabiorf/edigital | PHP | 397 lines
1<?php 2 319 if(count($oDoc->getDocumentosDownloadss())){ 320 $oDoc->getDocumentosDownloadss()->delete(); 321 } 322 323 $oDoc->delete(); 324 } 327 if(count($oCliente->getCategoriass()->get())){ 328 $oCliente->getCategoriass()->delete(); 329 } 330 if(count($oCliente->getClientePgtoss()->get())){ 331 $oCliente->getClientePgtoss()->delete(); 332 } 334 if(count($oCliente->getProdutoss()->get())){ 335 $oCliente->getProdutoss()->delete(); 336 }TranslatorTest.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 288 lines
1<?php 2 19 20class TranslatorTest extends \PHPUnit_Framework_TestCase 21{ 26 $this->tmpDir = sys_get_temp_dir().'/sf2_translation'; 27 $this->deleteTmpDir(); 28 } 31 { 32 $this->deleteTmpDir(); 33 } 34 35 protected function deleteTmpDir() 36 {allfunctions.php https://gitlab.com/Toldierone/Compounds-mirror | PHP | 372 lines
1<?php 2$mysqli = new mysqli("localhost", "username", "password", "database"); 33 session_unset(); 34 header("Location: index.php"); 35 exit; 46 if (!$GLOBALS['userinfo']['user_id']) { 47 header("Location: index.php"); 48 exit; 52 if ($GLOBALS['userinfo']['stasismode']) { 53 header("Location: userinfo.php"); 54 exit; 56 if (!$GLOBALS['userinfo']['alliance_id']) { 57 header("Location: index.php"); 58 exit; 223$sql=<<<EOSQL 224DELETE FROM resources WHERE amount = 0 225EOSQL;postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
1<?php 2/** 227 case 'update': 228 case 'delete': 229 case 'insert':post.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 523 lines
1<?php 2 182 /** 183 * Delete a post by ID. 184 * 187 * <id>... 188 * : One or more IDs of posts to delete. 189 * 194 * 195 * wp post delete 123 --force 196 * 196 * 197 * wp post delete $(wp post list --post_type='page' --format=ids) 198 * 198 * 199 * # delete all posts in the trash 200 * wp post delete $(wp post list --post_status=trash --format=ids)fr.inc.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 272 lines
1<?php 2$translations = array( 39 'Create new table' => 'Créer une nouvelle table', 40 'Item has been deleted.' => 'L\'élément a été supprimé.', 41 'Item has been updated.' => 'L\'élément a été modifié.', 44 'Save and insert next' => 'Sauvegarder et insérer le prochain', 45 'Delete' => 'Effacer', 46 'Database' => 'Base de données', 81 'No extension' => 'Extension introuvable', 82 'None of the supported PHP extensions (%s) are available.' => 'Aucune des extensions PHP supportées (%s) n\'est disponible.', 83 'Session support must be enabled.' => 'Veuillez activer les sessions.', 96 'Add foreign key' => 'Ajouter une clé étrangère', 97 'ON DELETE' => 'ON DELETE', 98 'ON UPDATE' => 'ON UPDATE', 140 'Revoke' => 'Revoke', 141 '%s version: %s through PHP extension %s' => 'Version de %s : %s via l\'extension PHP %s', 142 'Logged as: %s' => 'Authentifié en tant que : %s',Pop3.php https://gitlab.com/Ltaimao/wecenter | PHP | 328 lines
1<?php 2/** 26 */ 27//require_once 'Zend/Mail/Storage/Abstract.php'; 28 31 */ 32//require_once 'Zend/Mail/Protocol/Pop3.php'; 33 36 */ 37//require_once 'Zend/Mail/Message.php'; 38 114 */ 115 //require_once 'Zend/Mail/Storage/Exception.php'; 116 throw new Zend_Mail_Storage_Exception('not implemented'); 137 */ 138 //require_once 'Zend/Mail/Storage/Exception.php'; 139 throw new Zend_Mail_Storage_Exception('not implemented');google.php https://gitlab.com/Ltaimao/wecenter | PHP | 338 lines
1<?php 2/* 301 302 return $this->delete('users_google', 'uid = ' . $uid); 303 }SqliteMetadata.php https://gitlab.com/jalon/doadoronline | PHP | 392 lines
1<?php 2/** 178 'referenced_columns' => array(), 179 // TODO: Verify match, on_update, and on_delete values conform to SQL Standard 180 'match_option' => strtoupper($fk['match']), 181 'update_rule' => strtoupper($fk['on_update']), 182 'delete_rule' => strtoupper($fk['on_delete']), 183 ); 299 array('(?<action_timing>BEFORE|AFTER|INSTEAD\\s+OF)',), 300 '(?<event_manipulation>DELETE|INSERT|UPDATE)', 301 array('OF', '(?<column_usage>' . $identifierList . ')'),MDB2Store.php https://gitlab.com/r.collas/site_central | PHP | 413 lines
1<?php 2 5 * 6 * PHP versions 4 and 5 7 * 15 16require_once 'MDB2.php'; 17 20 */ 21require_once 'Auth/OpenID/Interface.php'; 22 25 */ 26require_once 'Auth/OpenID.php'; 27 30 */ 31require_once 'Auth/OpenID/Nonce.php'; 32DataRowsTableSeeder.php https://gitlab.com/alanrodas/ddhhunq | PHP | 386 lines
1<?php 2 27 'add' => 0, 28 'delete' => 0, 29 'details' => '', 43 'add' => 1, 44 'delete' => 1, 45 'details' => '', 59 'add' => 1, 60 'delete' => 1, 61 'details' => '', 75 'add' => 1, 76 'delete' => 0, 77 'details' => '', 91 'add' => 0, 92 'delete' => 0, 93 'details' => '',BookmarkRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 244 lines
1<?php 2/** 14 */ 15class BookmarkRepositoryTest extends \PHPUnit_Framework_TestCase 16{ 17 /** 18 * @var BookmarkRepository|\PHPUnit_Framework_MockObject_MockObject 19 */ 22 /** 23 * @var \Magento\Ui\Api\Data\BookmarkInterface|\PHPUnit_Framework_MockObject_MockObject 24 */ 27 /** 28 * @var \Magento\Ui\Model\ResourceModel\Bookmark|\PHPUnit_Framework_MockObject_MockObject 29 */ 32 /** 33 * @var \Magento\Ui\Api\Data\BookmarkSearchResultsInterface|\PHPUnit_Framework_MockObject_MockObject 34 */Overview.php https://gitlab.com/yousafsyed/easternglamor | PHP | 397 lines
1<?php 2/** 151 * @return bool 152 * @SuppressWarnings(PHPMD.BooleanGetMethodName) 153 */ 311 foreach ($this->getBillingAddress()->getItemsCollection() as $_item) { 312 if ($_item->isDeleted()) { 313 continue;Grid.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 267 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 */ 213 214 $this->getMassactionBlock()->addItem('delete', array( 215 'label'=> Mage::helper('review')->__('Delete'), 216 'url' => $this->getUrl( 217 '*/*/massDelete', 218 array('ret' => Mage::registry('usePendingFilter') ? 'pending' : 'index')component.php https://gitlab.com/alexprowars/bitrix | PHP | 255 lines
1<?php 2 84 } 85 if ($_REQUEST["action"] === "delete" && check_bitrix_sessid() && intval($_REQUEST["eventID"]) > 0) 86 { 88 89 if (!CSocNetMessages::DeleteMessage(intval($_REQUEST["eventID"]), $GLOBALS["USER"]->GetID())) 90 { 110 } 111 if ($_SERVER["REQUEST_METHOD"] === "POST" && ($_POST["do_read"] <> '' || $_POST["do_delete"] <> '') && check_bitrix_sessid()) 112 { 137 } 138 elseif ($_POST["do_delete"] <> '') 139 { 221 "READ_LINK" => htmlspecialcharsbx($APPLICATION->GetCurUri("eventID=".$arMessages["ID"]."&action=close&".bitrix_sessid_get()."")), 222 "DELETE_LINK" => htmlspecialcharsbx($APPLICATION->GetCurUri("eventID=".$arMessages["ID"]."&action=delete&".bitrix_sessid_get()."")), 223 "BAN_LINK" => htmlspecialcharsbx($APPLICATION->GetCurUri("userID=".$arMessages["FROM_USER_ID"]."&action=ban&".bitrix_sessid_get()."")),Filesystem.php https://gitlab.com/Sigpot/AirSpot | PHP | 514 lines
1<?php 2 142 /** 143 * Delete the file at a given path. 144 * 147 */ 148 public function delete($paths) 149 { 403 if ($overwrite && $this->isDirectory($to)) { 404 if (! $this->deleteDirectory($to)) { 405 return false; 464 /** 465 * Recursively delete a directory. 466 * 482 // If the item is a directory, we can just recurse into the function and 483 // delete that sub-directory otherwise we'll just delete the file and 484 // keep iterating through each file until the directory is cleaned.adminAdministrators.php https://gitlab.com/scsistemas/superprime | PHP | 258 lines
7 <!-- Sidebar --> 8 <?php include '../includes/sidebarMenu.php'; ?> 9 <!-- /Sidebar --> 11 <!-- top navigation --> 12 <?php include '../includes/topNavigation.php'; ?> 13 <!-- /top navigation --> 76 <a href="" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#edituser"><span name="edit" id="<?php print_r($administradores[$f]['IdUser']); ?>" class="glyphicon glyphicon-pencil"></span></a> 77 <a href="" class="btn btn-xs btn-danger" data-remodal-target="deleteUser" name="delete" id="<?php print_r($administradores[$f]['IdUser']); ?>" ><i class="fa fa-trash" aria-hidden="true"></i></a></td> 78 </tr> 151 <?php foreach ($accesos as $f=>$value) { ?> 152 <option value="<?php print_r(ucfirst($accesos[$f]['nombre'])); ?>" id="<?php print_r($accesos[$f]['id']); ?>"><?php print_r(ucfirst($accesos[$f]['nombre'])); ?> </option> 153 <?php } ?> 239 240 <?php include('../includes/scripts.php') ?> 241 <script src="../js/remodal/remodal.js"></script>kbdgr.c https://gitlab.com/dj-tech/reactos | C | 448 lines
5 * 6 * Thanks to: http://www.barcodeman.com/altek/mule/scandoc.php 7 * and http://win.tue.nl/~aeb/linux/kbd/scancodes-1.html 74 VK_END | KNUMS, VK_DOWN | KNUMS, VK_NEXT | KNUMS, 75 VK_INSERT | KNUMS, VK_DELETE | KNUMS, 76 /* - 54 - */ 128 { 0x52, VK_INSERT | KBDEXT }, 129 { 0x53, VK_DELETE | KBDEXT }, 130 { 0x5B, VK_LWIN | KBDEXT },