
04-02-2014, 09:51 PM
|
 |
|
|
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by AusPhotography
If you need a clean database for this mod this can be used:
(It said mine was corrupt)
Edit the path and run it with "php -f createdb.php" from the command line.
PHP Code:
<?php // createdb.php // Run once module to create an empty SQLite database for this mod // (c) Kym Farnik 2014 - permission given to use/modify as needed. $sqliteerror=''; define('DIR','/home/XXXXXX/public_html/forum'); // Edit path to YOUR forum folder unlink(DIR .'/sqlitedberrors.sqlite'); // delete existing DB // Create a new Db and create the table and index if ($sqlitedb = new SQLiteDatabase(DIR .'/sqlitedberrors.sqlite', 0666, $sqliteerror)) { $sqlitedb->unbufferedQuery("CREATE TABLE dberrors ( time TIME PRIMARY KEY, error TEXT, errorcode INT(10), ipaddress VARCHAR(39) , script VARCHAR(255) );"); $sqlitedb->unbufferedQuery("CREATE INDEX dberrors_time ON dberrors(time);"); } ?>
|
I assume you could also reupload a clean version of the file we provided, right?
|