PageRenderTime 3929ms queryTime 427ms sortTime 303ms getByIdsTime 989ms findMatchingLines 791ms

100+ results results for 'php rename' (3929 ms)

Not the results you expected?
FUXmlWriter.cpp https://bitbucket.org/ardalanaz/dava.framework.git | C++ | 259 lines
                    
5	
                    
6	MIT License: http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
65
                    
66	void RenameNode(xmlNode* node, const char* newName)
                    
67	{
                    
                
lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 305 lines
                    
1<?php
                    
2
                    
57                array(
                    
58                    'renamefields' => array(
                    
59                        'summary' => 'intro',
                    
79        global $CFG;
                    
80        require_once("$CFG->libdir/resourcelib.php");
                    
81
                    
113            // use the version of the successor instead of the current mod/resource
                    
114            // beware - the version.php declares info via $module object, do not use
                    
115            // a variable of such name here
                    
116            $module = new stdClass();
                    
117            include $CFG->dirroot.'/mod/'.$successor->get_modname().'/version.php';
                    
118            $cminfo['version'] = $module->version;
                    
189        $reference = $data['reference'];
                    
190        if (strpos($reference, '$@FILEPHP@$') === 0) {
                    
191            $reference = str_replace(array('$@FILEPHP@$', '$@SLASH@$', '$@FORCEDOWNLOAD@$'), array('', '/', ''), $reference);
                    
                
autosession.vim https://github.com/serebrov/vimrc.git | Vim Script | 400 lines
                    
3"  Based on sessionman.vim by Yuri Klubakov (see
                    
4"  http://www.vim.org/scripts/script.php?script_id=2010)
                    
5"
                    
12"
                    
13"  * :SessionSave command to create and name a new session or rename existing
                    
14"  * :SessionOpen to open session
                    
                
fa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
                    
1<?php
                    
2$translations = array(
                    
16	'No extension' => 'پسوند نامعتبر',
                    
17	'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد',
                    
18	'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد',
                    
19	'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد',
                    
20	'%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s',
                    
21	'Refresh' => 'بازيابي',
                    
83	'Database has been created.' => 'پايگاه داده ايجاد شد',
                    
84	'Database has been renamed.' => 'نام پايگاه داده تغيير كرد',
                    
85	'Database has been altered.' => 'پايگاه داده ويرايش شد',
                    
285	
                    
286	// general SQLite error in create, drop or rename database
                    
287	'File exists.' => 'فایل موجود است',
                    
                
MoveFiles.php https://gitlab.com/shinvdu/ad | PHP | 278 lines
                    
1<?php
                    
2/*
                    
23 */
                    
24require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
                    
25
                    
63
                    
64        if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_RENAME | CKFINDER_CONNECTOR_ACL_FILE_UPLOAD | CKFINDER_CONNECTOR_ACL_FILE_DELETE)) {
                    
65            $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
                    
195                        else {
                    
196                            if (!@rename($sourceFilePath, $destinationFilePath)) {
                    
197                                $errorCode = CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;
                    
206                    }
                    
207                    else if (strpos($options, "autorename") !== false) {
                    
208                        $iCounter = 1;
                    
222                        }
                    
223                        if (!@rename($sourceFilePath, $destinationFilePath)) {
                    
224                            $errorCode = CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;
                    
                
elfinder.fr.js https://gitlab.com/kaouech/theme | JavaScript | 298 lines
                    
26			'errConf'              : 'Mauvaise configuration du backend.',
                    
27			'errJSON'              : 'Le module PHP JSON n\'est pas installé.',
                    
28			'errNoVolumes'         : 'Aucun volume lisible.',
                    
47			'errMkfile'            : 'impossible de créer le fichier "$1".',
                    
48			'errRename'            : 'Impossible de renommer "$1".',
                    
49			'errCopyFrom'          : 'Interdiction de copier des fichiers depuis le volume "$1".',
                    
91			'cmdreload'    : 'Actualiser',
                    
92			'cmdrename'    : 'Renommer',
                    
93			'cmdrm'        : 'Supprimer',
                    
118			'ntfprepare'  : 'Préparation de la copie des fichiers',
                    
119			'ntfrename'   : 'Renommer les fichier',
                    
120			'ntfupload'   : 'Envoyer les fichiers',
                    
247			'kindTextPlain'   : 'Texte non formaté',
                    
248			'kindPHP'         : 'Source PHP',
                    
249			'kindCSS'         : 'Cascading style sheet',
                    
                
fr.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 286 lines
                    
1<?php
                    
2$translations = array(
                    
27	'Database has been created.' => 'La base de données a été créée.',
                    
28	'Database has been renamed.' => 'La base de données a été renommée.',
                    
29	'Database has been altered.' => 'La base de données a été modifiée.',
                    
79	'No extension' => 'Extension introuvable',
                    
80	'None of the supported PHP extensions (%s) are available.' => 'Aucune des extensions PHP supportées (%s) n\'est disponible.',
                    
81	'Session support must be enabled.' => 'Veuillez activer les sessions.',
                    
138	'Revoke' => 'Revoke',
                    
139	'%s version: %s through PHP extension %s' => 'Version de %s : %s via l\'extension PHP %s',
                    
140	'Logged as: %s' => 'Authentifié en tant que : %s',
                    
140	'Logged as: %s' => 'Authentifié en tant que : %s',
                    
141	'Too big POST data. Reduce the data or increase the %s configuration directive.' => 'Données POST trop grandes. Réduisez la taille des données ou augmentez la valeur de %s dans la configuration de PHP.',
                    
142	'Move up' => 'Déplacer vers le haut',
                    
                
class-wc-shipping-legacy-flat-rate.php https://gitlab.com/hunt9310/ras | PHP | 379 lines
                    
1<?php
                    
2if ( ! defined( 'ABSPATH' ) ) {
                    
26		$this->method_title       = __( 'Flat Rate (Legacy)', 'woocommerce' );
                    
27		$this->method_description = sprintf( __( '<strong>This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your <a href="%s">Shipping Zones</a>.</strong>', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=shipping' ) );
                    
28		$this->init();
                    
40		if ( 'no' === $this->settings[ 'enabled' ] ) {
                    
41			wp_redirect( admin_url( 'admin.php?page=wc-settings&tab=shipping&section=options' ) );
                    
42			exit;
                    
76	public function init_form_fields() {
                    
77		$this->form_fields = include( 'includes/settings-flat-rate.php' );
                    
78	}
                    
86	protected function evaluate_cost( $sum, $args = array() ) {
                    
87		include_once( WC()->plugin_path() . '/includes/libraries/class-wc-eval-math.php' );
                    
88
                    
222		 * 			$new_rate['id']    .= ':' . 'custom_rate_name'; // Append a custom ID.
                    
223		 * 			$new_rate['label'] = 'Rushed Shipping'; // Rename to 'Rushed Shipping'.
                    
224		 * 			$new_rate['cost']  += 2; // Add $2 to the cost.
                    
                
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 */
                    
211    /**
                    
212     * Rename files in database
                    
213     *
                    
219     */
                    
220    public function renameFile($oldFilename, $oldPath, $newFilename, $newPath)
                    
221    {
                    
                
Move.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 364 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 5                                                        |
                    
5// +----------------------------------------------------------------------+
                    
9// | This LICENSE is in the BSD license style.                            |
                    
10// | http://www.opensource.org/licenses/bsd-license.php                   |
                    
11// |                                                                      |
                    
43//
                    
44// $Id: Move.php 12 2007-09-17 20:20:11Z killersoft $
                    
45//
                    
55 *
                    
56 * Move and/or rename something in working copy or repository.
                    
57 *
                    
61 *     WC  -> WC:   move and schedule for addition (with history)
                    
62 *     URL -> URL:  complete server-side rename.
                    
63 *
                    
                
class-wp-rest-search-controller.php https://gitlab.com/campus-academy/krowkaramel | PHP | 387 lines
                    
1<?php
                    
2/**
                    
72					__METHOD__,
                    
73					/* translators: %s: PHP class name. */
                    
74					sprintf( __( 'REST search handlers must extend the %s class.' ), 'WP_REST_Search_Handler' ),
                    
188	 * @since 5.6.0 The `$id` parameter can accept a string.
                    
189	 * @since 5.9.0 Renamed `$id` to `$item` to match parent class for PHP 8 named parameter support.
                    
190	 *
                    
                
DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
                    
1<?php
                    
2
                    
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
                    
352    if ($is_deleted) {
                    
353      // When a field is a deleted, the table is renamed to
                    
354      // {field_deleted_revision_FIELD_UUID}. To make sure we don't end up with
                    
                
Banners.php https://github.com/orchestra-io/sample-openx.git | PHP | 322 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: Banners.php 44998 2009-10-20 16:15:30Z matthieu.aubry $
                    
26*/
                    
30 */
                    
31require_once 'DB_DataObjectCommon.php';
                    
32include_once MAX_PATH . '/www/admin/lib-banner.inc.php';
                    
32include_once MAX_PATH . '/www/admin/lib-banner.inc.php';
                    
33include_once MAX_PATH . '/www/admin/lib-storage.inc.php';
                    
34
                    
161            if ($doBanner->getRowCount() == 1) {
                    
162                phpAds_ImageDelete ($storageType, $fileName);
                    
163            }
                    
164        } else {
                    
165            phpAds_ImageDelete ($storageType, $fileName);
                    
166        }
                    
                
Comparator.php https://bitbucket.org/cryofrost/portal.git | PHP | 378 lines
                    
1<?php
                    
2/*
                    
26 * @license http://ez.no/licenses/new_bsd New BSD License
                    
27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
28 * @link    www.doctrine-project.org
                    
241    /**
                    
242     * Try to find columns that only changed their name, rename operations maybe cheaper than add/drop
                    
243     * however ambiguouties between different possibilites should not lead to renaming at all.
                    
248    {
                    
249        $renameCandidates = array();
                    
250        foreach ($tableDifferences->addedColumns AS $addedColumnName => $addedColumn) {
                    
252                if (count($this->diffColumn($addedColumn, $removedColumn)) == 0) {
                    
253                    $renameCandidates[$addedColumn->getName()][] = array($removedColumn, $addedColumn, $addedColumnName);
                    
254                }
                    
257
                    
258        foreach ($renameCandidates AS $candidate => $candidateColumns) {
                    
259            if (count($candidateColumns) == 1) {
                    
                
transformation.php https://github.com/apache/zetacomponents.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
334        {
                    
335            // Windows does not allows overwriting files using rename,
                    
336            // therefore the file is unlinked here first.
                    
343        }
                    
344        if ( @rename( $fileTmp, $fileOut ) === false )
                    
345        {
                    
346            unlink( $fileTmp );
                    
347            throw new ezcImageFileNotProcessableException( $fileOut, "The temporary file {$fileTmp} could not be renamed to {$fileOut}." );
                    
348        }
                    
                
Nirvanix.php https://github.com/mrbanzai/zf2.git | PHP | 403 lines
                    
1<?php
                    
2/**
                    
186            $destinationPath = $this->_getFullPath($destinationPath);
                    
187            $this->_imfNs->RenameFile(array('filePath' => $sourcePath,
                    
188                                             'newFileName' => $destinationPath));
                    
196    /**
                    
197     * Rename an item in the storage service to a given name.
                    
198     *
                    
204     */
                    
205    public function renameItem($path, $name, $options = null)
                    
206    {
                    
                
BakeShell.php https://gitlab.com/alexandresgv/siteentec | PHP | 317 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         0.1.0
                    
12 * @since         0.1.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
27 *
                    
28 * Bake is CakePHP's code generation script, which can help you kickstart
                    
29 * application development by writing fully functional skeleton controllers,
                    
31 *
                    
32 * @link http://book.cakephp.org/3.0/en/console-and-shells/code-generation-with-bake.html
                    
33 */
                    
                
Database.php https://bitbucket.org/mengqing/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) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
211    /**
                    
212     * Rename files in database
                    
213     *
                    
219     */
                    
220    public function renameFile($oldFilename, $oldPath, $newFilename, $newPath)
                    
221    {
                    
                
Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
                    
1<?php namespace Illuminate\Filesystem;
                    
2
                    
140    {
                    
141        return rename($path, $target);
                    
142    }
                    
                
App.php https://gitlab.com/sejator/posci4 | PHP | 448 lines
                    
1<?php
                    
2
                    
32	 *
                    
33	 * Typically this will be your index.php file, unless you've renamed it to
                    
34	 * something else. If you are using mod_rewrite to remove the page set this
                    
38	 */
                    
39	public $indexPage = 'index.php';
                    
40
                    
120	 *
                    
121	 * @see http://php.net/htmlspecialchars for a list of supported charsets.
                    
122	 *
                    
436	 * the Response object will populate default values for the policy from the
                    
437	 * `ContentSecurityPolicy.php` file. Controllers can always add to those
                    
438	 * restrictions at run time.
                    
                
loco-translate-fr_FR.js https://gitlab.com/najomie/fit-hippie | JavaScript | 185 lines
                    
43    "New PO file": "Nouveau fichier de traduction (fichier PO)",
                    
44    "PO file used as template. This will be renamed to %s on first save": "Fichier de traduction (fichier PO) utilisé comme modèle. Ce fichier sera renommé en %s au premier enregistrement",
                    
45    "You must specify a valid locale for a new PO file": "Vous devez indiquer une région valide pour le nouveau fichier de traduction (fichier PO)",
                    
74    "File download failed": "Le téléchargement du fichier a échoué",
                    
75    "WPLANG is deprecated and should be removed from wp-config.php": "La constante WPLANG est dépréciée et devrait être supprimée de wp-config.php",
                    
76    "Unknown language": "Région inconnue",
                    
155    "Core": "Fichiers principaux",
                    
156    "PHP extension \"%s\" is not installed. If you experience problems you should install it": "",
                    
157    "Unknown error": "Erreur inconnue",
                    
                
parser.cpp https://github.com/github-ivan/hiphop-php.git | C++ | 351 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
23
                    
24namespace HPHP {
                    
25///////////////////////////////////////////////////////////////////////////////
                    
                
MySqlGrammar.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 577 lines
                    
1<?php namespace Illuminate\Database\Schema\Grammars;
                    
2
                    
265	/**
                    
266	 * Compile a rename table command.
                    
267	 *
                    
271	 */
                    
272	public function compileRename(Blueprint $blueprint, Fluent $command)
                    
273	{
                    
275
                    
276		return "rename table {$from} to ".$this->wrapTable($command->to);
                    
277	}
                    
                
config.php https://gitlab.com/alexprowars/bitrix | PHP | 112 lines
                    
1<?php
                    
2$MESS["BX_IM_COMPONENT_CALL_ALL_CHATS"] = "Alle Chats";
                    
104$MESS["BX_IM_COMPONENT_CALL_USER_LIST_MENU_PIN"] = "Nutzervideo fixieren";
                    
105$MESS["BX_IM_COMPONENT_CALL_USER_LIST_MENU_RENAME"] = "Umbenennen";
                    
106$MESS["BX_IM_COMPONENT_CALL_USER_LIST_MENU_RENAME_SELF"] = "Namen ändern";
                    
                
loco-translate-ckb.js https://gitlab.com/najomie/fit-hippie | JavaScript | 185 lines
                    
43    "New PO file": "دۆسیەیەکی (PO)ی نوێ",
                    
44    "PO file used as template. This will be renamed to %s on first save": "دۆسیەی (PO) وەکو داڕێژەیەک بەکارهاتووە، ئەمەش لە یەکەمین پاشەکەوتدا ناوی دەنێتەوە \n%s",
                    
45    "You must specify a valid locale for a new PO file": "دەبێ شوێنێکی ناوەکیی دروست دیاری بکەی بۆ دۆسیەی نوێی (PO)",
                    
74    "File download failed": "داگرتنی دۆسیە شکستی هێنا",
                    
75    "WPLANG is deprecated and should be removed from wp-config.php": "WPLANG بەباش دانانرێ و دەبێ لە \nwp-config.php ڕەش بکرێتەوە",
                    
76    "Unknown language": "زمانێکی نەزانراوە",
                    
155    "Core": "کاکڵ",
                    
156    "PHP extension \"%s\" is not installed. If you experience problems you should install it": "لقوپۆپەی پی ئێچ پی \"%s\" دانەمەزراوە، ئەگەر تووشی کێشە هاتی؛ دەبێ دای بمەزرێنیت",
                    
157    "Unknown error": "هەڵەی نەناسراو",
                    
                
ControllerTest.php https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
64        $syncrotonFolder = $this->testCreateFolder();
                    
65        $syncrotonFolder->displayName = 'RenamedTestFolder';
                    
66
                    
73        $this->assertArrayHasKey($syncrotonFolder->serverId, $allFolders);
                    
74        $this->assertEquals('RenamedTestFolder', $allFolders[$syncrotonFolder->serverId]->displayName);
                    
75
                    
                
Product.php https://gitlab.com/mvcarvalho/plataforma-e-commerce | PHP | 235 lines
                    
54                                        <div class="input-group" style="width: 100%">
                    
55                                            <label for="select-<?php echo($attribute->id);?>"><?php echo($attribute->name);?></label>
                    
56                                            <select name="select-<?php echo($attribute->id);?>" class="form-control select" style="border-radius: 0">
                    
87                                            <?php foreach($feature->options as $option) {?>
                    
88                                                <option value="<?php echo($option->name);?>"><?php echo($option->name);?></option>
                    
89                                            <?php }?>
                    
112                            <div class="col-lg-9 col-md-9 col-sm-9 col-xs-9" style="0;">
                    
113                                <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo($productLink);?>" onclick="share(this); return false;" target="_blank" title="<?php echo($shareName);?>">
                    
114                                    <img src="<?php echo(SITE_URL . 'Images' . DS . 'facebook.png');?>" class="img-responsive" style="display: inline-block; padding: 3px;">
                    
115                                </a>
                    
116                                <a href="https://twitter.com/home?status=<?php echo($productLink);?>" onclick="share(this); return false;" target="_blank" title="<?php echo($shareName);?>">
                    
117                                    <img src="<?php echo(SITE_URL . 'Images' . DS . 'twitter.png');?>" class="img-responsive" style="display: inline-block; padding: 3px;">
                    
118                                </a>
                    
119                                <a href="https://plus.google.com/share?url=<?php echo($productLink);?>" onclick="share(this); return false;" target="_blank" title="<?php echo($shareName);?>">
                    
120                                    <img src="<?php echo(SITE_URL . 'Images' . DS . 'google-plus.png');?>" class="img-responsive" style="display: inline-block; padding: 3px;">
                    
                
Graph.php https://github.com/studioskylab/Docblox.git | PHP | 259 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
11 * @copyright  2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
                    
12 * @license    http://www.opensource.org/licenses/mit-license.php MIT
                    
13 * @link       http://docblox-project.org
                    
24 * @author     Mike van Riel <mike.vanriel@naenius.com>
                    
25 * @license    http://www.opensource.org/licenses/mit-license.php MIT
                    
26 * @link       http://docblox-project.org
                    
127            if (!isset($this->class_paths[$sub_element->getElementsByTagName('full_name')->item(0)->nodeValue])) {
                    
128                echo $sub_element->getElementsByTagName('full_name')->item(0)->nodeValue.PHP_EOL;
                    
129            } else {
                    
252
                    
253        // for the SVGPan file to work no viewBox may be defined and the id of the first <g> node must be renamed to 'viewport'
                    
254        unset($svg['viewBox']);
                    
                
Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Logger.php
                    
4 *
                    
433				if (file_exists($rfile)) {
                    
434					rename($rfile, $nfile);
                    
435				}
                    
437
                    
438			rename($logFile, $logFile . ".1");
                    
439
                    
                
Store.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 510 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-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
361     */
                    
362    public function getStoreName($storeId)
                    
363    {
                    
389     **/
                    
390    public function getStoreNameWithWebsite($storeId)
                    
391    {
                    
395            foreach ($storeId as $id) {
                    
396                $names[]= $this->getStoreNameWithWebsite($id);
                    
397            }
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
23
                    
24function rename_file($old_path,$name,$transliteration){
                    
25    $name=fix_filename($name,$transliteration);
                    
29	if(file_exists($new_path)) return false;
                    
30	return rename($old_path,$new_path);
                    
31    }
                    
33
                    
34function rename_folder($old_path,$name,$transliteration){
                    
35    $name=fix_filename($name,$transliteration);
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
55    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
56	require_once('php_image_magician.php');
                    
57	$magicianObj = new imageLib($imgfile);
                    
                
pmetis.c https://bitbucket.org/pecchia/libnegf.git | C | 341 lines
                    
131  if (nparts > 2) {
                    
132    SplitGraphPart(ctrl, graph, &lgraph, &rgraph);
                    
133    /* printf("%d %d\n", lgraph.nvtxs, rgraph.nvtxs); */
                    
189**************************************************************************/
                    
190void SplitGraphPart(CtrlType *ctrl, GraphType *graph, GraphType *lgraph, GraphType *rgraph)
                    
191{
                    
194  idxtype *sxadj[2], *svwgt[2], *sadjncy[2], *sadjwgt[2], *sadjwgtsum[2], *slabel[2];
                    
195  idxtype *rename;
                    
196  idxtype *auxadjncy, *auxadjwgt;
                    
216
                    
217  rename = idxwspacemalloc(ctrl, nvtxs);
                    
218  
                    
221    k = where[i];
                    
222    rename[i] = snvtxs[k]++;
                    
223    snedges[k] += xadj[i+1]-xadj[i];
                    
                
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';
                    
86
                    
87        // Rename options
                    
88        $mcFileManagerConfig['rename.include_file_pattern'] = '';
                    
                
config.php https://github.com/magwai/zkernel.git | PHP | 307 lines
                    
41/*
                    
42 Uncomment lines below to enable PHP error reporting and displaying PHP errors.
                    
43 Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected.
                    
145		'fileUpload' => true,
                    
146		'fileRename' => true,
                    
147		'fileDelete' => true);
                    
149/*
                    
150For example, if you want to restrict the upload, rename or delete of files in
                    
151the "Logos" folder of the resource type "Images", you may uncomment the
                    
218
                    
219	- If "php" is on the denied extensions list, a file named foo.php cannot be
                    
220	  uploaded.
                    
225
                    
226In some conditions Apache can treat the foo.php.rar file just like any PHP
                    
227script and execute it.
                    
                
loco-translate-de_DE.js https://gitlab.com/najomie/fit-hippie | JavaScript | 185 lines
                    
43    "New PO file": "Neue PO-Datei",
                    
44    "PO file used as template. This will be renamed to %s on first save": "PO-Datei wird als Template verwendet. Dies wird in %s beim ersten Speichern umbenannt.",
                    
45    "You must specify a valid locale for a new PO file": "Du musst einen gültigen Pfad für die PO-Datei angeben",
                    
74    "File download failed": "Dateidownload ist fehlgeschlagen",
                    
75    "WPLANG is deprecated and should be removed from wp-config.php": "",
                    
76    "Unknown language": "Unbekannte Sprache",
                    
155    "Core": "Core",
                    
156    "PHP extension \"%s\" is not installed. If you experience problems you should install it": "",
                    
157    "Unknown error": "Unbekannter Fehler",
                    
                
Database.php https://github.com/arush/desparation-deprecated.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 */
                    
211    /**
                    
212     * Rename files in database
                    
213     *
                    
219     */
                    
220    public function renameFile($oldFilename, $oldPath, $newFilename, $newPath)
                    
221    {
                    
                
lang_sql.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 188 lines
                    
1<?php
                    
2$lang['L_COMMAND']="Lệnh";
                    
82$lang['L_SQL_WASEMPTIED']="đã được làm rỗng";
                    
83$lang['L_SQL_RENAMEDTO']="được đổi tên thành";
                    
84$lang['L_SQL_DBCOPY']="Nội dung của Cơ sở dữ liệu `%s` được sao chép trong Cơ sở dữ liệu `%s`.";
                    
86$lang['L_SQL_WASCREATED']="được tạo ra";
                    
87$lang['L_SQL_RENAMEDB']="Đổi tên Cơ sở dữ liệu";
                    
88$lang['L_SQL_ACTIONS']="Những hành động";
                    
                
site-config.php https://bitbucket.org/gracedigital/iob.git | PHP | 222 lines
                    
1<?php
                    
2	
                    
190	// TIPS
                    
191	DEFINE("TIP_RADIO_RENAME", "Rename this radio");
                    
192	DEFINE("TIP_RADIO_DELETE", "Delete this radio");
                    
                
SqlServerGrammar.php https://gitlab.com/vincetang/mtweb | PHP | 551 lines
                    
1<?php
                    
2
                    
221    /**
                    
222     * Compile a rename table command.
                    
223     *
                    
227     */
                    
228    public function compileRename(Blueprint $blueprint, Fluent $command)
                    
229    {
                    
231
                    
232        return "sp_rename {$from}, ".$this->wrapTable($command->to);
                    
233    }
                    
                
upgrade.php https://github.com/totara/moodle.git | PHP | 324 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
64
                    
65    //rename config var from maxattempts to maxattempt
                    
66    if ($oldversion < 2012061701) {
                    
85    if ($oldversion < 2013081301) {
                    
86        require_once($CFG->dirroot . '/mod/scorm/lib.php');
                    
87        $scorms = $DB->get_recordset('scorm', array('scormtype' => 'imsrepository'));
                    
166        if (!empty($hide)) {
                    
167            require_once($CFG->dirroot . '/mod/scorm/lib.php');
                    
168            set_config('nav', SCORM_NAV_DISABLED, 'scorm');
                    
                
file.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 138 lines
                    
1<?php
                    
2/**
                    
29$_lang['file_err_open'] = 'ファイルが開けません。: ';
                    
30$_lang['file_err_perms_rename'] = 'ファイルの名称変更に必要なパーミッションがウェブサーバーにありません。';
                    
31$_lang['file_err_perms_remove'] = 'ファイルの削除に必要なパーミッションがウェブサーバーにありません。';
                    
31$_lang['file_err_perms_remove'] = 'ファイルの削除に必要なパーミッションがウェブサーバーにありません。';
                    
32$_lang['file_err_rename'] = 'ファイル名を変更できませんでいた。パーミッションが正しく設定されているかどうか確認してください。';
                    
33$_lang['file_err_remove'] = 'ファイルを削除できませんでした。パーミッションが正しく設定されているかどうか確認してください。';
                    
37$_lang['file_err_unzip_invalid_path'] = '解凍済みファイルのパスが不適切です。';
                    
38$_lang['file_err_unzip_missing_lib'] = ' zipライブラリが見当たりません。(php_zip.dll / zip.so)';
                    
39$_lang['file_err_upload'] = 'ファイルのアップロード中にエラーが発生しました。';
                    
60$_lang['file_folder_err_perms_upload'] = 'ディレクトリのアップロードに必要なパーミッションがウェブサーバーにありません。';
                    
61$_lang['file_folder_err_rename'] = 'ディレクトリ名を変更中に不明なエラーが発生しました。';
                    
62$_lang['file_folder_err_remove'] = 'ディレクトリの削除中にエラーが発生しました。';
                    
                
db_operations.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
4 * handles miscellaneous db operations:
                    
5 *  - move/rename
                    
6 *  - copy
                    
11 *
                    
12 * @package PhpMyAdmin
                    
13 */
                    
18 */
                    
19require_once 'libraries/common.inc.php';
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
21require_once 'libraries/display_create_table.lib.php';
                    
22
                    
25 */
                    
26require_once 'libraries/check_user_privileges.lib.php';
                    
27require_once 'libraries/operations.lib.php';
                    
                
repository.php https://github.com/tcubansk/moodle.git | PHP | 188 lines
                    
1<?php
                    
2
                    
92$string['erroruniquename'] = 'Repository instance name should be unique';
                    
93$string['errorpostmaxsize'] = 'The uploaded file may exceed max_post_size directive in php.ini.';
                    
94$string['existingrepository'] = 'This repository already exists';
                    
155$string['removed'] = 'Repository removed';
                    
156$string['renameto'] = 'Rename to';
                    
157$string['repositories'] = 'Repositories';
                    
                
elfinder.pt_BR.js https://bitbucket.org/zbahij/eprojets_app.git | JavaScript | 320 lines
                    
28			'errConf'              : 'Configuração inválida do backend.',
                    
29			'errJSON'              : 'Módulo PHP JSON não está instalado.',
                    
30			'errNoVolumes'         : 'Não existe nenhum volume legível disponivel.',
                    
49			'errMkfile'            : 'Incapaz de criar o arquivo "$1".',
                    
50			'errRename'            : 'Incapaz de renomear "$1".',
                    
51			'errCopyFrom'          : 'Copia dos arquivos do volume "$1" não permitida.',
                    
95			'cmdreload'    : 'Recarregar',
                    
96			'cmdrename'    : 'Renomear',
                    
97			'cmdrm'        : 'Deletar',
                    
124			'ntfprepare'  : 'Preparar para copiar os arquivos',
                    
125			'ntfrename'   : 'Renomear arquivos',
                    
126			'ntfupload'   : 'Fazendo o upload dos arquivos',
                    
269			'kindTextPlain'   : 'Texto simples',
                    
270			'kindPHP'         : 'PHP',
                    
271			'kindCSS'         : 'CSS',
                    
                
de_DE.js https://gitlab.com/wuhang2003/core | JavaScript | 123 lines
                    
10    "There is no error, the file uploaded with success" : "Es ist kein Fehler aufgetreten. Die Datei wurde erfolgreich hochgeladen.",
                    
11    "The uploaded file exceeds the upload_max_filesize directive in php.ini: " : "Die hochgeladene Datei überschreitet die upload_max_filesize-Vorgabe in php.ini",
                    
12    "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" : "Die Datei ist größer, als die MAX_FILE_SIZE-Vorgabe erlaubt, die im HTML-Formular spezifiziert ist",
                    
35    "Download" : "Herunterladen",
                    
36    "Rename" : "Umbenennen",
                    
37    "Delete" : "Löschen",
                    
48    "{newName} already exists" : "{newName} existiert bereits",
                    
49    "Could not rename \"{fileName}\", it does not exist any more" : "Die Datei konnte nicht umbennant werden \"{fileName}\", da die Datei nicht mehr existiert",
                    
50    "The name \"{targetName}\" is already used in the folder \"{dir}\". Please choose a different name." : "Der Name „{targetName}“ wird bereits im Ordner „{dir}“ benutzt. Bitte wählen Sie einen anderen Namen.",
                    
50    "The name \"{targetName}\" is already used in the folder \"{dir}\". Please choose a different name." : "Der Name „{targetName}“ wird bereits im Ordner „{dir}“ benutzt. Bitte wählen Sie einen anderen Namen.",
                    
51    "Could not rename \"{fileName}\"" : "Die Datei konnte nicht umbenannt werden \"{fileName}\"",
                    
52    "Could not create file \"{file}\"" : "Die Datei konnte nicht erstellt werden \"{file}\"",
                    
104    "Save" : "Speichern",
                    
105    "With PHP-FPM it might take 5 minutes for changes to be applied." : "Bei PHP-FPM kann es 5 Minuten dauern, bis Änderungen angewendet sind.",
                    
106    "Missing permissions to edit from here." : "Fehlende Berechtigungen um von hier aus zu bearbeiten.",
                    
                
config.php https://github.com/hanchang/ModelMaker.git | PHP | 329 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
21|
                    
22| Typically this will be your index.php file, unless you've renamed it to
                    
23| something else. If you are using mod_rewrite to remove the page set this
                    
143| invoke your controllers and its functions:
                    
144| example.com/index.php?c=controller&m=function
                    
145|
                    
166|	0 = Disables logging, Error logging TURNED OFF
                    
167|	1 = Error Messages (including PHP errors)
                    
168|	2 = Debug Messages
                    
193|
                    
194| Each item that is logged has an associated date. You can use PHP date
                    
195| codes to set your own date formatting
                    
302|--------------------------------------------------------------------------
                    
303| Rewrite PHP Short Tags
                    
304|--------------------------------------------------------------------------
                    
                
ck-gallery.php https://github.com/UberGallery/ck-gallery.git | PHP | 277 lines
                    
1<?php // CK-Gallery by Chris Kankiewicz <http://www.chriskankiewicz.com>
                    
2
                    
14
                    
15  // *** DO NOT EDIT ANYTHING BELOW HERE UNLESS YOU ARE A PHP NINJA ***
                    
16
                    
138
                    
139        // Rename file and array element
                    
140        if (rename($source,"$dir/$name.tmp")) {
                    
140        if (rename($source,"$dir/$name.tmp")) {
                    
141          if (rename("$dir/$name.tmp",$destination)) {
                    
142            $images[$x] = "$name.$ext";
                    
142            $images[$x] = "$name.$ext";
                    
143            fwrite($log,date("Y-m-d")." @ ".date("H:i:s")."  RENAMED: $source to $destination\r\n");
                    
144          }
                    
166    if ($imgPerPage > 0 && $imgPerPage < $totalImages) {
                    
167      $pageName = basename($_SERVER["PHP_SELF"]); // Get current page file name
                    
168      echo("    <ul id=\"ck-pagination\" style=\"margin: 0 !important; padding: 0 !important;\">\r\n");
                    
                
slot.c https://github.com/andikleen/linux-misc.git | C | 380 lines
                    
143
                    
144static int rename_slot(struct pci_slot *slot, const char *name)
                    
145{
                    
155
                    
156	result = kobject_rename(&slot->kobj, slot_name);
                    
157	kfree(slot_name);
                    
212 * In most cases, @pci_bus, @slot_nr will be sufficient to uniquely identify
                    
213 * a slot. There is one notable exception - pSeries (rpaphp), where the
                    
214 * @slot_nr cannot be determined until a device is actually inserted into
                    
239	/*
                    
240	 * Hotplug drivers are allowed to rename an existing slot,
                    
241	 * but only if not already claimed.
                    
246			if ((err = slot->hotplug ? -EBUSY : 0)
                    
247			     || (err = rename_slot(slot, name))) {
                    
248				kobject_put(&slot->kobj);
                    
                
speed.py https://github.com/hmeyer/ReplicatorG.git | Python | 321 lines
                    
5The speed manual page is at:
                    
6http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Speed
                    
7
                    
159		self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Speed', self, '')
                    
160		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute('http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Speed')
                    
161		self.activateSpeed = settings.BooleanSetting().getFromValue('Activate Speed:', self, True )
                    
263			elif firstWord == '(</extruderInitialization>)':
                    
264				self.distanceFeedRate.addLine('(<procedureName> speed </procedureName>)')
                    
265				return
                    
                
config.php https://bitbucket.org/apueee/clientmanager.git | PHP | 347 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
20|
                    
21| Typically this will be your marketnichelist.php file, unless you've renamed it to
                    
22| something else. If you are using mod_rewrite to remove the page set this
                    
143| invoke your controllers and its functions:
                    
144| example.com/marketnichelist.php?c=controller&m=function
                    
145|
                    
166|	0 = Disables logging, Error logging TURNED OFF
                    
167|	1 = Error Messages (including PHP errors)
                    
168|	2 = Debug Messages
                    
193|
                    
194| Each item that is logged has an associated date. You can use PHP date
                    
195| codes to set your own date formatting
                    
320|--------------------------------------------------------------------------
                    
321| Rewrite PHP Short Tags
                    
322|--------------------------------------------------------------------------
                    
                
String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
                    
1<?php
                    
2
                    
302		$this->makeDirectory(dirname($cachedFile), $cacheDir);
                    
303		if (!@rename($temp, $cachedFile)) {
                    
304			@unlink($cachedFile);
                    
304			@unlink($cachedFile);
                    
305			@rename($temp, $cachedFile);
                    
306		}
                    
355					if (class_exists('Dwoo_Compiler', false) === false) {
                    
356						include DWOO_DIRECTORY . 'Dwoo/Compiler.php';
                    
357					}
                    
424		}
                    
425		return $dwoo->getCompileDir() . $this->compileId.'.d'.Dwoo::RELEASE_TAG.'.php';
                    
426	}
                    
454	/**
                    
455	 * returns some php code that will check if this template has been modified or not
                    
456	 *
                    
                
admin_groups.php https://github.com/KurdishEAgle/langs.git | PHP | 82 lines
                    
1<?php
                    
2
                    
2
                    
3// Language definitions used in admin-groups.php
                    
4$lang_admin_groups = array(
                    
45'Edit profile help'				=>	'Если модераторские привилегии включены, разрешить пользователям этой группы править профили.',
                    
46'Rename users label'			=>	'Могут переименовывать пользователей',
                    
47'Rename users help'				=>	'Если модераторские привилегии включены, разрешить пользователям этой группы переименовывать пользователей.',
                    
                
resource.php https://github.com/chregu/fluxcms.git | PHP | 322 lines
                    
1<?php
                    
2
                    
300	             if ($perm->isAllowed($permId,array('collection-back-copy', 'collection-back-delete'))) {
                    
301	             	$dom->addLink("Move/Rename",'javascript:parent.navi.admin.copyResource("'.$this->id.'",true);');
                    
302	             }
                    
                
upgrade.php https://github.com/kpike/moodle.git | PHP | 298 lines
                    
1<?php
                    
2
                    
67
                    
68    /// Rename lesson->usegrademax to lesson->usemaxgrade. Some old sites can have it incorrect. MDL-13177
                    
69        if ($dbman->field_exists($table, $field) && !$dbman->field_exists($table, $field2)) {
                    
71            $field->set_attributes(XMLDB_TYPE_INTEGER, '3', null, XMLDB_NOTNULL, null, '0', 'ongoing');
                    
72        /// Launch rename field usegrademax to usemaxgrade
                    
73            $dbman->rename_field($table, $field, 'usemaxgrade');
                    
79    if ($oldversion < 2008112601) {
                    
80        //NOTE: this is a hack, we can not call module lib.php in the middle of upgrade, the necessary db structures/data may not exist yet!
                    
81        require_once($CFG->dirroot.'/mod/lesson/lib.php');
                    
102         * Drop the lesson_default table, as of Moodle 2.0 it is no longer used
                    
103         * the module now has a settings.php instead
                    
104         */
                    
184    if ($oldversion < 2010081200) {
                    
185        require_once("$CFG->dirroot/mod/lesson/db/upgradelib.php");
                    
186
                    
                
preclass-emitter.h https://gitlab.com/alvinahmadov2/hhvm | C Header | 304 lines
                    
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   +----------------------------------------------------------------------+
                    
23#include "hphp/runtime/vm/class.h"
                    
24#include "hphp/runtime/vm/func.h"
                    
25#include "hphp/runtime/vm/func-emitter.h"
                    
29
                    
30namespace HPHP {
                    
31///////////////////////////////////////////////////////////////////////////////
                    
112          const bool typeconst)
                    
113      : m_name(n), m_typeConstraint(typeConstraint), m_phpCode(phpCode),
                    
114        m_typeconst(typeconst) {
                    
126    const folly::Optional<TypedValue>& valOption() const { return m_val; }
                    
127    const StringData* phpCode() const { return m_phpCode; }
                    
128    bool isAbstract()       const { return !m_val.hasValue(); }
                    
                
uc.php https://github.com/bluelovers/Discuz.git | PHP | 393 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: uc.php 4374 2010-09-08 08:58:55Z fanshengshuai $
                    
8 */
                    
13define('API_DELETEUSER', 1);		//note 用戶刪除 API 接口開關
                    
14define('API_RENAMEUSER', 1);		//note 用戶改名 API 接口開關
                    
15define('API_GETTAG', 1);		//note 獲取標籤 API 接口開關
                    
42
                    
43	include_once(B_ROOT.'./common.php');
                    
44	include_once(B_ROOT.'./source/function/common.func.php');
                    
44	include_once(B_ROOT.'./source/function/common.func.php');
                    
45	include_once(B_ROOT.'./data/system/config.cache.php');
                    
46
                    
56
                    
57	include_once(B_ROOT.'./common.php');
                    
58	include_once(B_ROOT.'./source/function/common.func.php');
                    
                
SqliteSchemaManager.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 390 lines
                    
1<?php
                    
2/*
                    
63     */
                    
64    public function renameTable($name, $newName)
                    
65    {
                    
                
lib.php https://github.com/jamiepratt/moodle.git | PHP | 368 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
20 * DO NOT MODIFY THIS THEME!
                    
21 * COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
                    
22 *
                    
                
PropelTableComparator.php https://gitlab.com/Isaki/le331.fr | PHP | 312 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/../Table.php';
                    
12require_once dirname(__FILE__) . '/PropelTableDiff.php';
                    
12require_once dirname(__FILE__) . '/PropelTableDiff.php';
                    
13require_once dirname(__FILE__) . '/PropelColumnComparator.php';
                    
14require_once dirname(__FILE__) . '/PropelColumnDiff.php';
                    
14require_once dirname(__FILE__) . '/PropelColumnDiff.php';
                    
15require_once dirname(__FILE__) . '/PropelIndexComparator.php';
                    
16require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php';
                    
151                    // no difference except the name, that's probably a renaming
                    
152                    $this->tableDiff->addRenamedColumn($removedColumn, $addedColumn);
                    
153                    $this->tableDiff->removeAddedColumn($addedColumnName);
                    
199                    // no difference except the name, that's probably a renaming
                    
200                    $this->tableDiff->addRenamedPkColumn($removedColumn, $addedColumn);
                    
201                    $this->tableDiff->removeAddedPkColumn($addedColumnName);
                    
                
Renameuser.alias.php https://gitlab.com/link233/bootmw | PHP | 380 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Aliases for Special:Renameuser
                    
4 *
                    
13$specialPageAliases['en'] = array(
                    
14	'Renameuser' => array( 'RenameUser' ),
                    
15);
                    
18$specialPageAliases['ar'] = array(
                    
19	'Renameuser' => array( 'إعادة_تسمية_مستخدم' ),
                    
20);
                    
23$specialPageAliases['arz'] = array(
                    
24	'Renameuser' => array( 'سمّى_تانى_يوزر' ),
                    
25);
                    
38$specialPageAliases['ba'] = array(
                    
39	'Renameuser' => array( 'RenameUser' ),
                    
40);
                    
                
CPgsqlSchema.php https://bitbucket.org/aagraz/yii.git | PHP | 425 lines
                    
1<?php
                    
2/**
                    
366	 * Builds a SQL statement for renaming a DB table.
                    
367	 * @param string $table the table to be renamed. The name will be properly quoted by the method.
                    
368	 * @param string $newName the new table name. The name will be properly quoted by the method.
                    
371	 */
                    
372	public function renameTable($table, $newName)
                    
373	{
                    
373	{
                    
374		return 'ALTER TABLE ' . $this->quoteTableName($table) . ' RENAME TO ' . $this->quoteTableName($newName);
                    
375	}
                    
                
Malay.py https://github.com/jonathanxavier/sim42.git | Python | 113 lines
                    
17    m['CantOverwriteThermo']   = "Tidak boleh menulis tindih kes termodinamik. Prosedur yang betul dimulai dengan  membuang termodinamik terdahulu dan kemudian set termodinamik yang baru. Operasi Unit: %s; Termodinamik terbaharu: %s"
                    
18    m['CantSetLiqPhPar']       = "Tidak boleh tetapkan bilangan fasa cecair kepada %s"
                    
19    m['CantSetParameter']       = "Tidak boleh tetapkan parameter %s kepada nilai %s"
                    
67    m['RecycleIter']            = "Gelongan %d -> Kesilapan maksima %f"
                    
68    m['RenamePortError']        = "Tidak boleh menamakan terminal %s kepada %s"
                    
69    m['RenamePortNameExists']   = "Tidak boleh menamakan terminal %s kepada %s kerana nama tersebut sudah digunakan"
                    
                
EFormType.php https://gitlab.com/geeta7/drupal | PHP | 429 lines
                    
1<?php
                    
2
                    
57   *
                    
58   * @todo Rename to $id.
                    
59   */
                    
68   *
                    
69   * @todo Rename to $label.
                    
70   */
                    
394    elseif ($this->getOriginalID() != $this->id()) {
                    
395      // Clear the eform type cache to reflect the rename.
                    
396      \Drupal::cache()->deleteTags(array('eform_types' => TRUE));
                    
407      }
                    
408      entity_invoke_bundle_hook('rename', 'eform', $this->getOriginalID(), $this->id());
                    
409    }
                    
                
tags.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 292 lines
                    
184			<td class="forms_manage">
                    
185				<h3><?php _e('Rename Tag', 'nggallery'); ?></h3>
                    
186				<form action="<?php echo $action_url; ?>" method="post">
                    
192							<td colspan="2">
                    
193								<p><?php _e('Enter the tag to rename and its new value.  You can use this feature to merge tags too. Click "Rename" and all posts which use this tag will be updated.', 'nggallery'); ?></p>
                    
194								<p><?php _e('You can specify multiple tags to rename by separating them with commas.', 'nggallery'); ?></p>
                    
197						<tr valign="top">
                    
198							<th scope="row"><label for="renametag_old"><?php _e('Tag(s) to rename:', 'nggallery'); ?></label></th>
                    
199							<td><input type="text" id="renametag_old" name="renametag_old" value="" size="40" /></td>
                    
204								<input type="text" id="renametag_new" name="renametag_new" value="" size="40" />
                    
205								<input class="button" type="submit" name="rename" value="<?php _e('Rename', 'nggallery'); ?>" />
                    
206							</td>
                    
241								<p><?php _e('Enter the tag name to edit and its new slug. <a href="http://codex.wordpress.org/Glossary#Slug">Slug definition</a>', 'nggallery'); ?></p>
                    
242								<p><?php _e('You can specify multiple tags to rename by separating them with commas.', 'nggallery'); ?></p>
                    
243							</td>
                    
                
page.admin.dirSettings.tmpl https://github.com/snupple/torrentflux.git | Go Template | 416 lines
                    
7<div id="content">
                    
8	<form name="theForm" action="admin.php?op=updateDirSettings" method="post" onsubmit="return validateSettings('dir')">
                    
9		<div id="upload">
                    
293					<td class="settingsTitle">
                    
294						<label for="enable_rename">File And Folder Renaming</label>
                    
295					</td>
                    
296					<td class="settingsSetting" rowspan="2">
                    
297						<select name="enable_rename" id="enable_rename">
                    
298							<option value="1">True</option>
                    
299							<option value="0"
                    
300							<tmpl_if name="enable_rename" value="0">
                    
301								 selected
                    
308					<td class="settingsText">
                    
309						Enable/disable access for users to rename files and folders.
                    
310					</td>
                    
                
ext_ftp.php https://gitlab.com/iranjith4/hhvm | PHP | 265 lines
                    
1<?hh
                    
2// generated by idl-to-hni.php
                    
3
                    
212
                    
213/* ftp_rename() renames a file or a directory on the FTP server.
                    
214 */
                    
215<<__Native("ZendCompat")>>
                    
216function ftp_rename(mixed $ftp_stream,
                    
217                    mixed $oldname,
                    
251 * if both the ftp module and the OpenSSL support is built statically into
                    
252 * php, this means that on Windows this function will be undefined in the
                    
253 * official PHP builds. To make this function available on Windows you must
                    
253 * official PHP builds. To make this function available on Windows you must
                    
254 * compile your own PHP binaries.  ftp_ssl_connect() is not intended for use
                    
255 * with sFTP. To use sFTP with PHP, please see ssh2_sftp().
                    
                
config.php https://bitbucket.org/bouldertech/myngl.git | PHP | 320 lines
                    
27/*
                    
28 Uncomment lines below to enable PHP error reporting and displaying PHP errors.
                    
29 Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected.
                    
72
                    
73require_once '../../../../includes/filemanager.config.php';
                    
74$baseDir = resolveUrl($baseUrl);
                    
137		'fileUpload' => true,
                    
138		'fileRename' => true,
                    
139		'fileDelete' => true);
                    
210
                    
211	- If "php" is on the denied extensions list, a file named foo.php cannot be
                    
212	  uploaded.
                    
217
                    
218In some conditions Apache can treat the foo.php.rar file just like any PHP
                    
219script and execute it.
                    
                
CHANGELOG.md https://gitlab.com/4gdevs/online-class-record-system | Markdown | 313 lines
                    
26* Update group use support to be in line with recent PHP 7.0 builds.
                    
27* Renamed `php-parse.php` to `php-parse` and registered it as a composer bin.
                    
28* Use composer PSR-4 autoloader instead of custom autoloader.
                    
42
                    
43* Removed support for running on PHP 5.4. It is however still possible to parse PHP 5.2 and PHP 5.3
                    
44  code while running on a newer version.
                    
45* Removed legacy class name aliases. This includes the old non-namespaced class names and the old
                    
46  names for classes that were renamed for PHP 7 compatibility.
                    
47* Removed support for legacy node format. All nodes must have a `getSubNodeNames()` method now.
                    
64
                    
65* `PhpParser\Parser` is now an interface, implemented by `Parser\Php5`, `Parser\Php7` and
                    
66  `Parser\Multiple`. The `Multiple` parser will try multiple parsers, until one succeeds.
                    
257
                    
258* [BC] PHP-Parser now requires PHP 5.3 or newer to run. It is however still possible to *parse* PHP 5.2 source code,
                    
259  while running on a newer version.
                    
                
draftfiles_manager.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 385 lines
                    
1<?php
                    
2
                    
34
                    
35require_once('../config.php');
                    
36require_once($CFG->libdir.'/filelib.php');
                    
36require_once($CFG->libdir.'/filelib.php');
                    
37require_once('lib.php');
                    
38
                    
74$params = array('ctx_id' => $contextid, 'itemid' => $itemid, 'env' => $env, 'course'=>$courseid, 'maxbytes'=>$maxbytes, 'areamaxbytes'=>$areamaxbytes, 'maxfiles'=>$maxfiles, 'subdirs'=>$subdirs, 'sesskey'=>sesskey());
                    
75$PAGE->set_url('/repository/draftfiles_manager.php', $params);
                    
76$filepicker_url = new moodle_url("/repository/filepicker.php", $params);
                    
78$params['action'] = 'browse';
                    
79$home_url = new moodle_url('/repository/draftfiles_manager.php', $params);
                    
80
                    
108
                    
109case 'renameform':
                    
110    echo $OUTPUT->header();
                    
                
File.php https://gitlab.com/yousafsyed/easternglamor | PHP | 312 lines
                    
1<?php
                    
2/**
                    
15/**
                    
16 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
17 */
                    
60     * @param UploaderFactory $uploaderFactory
                    
61     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
62     */
                    
84     * {@inheritdoc}
                    
85     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
86     */
                    
201     * {@inheritdoc}
                    
202     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
203     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
276                $uploader->setFilenamesCaseSensitivity(false);
                    
277                $uploader->setAllowRenameFiles(true);
                    
278                $uploader->save($mediaDir->getAbsolutePath($this->_entityTypeCode), $value['name']);
                    
                
OS_main.h https://gitlab.com/Kanedias/MangosDeprecated | C Header | 305 lines
                    
9 *  @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
                    
10 *  @author Jesper S. M|ller<stophph@diku.dk>
                    
11 *  @author and a cast of thousands...
                    
71
                    
72// Rename "main ()" on platforms that don't allow it to be called "main ()".
                    
73
                    
                
WindowsAzure.php https://github.com/necrogami/zf2.git | PHP | 448 lines
                    
1<?php
                    
2/**
                    
55    const RETURN_STRING = 2; // return data as string
                    
56    const RETURN_STREAM = 3; // return PHP stream
                    
57
                    
309    /**
                    
310     * Rename an item in the storage service to a given name.
                    
311     *
                    
317     */
                    
318    public function renameItem($path, $name, $options = null)
                    
319    {
                    
                
define_pages_editor.php https://github.com/ZenMagick/zc-base.git | PHP | 270 lines
                    
125<!-- header //-->
                    
126<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
                    
127<!-- header_eof //-->
                    
228              <tr>
                    
229                <td class="smallText"><a href="<?php echo zen_href_link($_GET['filename'], 'lngdir=' . $_SESSION['language'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td>
                    
230<?php
                    
233    if ($dir) {
                    
234      $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
                    
235      while ($file = $dir->read()) {
                    
264<!-- footer //-->
                    
265<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
                    
266<!-- footer_eof //-->
                    
269</html>
                    
270<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
                    
271
                    
                
ViewsEntitySchemaSubscriber.php https://gitlab.com/mohamed_hussein/prodt | PHP | 424 lines
                    
1<?php
                    
2
                    
22  /**
                    
23   * Indicates that a base table got renamed.
                    
24   */
                    
24   */
                    
25  const BASE_TABLE_RENAME = 0;
                    
26
                    
27  /**
                    
28   * Indicates that a data table got renamed.
                    
29   */
                    
29   */
                    
30  const DATA_TABLE_RENAME = 1;
                    
31
                    
42  /**
                    
43   * Indicates that a revision table got renamed.
                    
44   */
                    
                
Filesystem.php https://github.com/bhaumik25/zend-framework.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Search_Lucene_Storage_Directory */
                    
24require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
25
                    
26/** Zend_Search_Lucene_Storage_File_Filesystem */
                    
27require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
28
                    
184
                    
185        global $php_errormsg;
                    
186        $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1');
                    
188            ini_set('track_errors', $trackErrors);
                    
189            throw new Zend_Search_Lucene_Exception($php_errormsg);
                    
190        }
                    
210
                    
211        global $php_errormsg;
                    
212        $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1');
                    
                
SqlitePlatform.php https://github.com/l3l0/BehatExamples.git | PHP | 469 lines
                    
1<?php
                    
2/*
                    
30 * @author Benjamin Eberlei <kontakt@beberlei.de>
                    
31 * @todo Rename: SQLitePlatform
                    
32 */
                    
                
MySqlPlatformTest.php https://bitbucket.org/iiic/iszp.git | PHP | 243 lines
                    
1<?php
                    
2
                    
42        return array(
                    
43            "ALTER TABLE mytable RENAME TO userlist, ADD quota INT DEFAULT NULL, DROP foo, CHANGE bar baz VARCHAR(255) DEFAULT 'def' NOT NULL, CHANGE bloo bloo TINYINT(1) DEFAULT '0' NOT NULL"
                    
44        );
                    
                
filebrowser.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 431 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @version $Id: filebrowser.php 292 2012-09-21 16:24:11Z cmb69 $
                    
5 */
                    
250// 設法在 Windows 能夠儲存中文命名檔案
                    
251if (substr(php_uname(), 0, 7) == "Windows")
                    
252{
                    
307// 設法在 Windows 能夠儲存中文命名檔案
                    
308if (substr(php_uname(), 0, 7) == "Windows")
                    
309{
                    
350
                    
351    function renameFile() {
                    
352
                    
352
                    
353        $newName = str_replace(array('..', '<', '>', ':', '?', ' '), '', basename($_POST['renameFile']));
                    
354        $oldName = $_POST['oldName'];
                    
                
install_gallery.php https://github.com/Lucky65/phpBB-Portal-XL-5.0-italian.git | PHP | 134 lines
                    
36	'CONVERT_SMARTOR_INTRO'			=> 'Convertor from „Album-MOD“ by smartor to „phpBB Gallery“',
                    
37	'CONVERT_SMARTOR_INTRO_BODY'	=> 'With this convertor, you can convert your albums, images, rates and comments from the <a href="http://www.phpbb.com/community/viewtopic.php?f=16&t=74772">Album-MOD</a> by Smartor (tested v2.0.56) and <a href="http://www.phpbbhacks.com/download/5028">Full Album Pack</a> (tested v1.4.1) to the phpBB Gallery.<br /><br /><strong>Note:</strong> The <strong>permissions</strong> will <strong>not be copied</strong>.',
                    
38	'CONVERT_TS_INTRO'				=> 'Convertor from „TS Gallery“ to „phpBB Gallery“',
                    
38	'CONVERT_TS_INTRO'				=> 'Convertor from „TS Gallery“ to „phpBB Gallery“',
                    
39	'CONVERT_TS_INTRO_BODY'			=> 'With this convertor, you can convert your albums, images, rates and comments from the <a href="http://www.phpbb.com/community/viewtopic.php?f=70&t=610509">TS Gallery</a> (tested v0.2.1) to the phpBB Gallery.<br /><br /><strong>Note:</strong> The <strong>permissions</strong> will <strong>not be copied</strong>.',
                    
40	'CONVERT_COMPLETE_EXPLAIN'		=> 'Conversion from your gallery to phpBB Gallery v%s was successful.<br />Please ensure that the settings were transferred correctly before enabling your board by deleting the install directory.<br /><br /><strong>Please note that the permissions were not copied.</strong><br /><br />You should also clean your database from old entries, where the images are missing. This can be done in ".MODs > phpBB Gallery > Cleanup gallery".',
                    
101	'REQ_GD_LIBRARY'			=> 'GD Library is installed',
                    
102	'REQUIREMENTS_EXPLAIN'		=> 'Before proceeding with the full installation phpBB will carry out some tests on your server configuration and files to ensure that you are able to install and run phpBB Gallery. Please ensure you read through the results thoroughly and do not proceed until all the required tests are passed.',
                    
103
                    
106	'STAGE_COPY_TABLE_EXPLAIN'		=> 'The database-tables for the album- and user-data have the same names in TS Gallery and phpBB Gallery. So we create a copy to be able to convert the data.',
                    
107	'STAGE_CREATE_TABLE_EXPLAIN'	=> 'The database tables used by phpBB Gallery have been created and populated with some initial data. Proceed to the next screen to finish installing phpBB Gallery.',
                    
108	'STAGE_DELETE_TABLES'			=> 'Clean database',
                    
109	'STAGE_DELETE_TABLES_EXPLAIN'	=> 'The database-content of the Gallery-MOD was deleted. Proceed to the next screen to finish uninstalling phpBB Gallery.',
                    
110	'SUPPORT_BODY'					=> 'Full support will be provided for the current stable release of phpBB Gallery, free of charge. This includes:</p><ul><li>installation</li><li>configuration</li><li>technical questions</li><li>problems relating to potential bugs in the software</li><li>updating from Release Candidate (RC) versions to the latest stable version</li><li>converting from Smartor\'s Album-MOD for phpBB 2.0.x to phpBB Gallery for phpBB3</li><li>converting from TS Gallery to phpBB Gallery</li></ul><p>The use of Beta-Versions is limited recommended. If there are updates, it\'s recommended to update quickly.</p><p>Support is given on the following boards</p><ul><li><a href="http://www.flying-bits.org/">flying-bits.org - MOD-Autor nickvergessen\'s board</a></li><li><a href="http://www.phpbb.de/">phpbb.de</a></li><li><a href="http://www.phpbb.com/">phpbb.com</a></li></ul><p>',
                    
111
                    
                
Synchronization.php https://github.com/imr/horde.git | PHP | 305 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
10 * @license  http://www.horde.org/licenses/lgpl21 LGPL 2.1
                    
11 * @link     http://pear.horde.org/index.php?package=Kolab_Storage
                    
12 */
                    
25 * @license  http://www.horde.org/licenses/lgpl21 LGPL 2.1
                    
26 * @link     http://pear.horde.org/index.php?package=Kolab_Storage
                    
27 */
                    
228     */
                    
229    public function updateAfterRenameFolder($old, $new)
                    
230    {
                    
                
create-application.py https://github.com/Wkasel/qooxdoo.git | Python | 380 lines
                    
13#    LGPL: http://www.gnu.org/licenses/lgpl.html
                    
14#    EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
15#    See the LICENSE file in the project's top-level directory for details.
                    
96
                    
97    def rename_folders(root_dir):
                    
98        # rename name space parts of paths
                    
99
                    
100        # rename in class path
                    
101        source_dir = os.path.join(root_dir, "source", "class", "custom")
                    
104
                    
105        # rename in resource path
                    
106        resource_dir = os.path.join(root_dir, "source", "resource", "custom")
                    
109
                    
110        # rename in script path
                    
111        script_dir   = os.path.join(root_dir, "source", "script")
                    
                
tags.php https://github.com/xmirror/piwigo.git | PHP | 531 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
5// | Copyright(C) 2008-2013 Piwigo Team                  http://piwigo.org |
                    
6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
                    
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
                    
23
                    
24if( !defined("PHPWG_ROOT_PATH") )
                    
25{
                    
28
                    
29include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
                    
30check_status(ACCESS_ADMINISTRATOR);
                    
408  array(
                    
409    'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=tags',
                    
410    'PWG_TOKEN' => get_pwg_token(),
                    
                
elfinder.fr.js https://github.com/codemotion/cogear.git | JavaScript | 192 lines
                    
20		'File or folder with the same name already exists' : 'Un fichier ou un dossier avec le même nom existe déja',
                    
21		'Unable to rename file'                 : 'Impossible de renommer le fichier',
                    
22		'Unable to create folder'               : 'Impossible de créer le dossier',
                    
61		'Remove'                  : 'Supprimer',
                    
62		'Rename'                  : 'Renommer',
                    
63		'Edit text file'          : 'Editer le fichier texte',
                    
127		'Javascript application'            : 'Application Javascript',
                    
128		'PHP source'                        : 'Document PHP',
                    
129		'HTML document'                     : 'Document HTML',
                    
177		'Donate to support project development' : 'Donner et encourager le développement du projet',
                    
178		'Javascripts/PHP programming: Dmitry (dio) Levashov, dio@std42.ru' : 'Javascripts/PHP programming: Dmitry (dio) Levashov, dio@std42.ru',
                    
179		'Python programming, techsupport: Troex Nevelin, troex@fury.scancode.ru' : 'Python programming, techsupport: Troex Nevelin, troex@fury.scancode.ru',
                    
                
frmresourceslist.html https://github.com/pteyssandier/Silverpeas-Core.git | HTML | 382 lines
                    
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>' ;
                    
76	oCell.noWrap = true ;
                    
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;">' ;
                    
109	var eImageLink = '<a href="#" title="Edit Image" onclick="EditImage(\'' + escape(fileName) + '\',\'' + escape(fileUrl) + '\');return false;">' ;
                    
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>' ;
                    
129	if (imageEditable==1) { 
                    
199	if ((newName!=null)&&(newName!='')&&(newName!=fileName)) {
                    
200		oConnector.SendCommand( 'RenameFile', "FileName=" + fileName + "&NewName=" + escape( newName ), RenameFileCallBack ) ;
                    
201	}
                    
220	if ((newName!=null)&&(newName!='')&&(newName!=unescape(folderName))) {
                    
221		oConnector.SendCommand( 'RenameFolder', "FolderName=" + folderName + "&NewName=" + escape ( newName ), RenameFolderCallBack ) ;
                    
222	}
                    
                
class-wp-sitemaps-posts.php https://gitlab.com/campus-academy/krowkaramel | PHP | 228 lines
                    
1<?php
                    
2/**
                    
55	 * @since 5.5.0
                    
56	 * @since 5.9.0 Renamed `$post_type` to `$object_subtype` to match parent class
                    
57	 *              for PHP 8 named parameter support.
                    
150	 * @since 5.5.0
                    
151	 * @since 5.9.0 Renamed `$post_type` to `$object_subtype` to match parent class
                    
152	 *              for PHP 8 named parameter support.
                    
                
LocaleController.php https://gitlab.com/campus-academy/krowkaramel | PHP | 162 lines
                    
1<?php
                    
2/**
                    
21            $api = new Loco_api_WordPressTranslations;
                    
22            $this->set('title', $locale->ensureName($api) );
                    
23            $this->locale = $locale;
                    
                
Kernel.php https://github.com/thewiredman/symfony.git | PHP | 503 lines
                    
1<?php
                    
2
                    
119        if (!$this->isDebug()) {
                    
120            require_once __DIR__.'/bootstrap.php';
                    
121        }
                    
322
                    
323        if ($reload || !file_exists($location.'.php')) {
                    
324            $this->buildContainer($class, $location.'.php');
                    
326
                    
327        require_once $location.'.php';
                    
328
                    
417        // cache the container
                    
418        $dumper = new PhpDumper($container);
                    
419        $content = $dumper->dump(array('class' => $class));
                    
448     *
                    
449     * We don't use the PHP php_strip_whitespace() function
                    
450     * as we want the content to be readable and well-formatted.
                    
                
errors.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 146 lines
                    
56		'ErrorFieldsRequired' => 'No se indicaron algunos campos obligatorios',
                    
57		'ErrorFailedToCreateDir' => 'Error en la creación de un directorio. Compruebe que el usuario del servidor Web tiene derechos de escritura en los directorios de documentos de Speedealing. Si el  parámetro <b>safe_mode</b> está activo en este PHP, Compruebe que los archivos php Speedealing pertenecen al usuario del servidor Web.',
                    
58		'ErrorNoMailDefinedForThisUser' => 'E-Mail no definido para este usuario',
                    
63		'ErrorDirNotFound' => 'Directorio<b>%s</b>no encontrado (Ruta incorrecta, permisos inadecuados o acceso prohibido por el parámetro PHP openbasedir o safe_mode)',
                    
64		'ErrorFunctionNotAvailableInPHP' => 'La función  <b>%s</b> es requerida por esta funcionalidad, pero no se encuetra disponible en esta versión/instalación de PHP.',
                    
65		'ErrorDirAlreadyExists' => 'Ya existe un directorio con ese nombre.',
                    
114		'ErrorLoginDisabled' => 'Su cuenta está desactivada',
                    
115		'ErrorFailedToRunExternalCommand' => 'Error de ejecución del comando externo. Compruebe que está disponible y ejecutable por su servidor PHP. Si el PHP <b>Safe Mode</b> está activo, compruebe que el comando se encuentra en un directorio definido en el parámetro <b>safe_mode_exec_dir</b>.',
                    
116		'ErrorFailedToChangePassword' => 'Error en la modificación de la contraseña',
                    
126		'ErrorFileRequired' => 'Se requiere un archivo de paquete Speedealing en formato zip',
                    
127		'ErrorPhpCurlNotInstalled' => 'La extensión PHP CURL no se encuentra instalada, es indispensable para dialogar con Paypal.',
                    
128		'ErrorFailedToAddToMailmanList' => 'Ha ocurrido un error al intentar añadir un registro a la lista Mailman o base de datos SPIP',
                    
133		'WarningMandatorySetupNotComplete' => 'Los parámetros obligatorios de configuración no están todavía definidos',
                    
134		'WarningSafeModeOnCheckExecDir' => 'Atención, está activada la opción PHP <b>safe_mode</b>, el comando deberá estar dentro de un directorio declarado dentro del parámetro php <b>safe_mode_exec_dir</b>.',
                    
135		'WarningAllowUrlFopenMustBeOn' => 'El parámetro <b>allow_url_fopen</b> debe ser especificado a <b>on</b> en el archivo <b>php.ini</b> para disponer de este módulo completamente activo. Debe modificar este archivo manualmente',
                    
                
sk.inc.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 272 lines
                    
1<?php
                    
2$translations = array(
                    
29	'Database has been created.' => 'Databáza bola vytvorená.',
                    
30	'Database has been renamed.' => 'Databáza bola premenovaná.',
                    
31	'Database has been altered.' => 'Databáza bola zmenená.',
                    
84	'No extension' => 'Žiadne rozšírenie',
                    
85	'None of the supported PHP extensions (%s) are available.' => 'Nie je dostupné žiadne z podporovaných rozšírení (%s).',
                    
86	'Session support must be enabled.' => 'Session premenné musia byť povolené.',
                    
130	'Event' => 'Udalosť',
                    
131	'%s version: %s through PHP extension %s' => 'Verzia %s: %s cez PHP rozšírenie %s',
                    
132	'%d row(s)' => array('%d riadok', '%d riadky', '%d riadkov'),
                    
                
upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * upload.php
                    
9 *
                    
195				// Read binary input stream and append it to temp file
                    
196				$in = @fopen( 'php://input', 'rb' );
                    
197
                    
215			// Strip the temp .part suffix off
                    
216			rename( "{$file_path}.part", $file_path );
                    
217		}
                    
                
preclass-emitter.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 305 lines
                    
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_VM_CLASS_EMIT_H_
                    
18#define incl_HPHP_VM_CLASS_EMIT_H_
                    
19
                    
26#include "hphp/runtime/vm/func-emitter.h"
                    
27#include "hphp/runtime/vm/repo-helpers.h"
                    
28
                    
113          const bool typeconst)
                    
114      : m_name(n), m_typeConstraint(typeConstraint), m_phpCode(phpCode),
                    
115        m_typeconst(typeconst) {
                    
127    const folly::Optional<TypedValue>& valOption() const { return m_val; }
                    
128    const StringData* phpCode() const { return m_phpCode; }
                    
129    bool isAbstract()       const { return !m_val.hasValue(); }
                    
                
Comparator.php https://github.com/sentact/vendor-doctrine2.git | PHP | 395 lines
                    
1<?php
                    
2/*
                    
28 * @license http://ez.no/licenses/new_bsd New BSD License
                    
29 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
30 * @link    www.doctrine-project.org
                    
195
                    
196        // Try to find columns that only changed their name, rename operations maybe cheaper than add/drop
                    
197        foreach ($tableDifferences->addedColumns AS $addedColumnName => $addedColumn) {
                    
199                if (count($this->diffColumn($addedColumn, $removedColumn)) == 0) {
                    
200                    $tableDifferences->renamedColumns[$removedColumn->getName()] = $addedColumn;
                    
201                    unset($tableDifferences->addedColumns[$addedColumnName]);
                    
                
S3.php https://github.com/basdog22/Qool.git | PHP | 332 lines
                    
1<?php
                    
2/**
                    
19
                    
20require_once 'Zend/Service/Amazon/S3.php';
                    
21require_once 'Zend/Cloud/StorageService/Adapter.php';
                    
21require_once 'Zend/Cloud/StorageService/Adapter.php';
                    
22require_once 'Zend/Cloud/StorageService/Exception.php';
                    
23
                    
218    /**
                    
219     * Rename an item in the storage service to a given name.
                    
220     *
                    
226     */
                    
227    public function renameItem($path, $name, $options = null)
                    
228    {
                    
228    {
                    
229        require_once 'Zend/Cloud/OperationNotAvailableException.php';
                    
230        throw new Zend_Cloud_OperationNotAvailableException('Rename not implemented');
                    
                
fileManager.php https://github.com/pheeque/jquery.fileManager.git | PHP | 235 lines
                    
1<?php
                    
2/*
                    
28*
                    
29* Advanced users may wish to write a separate php script to control the
                    
30* ajax features of the File Manager.  Including callbacks for deleting
                    
66	}
                    
67	static function ProcessAjax($rootPath,$deleteCallback=null,$renameCallback=null) {
                    
68		$pMod = array_key_exists('path',$_POST) ? $_POST['path'] : '';
                    
108			try {
                    
109				rename($from,$to);
                    
110			} catch(Exception $e) {
                    
111				echo $e->getMessage();
                    
112				echo 'alert("Cannot move or rename.");';
                    
113				return false;
                    
114			}
                    
115			if (is_callable($renameCallback)) call_user_func($renameCallback,$from,$to);
                    
116			return true;
                    
                
directftp.php https://github.com/Ratmir15/Joomla---formula-of-success.git | PHP | 331 lines
                    
1<?php
                    
2/**
                    
137			{
                    
138				// Create a temporary file, upload, rename it
                    
139				$tempFileName = JoomlapackCUBETempfiles::createRegisterTempFile();
                    
165	 * "Magic" function called just before serialization of the object. Disconnects
                    
166	 * from the FTP server and allows PHP to serialize like normal.
                    
167	 * @return array The variables to serialize
                    
                
File.php https://github.com/fusionx1/tangocms.git | PHP | 307 lines
                    
1<?php
                    
2
                    
38									'cant_write'	=> 'failed to write file "%s" to disk',
                    
39									'extension'		=> 'PHP extension blocked file upload for "%s"',
                    
40									'mime'			=> 'requested file "%s" has invalid mime of "%s"',
                    
94		 * thrown in this method to indicate the errors that could occur
                    
95		 * (such as the main PHP error codes).
                    
96		 *
                    
227																	 false);
                    
228						rename( $extractDir.'/'.$file['name'], $path );
                    
229						$this->fileDetails[ ($i+1) ]['path'] = $path;
                    
295		 * Checks the extension of a file to make sure the uplaoded
                    
296		 * file is not a PHP, Perl etc script.
                    
297		 *
                    
301		protected function checkExtension( $name ) {
                    
302			return !(bool) preg_match('#(?:php[0-9]?|pl|rb|aspx?|x?html?|exe|cgi)$#i', pathinfo($name, PATHINFO_EXTENSION));
                    
303		}
                    
                
GraphController.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 448 lines
                    
43
                    
44         public void renameRequest(String newName)
                    
45         {
                    
45         {
                    
46            renameGraph(newName);
                    
47         }
                    
124      {
                    
125         _graphPane.setTitle(_plugin.patchName(_graphPane.getTitle(), _session));
                    
126         _desktopController.initZoomer(null, null);
                    
197      _xmlSerializer.remove();
                    
198      _session.getSessionSheet().removeMainTab(_graphPane);
                    
199      _plugin.removeGraphController(this, _session);
                    
201
                    
202   private void renameGraph(String newName)
                    
203   {
                    
                
CHANGELOG.md https://gitlab.com/IR31121994/quizbd-master | Markdown | 176 lines
                    
43 * removed `MessageFormatter::choiceFormat()`
                    
44 * added argument `$filename` to `PhpExtractor::parseTokens()`
                    
45 * removed support for implicit STDIN usage in the `lint:xliff` command, use `lint:xliff -` (append a dash) instead to make it explicit.
                    
97 * added support for adding custom message formatter and decoupling the default one.
                    
98 * Added `PhpExtractor`
                    
99 * Added `PhpStringTokenParser`
                    
162
                    
163 * QtTranslationsLoader class renamed to QtFileLoader. QtTranslationsLoader is deprecated and will be removed in 2.3.
                    
164 * [BC BREAK] uniformized the exception thrown by the load() method when an error occurs. The load() method now
                    
173 * added support for more than one fallback locale
                    
174 * added support for extracting translation messages from templates (Twig and PHP)
                    
175 * added dumpers for translation catalogs
                    
                
file.php https://github.com/rii-J/concrete5-de.git | PHP | 526 lines
                    
1<?php 
                    
2
                    
109				$currPath = $fv->getPath();
                    
110				rename($currPath, $newPath);
                    
111			}			
                    
                
elfinder.ko.js https://bitbucket.org/zbahij/eprojets_app.git | JavaScript | 340 lines
                    
28			'errConf'              : 'Backend 환경설정이 올바르지 않습니다',
                    
29			'errJSON'              : 'PHP JSON 모듈이 설치되지 않았습니다',
                    
30			'errNoVolumes'         : '읽기 가능한 볼률이 없습니다',
                    
49			'errMkfile'            : ' "$1" 파일을 생성할 수 없습니다',
                    
50			'errRename'            : ' "$1" 이름을 변경할 수 없습니다',
                    
51			'errCopyFrom'          : '볼률 "$1" 로부터 파일을 복사할 수 없습니다',
                    
95			'cmdreload'    : '새로고침',
                    
96			'cmdrename'    : '이름바꾸기',
                    
97			'cmdrm'        : '삭제',
                    
123			'ntfprepare'  : '복사 준비',
                    
124			'ntfrename'   : '이름바꾸기',
                    
125			'ntfupload'   : '업로드',
                    
289			'kindTextPlain'   : '보통 텍스트',
                    
290			'kindPHP'         : 'PHP 소스',
                    
291			'kindCSS'         : 'CSS 문서',
                    
                
fontif-err.php https://github.com/AriT93/emacs.git | PHP | 339 lines
                    
22<!--             <p> -->
                    
23<!--             <a href="nxhtml.html#php">PHP / nXhtml automatic mode switching</a> is affected: -->
                    
24<!--             </p> -->
                    
50<!--           </dd> -->
                    
51          <dt id="new-mode-switching" style="margin-top:1em;">I have rewritten the PHP mode switching</dt>
                    
52          <dd>
                    
53            <p>
                    
54              Because of some (fair) critique I have gotten about the way mode switching between php-mode and nxhtml-mode works
                    
55              I have rewritten that part.
                    
63              and pointing out bugs and weaknesses, most related to
                    
64              editing of PHP.  I have included fixes for many of them
                    
65              in version 0.98 and more may follow.
                    
108                as I intended. (This means that Emacs switches between
                    
109                php-mode and nxhtml-part-mode automatically when
                    
110                moving point. And that you can use completion.)
                    
                
ResourceTypeConfig.php https://github.com/Doap/xoops.git | PHP | 351 lines
                    
1<?php
                    
2/*
                    
224     * @param string $extension extension
                    
225     * @param boolean $renameIfRequired whether try to rename file or not
                    
226     * @return boolean
                    
227     */
                    
228    function checkExtension(&$fileName, $renameIfRequired = true)
                    
229    {
                    
242
                    
243            // First, check the last extension (ex. in file.php.jpg, the "jpg").
                    
244            if ( !$this->checkSingleExtension( $pieces[sizeof($pieces)-1] ) ) {
                    
247
                    
248            if ($renameIfRequired) {
                    
249                // Check the other extensions, rebuilding the file name. If an extension is
                    
261        else {
                    
262            // Check only the last extension (ex. in file.php.jpg, only "jpg").
                    
263            return $this->checkSingleExtension( substr($fileName, strrpos($fileName,'.')+1) );
                    
                
 

Source

Language