diff --git a/e107_plugins/calendar_menu/admin_config.php b/e107_plugins/calendar_menu/admin_config.php index fa8040fd8..07c28183f 100644 --- a/e107_plugins/calendar_menu/admin_config.php +++ b/e107_plugins/calendar_menu/admin_config.php @@ -11,20 +11,19 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/admin_config.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:34:45 $ -| $Author: mcfly_e107 $ -| -| 02.11.06 - Cache clear option added -| 10.11.06 - Support for updated templates etc +| $Revision: 1.2 $ +| $Date: 2007-07-13 19:37:52 $ +| $Author: e107steved $ | +----------------------------------------------------------------------------+ */ $eplug_admin = true; // Make sure we show admin theme +$e_sub_cat = 'event_calendar'; require_once("../../class2.php"); require_once(e_HANDLER."userclass_class.php"); -if (!getperms("P")) { - header("location:".e_BASE."index.php"); +if (!getperms("P")) +{ + header("location:".e_BASE."index.php"); } @@ -39,6 +38,7 @@ if (isset($_POST['updatesettings'])) { $pref['eventpost_admin'] = $_POST['eventpost_admin']; $pref['eventpost_adminlog'] = $_POST['eventpost_adminlog']; $pref['eventpost_showeventcount'] = $_POST['eventpost_showeventcount']; + $pref['eventpost_showmouseover'] = $_POST['eventpost_showmouseover']; $pref['eventpost_forum'] = $_POST['eventpost_forum']; $pref['eventpost_recentshow'] = $_POST['eventpost_recentshow']; $pref['eventpost_super'] = $_POST['eventpost_super']; @@ -55,6 +55,7 @@ if (isset($_POST['updatesettings'])) { $pref['eventpost_datenext'] = $_POST['eventpost_datenext']; $pref['eventpost_eventdatecustom'] = $_POST['eventpost_eventdatecustom']; $pref['eventpost_nextdatecustom'] = $_POST['eventpost_nextdatecustom']; + $pref['eventpost_printlists'] = $_POST['eventpost_printlists']; $pref['eventpost_mailsubject'] = $_POST['eventpost_mailsubject']; $pref['eventpost_mailfrom'] = $_POST['eventpost_mailfrom']; $pref['eventpost_mailaddress'] = $_POST['eventpost_mailaddress']; @@ -74,6 +75,8 @@ if (isset($_POST['updateforthcoming'])) $pref['eventpost_checkrecur'] = $_POST['eventpost_fe_checkrecur']; $pref['eventpost_linkheader'] = $_POST['eventpost_fe_linkheader']; $pref['eventpost_fe_set'] = implode(",", $_POST['fe_eventclass']); + $pref['eventpost_fe_hideifnone'] = $_POST['eventpost_fe_hideifnone']; + $pref['eventpost_fe_showrecent'] = $_POST['eventpost_fe_showrecent']; $pref['eventpost_showcaticon'] = $_POST['eventpost_showcaticon']; $pref['eventpost_namelink'] = $_POST['eventpost_namelink']; save_prefs(); @@ -83,10 +86,11 @@ if (isset($_POST['updateforthcoming'])) if (e_QUERY) { - $qs = explode(".", e_QUERY); + $ec_qs = explode(".", e_QUERY); } require_once('ecal_class.php'); +global $ecal_class; $ecal_class = new ecal_class; @@ -99,8 +103,8 @@ if (isset($_POST['deleteold']) && isset($_POST['eventpost_deleteoldmonths'])) $old_date = intval(mktime(0,0,0,$ecal_class->now_date['mon']-$back_count,1,$ecal_class->now_date['year'])); $old_string = strftime("%d %B %Y",$old_date); // $message = "Back delete {$back_count} months. Oldest date = {$old_string}"; - $qs[0] = "confdel"; - $qs[1] = $old_date; + $ec_qs[0] = "confdel"; + $ec_qs[1] = $old_date; } else $message = EC_ADLAN_A148; @@ -109,18 +113,22 @@ if (isset($_POST['deleteold']) && isset($_POST['eventpost_deleteoldmonths'])) if (isset($_POST['cache_clear'])) { - $qs[0] = "confcache"; + $ec_qs[0] = "confcache"; } + +//------------------------------------------------- + require_once(e_ADMIN."auth.php"); +if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:auto"); } // Actually delete back events -if (isset($_POST['confirmdeleteold']) && isset($qs[0]) && ($qs[0] == "backdel")) +if (isset($_POST['confirmdeleteold']) && isset($ec_qs[0]) && ($ec_qs[0] == "backdel")) { - $old_date = $qs[1]; + $old_date = $ec_qs[1]; $old_string = strftime("%d %B %Y",$old_date); // Check both start and end dates to avoid problems with events originally entered under 0.617 $qry = "event_start < {$old_date} AND event_end < {$old_date} AND event_recurring = 0"; @@ -128,7 +136,7 @@ if (isset($_POST['confirmdeleteold']) && isset($qs[0]) && ($qs[0] == "backdel")) if ($sql -> db_Delete("event",$qry)) { // Add in a log event - $ecal_class->cal_log(4,'db_Delete - earlier than {$old_string} (past {$back_count} months)',$qry); + $ecal_class->cal_log(4,"db_Delete - earlier than {$old_string} (past {$back_count} months)",$qry); $message = EC_ADLAN_A146.$old_string.EC_ADLAN_A147; } else @@ -136,25 +144,25 @@ if (isset($_POST['confirmdeleteold']) && isset($qs[0]) && ($qs[0] == "backdel")) $message = EC_ADLAN_A149." : ".$sql->mySQLresult; } - $qs[0] = "maint"; + $ec_qs[0] = "maint"; } // Actually empty cache -if (isset($_POST['confirmdelcache']) && isset($qs[0]) &&($qs[0] == "cachedel")) +if (isset($_POST['confirmdelcache']) && isset($ec_qs[0]) &&($ec_qs[0] == "cachedel")) { $e107cache->clear('nq_event_cal'); $message = EC_ADLAN_A163; - $qs[0] = "maint"; // Re-display maintenance menu + $ec_qs[0] = "maint"; // Re-display maintenance menu } // Prompt to delete back events -if(isset($qs[0]) && ($qs[0] == "confdel")) +if(isset($ec_qs[0]) && ($ec_qs[0] == "confdel")) { - $old_string = strftime("%d %B %Y",$qs[1]); + $old_string = strftime("%d %B %Y",$ec_qs[1]); $text = "
".EC_ADLAN_A174." | ||||
".EC_ADLAN_A175." | ".EC_ADLAN_A176." | +".EC_ADLAN_A177." | ".EC_ADLAN_A178." | ".EC_ADLAN_A179." |
".$row['user_id']." | +".$row['user_name']." | +".$row['event_cat_name']." | +".$problems." | +
+ ![]() |
+