Letractively / osclass

Automatically exported from code.google.com/p/osclass
0 stars 0 forks source link

new idea of config.php (resolving the paths problem) #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
<?php
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_NAME', 'osclass_db');
define('DB_TABLE_PREFIX', 'oc_');

$f = str_replace( "\\", "/", __FILE__ );   // para que funcione en Windows
if( preg_match( "|^(.*[\\/])([^\\/]+-?)$|", $f, $matches ) ) { $PATH_BASE =
$matches[1] ; }
define('PATH_BASE', $PATH_BASE) ;

//DIR_NAME ha de salir del installer...
define('DIR_NAME', 'osclass') ;
define('WEB_PATH', 'http://' . $_SERVER['HTTP_HOST'] . '/' . DIR_NAME) ;

?>

Original issue reported on code.google.com by danielgs on 18 Jan 2010 at 11:51

GoogleCodeExporter commented 8 years ago
The proposal was reviewed and discarded.

Original comment by santiago...@gmail.com on 23 Jan 2010 at 11:22

GoogleCodeExporter commented 8 years ago

Original comment by santiago...@gmail.com on 2 Apr 2010 at 1:44