Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / modules / base [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
29 Jul 2002 04:33:37 | postnuke_official/html/modules/base | pnuserapi.php,1.13,1.14 | Paul Rosania |
added session scope option to var tag |
Update of /home/cvsroot/postnuke_official/html/modules/base In directory ns7.hostnuke.net:/tmp/cvs-serv6047 Modified Files: pnuserapi.php Log Message: added session scope option to var tag Index: pnuserapi.php =================================================================== RCS file: /home/cvsroot/postnuke_official/html/modules/base/pnuserapi.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** pnuserapi.php 20 Jul 2002 20:39:25 -0000 1.13 --- pnuserapi.php 29 Jul 2002 04:33:35 -0000 1.14 *************** *** 45,55 **** $name = convert_array_style($name); ! if (isset($scope)) { ! if (!strcasecmp($scope, 'config')) { return '<?php echo pnConfigGetVar(\'' . $name . '\'); ?>'; ! } } - return '<?php echo $'.$name.'; ?>'; //<? } --- 45,65 ---- $name = convert_array_style($name); ! if (!isset($scope)) { ! $scope = ''; ! } else { ! $scope = strtolower($scope); ! } ! ! switch ($scope) { ! case 'config': return '<?php echo pnConfigGetVar(\'' . $name . '\'); ?>'; ! break; ! case 'session': ! return '<?php echo pnSessionGetVar(\'' . $name . '\'); ?>'; ! break; ! default: ! return '<?php echo $'.$name.'; ?>'; } } *************** *** 89,92 **** --- 99,104 ---- extract($args); + $name = convert_array_style($name); + if (isset($key)) { return "<?php \$_pass = 0; foreach ($$name as \$_item) { extract(\$_item, EXTR_OVERWRITE); \$_pass++; $$key = \$_pass; ?>";
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |