Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
175 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
// Create "routes" table | ||
$_SQL[] = "CREATE TABLE [dbo].[{$_TABLES['routes']}] ( | ||
[rid] [int] NOT NULL IDENTITY (1, 1), | ||
[method] [int] NOT NULL DEFAULT 1, | ||
[rule] [varchar] (255) NOT NULL DEFAULT '', | ||
[route] [varchar] (255) NOT NULL DEFAULT '', | ||
[priority] [int] NOT NULL DEFAULT 100 | ||
) ON [PRIMARY] | ||
"; | ||
|
||
$_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['routes']}] ADD | ||
CONSTRAINT [PK_{$_TABLES['routes']}] PRIMARY KEY CLUSTERED | ||
( | ||
[rid] | ||
) ON [PRIMARY] | ||
"; | ||
|
||
// Add sample routes to the table | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/stats', '/stats.php')"; | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/topic/@topic', '/index.php?topic=@topic')"; | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/page/@page', '/staticpages/index.php?page=@page')"; | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/article/@sid', '/article.php?story=@sid')"; | ||
|
||
/** | ||
* Add new config options | ||
* | ||
*/ | ||
function update_ConfValuesFor212() | ||
{ | ||
global $_CONF; | ||
|
||
require_once $_CONF['path_system'] . 'classes/config.class.php'; | ||
|
||
$c = config::get_instance(); | ||
$me = 'Core'; | ||
$c->add('url_routing',FALSE,'select',0,0,36,1850,TRUE, $me, 0); | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
// Create "routes" table | ||
$_SQL[] = "CREATE TABLE {$_TABLES['routes']} ( | ||
`rid` int(11) NOT NULL AUTO_INCREMENT, | ||
`method` int(11) NOT NULL DEFAULT '1', | ||
`rule` varchar(255) NOT NULL DEFAULT '', | ||
`route` varchar(255) NOT NULL DEFAULT '', | ||
`priority` int(11) NOT NULL DEFAULT '100', | ||
PRIMARY KEY (`rid`) | ||
)"; | ||
|
||
// Add sample routes to the table | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/stats', '/stats.php')"; | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/topic/@topic', '/index.php?topic=@topic')"; | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/page/@page', '/staticpages/index.php?page=@page')"; | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/article/@sid', '/article.php?story=@sid')"; | ||
|
||
/** | ||
* Add new config options | ||
* | ||
*/ | ||
function update_ConfValuesFor212() | ||
{ | ||
global $_CONF; | ||
|
||
require_once $_CONF['path_system'] . 'classes/config.class.php'; | ||
|
||
$c = config::get_instance(); | ||
$me = 'Core'; | ||
$c->add('url_routing',FALSE,'select',0,0,36,1850,TRUE, $me, 0); | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
// Create "routes" table | ||
$_SQL[] = "CREATE TABLE {$_TABLES['routes']} ( | ||
rid SERIAL, | ||
method int NOT NULL DEFAULT 1, | ||
rule varchar(255) NOT NULL DEFAULT '', | ||
route varchar(255) NOT NULL DEFAULT '', | ||
priority int NOT NULL DEFAULT 100, | ||
PRIMARY KEY (rid) | ||
)"; | ||
|
||
// Add sample routes to the table | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/stats', '/stats.php')"; | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/topic/@topic', '/index.php?topic=@topic')"; | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/page/@page', '/staticpages/index.php?page=@page')"; | ||
$_SQL[] = "INSERT INTO {$_TABLES['routes']} (method, rule, route) VALUES (1, '/article/@sid', '/article.php?story=@sid')"; | ||
|
||
/** | ||
* Add new config options | ||
* | ||
*/ | ||
function update_ConfValuesFor212() | ||
{ | ||
global $_CONF; | ||
|
||
require_once $_CONF['path_system'] . 'classes/config.class.php'; | ||
|
||
$c = config::get_instance(); | ||
$me = 'Core'; | ||
$c->add('url_routing',FALSE,'select',0,0,36,1850,TRUE, $me, 0); | ||
|
||
return true; | ||
} |