-Subproject commit 96c683cfd7117c221597e0aa6d4eba772272cba3
+Subproject commit 6ebf94b64abaadbf653c6ddebc185ce3578d0a91
-Subproject commit 42f758d9fe2146d1f0470604fc05ee43580873fc
+Subproject commit 9ba72f1b8219eabc96f8cd5f0d300d993f52fe03
-../../twig/lib/Twig
\ No newline at end of file
+../../twig
\ No newline at end of file
{
Twig_Autoloader::register();
global $loader,$twig,$twigoptions,$twigextensions;
- $loader = new Twig_Loader_Filesystem(LanguageManager::singleton()->templateFolders());
+ $loader = new Twig\Loader\FilesystemLoader(LanguageManager::singleton()->templateFolders());
$twig = new Twig_Environment($loader, $twigoptions );
foreach($twigextensions as $te){
$t='Twig_Extension_'.$te;
private $templateFolder;
private $formatcfg;
private $timezone;
+ private $lang="C";
/** private constructor */
private function __construct($xlang=false)
//TODO: convert random into class and move to framework
include_once('./inc/classes/random.php');
//load external Twig library
-require_once 'inc/Twig/Autoloader.php';
+require_once('inc/Twig/lib/Twig/Autoloader.php');
//load web-UI specific class-files
include('inc/classes/autoload.php');
WTrWebCartAddTicket::execute($cartid,$evid,$pcid,$amount);
}
//go to the cart
- redirectHome(array("mode"=>"cart","cartid"=>$cartid));
+ redirectHome(array("mode"=>"cart",self::cartIdName=>$cartid));
}
///called from index.php - adds a voucher to the cart
// echo "adding";
WTrWebCartAddVoucher::execute($cartid,$prc);
//go to the cart
- redirectHome(array("mode"=>"cart","cartid"=>$cartid));
+ redirectHome(array("mode"=>"cart",self::cartIdName=>$cartid));
}
///called from index.php - adds a coupon to the cart
//find and remove voucher
WTrWebCartRemoveVoucher::execute($cartid,$vid);
}
- redirectHome(array("mode"=>"cart","cartid"=>$cartid));
+ redirectHome(array("mode"=>"cart",self::cartIdName=>$cartid));
}
///clean up old carts
/**returns the current cart ID, or an empty string if there is no cart, does not update*/
static protected function findCart(){
global $HTTPARGS,$_COOKIE;
- if(self::$cartid!==false)return self::$cartid;
+ if(self::$cartid!==false){
+ $res=WTcart::getFromDB(self::$cartid);
+ if(is_a($res,"WTcart"))
+ return self::$cartid;
+ else
+ self::$cartid=false;
+ }
//search GET/POST parms
if(isset($HTTPARGS[self::cartIdName])){
//found it, test it!
/*\r
-// (c) Konrad Rosenbaum, 2007-2011\r
+// (c) Konrad Rosenbaum, 2007-2021\r
// (c) Peter Keller, 2007/8\r
// protected under the GNU AGPL version 3 or at your option any newer\r
// see COPYING.AGPL\r
.ms_FormRow {clear:both; padding-top: 5px; padding-bottom: 5px; }\r
.ms_FormRow label {font-weight:bold; width:150px; float:left;}\r
\r
-.ms_Table {border-collapse: collapse;}\r
-.ms_Table th {padding: 7px; border: 1px solid black; text-align: center;}\r
+.ms_Table {border-collapse: collapse; border: 1px solid black; padding: 8px;}\r
+.ms_Table th {padding: 7px; border: 1px solid black; text-align: center; font-weight: bold; }\r
.ms_Table td {padding: 7px; border: 1px solid black;}\r
-.ms_Table input {text-align: right;}\r
+.ms_Table input {text-align: left;}\r
+\r
+.ms_TableNB {border-collapse: collapse; border: none; padding: 8px;}\r
+.ms_TableNB th {padding: 4px; border: none; text-align: center; font-weight: bold; }\r
+.ms_TableNB td {padding: 4px; border: none;}\r
+.ms_TableNB input {text-align: left;}\r
\r
.ms_AlignRight {text-align: right;}\r
.ms_Bold {font-weight: bold;}\r