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['sess_is_known'])) 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. include_once("../config/server.php");
  22.  
  23. if(defined('MOD_DEBUG'&& MOD_DEBUG == true{
  24.   include_once('../class/system/class.bench.php');
  25.   $bench new bench();
  26.   $bench->start_bench();
  27. }
  28.  
  29. include_once("../lib/items.php");
  30. include_once("../lib/lib_common.php");
  31. include('../languages/'.LANGUAGE.'/lang_common.'CHARSET '.php');
  32. include('../languages/'.LANGUAGE.'/lang_search.'CHARSET '.php');
  33. include_once("../class/system/class.".SQL.".php");
  34.  
  35. $sql_entity=SQL;
  36. $sql_object new $sql_entity;
  37. $sql_object -> DBInitialise();
  38. $sql_object -> DBConnexion();
  39.  
  40.  
  41. if(strtolower(SQL== 'pgsql'
  42. {
  43.   $v=pg_version();
  44.   if(str_replace('.'''$v['client']>= '83'{
  45.   echo '<p>Search engine is <strong>not available</strong> for pgsql >= 8.3<br />';
  46.   echo 'Your current version is : <strong>'.$v['client'].'</strong></p>';
  47.   exit;
  48.   }
  49. }
  50.  
  51.  
  52. $dir="../search";
  53. $sql_inc_file=$dir."/".SQL.".inc.php";
  54. if(file_exists($sql_inc_file)) include_once($sql_inc_file);
  55. $rub_link="search.php";
  56.  
  57. include_once("header.php");
  58. include_once($dir."/index.php");
  59. include_once("common_menu.php");
  60. include_once($dir."/quickbox.php");
  61. include_once("footer.php");
  62. ?>

Documentation generated on Sat, 08 Nov 2008 14:54:22 +0100 by phpDocumentor 1.4.1