linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file search.php

Documentation is available at search.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage admin
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. if(!isset($_SESSION['authenticated'])) header("Location: login.php");
  12.  
  13. if(isset($_POST['rub']|| isset($_GET['rub'])) {
  14.   if(isset($_POST['rub'])) $rub=$_POST['rub'];
  15.   if(isset($_GET['rub']))    $rub=$_GET['rub'];
  16. else $rub='all';
  17.  
  18.  
  19. include_once("../config/define.php");
  20.  
  21. include('../languages/'.U_L.'/lang_common.'CHARSET '.php');
  22. include('../languages/'.U_L.'/lang_search.'CHARSET '.php');
  23.  
  24.  
  25. if(strtolower(SQL== 'pgsql')
  26. {
  27.   $v=pg_version();
  28.   if(str_replace('.'''$v['client']>= '83'{
  29.     echo '<p>Search engine is <strong>not available</strong> for pgsql >= 8.3<br />';
  30.     echo 'Your current version is : <strong>'.$v['client'].'</strong></p>';
  31.     exit;
  32.   }
  33. }
  34.  
  35.  
  36. $dir="../search";
  37. $sql_inc_file=$dir."/".SQL.".inc.php";
  38. if(file_exists($sql_inc_file)) include_once($sql_inc_file);
  39. $rub_link="search.php";
  40.  
  41. include_once(THEME_ADMIN_PATH."index.php");
  42. $Dbg->display();
  43. ?>

Documentation generated on Thu, 20 Mar 2014 16:49:29 +0100 by phpDocumentor 1.4.1