Procedural File: database.php
Source Location: /public_html/admin/database.php
Page Details:
This admin panel provides some simple database backup and administration abilities. You can create and download database backups, optimize tables, or convert tables to InnoDB.
All of these functions are currently only available for MySQL. The link to this admin panel is actually hidden when not using MySQL.
Includes:
already_converted [line 401]
boolean already_converted(
)
|
|
Check if all the tables have already been converted to InnoDB
Tags:
compareBackupFiles [line 71]
void compareBackupFiles(
$pFileA, $pFileB)
|
|
Sort backup files with newest first, oldest last. For use with usort() function. This is needed because the sort order of the backup files, coming from the 'readdir' function, might not be that way.
Parameters
deletebackups [line 294]
Delete selected backup files
Tags:
dobackup [line 197]
Perform database backup
Tags:
doinnodb [line 469]
int doinnodb(
[string $startwith = ''], [int $failures = 0])
|
|
Convert to InnoDB tables
Tags:
Parameters
| string |
$startwith |
table to start with |
| int |
$failures |
number of previous errors |
dooptimize [line 575]
int dooptimize(
[string $startwith = ''], [int $failures = 0])
|
|
Optimize database tables
Tags:
Parameters
| string |
$startwith |
table to start with |
| int |
$failures |
number of previous errors |
downloadbackup [line 270]
void downloadbackup(
string $file)
|
|
Download a backup file NOTE: Filename should have been sanitized and checked before calling this.
Parameters
| string |
$file |
Filename (without the path) |
innodb [line 438]
Prepare for conversion to InnoDB tables
Tags:
innodb_supported [line 371]
Check for InnoDB table support (usually as of MySQL 4.0, but may be available in earlier versions, e.g. "Max" or custom builds).
Tags:
listbackups [line 90]
List all backups, i.e. all files ending in .sql
Tags:
miniform_DoOrCancel [line 336]
string miniform_DoOrCancel(
string $buttontext, string $mode, [string $token = ''])
|
|
Create a simple form with two buttons Creates a simple form that has a Cancel and an "action" button, where the latter invokes a POST request with $_POST['mode'] set to the given value.
Tags:
Parameters
| string |
$buttontext |
text string for the "action" button |
| string |
$mode |
mode value |
| string |
$token |
CSRF token, will be created if empty |
optimize [line 540]
Prepare for optimizing tables
Tags:
|