added rc script

This commit is contained in:
SJ
2012-02-14 20:16:05 +01:00
parent cfb7b80120
commit bc60990c22
17 changed files with 154 additions and 27 deletions

View File

@ -29,13 +29,13 @@ class ControllerLoginLogin extends Controller {
LOGGER('logged in');
/*if(isset($_POST['relocation']) && $_POST['relocation']) {
header("Location: " . SITE_URL . "index.php?" . $_POST['relocation']);
if(isset($_POST['relocation']) && $_POST['relocation']) {
header("Location: " . SITE_URL . $_POST['relocation']);
} else {
header("Location: " . SITE_URL . "search.php");
}*/
}
header("Location: " . SITE_URL . "search.php");
//header("Location: " . SITE_URL . "search.php");
exit;
}

View File

@ -14,17 +14,21 @@ class ControllerSearchSearch extends Controller {
$this->load->model('search/search');
$this->document->title = $this->data['text_simple_search'];
$this->data['searchtype'] = 'simple';
if(isset($this->request->get['type'])) {
if($this->request->get['type'] == 'advanced') {
$this->template = "search/advanced.tpl";
$this->data['searchtype'] = 'advanced';
$this->document->title = $this->data['text_advanced_search'];
}
if($this->request->get['type'] == 'expert') {
$this->template = "search/expert.tpl";
$this->data['searchtype'] = 'expert';
$this->document->title = $this->data['text_expert_search'];
}
}