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_modules / postcalendar [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
10 Sep 2002 15:49:34 | postnuke_modules/postcalendar | pnadmin.php,1.28,1.29 pnuser.php,1.56,1.57 | Roger Raymond |
location information for event submission |
Update of /home/cvsroot/postnuke_modules/postcalendar In directory ns7.hostnuke.net:/tmp/cvs-serv1096 Modified Files: pnadmin.php pnuser.php Log Message: location information for event submission Index: pnadmin.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnadmin.php,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** pnadmin.php 7 Sep 2002 15:39:38 -0000 1.28 --- pnadmin.php 10 Sep 2002 15:49:32 -0000 1.29 *************** *** 805,814 **** extract($args); if(!isset($Date)) { - //$Date = date('m/d/Y'); $time = time(); $time += (pnUserGetVar('timezone_offset') - pnConfigGetVar('timezone_offset')) * 3600; ! $Date = ml_ftime('%m/%d/%Y',$time); } ! list($month,$day,$year) = explode('/',$Date); // lets get the module's information --- 805,815 ---- extract($args); if(!isset($Date)) { $time = time(); $time += (pnUserGetVar('timezone_offset') - pnConfigGetVar('timezone_offset')) * 3600; ! $Date = ml_ftime('%Y%m%d',$time); } ! $year = substr($Date,0,4); ! $month = substr($Date,4,2); ! $day = substr($Date,6,2); // lets get the module's information *************** *** 839,857 **** $categories = pnModAPIFunc('postcalendar','user','getCategories'); - // main menu - //$output->Text(postcalendar_usermenu(array('Date'=>$Date))); - - // are we previewing or committing the event? - //$preview = pnVarCleanFromInput('preview') ? true : false; - //$commit = pnVarCleanFromInput('commit') ? true : false; - - /* DEBUG / - if(is_array($_POST)) { - $vars = $_POST; - while(list($k,$v) = each($vars)) { - $output->Text('$args[\''.$k.'\'] => \''.$v.'\'<br />'); - } - } - /**/ if(!isset($pc_event_id) || empty($pc_event_id)) { list($event_subject, $event_desc, $event_topic, --- 840,843 ---- *************** *** 918,922 **** $event_website = $event['website']; $event_fee = $event['fee']; ! $event_sharing = $event['sharing']; //$event_time = $event['time'] list($event_startyear,$event_startmonth,$event_startday) = explode('-',$event['eventDate']); --- 904,908 ---- $event_website = $event['website']; $event_fee = $event['fee']; ! //$event_sharing = $event['sharing']; //$event_time = $event['time'] list($event_startyear,$event_startmonth,$event_startday) = explode('-',$event['eventDate']); *************** *** 1358,1362 **** // PARSE event_sharing_block //================================================================= ! $data = array('0' => array('0',_PC_SHARE_PRIVATE), '1' => array('1',_PC_SHARE_PUBLIC), --- 1344,1348 ---- // PARSE event_sharing_block //================================================================= ! /* $data = array('0' => array('0',_PC_SHARE_PRIVATE), '1' => array('1',_PC_SHARE_PUBLIC), *************** *** 1374,1379 **** $tpl->assign('EventSharingTitle', _PC_SHARING); $tpl->assign('InputEventSharing','event_sharing'); //================================================================= ! // previously used location pulldown and javasript controls //================================================================= --- 1360,1366 ---- $tpl->assign('EventSharingTitle', _PC_SHARING); $tpl->assign('InputEventSharing','event_sharing'); + */ //================================================================= ! // previously used location pulldown and javascript controls //================================================================= Index: pnuser.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnuser.php,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** pnuser.php 10 Sep 2002 15:19:43 -0000 1.56 --- pnuser.php 10 Sep 2002 15:49:32 -0000 1.57 *************** *** 420,423 **** --- 420,431 ---- $startTime = sprintf('%02d',$event_starttimeh).':'.sprintf('%02d',$event_starttimem).':00'; } + // serialze the location data + + $location = serialize(compact('event_location', + 'event_street1', + 'event_street2', + 'event_city', + 'event_state', + 'event_postal')); $sql = "INSERT INTO $events_table ( *************** *** 456,460 **** '".pnVarPrepForStore($event_allday)."', '".pnVarPrepForStore($event_category)."', ! '".pnVarPrepForStore($event_location)."', '".pnVarPrepForStore($event_conttel)."', '".pnVarPrepForStore($event_contname)."', --- 464,468 ---- '".pnVarPrepForStore($event_allday)."', '".pnVarPrepForStore($event_category)."', ! '".pnVarPrepForStore($location)."', '".pnVarPrepForStore($event_conttel)."', '".pnVarPrepForStore($event_contname)."',
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 |