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('../lib/lang.php')
  34. include_once("../class/system/class.".SQL.".php");
  35.  
  36. $sql_entity=SQL;
  37. $sql_object new $sql_entity;
  38. $sql_object -> DBInitialise();
  39. $sql_object -> DBConnexion();
  40.  
  41.  
  42. if(strtolower(SQL== 'pgsql'
  43. {
  44.   $v=pg_version();
  45.   if(str_replace('.'''$v['client']>= '83'{
  46.   echo '<p>Search engine is <strong>not available</strong> for pgsql >= 8.3<br />';
  47.   echo 'Your current version is : <strong>'.$v['client'].'</strong></p>';
  48.   exit;
  49.   }
  50. }
  51.  
  52.  
  53. $dir="../search";
  54. $sql_inc_file=$dir."/".SQL.".inc.php";
  55. if(file_exists($sql_inc_file)) include_once($sql_inc_file);
  56. $rub_link="search.php";
  57.  
  58. include_once(THEME_ADMIN_PATH."index.php")
  59. ?>

Documentation generated on Fri, 16 Oct 2009 09:39:09 +0200 by phpDocumentor 1.4.1