示例#1
0
	$benchmark = new Timer();

// include for the smarty library
include("./includes/config.smarty.inc.php" );

// include for the ksession library
include("./lib/session/session.php");

// include for the adodb library
include("./lib/adodb/adodb.inc.php");

//include for the libsql library
include("./lib/libsql/LibSql.class.php");

/* init the template */
$template = new Smarty_eshop;
		
/* do the global assignement */		
$template->assign('title', $title);
$template->assign('keywords', $keywords);
$template->assign('description', $description);
$template->assign('currency', $currency);
$template->assign('taxe', $taxe);

/* creating the database connexion */
$connexion = &ADONewConnection($db_type);
$connexion->Connect($db_host, $db_login, $db_pass, $db_name);

/* default visitor is not login */
$is_not_logged = true;
示例#2
0
/**
* mod_install.php
* @ File description :  main file of the installation module
* @ Authors : 2004 T. Prêtre & R. Emourgeon
* @ eShop is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* $Id: mod_install.php,v 1.2 2004/07/10 20:32:06 kilgore Exp $
**/
defined('_DIRECT_ACCESS') or die(header("Location: ../../erreur.html"));
// Send variable in local variable
$step = $_REQUEST["step"];
$nbr_step_tot = 5;
// include for the smarty library
include "./includes/config.smarty.inc.php";
/* init the template */
$template = new Smarty_eshop();
/* do the global assignement */
$step_header = "Installation du E-shop : ";
$step_container = "";
$step_footer = "Etape " . $step . " sur " . $nbr_step_tot;
$body_option = "";
include 'step' . $step . '.inc.php';
// Boutons suivant et précédent
$step_container .= '<label class="defile">';
if ($step > 1) {
    $step_container .= '<a title="Précédent" href="javascript:window.history.back()"><-Précédent</a>';
}
$step_container .= ' | ';
if ($step < $nbr_step_tot) {
    $step_container .= '<a title="Suivant" href="JavaScript:document.server_info.submit()">Suivant-></a>';
}
示例#3
0
defined( '_DIRECT_ACCESS' ) or die(header("Location: ../erreur.html"));

/* do all the includes for the libs */

// include of the configuration
include( "./includes/config.inc.php" );

// include for the ksession library
include("./lib/session/session.php");

// include for the adodb library
include("./lib/adodb/adodb.inc.php");

/* init the template */
$template = new Smarty_eshop;
		
/* do the global assignement */		
$template->assign('title', $title);
$template->assign('keywords', $keywords);
$template->assign('description', $description);

/* creating the database connexion */
$connexion = &ADONewConnection($db_type);
$connexion->debug = false;
$connexion->Connect($db_host, $db_login, $db_pass, $db_name);

/* default visitor is not loged */
$is_not_logged = true;

/* init session */