Changeset 202


Ignore:
Timestamp:
Oct 12, 2003, 4:54:06 PM (21 years ago)
Author:
z0rglub
Message:

Display a message of warning if file admin/install.php is still present
after install.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r97 r202  
    2424$handle = $vtp->Open( '../template/'.$user['template'].'/admin/admin.vtp' );
    2525// language
    26 $tpl = array( 'menu_title', 'title_default', 'charset' );
     26$tpl = array( 'menu_title','title_default','charset','install_warning' );
    2727templatize_array( $tpl, 'lang', $handle );
    2828$vtp->setGlobalVar( $handle, 'user_template', $user['template'] );
     29//-------------------------------------------------- install.php still exists ?
     30if ( is_file( './install.php' ) )
     31{
     32  $vtp->addSession( $handle, 'install_warning' );
     33  $vtp->closeSession( $handle, 'install_warning' );
     34}
    2935//--------------------------------------- validating page and creation of title
    3036$page_valide = false;
  • trunk/language/english.php

    r200 r202  
    543543  $lang['conf_upload_available_info'] = 'Authorizing the upload of pictures by users on the categories of the website (not on a remote server). This is general parameter, it is needed to authorize upload category by category, by default, no category is "uploadable".';
    544544  $lang['install_help'] = 'Need help ? Ask your question on <a href="http://forum.phpwebgallery.net">PhpWebGallery message board</a>.';
     545  $lang['install_warning'] = 'The file "admin/install.php" is still present. Please remove it from your server. It is not secure to keep it.';
    545546}
    546547?>
  • trunk/language/francais.php

    r200 r202  
    543543  $lang['conf_upload_available_info'] = 'Autoriser l\'ajout d\'image par les utilisateurs dans les catégories du site (pas sur un site distant). Ceci est un paramètre général, il est nécessaire pour autoriser l\'upload catégorie par catégorie.';
    544544  $lang['install_help'] = 'Besoin d\'aide ? Posez votre question sur le <a href="http://forum.phpwebgallery.net">forum de PhpWebGallery</a>.';
     545  $lang['install_warning'] = 'Le fichier "admin/install.php" est encore présent sur votre serveur. Merci de le supprimer. Il pourrait être utilisé par un tiers à des fins malveillantes.';
    545546}
    546547?>
Note: See TracChangeset for help on using the changeset viewer.