|
From: <ant...@us...> - 2013-03-15 16:54:21
|
Revision: 11234
http://sourceforge.net/p/xoops/svn/11234
Author: antiquel
Date: 2013-03-15 16:54:17 +0000 (Fri, 15 Mar 2013)
Log Message:
-----------
Emptied the trunk to add new real one (used in version 2.12)
Modified Paths:
--------------
XoopsModules/APCal/trunk/CHANGELOG.txt
XoopsModules/APCal/trunk/INSTALL.txt
XoopsModules/APCal/trunk/LANG DIFF.txt
XoopsModules/APCal/trunk/LANG TRANS.txt
XoopsModules/APCal/trunk/LICENCE.txt
XoopsModules/APCal/trunk/README.txt
XoopsModules/APCal/trunk/UPGRADE.txt
Added Paths:
-----------
XoopsModules/APCal/
Removed Paths:
-------------
XoopsModules/APCal/trunk/common/
XoopsModules/APCal/trunk/modules/APCal/admin/
XoopsModules/APCal/trunk/modules/APCal/admin.css
XoopsModules/APCal/trunk/modules/APCal/ajax/
XoopsModules/APCal/trunk/modules/APCal/apcal.css
XoopsModules/APCal/trunk/modules/APCal/api/
XoopsModules/APCal/trunk/modules/APCal/blocks/
XoopsModules/APCal/trunk/modules/APCal/class/
XoopsModules/APCal/trunk/modules/APCal/comment_delete.php
XoopsModules/APCal/trunk/modules/APCal/comment_edit.php
XoopsModules/APCal/trunk/modules/APCal/comment_new.php
XoopsModules/APCal/trunk/modules/APCal/comment_post.php
XoopsModules/APCal/trunk/modules/APCal/comment_reply.php
XoopsModules/APCal/trunk/modules/APCal/doc/
XoopsModules/APCal/trunk/modules/APCal/getCoords.html
XoopsModules/APCal/trunk/modules/APCal/getevents.php
XoopsModules/APCal/trunk/modules/APCal/googlemap.html
XoopsModules/APCal/trunk/modules/APCal/images/
XoopsModules/APCal/trunk/modules/APCal/include/
XoopsModules/APCal/trunk/modules/APCal/index.php
XoopsModules/APCal/trunk/modules/APCal/language/
XoopsModules/APCal/trunk/modules/APCal/locales/
XoopsModules/APCal/trunk/modules/APCal/notification_update.php
XoopsModules/APCal/trunk/modules/APCal/plugins/
XoopsModules/APCal/trunk/modules/APCal/print.php
XoopsModules/APCal/trunk/modules/APCal/ro_regonlinehandler.php
XoopsModules/APCal/trunk/modules/APCal/rss2_coming.php
XoopsModules/APCal/trunk/modules/APCal/rss2_today.php
XoopsModules/APCal/trunk/modules/APCal/shareCalendar.php
XoopsModules/APCal/trunk/modules/APCal/sql/
XoopsModules/APCal/trunk/modules/APCal/tellafriend.php
XoopsModules/APCal/trunk/modules/APCal/templates/
XoopsModules/APCal/trunk/modules/APCal/thumbs/
XoopsModules/APCal/trunk/modules/APCal/xoops_version.php
XoopsModules/apcal/
Modified: XoopsModules/APCal/trunk/CHANGELOG.txt
===================================================================
--- XoopsModules/apcal/trunk/CHANGELOG.txt 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/CHANGELOG.txt 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,7 +1,12 @@
Module Name : APCal
-Version Number : 2.1.1
+Version Number : 2.1.2
Module developer : Antiques Promotion <http://xoops.antiquespromotion.ca>
+Version 2.1.2
+- Fixed When inserting a new event, pictures are saved.
+- Fixed The module now comes with its own datepicker because of some Xoops version bug.
+- Fixed The map displays correclty when the contact is a user from the website.
+
Version 2.1.1
- Fixed When inserting a new event, pictures are saved.
- Updated Empty fields doesn't show in the event view.
Modified: XoopsModules/APCal/trunk/INSTALL.txt
===================================================================
--- XoopsModules/apcal/trunk/INSTALL.txt 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/INSTALL.txt 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,5 +1,5 @@
Module Name : APCal
-Version Number : 2.1.1
+Version Number : 2.1.2
Module developer : Antiques Promotion <http://xoops.antiquespromotion.ca>
INSTALL INSTRUCTIONS
Modified: XoopsModules/APCal/trunk/LANG DIFF.txt
===================================================================
--- XoopsModules/apcal/trunk/LANG DIFF.txt 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/LANG DIFF.txt 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,5 +1,5 @@
Module Name : APCal
-Version Number : 2.1.1
+Version Number : 2.1.2
Module developer : Antiques Promotion <http://xoops.antiquespromotion.ca>
Feel free to translate to your own language and send us your changes.
Modified: XoopsModules/APCal/trunk/LANG TRANS.txt
===================================================================
--- XoopsModules/apcal/trunk/LANG TRANS.txt 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/LANG TRANS.txt 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,5 +1,5 @@
Module Name : APCal
-Version Number : 2.1.1
+Version Number : 2.1.2
Module developer : Antiques Promotion <http://xoops.antiquespromotion.ca>
Modified: XoopsModules/APCal/trunk/LICENCE.txt
===================================================================
--- XoopsModules/apcal/trunk/LICENCE.txt 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/LICENCE.txt 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,5 +1,5 @@
Module Name : APCal
-Version Number : 2.1.1
+Version Number : 2.1.2
Module developer : Antiques Promotion <http://xoops.antiquespromotion.ca>
GNU GENERAL PUBLIC LICENSE
Modified: XoopsModules/APCal/trunk/README.txt
===================================================================
--- XoopsModules/apcal/trunk/README.txt 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/README.txt 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,5 +1,5 @@
Module Name : APCal
-Version Number : 2.1.1
+Version Number : 2.1.2
Module developer : Antiques Promotion <http://xoops.antiquespromotion.ca>
MODULE DESCRIPTION
@@ -9,10 +9,7 @@
so we decided to upgrade it.
NEW FEATURES:
-- Events
- - Bug fix: When you insert an event, the pictures are saved.
- - Empty fields doesn't display in the event view.
-
+- Some bug fixes. See CHANGELOG.txt for details.
ORIGINAL FEATURES:
- User Registration (Thanks to Goffy)
@@ -50,6 +47,7 @@
- Option : Add a description in HTML for each categories.
- Option : Display title of categories in H1.
- Events
+ - Empty fields doesn't display in the event view.
- Option : Choose which category will be used for an event (as we keep multi-category feature).
- Option : Choose different hours for the same event (if multiple days are selected).
- Option : Navigation menu to see previous and next event.
Modified: XoopsModules/APCal/trunk/UPGRADE.txt
===================================================================
--- XoopsModules/apcal/trunk/UPGRADE.txt 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/UPGRADE.txt 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,5 +1,5 @@
Module Name : APCal
-Version Number : 2.1.1
+Version Number : 2.1.2
Module developer : Antiques Promotion <http://xoops.antiquespromotion.ca>
UPGRADE FROM PICAL MODULE
Deleted: XoopsModules/APCal/trunk/modules/APCal/admin.css
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/admin.css 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/admin.css 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,173 +0,0 @@
-/* Buttons style */
-.xo-buttons a, .xo-buttons button {
- display: block-inline;
- margin: 0 5px 0 0;
- background: #e4e4e5 url('../images/admin/bg_button.gif') repeat-x;
- border: 1px solid #d6d6d6;
- border-top: 1px solid #dedede;
- border-left: 1px solid #dedede;
- font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
- font-size: 100%;
- line-height: 110%;
- text-decoration: none;
- font-weight: bold;
- color: #454545;
- cursor: pointer;
- padding: 3px 8px 4px 5px; /* Links */
-}
-
-.xo-buttons a:hover, .xo-buttons button:hover {
- border: 1px solid #ccc;
- border-top: 1px solid #d6d6d6;
- border-left: 1px solid #d6d6d6;
-}
-
-.xo-buttons button {
- width: auto;
- overflow: visible;
- padding: 3px 8px 4px 5px; /* IE6 */
-}
-
-.xo-buttons button[type] {
- padding: 3px 5px 4px 5px; /* Firefox */
- line-height: 15px; /* Safari */
-}
-
-*:first-child+html button[type] {
- padding: 3px 8px 4px 5px; /* IE7 */
-}
-
-.xo-buttons button img, .xo-buttons a img {
- margin: 0 3px -3px 0 !important;
- padding: 0;
- border: none;
- width: 16px;
- height: 16px;
-}
-
-.ui-corner-all {
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
-}
-
-/* Buttons style */
-
-/* align */
-.floatright {
- float: right;
- margin: 0;
- padding: 2px;
- border: 0;
-}
-
-.floatleft {
- float: left;
- margin: 0;
- padding: 2px;
- border: 0;
-}
-
-.aligncenter {
- text-align: center;
- margin: 0;
- padding: 2px;
- border: 0;
-}
-
-/* align */
-
-/* label */
-.label {
- font-size: 16px;
- color: #2F5376;
- font-weight: bold;
-}
-
-/* label */
-
-/* about */
-#about label, #about text {
- display: block;
- float: left;
- margin-bottom: 12px;
-}
-
-#about label {
- text-align: right;
- width: 100px;
- padding-right: 20px;
-}
-
-#about br {
- clear: both;
-}
-
-/* about */
-
-/* menu */
-div.rmmenuicon {
- margin: 3px;
- font-family: Tahoma, Arial, Helvetica;
- text-align: center;
-}
-
-div.rmmenuicon a {
- display: block;
- float: left;
- height: 75px !important;
- height: 75px;
- width: 75px !important;
- width: 75px;
- vertical-align: middle;
- text-decoration: none;
- border: 1px solid #CCCCCC;
- padding: 2px 5px 1px 5px;
- margin: 3px;
- color: #666666;
-
- background-color: #f0f0f0;
- -moz-border-radius: 6px;
- -webkit-border-radius: 6px;
- -khtml-border-radius: 6px;
- border-radius: 6px;
-
-}
-
-div.rmmenuicon img {
- margin-top: 8px;
- margin-bottom: 8px;
-}
-
-div.rmmenuicon a span {
- font-size: 11px;
- font-weight: bold;
- display: block;
-}
-
-div.rmmenuicon a:hover {
- background-color: #FFF6C1;
- border: 1px solid #FF9900;
- color: #1E90FF;
-}
-
-div.rmmenuicon a:hover span {
- text-decoration: none;
-}
-
-div.CPbigTitle {
- font-size: 12px;
- color: #606060;
- background: no-repeat left top;
- font-weight: bold;
- height: 30px;
- vertical-align: middle;
- padding: 5px 0 0 40px;
- border-bottom: 1px solid #393e41;
-}
-
-/* menu */
-
-.txtchangelog {
- height: 350px;
- overflow: auto;
-}
\ No newline at end of file
Deleted: XoopsModules/APCal/trunk/modules/APCal/apcal.css
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/apcal.css 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/apcal.css 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,63 +0,0 @@
-/*
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// You may not change or alter any portion of this comment or credits //
-// of supporting developers from this source code or any supporting //
-// source code which is considered copyrighted (c) material of the //
-// original comment or credit authors. //
-// //
-// This program is distributed in the hope that it will be useful, //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-*/
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author Antiques Promotion (http://www.antiquespromotion.ca)
- * @version $Id:$
- */
-div.eventNav {padding: 5px 10px 35px 10px;}
-div.leftDiv {width: 33%; float: left; text-align: left;}
-div.centerDiv {width: 33%; float: left; text-align: center;}
-div.rightDiv {width: 33%; float: right; text-align: right;}
-
-div.eventTitle {width: 38%; float: left;}
-div.share {width: 38%; float: right; text-align: right;}
-div.socialNetworks {width: 58%; float: left; text-align: left; margin-top: 10px;}
-div.socialNetworks span.facebook, .fb-like {width: 130px; display: inline;}
-div.socialNetworks span.facebook .fb_iframe_widget {display: inline;}
-div.socialNetworks span.googleplus {padding: 0 5px;}
-div.socialNetworks span.googleplus div {display: inline !important;}
-/*span.print {float: right; vertical-align: top;}*/
-
-div.tooltip {display: none; position: absolute; border: 2px solid; padding: 0; background: #eee; z-index: 100;}
-div.tooltip div.summary {padding: 10px; color: #fff;}
-div.tooltip div.details {padding: 10px; color: #000;}
-div.tooltip div.details div.info {white-space: nowrap; padding: 0 0 10px 0;}
-div.tooltip div.details img {float: left; width: 50px; margin: 0 10px 10px 0; border: 1px solid #999;}
-div.tooltip div.details div.click {border-top: 1px solid #aaa;}
-
-table.month {width: 100%; margin: 0; table-layout: fixed; border-spacing: 0; border-collapse: collapse;}
-table.month td.dayname {font-size: 1.3em; text-align: center; vertical-align: middle; border: 1px solid;}
-table.month td.weekno {width: 20px; vertical-align: middle;}
-table.month td.day {overflow: hidden; margin: 0; padding: 0; border: 1px solid; border-bottom: none;}
-table.month td.event {border: solid; border-width: 0 1px; white-space: nowrap;}
-table.month td.event a {padding: 3px 5px; border-style: solid; border-width: 1px 1px 3px 3px; margin: 3px; background: #eee; height: 100%; display: block; overflow: hidden;}
-table.month td.noevent {padding: 5px 0; border: none; border-left: 1px solid; border-right: 1px solid;}
-table.month td.spacer {padding: 2px; border: none; border-left: 1px solid; border-right: 1px solid;}
-
-div.eventPics img {border: 1px solid #999;}
Deleted: XoopsModules/APCal/trunk/modules/APCal/comment_delete.php
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/comment_delete.php 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/comment_delete.php 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,38 +0,0 @@
-<?php
-
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// You may not change or alter any portion of this comment or credits //
-// of supporting developers from this source code or any supporting //
-// source code which is considered copyrighted (c) material of the //
-// original comment or credit authors. //
-// //
-// This program is distributed in the hope that it will be useful, //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author GIJ=CHECKMATE (PEAK Corp. http://www.peak.ne.jp/)
- * @version $Id:$
- */
-
-include '../../mainfile.php';
-include 'include/read_configs.php';
-include XOOPS_ROOT_PATH.'/include/comment_delete.php';
-?>
\ No newline at end of file
Deleted: XoopsModules/APCal/trunk/modules/APCal/comment_edit.php
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/comment_edit.php 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/comment_edit.php 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,38 +0,0 @@
-<?php
-
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// You may not change or alter any portion of this comment or credits //
-// of supporting developers from this source code or any supporting //
-// source code which is considered copyrighted (c) material of the //
-// original comment or credit authors. //
-// //
-// This program is distributed in the hope that it will be useful, //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author GIJ=CHECKMATE (PEAK Corp. http://www.peak.ne.jp/)
- * @version $Id:$
- */
-
-include '../../mainfile.php';
-include 'include/read_configs.php';
-include XOOPS_ROOT_PATH.'/include/comment_edit.php';
-?>
\ No newline at end of file
Deleted: XoopsModules/APCal/trunk/modules/APCal/comment_new.php
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/comment_new.php 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/comment_new.php 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,80 +0,0 @@
-<?php
-
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// You may not change or alter any portion of this comment or credits //
-// of supporting developers from this source code or any supporting //
-// source code which is considered copyrighted (c) material of the //
-// original comment or credit authors. //
-// //
-// This program is distributed in the hope that it will be useful, //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author GIJ=CHECKMATE (PEAK Corp. http://www.peak.ne.jp/)
- * @version $Id:$
- */
-
-include '../../mainfile.php';
-
-// for "Duplicatable"
-$mydirname = basename( dirname( __FILE__ ) ) ;
-if( ! preg_match( '/^(\D+)(\d*)$/' , $mydirname , $regs ) ) echo ( "invalid dirname: " . htmlspecialchars( $mydirname ) ) ;
-$mydirnumber = $regs[2] === '' ? '' : intval( $regs[2] ) ;
-
-// MySQL\xA4ؤ\xCE\xC0\xDC³
-$conn = $xoopsDB->conn ;
-
-// setting physical & virtual paths
-$mod_path = XOOPS_ROOT_PATH."/modules/$mydirname" ;
-$mod_url = XOOPS_URL."/modules/$mydirname" ;
-
-// \xA5\xAF\xA5饹\xC4\xEA\xB5\xC1\xA4\xCE\xC6ɤ߹\xFE\xA4\xDF
-if( ! class_exists( 'APCal_xoops' ) ) {
- require_once( "$mod_path/class/APCal.php" ) ;
- require_once( "$mod_path/class/APCal_xoops.php" ) ;
-}
-
-// creating an instance of APCal
-$cal = new APCal_xoops( "" , $xoopsConfig['language'] , true ) ;
-
-// setting properties of APCal
-$cal->conn = $conn ;
-include( "$mod_path/include/read_configs.php" ) ;
-$cal->base_url = $mod_url ;
-$cal->base_path = $mod_path ;
-$cal->images_url = "$mod_url/images/$skin_folder" ;
-$cal->images_path = "$mod_path/images/$skin_folder" ;
-
-$event_id = empty( $_GET['com_itemid'] ) ? 0 : intval( $_GET['com_itemid'] ) ;
-if( $event_id > 0 ) {
- $rs = $xoopsDB->query( "SELECT summary,rrule_pid FROM $cal->table WHERE id=$event_id" ) ;
- list( $title , $rrule_pid ) = $xoopsDB->fetchRow( $rs ) ;
- $com_replytitle = $title ;
-
- // RRULE events
- if( $rrule_pid != 0 ) {
- $_GET['com_itemid'] = $rrule_pid ;
- $HTTP_GET_VARS['com_itemid'] = $rrule_pid ;
- }
-
- include XOOPS_ROOT_PATH.'/include/comment_new.php';
-}
-?>
\ No newline at end of file
Deleted: XoopsModules/APCal/trunk/modules/APCal/comment_post.php
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/comment_post.php 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/comment_post.php 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,38 +0,0 @@
-<?php
-
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// You may not change or alter any portion of this comment or credits //
-// of supporting developers from this source code or any supporting //
-// source code which is considered copyrighted (c) material of the //
-// original comment or credit authors. //
-// //
-// This program is distributed in the hope that it will be useful, //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author GIJ=CHECKMATE (PEAK Corp. http://www.peak.ne.jp/)
- * @version $Id:$
- */
-
-include '../../mainfile.php';
-include 'include/read_configs.php';
-include XOOPS_ROOT_PATH.'/include/comment_post.php';
-?>
\ No newline at end of file
Deleted: XoopsModules/APCal/trunk/modules/APCal/comment_reply.php
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/comment_reply.php 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/comment_reply.php 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,38 +0,0 @@
-<?php
-
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// You may not change or alter any portion of this comment or credits //
-// of supporting developers from this source code or any supporting //
-// source code which is considered copyrighted (c) material of the //
-// original comment or credit authors. //
-// //
-// This program is distributed in the hope that it will be useful, //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author GIJ=CHECKMATE (PEAK Corp. http://www.peak.ne.jp/)
- * @version $Id:$
- */
-
-include '../../mainfile.php';
-include 'include/read_configs.php';
-include XOOPS_ROOT_PATH.'/include/comment_reply.php';
-?>
\ No newline at end of file
Deleted: XoopsModules/APCal/trunk/modules/APCal/getCoords.html
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/getCoords.html 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/getCoords.html 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,90 +0,0 @@
-<!-- author: Antiques Promotion (http://www.antiquespromotion.ca) -->
-
-<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
-<script type="text/javascript">
- var map;
- var geocoder;
- var marker;
-
- function GMinit()
- {
- var address = window.opener.document.MainForm.location.value;
- var latitude = window.opener.document.MainForm.gmlatitude.value;
- var longitude = window.opener.document.MainForm.gmlongitude.value;
- var zoom = parseInt(window.opener.document.MainForm.gmzoomlevel.value);
- var myLatlng = new google.maps.LatLng(latitude, longitude);
- var myOptions = {
- zoom: zoom,
- center: myLatlng,
- mapTypeId: google.maps.MapTypeId.ROADMAP};
-
- map = new google.maps.Map(document.getElementById("googlemap"), myOptions);
- geocoder = new google.maps.Geocoder();
- marker = new google.maps.Marker({
- position: myLatlng,
- draggable: true,
- map: map});
-
- if(address != '')
- {
- moveMap(address);
- document.getCoords.address.value = address;
- }
-
- google.maps.event.addListener(map, 'center_changed', function()
- {
- marker.setPosition(map.getCenter());
- var location = marker.getPosition();
- document.getElementById("lat").innerHTML = location.lat();
- document.getElementById("lon").innerHTML = location.lng();
- });
- google.maps.event.addListener(map, 'zoom_changed', function()
- {
- document.getElementById("zoom").innerHTML = map.getZoom();
- });
- google.maps.event.addListener(marker, 'dragend', function()
- {
- map.setCenter(marker.getPosition());
- });
-
- document.getElementById("zoom").innerHTML = map.getZoom();
- document.getElementById("lat").innerHTML = marker.getPosition().lat();
- document.getElementById("lon").innerHTML = marker.getPosition().lng();
- }
-
- function moveMap(address)
- {
- geocoder.geocode({'address': address}, function(results, status)
- {
- if (status == google.maps.GeocoderStatus.OK)
- {
- map.setCenter(results[0].geometry.location);
- marker.setPosition(results[0].geometry.location);
- }
- else if(status == google.maps.GeocoderStatus.ZERO_RESULTS)
- {
- map.setZoom(4);
- alert('Address not found');
- }
- });
- }
-
- function sendCoords()
- {
- self.opener.document.MainForm.gmlat.value = marker.getPosition().lat();
- self.opener.document.MainForm.gmlong.value = marker.getPosition().lng();
- self.opener.document.MainForm.gmzoom.value = map.getZoom();
- window.close();
- }
-
- window.onload = GMinit;
-</script>
-<form name="getCoords" action="" method="post">
- <input type="text" name="address" />
- <input type="button" name="search" value="Search" onclick="moveMap(document.getCoords.address.value);" />
- <input type="button" name="getLatLngZoom" value="Get latitude/longitude/zoom" onclick="sendCoords();" />
-</form>
-<div id="googlemap" style="width: 100%; height: 70%;"></div>
-latitude:<span id="lat"></span><br />
-longitude:<span id="lon"></span><br />
-zoom level: <span id="zoom"></span>
Deleted: XoopsModules/APCal/trunk/modules/APCal/getevents.php
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/getevents.php 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/getevents.php 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,99 +0,0 @@
-<?php
-
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// You may not change or alter any portion of this comment or credits //
-// of supporting developers from this source code or any supporting //
-// source code which is considered copyrighted (c) material of the //
-// original comment or credit authors. //
-// //
-// This program is distributed in the hope that it will be useful, //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author Antiques Promotion (http://www.antiquespromotion.ca)
- * @version $Id:$
- */
-
-require_once '../../mainfile.php';
-
-$xoopsErrorHandler->activated = false;
-error_reporting(E_NONE);
-
-header('Access-Control-Allow-Origin: *');
-
-$locales = new apcal_locale();
-
-$array = array();
-$catcrit = $_GET['c'] > 0 ? 'categories LIKE \'%'.str_pad($_GET['c'], 5, '0', STR_PAD_LEFT).'%\' AND' : '';
-$result = $xoopsDB->queryF("SELECT id, start, end, summary, shortsummary FROM {$xoopsDB->prefix('apcal_event')} WHERE {$catcrit} end>UNIX_TIMESTAMP() ORDER BY start ASC LIMIT 0,{$_GET['n']}");
-while($row=$xoopsDB->fetchArray($result))
-{
- $start = $row['start'];
- $startD = $locales->date_long_names[intval(gmstrftime('%d', $row['start'] + (date('I', $row['start'])*3600)))];
- $startM = $locales->month_long_names[intval(gmstrftime('%m', $row['start'] + (date('I', $row['start'])*3600)))];
-
- $endD = $locales->date_long_names[intval(gmstrftime('%d', $row['end'] + (date('I', $row['end'])*3600)))];
- $endM = $locales->month_long_names[intval(gmstrftime('%m', $row['end'] + (date('I', $row['end'])*3600)))];
-
- $row['start'] = $startD.' '.htmlentities($startM, ENT_QUOTES, "UTF-8");
- $row['end'] = $endD.' '.htmlentities($endM, ENT_QUOTES, "UTF-8");
- $row['summary'] = htmlentities($row['summary'], ENT_QUOTES, "UTF-8");
- $row['link'] = $xoopsModuleConfig['apcal_useurlrewrite'] ? XOOPS_URL.'/modules/APCal/'.$row['shortsummary'].'-'.date('j-n-Y', $start) : XOOPS_URL.'/modules/APCal/?event_id='.$row['id'];
- $array[] = $row;
-}
-$c = $_GET['c'] > 0 ? htmlentities($xoopsDB->fetchObject($xoopsDB->queryF("SELECT cat_title FROM {$xoopsDB->prefix('apcal_cat')} WHERE cid={$_GET['c']} LIMIT 0,1"))->cat_title, ENT_QUOTES, "UTF-8") : '';
-$l = '</dl><div class="APfooter">'._APCAL_PROVIDEDBY.' <a href="'.XOOPS_URL.'" title="'.htmlentities($xoopsConfig['sitename'], ENT_QUOTES, "UTF-8").'" target="_blank">'.htmlentities($xoopsConfig['sitename'], ENT_QUOTES, "UTF-8").'</a><br /><a href="'._APCAL_APURL.'" title="'._APCAL_AP.'" target="_blank">APCal</a> '._APCAL_X.' <a href="'._APCAL_APURL2.'" title="'._APCAL_AP.'" target="_blank">AP</a></div>';
-echo check() ? json_encode(array($array, $l, '<div class="APtitle">'.$c.'</div>')) : '';
-
-class apcal_locale
-{
- var $hour_names_24;
- var $hour_names_12;
- var $holidays;
- var $date_short_names;
- var $date_long_names;
- var $week_numbers;
- var $week_short_names;
- var $week_middle_names;
- var $week_long_names;
- var $month_short_names;
- var $month_middle_names;
- var $month_long_names;
- var $byday2langday_w;
- var $byday2langday_m;
-
- function __construct()
- {
- include XOOPS_ROOT_PATH.'/modules/APCal/language/'.$GLOBALS['xoopsConfig']['language'].'/apcal_vars.phtml';
- }
-
- function apcal_locale()
- {
- self::__construct();
- }
-}
-
-function check()
-{
- global $l;return preg_match('/<a href="http:\/\/xoops.antique(s?)promotion.(com|ca)/', $l);
-}
-
-?>
Deleted: XoopsModules/APCal/trunk/modules/APCal/googlemap.html
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/googlemap.html 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/googlemap.html 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,143 +0,0 @@
-<{*
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// You may not change or alter any portion of this comment or credits //
-// of supporting developers from this source code or any supporting //
-// source code which is considered copyrighted (c) material of the //
-// original comment or credit authors. //
-// //
-// This program is distributed in the hope that it will be useful, //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author Antiques Promotion (http://www.antiquespromotion.ca)
- * @version $Id:$
- */
-*}>
-<!--<![CDATA[-->
-<script type="text/javascript">
- var GMlat = <{$GMlatitude}>;
- var GMlong = <{$GMlongitude}>;
- var GMzoom = <{$GMzoom}>;
- var points = new Array();
- var URL = '<{$xoops_url}>';
-</script>
-<{foreach name=GMPoints item=point from=$GMPoints}>
-<script type="text/javascript">
- points.push(new Array("<{$point.summary}>", <{$point.gmlat}>, <{$point.gmlong}>, "<{$point.location}>", "<{$point.contact}>", <{$point.startDate}>, "<{$point.event_id}>"));
-</script>
-<{/foreach}>
-<!--]]>-->
-
-<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
-<script type="text/javascript">
- var panorama;
-
- function GMInit()
- {
- var latlng = new google.maps.LatLng(GMlat, GMlong);
- var myOptions = {zoom: GMzoom, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP, scrollwheel: false, streetViewControl: true};
- var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
- var bounds = new google.maps.LatLngBounds();
- var service = new google.maps.StreetViewService();
- panorama = map.getStreetView();
-
- var content = document.createElement('div');
- var title = document.createElement('div');
- var info = document.createElement('div');
- var streetview = document.createElement('div');
- var infowindow = new google.maps.InfoWindow({content: content});
- title.style.fontSize = '1.3em';
- content.appendChild(title);
- content.appendChild(info);
- content.appendChild(streetview);
-
- var today = new Date();
- today = today.getDate();
- for(i in points)
- {
- if(points[i][5] >= today)
- break;
- }
- var start = points.slice(0, i);
- var end = points.slice(i);
- points = end.concat(start);
-
-
- var iconsURL = URL + '/modules/APCal/images/googlemaps/';
- for(i in points)
- {
- var marker = new google.maps.Marker({
- position: new google.maps.LatLng(points[i][1], points[i][2]),
- zIndex: -i,
- map: map,
- icon: iconsURL + points[i][5] + '.png',
- eventID: points[i][6],
- title: points[i][0],
- location: points[i][3],
- contact: points[i][4],
- hasPano: false});
-
- (function(m)
- {
- service.getPanoramaByLocation(marker.getPosition(), 50, function(data, status)
- {
- if(status == google.maps.StreetViewStatus.OK)
- {
- m.hasPano = true;
- }
- })
- })(marker);
-
- google.maps.event.addListener(marker, "click", function()
- {
- title.innerHTML = '<a href="' + URL + '/modules/APCal/index.php?action=View&event_id='+this.eventID+'">' + this.title + '</a>';
- info.innerHTML = this.location + '<br /><br />' + this.contact;
- streetview.innerHTML = this.hasPano ? '<br /><br />' + '<a href="" onclick="showStreetView(' + this.getPosition().lat() + ', ' + this.getPosition().lng() + ');return false;">Street View</a>' : '';
-
- infowindow.open(map, this);
- });
-
- bounds.extend(new google.maps.LatLng(points[i][1], points[i][2]));
- }
-
- if(!bounds.isEmpty())
- map.fitBounds(bounds);
-
- var loadedListener = google.maps.event.addListener(map, 'tilesloaded', function()
- {
- if(map.getZoom() > 11)
- map.setZoom(11);
- google.maps.event.removeListener(loadedListener);
- });
- }
-
- function showStreetView(lat, lng)
- {
- panorama.setPosition(new google.maps.LatLng(lat, lng));
- panorama.setVisible(true);
-
- }
-
- window.onload = GMInit;
-</script>
-
-<div id="map_canvas" style="width:100%; height:<{$GMheight}>;"></div>
-<br />
\ No newline at end of file
Deleted: XoopsModules/APCal/trunk/modules/APCal/index.php
===================================================================
--- XoopsModules/apcal/trunk/modules/APCal/index.php 2013-03-15 02:06:20 UTC (rev 11233)
+++ XoopsModules/APCal/trunk/modules/APCal/index.php 2013-03-15 16:54:17 UTC (rev 11234)
@@ -1,373 +0,0 @@
-<?php
-
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// You may not change or alter any portion of this comment or credits //
-// of supporting developers from this source code or any supporting //
-// source code which is considered copyrighted (c) material of the //
-// original comment or credit authors. //
-// //
-// This program is distributed in the hope that it will be useful, //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author Antiques Promotion (http://www.antiquespromotion.ca)
- * @author GIJ=CHECKMATE (PEAK Corp. http://www.peak.ne.jp/)
- * @version $Id:$
- */
-
- require( '../../mainfile.php' ) ;
- $original_level = error_reporting(E_ALL ^ E_NOTICE);
-
- if((!isset($_GET['action']) || $_GET['action'] == '') && isset($_GET['cid']) && !is_numeric($_GET['cid']))
- {
- $cat_title = addslashes($_GET['cid']);
- $cat = $xoopsDB->queryF( "SELECT cid FROM {$xoopsDB->prefix('apcal_cat')} WHERE cat_shorttitle LIKE '$cat_title' LIMIT 0,1") ;
-
- if($cat && mysql_num_rows($cat))
- {
- $cat = mysql_fetch_object($cat);
- $_GET['cid'] = $cat->cid;
- }
- }
- elseif(isset($_GET['action']) && $_GET['action'] == 'View' && !is_numeric($_GET['event_id']) && isset($_GET['date']))
- {
- $summary = addslashes($_GET['event_id']);
- $date = isset($_GET['date']) ? strtotime($_GET['date']) : time();
- $event = $xoopsDB->queryF( "SELECT id FROM {$xoopsDB->prefix('apcal_event')} WHERE shortsummary='$summary' AND UNIX_TIMESTAMP(DATE(FROM_UNIXTIME(start)))=$date LIMIT 0,1") ;
-
- if($event && mysql_num_rows($event))
- {
- $event = mysql_fetch_object($event);
- $_GET['event_id'] = $event->id;
- }
- }
-
- // for "Duplicatable"
- $mydirname = basename( dirname( __FILE__ ) ) ;
- if( ! preg_match( '/^(\D+)(\d*)$/' , $mydirname , $regs ) ) echo ( "invalid dirname: " . htmlspecialchars( $mydirname ) ) ;
- $mydirnumber = $regs[2] === '' ? '' : intval( $regs[2] ) ;
-
- require_once( XOOPS_ROOT_PATH."/modules/$mydirname/include/gtickets.php" ) ;
-
- // ����ƥ�����
- // $xoopsConfig[ 'language' ] = 'french' ;
-
- // MySQL�ؤ���³
- // $conn = mysql_connect( XOOPS_DB_HOST , XOOPS_DB_USER , XOOPS_DB_PASS ) or die( "Could not connect." ) ;
- // mysql_select_db( XOOPS_DB_NAME , $conn ) ;
- $conn = $xoopsDB->conn ;
-
- // setting physical & virtual paths
- $mod_path = XOOPS_ROOT_PATH."/modules/$mydirname" ;
- $mod_url = XOOPS_URL."/modules/$mydirname" ;
-
- // ���饹������ɤ߹���
- if( ! class_exists( 'APCal_xoops' ) ) {
- require_once( "$mod_path/class/APCal.php" ) ;
- require_once( "$mod_path/class/APCal_xoops.php" ) ;
- }
-
- // GET,POST�ѿ��μ�����������
- if( empty( $_GET['action'] ) && ! empty( $_GET['event_id'] ) ) $_GET['action'] = 'View' ;
-
- if( isset( $_GET[ 'action' ] ) ) $action = $_GET[ 'action' ] ;
- else $action = '' ;
-
- // creating an instance of APCal
- $cal = new APCal_xoops( "" , $xoopsConfig['language'] , true ) ;
-
- // setting properties of APCal
- $cal->conn = $conn ;
- include( "$mod_path/include/read_configs.php" ) ;
- $cal->base_url = $mod_url ;
- $cal->base_path = $mod_path ;
- $cal->images_url = "$mod_url/images/$skin_folder" ;
- $cal->images_path = "$mod_path/images/$skin_folder" ;
- $cal->frame_css = 'border-color: '.$cal->frame_css.';';
-
- // �ǡ����١��������ط��ν���ʤ�����⡢Location�����Ф���
- if( isset( $_POST[ 'update' ] ) ) {
- // ����
- if( ! $editable ) die( _MB_APCAL_ERR_NOPERMTOUPDATE ) ;
- // Ticket Check
- if ( ! $xoopsGTicket->check() ) {
- redirect_header(XOOPS_URL.'/',3,$xoopsGTicket->getErrors());
- }
- $cal->update_schedule( "$admission_update_sql" , $whr_sql_append ) ;
- } else if( isset( $_POST[ 'insert' ] ) || isset( $_POST[ 'saveas' ] ) ) {
- // saveas �ޤ��� ������Ͽ
- if( ! $insertable ) die( _MB_APCAL_ERR_NOPERMTOINSERT ) ;
- $_POST[ 'event_oldid' ] = $_POST[ 'event_id' ];
- $_POST[ 'event_id' ] = "" ;
- // Ticket Check
- if ( ! $xoopsGTicket->check() ) {
- redirect_header(XOOPS_URL.'/',3,$xoopsGTicket->getErrors());
- }
- $cal->update_schedule( ",uid='$user_id' $admission_insert_sql" , '' , 'notify_new_event' ) ;
- } else if( ! empty( $_POST[ 'delete' ] ) ) {
- // ���
- if( ! $deletable ) die( _MB_APCAL_ERR_NOPERMTODELETE ) ;
- // Ticket Check
- if ( ! $xoopsGTicket->check() ) {
- redirect_header(XOOPS_URL.'/',3,$xoopsGTicket->getErrors());
- }
- $cal->delete_schedule( $whr_sql_append , 'global $xoopsModule; xoops_comment_delete($xoopsModule->mid(),$id);' ) ;
- } else if( ! empty( $_POST[ 'delete_one' ] ) ) {
- // �����
- if( ! $deletable ) die( _MB_APCAL_ERR_NOPERMTODELETE ) ;
- // Ticket Check
- if ( ! $xoopsGTicket->check() ) {
- redirect_header(XOOPS_URL.'/',3,$xoopsGTicket->getErrors());
- }
- $cal->delete_schedule_one( $whr_sql_append ) ;
- } else if( ! empty( $_GET[ 'output_ics' ] ) /* || ! empty( $_POST[ 'output_ics' ] ) */ ) {
- // output ics
- $cal->output_ics( ) ;
- }
-
- // smode���
- if( ! empty( $_GET[ 'smode' ] ) ) $smode = $_GET[ 'smode' ] ;
- else $smode = $default_view ;
-
- // XOOP�إå��������ν���
- if( $action == 'View' ) {
- $xoopsOption['template_main'] = "apcal{$mydirnumber}_event_detail.html" ;
- } else {
- // View�ʳ��Ǥϥ����ȶػ�
- $xoopsModuleConfig['com_rule'] = 0 ;
- if( $smode == 'List' && $action != 'Edit' ) {
- $xoopsOption['template_main'] = "apcal{$mydirnumber}_event_list.html" ;
- }
- }
-
- // XOOPS�إå�����
- include( XOOPS_ROOT_PATH.'/header.php' ) ;
- $xoopsTpl->assign('xoops_module_header' , '<link rel="stylesheet" type="text/css" href="'.XOOPS_URL.'/modules/APCal/apcal.css" />'.$xoopsTpl->get_template_vars('xoops_module_header'));
-
- // embed style sheet ��� (thx Ryuji)
- $xoopsTpl->assign( "xoops_module_header" , "<style><!-- \n" . $cal->get_embed_css() . "\n--></style>\n" . $xoopsTpl->get_template_vars( "xoops_module_header" ) ) ;
-
- // ���?�顼�˥��ؤĤ餻�ʤ� follow -> nofollow
- $meta_robots = str_replace( ',follow' , ',nofollow' , $xoopsTpl->get_template_vars( "xoops_meta_robots" ) ) ;
- $xoopsTpl->assign( "xoops_meta_robots" , $meta_robots ) ;
-
- // �¹Ի��ַ�¬��������
- // list( $usec , $sec ) = explode( " " , microtime() ) ;
- // $apcalstarttime = $sec + $usec ;
-
- // �ڡ���ɽ����Ϣ�ν���ʬ��
- if( $action == 'Edit' ) {
- if( is_file( XOOPS_ROOT_PATH . '/include/calendarjs.php' ) ) {
- // older jscalendar in XOOPS 2.0.x core
- include XOOPS_ROOT_PATH.'/include/calendarjs.php' ;
- $cal->jscalendar = 'xoops' ;
- } elseif( is_dir( XOOPS_ROOT_PATH . '/common/jscalendar' ) ) {
- // jscalendar in common (recommend)
- $jscalurl = XOOPS_URL . '/common/jscalendar' ;
- $xoopsTpl->assign( 'xoops_module_header' , '
- <link rel="stylesheet" type="text/css" media="all" href="'.$jscalurl.'/calendar-system.css" />
- <script type="text/javascript" src="'.$jscalurl.'/calendar.js"></script>
- <script type="text/javascript" src="'.$jscalurl.'/lang/'.$cal->jscalendar_lang_file.'"></script>
- <script type="text/javascript" src="'.$jscalurl.'/calendar-setup.js"></script>
- ' . $xoopsTpl->get_template_vars( "xoops_module_header" ) ) ;
- $cal->jscalendar = 'jscalendar' ;
- } elseif( is_dir( XOOPS_ROOT_PATH . '/class/calendar' ) ) {
- // jscalendar in XOOPS 2.2 core
- $jscalurl = XOOPS_URL . '/class/calendar' ;
- $xoopsTpl->assign( 'xoops_module_header' , '
- <link rel="stylesheet" type="text/css" media="all" href="'.$jscalurl.'/CSS/calendar-blue.css" title="system" />
- <script type="text/javascript" src="'.$jscalurl.'/calendar.js"></script>
- <script type="text/javascript" src="'.$jscalurl.'/lang/'.$cal->jscalendar_lang_file.'"></script>
- <script type="text/javascript" src="'.$jscalurl.'/calendar-setup.js"></script>
- ' . $xoopsTpl->get_template_vars( "xoops_module_header" ) ) ;
- $cal->jscalendar = 'jscalendar' ;
- } else {
- // older jscalendar in XOOPS 2.0.x core
- include XOOPS_ROOT_PATH.'/include/calendarjs.php' ;
- $cal->jscalendar = 'xoops' ;
- }
- $xoopsTpl->assign('xoops_module_header' , '<script type="text/javascript" src="'.XOOPS_URL.'/modules/APCal/ajax/pictures.js"></script>'.$xoopsTpl->get_template_vars("xoops_module_header"));
- echo $cal->get_schedule_edit_html( ) ;
- } else if( $action == 'View' ) {
- // echo $cal->get_schedule_view_html( ) ;
- $xoopsTpl->assign( 'detail_body' , $cal->get_schedule_view_html( ) ) ;
- $xoopsTpl->assign( 'xoops_pagetitle' , $cal->last_summary ) ;
- $xoopsTpl->assign( 'xoops_default_comment_title' , 'Re: ' . $cal->last_summary ) ;
- $xoopsTpl->assign( 'print_link' , "$mod_url/print.php?event_id={$_GET['event_id']}&action=View" ) ;
- $xoopsTpl->assign( 'skinpath' , "$cal->images_url" ) ;
- $xoopsTpl->assign( 'lang_print' , _MB_APCAL_ALT_PRINTTHISEVENT ) ;
- $HTTP_GET_VARS['event_id'] = $_GET['event_id'] = $cal->original_id ;
- include XOOPS_ROOT_PATH.'/include/comment_view.php' ;
- // patch for commentAny
- $commentany = $xoopsTpl->get_template_vars( "commentany" ) ;
- if( ! empty( $commentany['com_itemid'] ) ) {
- $commentany['com_itemid'] = $cal->original_id ;
- $xoopsTpl->assign("commentany",$commentany);
- }
- } else if( isset( $_POST[ 'output_ics_confirm' ] ) && ! empty( $_POST[ 'ids' ] ) && is_array( $_POST[ 'ids' ] ) ) {
- echo $cal->output_ics_confirm( "$mod_url/" ) ;
- } else switch( $smode ) {
- case 'Yearly' :
- $calDisplay = $cal->get_yearly(XOOPS_URL.'/modules/APCal/') ;
- break ;
- case 'Weekly' :
- $calDisplay = $cal->get_weekly(XOOPS_URL.'/modules/APCal/') ;
- break ;
- case 'Daily' :
- $calDisplay = $cal->get_daily(XOOPS_URL.'/modules/APCal/') ;
- break ;
- case 'List' :
- $cal->assign_event_list($xoopsTpl, XOOPS_URL.'/modules/APCal/') ;
- break ;
- case 'Monthly' :
- default :
- $calDisplay = $cal->get_monthly(XOOPS_URL.'/modules/APCal/') ;
- break ;
- }
-
- if($action == 'View')
- {
- $event_id = isset($_GET['event_id']) && $_GET['event_id'] > 0 ? $_GET['event_id'] : 0;
- $event = $xoopsDB->fetchArray($xoopsDB->queryF("SELECT summary, description, location, categories, contact, start FROM {$xoopsDB->prefix('apcal_event')} WHERE id={$event_id} LIMIT 0,1"));
- $cats = explode(',', $event['categories']);
- $categories = array();
- foreach($cats as $cat)
- {
- $title = $xoopsDB->fetchObject($xoopsDB->queryF("SELECT cat_title FROM {$xoopsDB->prefix('apcal_cat')} WHERE cid={$cat} LIMIT 0,1"));
- if($title) {$categories[] = $title->cat_title;}
- }
-
- if(!empty($event['description']))
- {
- $metaDesc = explode(' ', $event['description']);
- $metaDesc = array_slice($metaDesc, 0, 20);
- $xoTheme->addMeta('meta', 'description', implode(' ', $metaDesc));
- }
- else
- {
- $desc = $event['summary'];
- $desc .= !empty($categories) ? ' - '.implode(' ', $categories) : '';
- $desc .= !empty($event['location']) ? ' - '.$event['location'] : '';
- $desc .= !empty($event['start']) ? ' - '.$cal->get_long_ymdn($event['start']) : '';
- $desc .= !empty($event['contact']) ? ' - '.$event['contact'] : '';
- $metaDesc = explode(' ', $desc);
- $metaDesc = array_slice($metaDesc, 0, 20);
- $xoTheme->addMeta('meta', 'description', implode(' ', $metaDesc));
- }
-
- $title = $event['summary'];
- $title .= !empty($categories) ? ' - '.implode(' ', $categories) : '';
- $title .= !empty($event['location']) ? ' - '.$event['location'] : '';
- $title = strlen($title) > 60 ? substr($title, 0, 59) : $title;
- $xoopsTpl->assign('xoops_pagetitle', $title);
-
- $xoopsTpl->assign('showMap', $cal->enableeventmap);
- $xoopsTpl->assign('showSocial', $cal->enablesocial);
- }
- elseif($action == '')
- {
- $cid = isset($_GET['cid']) && $_GET['cid'] > 0 ? $_GET['cid'] : 0;
- $cat = $xoopsDB->fetchArray($xoopsDB->queryF("SELECT cat_title, cat_desc FROM {$xoopsDB->prefix('apcal_cat')} WHERE cid={$cid} LIMIT 0,1"));
- $date = isset($_GET['caldate']) ? $_GET['caldate'] : date('Y-n-j');
- $date = explode('-', $date);
- $dateTitle = (isset($_GET['smode']) && $_GET['smode'] == 'Yearly' ? '' : $cal->month_long_names[$date[1]].' ').$date[0];
- $catNameTitle = isset($_GET['cid']) && $_GET['cid'] > 0 ? $cat['cat_title'] : $xoopsModule->getVar('name');
-
- $pageTitle = $catNameTitle.' '.$dateTitle;
- $pageTitle = strlen($pageTitle) > 60 ? substr($pageTitle, 0, 59) : $pageTitle...
[truncated message content] |