mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
added rc script
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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'];
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user