define( CONSTANT, 'value' ) becomes define( "CONSTANT", 'value')

git-svn-id: http://piwigo.org/svn/trunk@231 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub 2003-11-03 22:39:53 +00:00
parent d6bb7649fc
commit 0089ab102c
8 changed files with 12 additions and 12 deletions

View file

@ -159,8 +159,8 @@ $tpl = array( 'stats_last_days','delete','close','submit','open' );
templatize_array( $tpl, 'lang', $sub ); templatize_array( $tpl, 'lang', $sub );
$vtp->setGlobalVar( $sub, 'user_template', $user['template'] ); $vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
//--------------------------------------------------- number of days to display //--------------------------------------------------- number of days to display
if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] ); if ( isset( $_GET['last_days'] ) ) define( "MAX_DAYS", $_GET['last_days'] );
else define( MAX_DAYS, 0 ); else define( "MAX_DAYS", 0 );
//----------------------------------------- non specific section initialization //----------------------------------------- non specific section initialization
$array_cat_directories = array(); $array_cat_directories = array();
$array_cat_names = array(); $array_cat_names = array();

View file

@ -16,7 +16,7 @@
* the Free Software Foundation; * * the Free Software Foundation; *
* * * *
***************************************************************************/ ***************************************************************************/
define( PREFIX_INCLUDE, '' ); define( "PREFIX_INCLUDE", '' );
include_once( './include/config.inc.php' ); include_once( './include/config.inc.php' );
include_once( './include/user.inc.php' ); include_once( './include/user.inc.php' );

View file

@ -42,8 +42,8 @@ $tpl = array( 'stats_last_days','date','login',
templatize_array( $tpl, 'lang', $sub ); templatize_array( $tpl, 'lang', $sub );
$vtp->setGlobalVar( $sub, 'user_template', $user['template'] ); $vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
//--------------------------------------------------- number of days to display //--------------------------------------------------- number of days to display
if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] ); if ( isset( $_GET['last_days'] ) ) define( "MAX_DAYS", $_GET['last_days'] );
else define( MAX_DAYS, 0 ); else define( "MAX_DAYS", 0 );
foreach ( $conf['last_days'] as $option ) { foreach ( $conf['last_days'] as $option ) {
$vtp->addSession( $sub, 'last_day_option' ); $vtp->addSession( $sub, 'last_day_option' );

View file

@ -140,8 +140,8 @@ $tpl = array( 'title_comments','stats_last_days','search_return_main_page' );
templatize_array( $tpl, 'lang', $handle ); templatize_array( $tpl, 'lang', $handle );
$vtp->setGlobalVar( $handle, 'text_color', $user['couleur_text'] ); $vtp->setGlobalVar( $handle, 'text_color', $user['couleur_text'] );
//--------------------------------------------------- number of days to display //--------------------------------------------------- number of days to display
if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] ); if ( isset( $_GET['last_days'] ) ) define( "MAX_DAYS", $_GET['last_days'] );
else define( MAX_DAYS, 0 ); else define( "MAX_DAYS", 0 );
//----------------------------------------- non specific section initialization //----------------------------------------- non specific section initialization
$array_cat_directories = array(); $array_cat_directories = array();
$array_cat_names = array(); $array_cat_names = array();

View file

@ -318,7 +318,7 @@ function replace_search( $string, $search )
function database_connection() function database_connection()
{ {
include( PREFIX_INCLUDE.'./include/mysql.inc.php' ); include( PREFIX_INCLUDE.'./include/mysql.inc.php' );
define( PREFIX_TABLE, $prefixeTable ); define( "PREFIX_TABLE", $prefixeTable );
@mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) @mysql_connect( $cfgHote, $cfgUser, $cfgPassword )
or die ( "Could not connect to server" ); or die ( "Could not connect to server" );

View file

@ -18,8 +18,8 @@
***************************************************************************/ ***************************************************************************/
//------------------------------------------------------------------ constantes //------------------------------------------------------------------ constantes
define( ATT_REG, '\w+' ); define( "ATT_REG", '\w+' );
define( VAL_REG, '[^"]*' ); define( "VAL_REG", '[^"]*' );
//------------------------------------------------------------------- functions //------------------------------------------------------------------- functions
// getContent returns the content of a tag // getContent returns the content of a tag
// //

View file

@ -16,7 +16,7 @@
* the Free Software Foundation; * * the Free Software Foundation; *
* * * *
***************************************************************************/ ***************************************************************************/
define( PREFIX_INCLUDE, '' ); define( "PREFIX_INCLUDE", '' );
include_once( './include/config.inc.php' ); include_once( './include/config.inc.php' );
include_once( './include/user.inc.php' ); include_once( './include/user.inc.php' );

View file

@ -17,7 +17,7 @@
* * * *
***************************************************************************/ ***************************************************************************/
define( PREFIX_INCLUDE, '' ); define( "PREFIX_INCLUDE", '' );
include_once( './include/functions.inc.php' ); include_once( './include/functions.inc.php' );
database_connection(); database_connection();
// retrieving configuration informations // retrieving configuration informations