From fc9f5e17fedb1059277c83d561a37899a4e87e3b Mon Sep 17 00:00:00 2001 From: phalkunz Date: Thu, 12 Feb 2009 02:59:00 +0000 Subject: [PATCH] revert wrong commit git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.3@71750 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- mysite/_config.php | 6 +----- mysite/code/Page.php | 25 ------------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/mysite/_config.php b/mysite/_config.php index e937ca1..229de66 100644 --- a/mysite/_config.php +++ b/mysite/_config.php @@ -4,7 +4,7 @@ global $project; $project = 'mysite'; global $database; -$database = "SS_ssinstaller2_3"; +$database = ""; require_once("conf/ConfigureFromEnv.php"); @@ -12,8 +12,4 @@ require_once("conf/ConfigureFromEnv.php"); // downloaded from http://www.silverstripe.com/themes/ SSViewer::set_theme('blackcandy'); -Mollom::setPublicKey("1819023dfcb10a667d10bd1578c5f39b"); -Mollom::setPrivateKey("2430fcbd65756ac6732a54a7c9ada116"); -SpamProtecterManager::set_spam_protecter('MollomSpamProtector') - ?> \ No newline at end of file diff --git a/mysite/code/Page.php b/mysite/code/Page.php index 018ec8b..7c6e187 100755 --- a/mysite/code/Page.php +++ b/mysite/code/Page.php @@ -50,31 +50,6 @@ class Page_Controller extends ContentController { return $this->customise($data)->renderWith(array('Page_results', 'Page')); } - function TestForm() { - - $fields = new FieldSet( - new TextField("Title", "Title"), - new TextareaField("Message", "Message") - ); - $actions = new FieldSet( - new FormAction('doTestForm', 'Submit') - ); - - $form = new Form($this, "TestForm", $fields, $actions); - - - - if(class_exists('SpamProtecterManager')) { - $protecter = SpamProtecterManager::update_form($form); - $protecter->setFieldMapping('Title', 'Message'); - } - - return $form; - } - - function doTestForm($data, $form) { - Director::redirectBack(); - } } ?> \ No newline at end of file