mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-25 07:35:48 -07:00
Update demo_mode.php
This commit is contained in:
parent
6de2a86692
commit
e5400ea642
1 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,9 @@ if (!defined('BB_ROOT')) {
|
|||
die(basename(__FILE__));
|
||||
}
|
||||
|
||||
ini_set('memory_limit', '-1');
|
||||
set_time_limit(600);
|
||||
|
||||
global $cron_runtime_log;
|
||||
|
||||
$dump_path = BB_ROOT . 'install/sql/mysql.sql';
|
||||
|
@ -26,6 +29,11 @@ if (!DB()->query("DROP DATABASE " . DB()->selected_db)) {
|
|||
return;
|
||||
}
|
||||
|
||||
// Create database
|
||||
if (!DB()->query("CREATE DATABASE " . DB()->selected_db)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Import sql dump from file
|
||||
if (!DB()->multi_query($sql_dump)) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue