| Revision 852,
758 bytes
checked in by cdleonard@…, 4 years ago
(diff) |
|
svn:eol-style native in trunk. Also svn:executable on all scripts
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #! /usr/bin/env php |
|---|
| 2 | <?php |
|---|
| 3 | |
|---|
| 4 | require_once(dirname($argv[0]) . "/utilities.php"); |
|---|
| 5 | db_connect(); |
|---|
| 6 | |
|---|
| 7 | // Configure the forum. |
|---|
| 8 | // SMF keeps paths in the database, we have to update them. |
|---|
| 9 | $ia_root = IA_ROOT_DIR; |
|---|
| 10 | $ia_url = IA_URL; |
|---|
| 11 | |
|---|
| 12 | $query = sprintf("UPDATE ia_smf_themes ". |
|---|
| 13 | "SET `value` = '%s' WHERE `variable` = 'theme_dir'", |
|---|
| 14 | db_escape(IA_ROOT_DIR . "smf/Themes/default")); |
|---|
| 15 | db_query($query); |
|---|
| 16 | $query = sprintf("UPDATE ia_smf_themes ". |
|---|
| 17 | "SET `value` = '%s' WHERE `variable` = 'theme_url'", |
|---|
| 18 | db_escape(IA_URL . "forum/Themes/default")); |
|---|
| 19 | db_query($query); |
|---|
| 20 | $query = sprintf("UPDATE ia_smf_themes ". |
|---|
| 21 | "SET `value` = '%s' WHERE `variable` = 'images_url'", |
|---|
| 22 | db_escape(IA_URL . "forum/Themes/default/images")); |
|---|
| 23 | db_query($query); |
|---|
| 24 | |
|---|
| 25 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.