✏️ Edit: copy.php
Path:
/home/thiqat5/admincrud.thiqatech.com/sql/modules/copy.php
Size: 784 B · Modified: 2023-08-20 10:31:19 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?php /** * This file is a part of MyWebSQL package * * @file: modules/copy.php * @author Samnan ur Rehman * @copyright (c) 2008-2014 Samnan ur Rehman * @web http://mywebsql.net * @license http://mywebsql.net/license */ function processRequest(&$db) { $type = v($_REQUEST["id"]); $name = v($_REQUEST["name"]); $new_name = v($_REQUEST["query"]); if (!$name || !$new_name ) { createErrorGrid($db, ''); return; } $success = $db->copyObject($name, $type, $new_name); // @@TODO: this can be improved, although it is only information $numQueries = $type == 'table' ? 2 : 1; if ($success) { Session::set('db', 'altered', true); createInfoGrid($db, '', $numQueries); } else createErrorGrid($db, $db->getLastQuery()); } ?>
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF