Changeset 274 for branches/release-1_3
- Timestamp:
- Jan 12, 2004, 12:40:39 AM (21 years ago)
- Location:
- branches/release-1_3
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/admin/admin.php
r202 r274 36 36 $page_valide = false; 37 37 $title = ''; 38 if (isset( $_GET['page'] )) 38 39 switch ( $_GET['page'] ) 39 40 { -
branches/release-1_3/admin/include/isadmin.inc.php
r57 r274 17 17 * * 18 18 ***************************************************************************/ 19 define( PREFIX_INCLUDE, '.' );19 define( 'PREFIX_INCLUDE', '.' ); 20 20 21 21 include_once( '../include/config.inc.php' ); -
branches/release-1_3/admin/install.php
r205 r274 19 19 20 20 //-------------------------------------------------------------------- includes 21 define( PREFIX_INCLUDE, '.' );21 define( 'PREFIX_INCLUDE', '.' ); 22 22 include( '../include/vtemplate.class.php' ); 23 23 include( '../include/functions.inc.php' ); … … 46 46 } 47 47 //---------------------- Step 1 : connection informations, write of config file 48 if ( $_GET['step'] == 1 )48 if ( isset($_GET['step']) && $_GET['step'] == 1 ) 49 49 { 50 50 $errors = array(); … … 151 151 $vtp->setVar( $handle, 'step1.f_host', $_POST['cfgHote'] ); 152 152 // user 153 $vtp->setVar( $handle, 'step1.f_user', $_POST['cfgUser'] ); 153 if ( isset( $_POST['cfgUser'] ) ) 154 $vtp->setVar( $handle, 'step1.f_user', $_POST['cfgUser'] ); 154 155 // base 155 $vtp->setVar( $handle, 'step1.f_base', $_POST['cfgBase'] ); 156 if ( isset( $_POST['cfgBase'] ) ) 157 $vtp->setVar( $handle, 'step1.f_base', $_POST['cfgBase'] ); 156 158 // prefixeTable 157 159 if ( !isset( $_POST['prefixeTable'] ) ) … … 164 166 } 165 167 //------------------------------------- Step 2 : creation of tables in database 166 else if ( $_GET['step'] == 2 )168 else if ( isset($_GET['step']) && $_GET['step'] == 2 ) 167 169 { 168 170 $errors = array(); … … 268 270 { 269 271 $vtp->addSession( $handle, 'step2' ); 272 if ( isset( $_POST['webmaster'] )) 270 273 $vtp->setVar( $handle, 'step2.f_webmaster', $_POST['webmaster'] ); 274 if ( isset( $_POST['mail_webmaster'] )) 271 275 $vtp->setVar( $handle, 'step2.f_mail_webmaster', $_POST['mail_webmaster']); 272 276 $vtp->closeSession( $handle, 'step2' ); -
branches/release-1_3/category.php
r252 r274 24 24 include_once( './include/init.inc.php' ); 25 25 //---------------------------------------------------------------------- logout 26 if ( $_GET['act'] == 'logout' andisset( $_COOKIE['id'] ) )26 if ( isset( $_GET['act'] ) && $_GET['act'] == 'logout' && isset( $_COOKIE['id'] ) ) 27 27 { 28 28 // cookie deletion if exists … … 35 35 } 36 36 //-------------------------------------------------- access authorization check 37 check_cat_id( $_GET['cat'] ); 37 if ( isset( $_GET['act'] )) 38 check_cat_id( $_GET['cat'] ); 38 39 check_login_authorization(); 39 if ( isset( $page['cat'] ) andis_numeric( $page['cat'] ) )40 if ( isset( $page['cat'] ) && is_numeric( $page['cat'] ) ) 40 41 { 41 42 check_restrictions( $page['cat'] ); … … 63 64 } 64 65 } 65 if ( is _numeric( $page['cat'] ) )66 if ( isset($page['cat']) && is_numeric( $page['cat'] ) ) 66 67 { 67 68 // the category displayed (in the URL cat=23) must be seen in the menu -> … … 77 78 // The $page['expand'] equals 'all' and 78 79 // $page['tab_expand'] contains all the authorized cat ids 79 if ( $user['expand'] or $_GET['expand'] == 'all')80 if ( $user['expand'] || (isset($_GET['expand']) && $_GET['expand'] == 'all' )) 80 81 { 81 82 $page['tab_expand'] = array(); … … 86 87 // We have to find the right $page['start'] that show the num picture 87 88 // in this category 88 if ( is _numeric( $_GET['num'] ) and$_GET['num'] >= 0 )89 if ( isset($_GET['num']) && is_numeric( $_GET['num'] ) && $_GET['num'] >= 0 ) 89 90 { 90 91 $page['start'] = floor( $_GET['num'] / $user['nb_image_page'] ); … … 179 180 // customization link 180 181 $vtp->addSession( $handle, 'summary' ); 181 $url = './profile.php?cat='.$page['cat']; 182 $url.= '&expand='.$page['expand']; 183 if ( $page['cat'] == 'search' ) 182 $url = './profile.php'; 183 if (isset($page['cat']) && isset($page['expand'])) 184 $url.='?cat='.$page['cat'].'&expand='.$page['expand']; 185 if ( isset($page['cat']) && $page['cat'] == 'search' ) 184 186 { 185 187 $url.= '&search='.$_GET['search'].'&mode='.$_GET['mode']; … … 350 352 and $page['cat_nb_images'] == 0 351 353 and $page['plain_structure'][$page['cat']]['nb_sub_categories'] > 0) 352 or $_GET['cat'] == '')354 or (!isset($_GET['cat']))) 353 355 { 354 356 $vtp->addSession( $handle, 'thumbnails' ); 355 357 $vtp->addSession( $handle, 'line' ); 356 358 357 $subcats = get_non_empty_subcat_ids( $page['cat'] ); 359 $subcats=array(); 360 if (isset ($page['cat'] )) 361 $subcats = get_non_empty_subcat_ids( $page['cat'] ); 358 362 $cell_number = 1; 359 363 $i = 0; -
branches/release-1_3/comments.php
r250 r274 141 141 $vtp->setGlobalVar( $handle, 'text_color', $user['couleur_text'] ); 142 142 //--------------------------------------------------- number of days to display 143 if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );144 else define( MAX_DAYS, 0 );143 if ( isset( $_GET['last_days'] ) ) define( 'MAX_DAYS', $_GET['last_days'] ); 144 else define( 'MAX_DAYS', 0 ); 145 145 //----------------------------------------- non specific section initialization 146 146 $array_cat_directories = array(); -
branches/release-1_3/include/functions.inc.php
r264 r274 307 307 { 308 308 include( PREFIX_INCLUDE.'./include/mysql.inc.php' ); 309 define( PREFIX_TABLE, $prefixeTable );309 define( 'PREFIX_TABLE', $prefixeTable ); 310 310 311 311 @mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) … … 335 335 336 336 foreach ( $array as $value ) { 337 if (isset(${$global_array_name}[$value])) 337 338 $vtp->setGlobalVar( $handle, $value, ${$global_array_name}[$value] ); 338 339 } -
branches/release-1_3/include/user.inc.php
r241 r274 30 30 $query_user = 'SELECT '; 31 31 foreach ( $infos as $i => $info ) { 32 if ( $i > 0 ) $query_user.= ', ';32 if ( $i > 0 ) $query_user.= ', '; 33 33 $query_user.= $info; 34 34 } … … 98 98 } 99 99 $query_user .= ';'; 100 101 100 $row = mysql_fetch_array( mysql_query( $query_user ) ); 102 101 -
branches/release-1_3/language/english.php
r239 r274 156 156 $lang['upload_successful'] = 'Picture uploaded with success, an administrator will validate it as soon as possible'; 157 157 // new or modified in release 1.3 158 $lang['charset'] = 'ISO _8859-1';158 $lang['charset'] = 'ISO-8859-1'; 159 159 $lang['no'] = 'no'; 160 160 $lang['yes'] = 'yes'; -
branches/release-1_3/language/francais.php
r239 r274 148 148 $lang['upload_successful'] = 'Image uploadée avec succès, un administrateur validera celle-ci dès que possible.'; 149 149 // new or modified in release 1.3 150 $lang['charset'] = 'ISO _8859-1';150 $lang['charset'] = 'ISO-8859-1'; 151 151 $lang['no'] = 'non'; 152 152 $lang['yes'] = 'oui'; … … 216 216 $lang['mail_new_comment_subject'] = 'Nouveau commentaire sur le site'; 217 217 $lang['mail_new_comment_content'] = 'Un nouveau commentaire a été posté sur la galerie. Si vous avez activé la validation des commentaires, il faut d\'abord valider le commentaire dans la zone d\'administration pour le voir apparaître.'."\n\n".'Vous avez accès aux derniers commentaires dans la zone d\'administration.'; 218 if (isset($conf)) 218 219 $lang['about_message'] = '<div style="text-align:center;font-weigh:bold;">Informations sur le PhpWebGallery</div> 219 220 <ul> … … 539 540 $lang['help_access'][2] = '2. Sur les pages des permissions (d\'un groupe, d\'utilisateur) la catégorie apparaîtra et vous pourrez autoriser l\'accès ou non.'; 540 541 $lang['help_infos'][2] = 'Pour n\'importe quelle question, n\'hésitez pas à consulter le forum ou à y poser une question, sur le site'; 542 if (isset($conf)) 541 543 $lang['help_infos'][2] = 'Pour n\'importe quelle question, n\'hésitez pas à consulter le <a href="'.$conf['forum_url'].'" style="text-decoration:underline">forum</a> ou à y poser une question, sur le site'; 542 544 $lang['step1_err_copy'] = 'Copiez le texte en bleu entre les tirets et collez-le dans le fichier mysql.inc.php qui se trouve dans le répertoire "include" à la base de l\'endroit où vous avez installé PhpWebGallery (le fichier mysql.inc.php ne doit comporter QUE ce qui est en bleu entre les tirets, aucun retour à la ligne ou espace n\'est autorisé)'; -
branches/release-1_3/template/default/style.inc.php
r57 r274 107 107 } 108 108 body {'; 109 $image = './theme/'.$user['t heme'].'/background.gif';109 $image = './theme/'.$user['template'].'/background.gif'; 110 110 if ( @is_file( $image ) ) 111 111 {
Note: See TracChangeset
for help on using the changeset viewer.