source: trunk/scripts/forum-fix-win @ 1184

Revision 852, 686 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<?php
2
3db_connect();
4
5// Configure the forum.
6// SMF keeps paths in the database, we have to update them.
7$ia_root = IA_ROOT_DIR;
8$ia_url = IA_URL;
9
10$query = sprintf("UPDATE ia_smf_themes ".
11        "SET `value` = '%s' WHERE `variable` = 'theme_dir'",
12        db_escape(IA_ROOT_DIR . "smf/Themes/default"));
13db_query($query);
14$query = sprintf("UPDATE ia_smf_themes ".
15        "SET `value` = '%s' WHERE `variable` = 'theme_url'",
16        db_escape(IA_URL . "forum/Themes/default"));
17db_query($query);
18$query = sprintf("UPDATE ia_smf_themes ".
19        "SET `value` = '%s' WHERE `variable` = 'images_url'",
20        db_escape(IA_URL . "forum/Themes/default/images"));
21db_query($query);
22
23?>
Note: See TracBrowser for help on using the repository browser.