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. include_once("../lib/functions_auth.php");
  11.  
  12. if(!isset($_SESSION['authenticated'])) header("Location: login.php");
  13.  
  14. if(isset($_POST['rub']|| isset($_GET['rub'])) {
  15.   if(isset($_POST['rub'])) $rub=$_POST['rub'];
  16.   if(isset($_GET['rub']))    $rub=$_GET['rub'];
  17. else $rub='all';
  18.  
  19.  
  20. include_once("../config/define.php");
  21.  
  22. include('../languages/'.U_L.'/lang_common.'CHARSET '.php');
  23. include('../languages/'.U_L.'/lang_search.'CHARSET '.php');
  24. include_once("../class/system/class.".SQL.".php");
  25.  
  26. $sql_entity=SQL;
  27. $sql_object new $sql_entity;
  28. $sql_object -> DBInitialise();
  29. $sql_object -> DBConnexion();
  30.  
  31.  
  32. if(strtolower(SQL== 'pgsql')
  33. {
  34.   $v=pg_version();
  35.   if(str_replace('.'''$v['client']>= '83'{
  36.     echo '<p>Search engine is <strong>not available</strong> for pgsql >= 8.3<br />';
  37.     echo 'Your current version is : <strong>'.$v['client'].'</strong></p>';
  38.     exit;
  39.   }
  40. }
  41.  
  42.  
  43. $dir="../search";
  44. $sql_inc_file=$dir."/".SQL.".inc.php";
  45. if(file_exists($sql_inc_file)) include_once($sql_inc_file);
  46. $rub_link="search.php";
  47.  
  48. include_once(THEME_ADMIN_PATH."index.php");
  49. $Dbg->display();
  50. ?>

Documentation generated on Thu, 03 May 2012 15:07:33 +0200 by phpDocumentor 1.4.1