[ Index ]
 

Code source de Phorum 5.1.25

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/portable/ -> phorum_settings.php (source)

   1  <?php
   2  // needed to really load the alternate db-config in common.php
   3  define("PHORUM_WRAPPER",1);
   4  
   5  // set the Phorum install dir
   6  $PHORUM_DIR="/www/dev.phorum/phorum5";
   7  
   8  // set the databse settings for this Phorum Install
   9  $PHORUM_ALT_DBCONFIG=array(
  10  
  11     "type"          =>  "mysql",
  12     "name"          =>  "phorum",
  13     "server"        =>  "localhost",
  14     "user"          =>  "phorum",
  15     "password"      =>  "phorum",
  16     "table_prefix"  =>  "phorum_portable"
  17  
  18  );
  19  
  20  // We have to alter the urls a little
  21  function phorum_custom_get_url ($page, $query_items, $suffix)
  22  {
  23      $PHORUM=$GLOBALS["PHORUM"];
  24  
  25      $url = "$PHORUM[http_path]/phorum.php?$page";
  26  
  27      if(count($query_items)) $url.=",".implode(",", $query_items);
  28  
  29      if(!empty($suffix)) $url.=$suffix;
  30  
  31      return $url;
  32  }
  33  
  34  ?>


Généré le : Thu Nov 29 12:22:27 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics