diff --git a/config.json b/config.json index 03bf6cb..a465a4a 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,7 @@ { "database": { "driver": "mysql", + "pdo": true, "hostname": "localhost", "username": "root", "password": "", diff --git a/public_html/classes/project.php b/public_html/classes/project.php index edabb71..f2a66d2 100644 --- a/public_html/classes/project.php +++ b/public_html/classes/project.php @@ -23,6 +23,9 @@ class Project extends CPHPDatabaseRecordClass 'string' => array( 'Name' => "Name", 'ShortDescription' => "ShortDescription", + 'Slug' => "Slug" + ), + 'simplehtml' => array( 'LongDescription' => "LongDescription" ), 'numeric' => array( diff --git a/public_html/index.php b/public_html/index.php index 4f8f91f..cb49397 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -1,14 +1,14 @@ strings, array( - "project-name" => "Demo project", - "long-description" => "A large, multi-paragraph description of the project would go here.", - "no-downloads" => false, - "stable-version" => "1.5.3", - "experimental-version" => "1.6.1", - "line-count" => "62,671", - "ticket-count" => 12, - "tickets" => array(), - "more-tickets" => false -))); +require("rewrite.php"); diff --git a/public_html/templates/layout.tpl b/public_html/templates/layout.tpl index 1e1fb1b..d7ef90d 100644 --- a/public_html/templates/layout.tpl +++ b/public_html/templates/layout.tpl @@ -7,75 +7,7 @@
-
-

Team

-

{%?project-name}

-
-
- -
- -
-

Introduction

- {%?long-description} -
-
-
+ {%?contents}