[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/shop/ -> setusercountry.php (source)

   1  <?php
   2  //
   3  // Created on: <25-Apr-2006 17:01:43 vs>
   4  //
   5  // SOFTWARE NAME: eZ publish
   6  // SOFTWARE RELEASE: 3.9.0
   7  // BUILD VERSION: 17785
   8  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
   9  // SOFTWARE LICENSE: GNU General Public License v2.0
  10  // NOTICE: >
  11  //   This program is free software; you can redistribute it and/or
  12  //   modify it under the terms of version 2.0  of the GNU General
  13  //   Public License as published by the Free Software Foundation.
  14  //
  15  //   This program is distributed in the hope that it will be useful,
  16  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  17  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18  //   GNU General Public License for more details.
  19  //
  20  //   You should have received a copy of version 2.0 of the GNU General
  21  //   Public License along with this program; if not, write to the Free
  22  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  23  //   MA 02110-1301, USA.
  24  //
  25  //
  26  
  27  /*! \file setusercountry.php
  28  */
  29  
  30  include_once ( 'kernel/shop/classes/ezshopfunctions.php' );
  31  $module =& $Params['Module'];
  32  
  33  if ( $module->isCurrentAction( 'Set' ) && $module->hasActionParameter( 'Country' ) )
  34      $country = $module->actionParameter( 'Country' );
  35  elseif ( isset( $Params['Country'] ) )
  36      $country = $Params['Country'];
  37  else
  38      $country = null;
  39  
  40  if ( $country !== null )
  41  {
  42      eZShopFunctions::setPreferredUserCountry( $country );
  43      eZDebug::writeNotice( "Set user country to <$country>" );
  44  }
  45  else
  46      eZDebug::writeWarning( "No country chosen to set." );
  47  
  48  include_once ( 'kernel/classes/ezredirectmanager.php' );
  49  eZRedirectManager::redirectTo( $module, false );
  50  
  51  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7