Ignore:
Timestamp:
Jan 12, 2004, 12:40:39 AM (20 years ago)
Author:
gweltas
Message:

Corrections de quelques warnings php.

Location:
branches/release-1_3/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/admin/admin.php

    r202 r274  
    3636$page_valide = false;
    3737$title = '';
     38if (isset( $_GET['page'] ))
    3839switch ( $_GET['page'] )
    3940{
  • branches/release-1_3/admin/include/isadmin.inc.php

    r57 r274  
    1717 *                                                                         *
    1818 ***************************************************************************/
    19 define( PREFIX_INCLUDE, '.' );
     19define( 'PREFIX_INCLUDE', '.' );
    2020
    2121include_once( '../include/config.inc.php' );
  • branches/release-1_3/admin/install.php

    r205 r274  
    1919
    2020//-------------------------------------------------------------------- includes
    21 define( PREFIX_INCLUDE, '.' );
     21define( 'PREFIX_INCLUDE', '.' );
    2222include( '../include/vtemplate.class.php' );
    2323include( '../include/functions.inc.php' );
     
    4646}
    4747//---------------------- Step 1 : connection informations, write of config file
    48 if ( $_GET['step'] == 1 )
     48if ( isset($_GET['step']) && $_GET['step'] == 1 )
    4949{
    5050  $errors = array();
     
    151151      $vtp->setVar( $handle, 'step1.f_host', $_POST['cfgHote'] );
    152152    // user
    153     $vtp->setVar( $handle, 'step1.f_user', $_POST['cfgUser'] );
     153        if ( isset( $_POST['cfgUser'] ) )
     154            $vtp->setVar( $handle, 'step1.f_user', $_POST['cfgUser'] );
    154155    // base
    155     $vtp->setVar( $handle, 'step1.f_base', $_POST['cfgBase'] );
     156        if ( isset( $_POST['cfgBase'] ) )
     157            $vtp->setVar( $handle, 'step1.f_base', $_POST['cfgBase'] );
    156158    // prefixeTable
    157159    if ( !isset( $_POST['prefixeTable'] ) )
     
    164166}
    165167//------------------------------------- Step 2 : creation of tables in database
    166 else if ( $_GET['step'] == 2 )
     168else if (  isset($_GET['step']) && $_GET['step'] == 2 )
    167169{
    168170  $errors = array();
     
    268270  {
    269271    $vtp->addSession( $handle, 'step2' );
     272        if ( isset( $_POST['webmaster'] ))
    270273    $vtp->setVar( $handle, 'step2.f_webmaster', $_POST['webmaster'] );
     274        if ( isset( $_POST['mail_webmaster'] ))
    271275    $vtp->setVar( $handle, 'step2.f_mail_webmaster', $_POST['mail_webmaster']);
    272276    $vtp->closeSession( $handle, 'step2' );
Note: See TracChangeset for help on using the changeset viewer.