diff options
Diffstat (limited to '')
-rw-r--r-- | admin/comments.php | 4 | ||||
-rw-r--r-- | admin/include/isadmin.inc.php | 2 | ||||
-rw-r--r-- | admin/stats.php | 4 | ||||
-rw-r--r-- | comments.php | 4 | ||||
-rw-r--r-- | include/functions.inc.php | 2 | ||||
-rw-r--r-- | include/functions_xml.inc.php | 4 | ||||
-rw-r--r-- | include/init.inc.php | 2 | ||||
-rw-r--r-- | index.php | 2 |
8 files changed, 12 insertions, 12 deletions
diff --git a/admin/comments.php b/admin/comments.php index f13afab30..1b23fbbff 100644 --- a/admin/comments.php +++ b/admin/comments.php @@ -159,8 +159,8 @@ $tpl = array( 'stats_last_days','delete','close','submit','open' ); templatize_array( $tpl, 'lang', $sub ); $vtp->setGlobalVar( $sub, 'user_template', $user['template'] ); //--------------------------------------------------- number of days to display -if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] ); -else define( MAX_DAYS, 0 ); +if ( isset( $_GET['last_days'] ) ) define( "MAX_DAYS", $_GET['last_days'] ); +else define( "MAX_DAYS", 0 ); //----------------------------------------- non specific section initialization $array_cat_directories = array(); $array_cat_names = array(); diff --git a/admin/include/isadmin.inc.php b/admin/include/isadmin.inc.php index e064343d5..341fc65ba 100644 --- a/admin/include/isadmin.inc.php +++ b/admin/include/isadmin.inc.php @@ -16,7 +16,7 @@ * the Free Software Foundation; * * * ***************************************************************************/ -define( PREFIX_INCLUDE, '' ); +define( "PREFIX_INCLUDE", '' ); include_once( './include/config.inc.php' ); include_once( './include/user.inc.php' ); diff --git a/admin/stats.php b/admin/stats.php index 08b8f5de0..01780a95e 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -42,8 +42,8 @@ $tpl = array( 'stats_last_days','date','login', templatize_array( $tpl, 'lang', $sub ); $vtp->setGlobalVar( $sub, 'user_template', $user['template'] ); //--------------------------------------------------- number of days to display -if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] ); -else define( MAX_DAYS, 0 ); +if ( isset( $_GET['last_days'] ) ) define( "MAX_DAYS", $_GET['last_days'] ); +else define( "MAX_DAYS", 0 ); foreach ( $conf['last_days'] as $option ) { $vtp->addSession( $sub, 'last_day_option' ); diff --git a/comments.php b/comments.php index 83fe67e08..8ca3ecaeb 100644 --- a/comments.php +++ b/comments.php @@ -140,8 +140,8 @@ $tpl = array( 'title_comments','stats_last_days','search_return_main_page' ); templatize_array( $tpl, 'lang', $handle ); $vtp->setGlobalVar( $handle, 'text_color', $user['couleur_text'] ); //--------------------------------------------------- number of days to display -if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] ); -else define( MAX_DAYS, 0 ); +if ( isset( $_GET['last_days'] ) ) define( "MAX_DAYS", $_GET['last_days'] ); +else define( "MAX_DAYS", 0 ); //----------------------------------------- non specific section initialization $array_cat_directories = array(); $array_cat_names = array(); diff --git a/include/functions.inc.php b/include/functions.inc.php index 5eeb2f4a7..1d7c2aaec 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -318,7 +318,7 @@ function replace_search( $string, $search ) function database_connection() { include( PREFIX_INCLUDE.'./include/mysql.inc.php' ); - define( PREFIX_TABLE, $prefixeTable ); + define( "PREFIX_TABLE", $prefixeTable ); @mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) or die ( "Could not connect to server" ); diff --git a/include/functions_xml.inc.php b/include/functions_xml.inc.php index 12cc82787..034b49512 100644 --- a/include/functions_xml.inc.php +++ b/include/functions_xml.inc.php @@ -18,8 +18,8 @@ ***************************************************************************/ //------------------------------------------------------------------ constantes -define( ATT_REG, '\w+' ); -define( VAL_REG, '[^"]*' ); +define( "ATT_REG", '\w+' ); +define( "VAL_REG", '[^"]*' ); //------------------------------------------------------------------- functions // getContent returns the content of a tag // diff --git a/include/init.inc.php b/include/init.inc.php index 87059e4c9..1bcc96ae0 100644 --- a/include/init.inc.php +++ b/include/init.inc.php @@ -16,7 +16,7 @@ * the Free Software Foundation; * * * ***************************************************************************/ -define( PREFIX_INCLUDE, '' ); +define( "PREFIX_INCLUDE", '' ); include_once( './include/config.inc.php' ); include_once( './include/user.inc.php' ); @@ -17,7 +17,7 @@ * * ***************************************************************************/ -define( PREFIX_INCLUDE, '' ); +define( "PREFIX_INCLUDE", '' ); include_once( './include/functions.inc.php' ); database_connection(); // retrieving configuration informations |