mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
A few permissions fixes
This commit is contained in:
parent
99b74405d9
commit
84a04b5493
@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $
|
||||||
| $Revision: 1.7 $
|
| $Revision: 1.8 $
|
||||||
| $Date: 2007-12-15 21:46:20 $
|
| $Date: 2008-03-20 20:49:02 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
|
|
|
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
@ -98,10 +98,10 @@ SC_BEGIN EC_NAV_BUT_PRINTLISTS
|
|||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN EC_NAV_BUT_ENTEREVENT
|
SC_BEGIN EC_NAV_BUT_ENTEREVENT
|
||||||
global $EC_NAV_BUT_ENTEREVENT, $pref, $prop;
|
global $EC_NAV_BUT_ENTEREVENT, $pref, $prop, $cal_super;
|
||||||
$EC_NAV_BUT_ENTEREVENT = "<input type='hidden' name='enter_new_val' value='".$prop."' />";
|
$EC_NAV_BUT_ENTEREVENT = "<input type='hidden' name='enter_new_val' value='".$prop."' />";
|
||||||
if (check_class($pref['eventpost_admin']) || getperms('0')){
|
if ($cal_super || check_class($pref['eventpost_admin']))
|
||||||
// start no admin preference
|
{
|
||||||
$EC_NAV_BUT_ENTEREVENT .= "<input class='button' type='submit' style='width:140px;' name='doit' value='".EC_LAN_94."' />";
|
$EC_NAV_BUT_ENTEREVENT .= "<input class='button' type='submit' style='width:140px;' name='doit' value='".EC_LAN_94."' />";
|
||||||
}
|
}
|
||||||
return $EC_NAV_BUT_ENTEREVENT;
|
return $EC_NAV_BUT_ENTEREVENT;
|
||||||
@ -117,7 +117,7 @@ SC_BEGIN EC_NAV_LINKCURRENTMONTH
|
|||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN EC_NAV_CATEGORIES
|
SC_BEGIN EC_NAV_CATEGORIES
|
||||||
global $EC_NAV_CATEGORIES, $sql, $pref, $_POST, $cal_super;
|
global $EC_NAV_CATEGORIES, $sql, $pref, $_POST, $cal_super, $cat_filter;
|
||||||
(isset($parm) && ($parm == 'nosubmit')) ? $insert = '' : $insert = "onchange='this.form.submit()'";
|
(isset($parm) && ($parm == 'nosubmit')) ? $insert = '' : $insert = "onchange='this.form.submit()'";
|
||||||
$EC_NAV_CATEGORIES = "<select name='event_cat_ids' class='tbox' style='width:140px;' {$insert} >\n<option value='all'>".EC_LAN_97."</option>\n";
|
$EC_NAV_CATEGORIES = "<select name='event_cat_ids' class='tbox' style='width:140px;' {$insert} >\n<option value='all'>".EC_LAN_97."</option>\n";
|
||||||
$event_cat_id = ( isset($_POST['event_cat_ids']) && $_POST['event_cat_ids'] ? $_POST['event_cat_ids'] : null);
|
$event_cat_id = ( isset($_POST['event_cat_ids']) && $_POST['event_cat_ids'] ? $_POST['event_cat_ids'] : null);
|
||||||
@ -126,7 +126,7 @@ SC_BEGIN EC_NAV_CATEGORIES
|
|||||||
$cal_arg .= "(event_cat_name != '".EC_DEFAULT_CATEGORY."') ";
|
$cal_arg .= "(event_cat_name != '".EC_DEFAULT_CATEGORY."') ";
|
||||||
$sql->db_Select("event_cat", "*", $cal_arg);
|
$sql->db_Select("event_cat", "*", $cal_arg);
|
||||||
while ($row = $sql->db_Fetch()){
|
while ($row = $sql->db_Fetch()){
|
||||||
if ($row['event_cat_id'] == $event_cat_id){
|
if ($row['event_cat_id'] == $cat_filter){
|
||||||
$EC_NAV_CATEGORIES .= "<option class='tbox' value='".$row['event_cat_id']."' selected='selected'>".$row['event_cat_name']."</option>\n";
|
$EC_NAV_CATEGORIES .= "<option class='tbox' value='".$row['event_cat_id']."' selected='selected'>".$row['event_cat_name']."</option>\n";
|
||||||
}else{
|
}else{
|
||||||
$EC_NAV_CATEGORIES .= "<option value='".$row['event_cat_id']."'>".$row['event_cat_name']."</option>\n";
|
$EC_NAV_CATEGORIES .= "<option value='".$row['event_cat_id']."'>".$row['event_cat_name']."</option>\n";
|
||||||
@ -438,10 +438,10 @@ SC_BEGIN EC_EVENT_THREAD
|
|||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN EC_EVENT_OPTIONS
|
SC_BEGIN EC_EVENT_OPTIONS
|
||||||
global $EC_EVENT_OPTIONS, $thisevent, $event_author_name, $cal_super,$ec_images_path;
|
global $EC_EVENT_OPTIONS, $thisevent, $event_author_name, $cal_super, $pref, $ec_images_path;
|
||||||
if (USERNAME == $event_author_name || $cal_super)
|
if (USERNAME == $event_author_name || $cal_super || check_class($pref['eventpost_admin']))
|
||||||
{
|
{
|
||||||
$EC_EVENT_OPTIONS = "<a href='event.php?ed.".$thisevent['event_id']."'><img style='border:0;' src='".$ec_images_path."admin_images/edit_16.png' title='".EC_LAN_35."' alt='".EC_LAN_35 . "'/></a> <a href='".e_PLUGIN."calendar_menu/event.php?de.".$thisevent['event_id']."'><img style='border:0;' src='".$ec_images_path."admin_images/delete_16.png' title='".EC_LAN_36."' alt='".EC_LAN_36."'/></a>";
|
$EC_EVENT_OPTIONS = "<a href='event.php?ed.".$thisevent['event_id']."'><img style='border:0;' src='".e_IMAGE."admin_images/edit_16.png' title='".EC_LAN_35."' alt='".EC_LAN_35 . "'/></a> <a href='".e_PLUGIN."calendar_menu/event.php?de.".$thisevent['event_id']."'><img style='border:0;' src='".e_IMAGE."admin_images/delete_16.png' title='".EC_LAN_36."' alt='".EC_LAN_36."'/></a>";
|
||||||
}
|
}
|
||||||
return $EC_EVENT_OPTIONS;
|
return $EC_EVENT_OPTIONS;
|
||||||
SC_END
|
SC_END
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/event.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/event.php,v $
|
||||||
| $Revision: 1.5 $
|
| $Revision: 1.6 $
|
||||||
| $Date: 2008-01-12 16:09:33 $
|
| $Date: 2008-03-20 20:49:02 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
|
|
|
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
@ -28,6 +28,7 @@ if (isset($_POST['viewallevents']))
|
|||||||
if (isset($_POST['doit']))
|
if (isset($_POST['doit']))
|
||||||
{ // Triggered from NAV_BUT_ENTEREVENT
|
{ // Triggered from NAV_BUT_ENTEREVENT
|
||||||
Header("Location: ".e_PLUGIN."calendar_menu/event.php?ne.".$_POST['enter_new_val']);
|
Header("Location: ".e_PLUGIN."calendar_menu/event.php?ne.".$_POST['enter_new_val']);
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_POST['subs']))
|
if (isset($_POST['subs']))
|
||||||
@ -45,7 +46,6 @@ define("PAGE_NAME", EC_LAN_80);
|
|||||||
|
|
||||||
require_once(e_PLUGIN.'calendar_menu/ecal_class.php');
|
require_once(e_PLUGIN.'calendar_menu/ecal_class.php');
|
||||||
global $ecal_class;
|
global $ecal_class;
|
||||||
//$ecal_class = new ecal_class;
|
|
||||||
if (!is_object($ecal_class)) $ecal_class = new ecal_class;
|
if (!is_object($ecal_class)) $ecal_class = new ecal_class;
|
||||||
$cal_super = $ecal_class->cal_super;
|
$cal_super = $ecal_class->cal_super;
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ $ev_fields = array(
|
|||||||
//--------------------------------------
|
//--------------------------------------
|
||||||
// Event to add or update
|
// Event to add or update
|
||||||
//--------------------------------------
|
//--------------------------------------
|
||||||
if ($cal_super && (isset($_POST['ne_insert']) || isset($_POST['ne_update'])))
|
if ((isset($_POST['ne_insert']) || isset($_POST['ne_update'])) && ($cal_super || check_class($pref['eventpost_admin'])))
|
||||||
{
|
{
|
||||||
$ev_start = $ecal_class->make_date($_POST['ne_hour'], $_POST['ne_minute'],$_POST['start_date']);
|
$ev_start = $ecal_class->make_date($_POST['ne_hour'], $_POST['ne_minute'],$_POST['start_date']);
|
||||||
if (($_POST['ne_event'] == "") || !isset($_POST['qs']))
|
if (($_POST['ne_event'] == "") || !isset($_POST['qs']))
|
||||||
@ -211,7 +211,7 @@ if (isset($_POST['jump']))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(e_QUERY)
|
if (e_QUERY)
|
||||||
{
|
{
|
||||||
$qs = explode(".", e_QUERY);
|
$qs = explode(".", e_QUERY);
|
||||||
$action = $qs[0]; // Often a date if just viewing
|
$action = $qs[0]; // Often a date if just viewing
|
||||||
@ -233,7 +233,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($cal_super)
|
if ($cal_super || check_class($pref['eventpost_admin']))
|
||||||
{ // Bits relating to 'delete event', and generation of multiple events
|
{ // Bits relating to 'delete event', and generation of multiple events
|
||||||
if ($action == 'mc')
|
if ($action == 'mc')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user