Changeset 25915
- Timestamp:
- Dec 10, 2013, 11:46:03 AM (11 years ago)
- Location:
- extensions/AdminTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdminTools/include/MultiView.class.php
r25818 r25915 212 212 } 213 213 } 214 214 215 215 /** 216 216 * Mark browser session cache for deletion … … 222 222 $conf['multiview_invalidate_cache'] = true; 223 223 } 224 224 225 225 /** 226 226 * Register custom API methods … … 229 229 { 230 230 $service = &$arr[0]; 231 231 232 232 $service->addMethod( 233 233 'multiView.getData', … … 239 239 ); 240 240 } 241 241 242 242 /** 243 243 * API method … … 247 247 { 248 248 global $conf; 249 249 250 250 // get users 251 251 $query = ' … … 277 277 ); 278 278 } 279 279 280 280 conf_delete_param('multiview_invalidate_cache'); 281 281 282 282 return $out; 283 283 } -
extensions/AdminTools/include/events.inc.php
r25845 r25915 9 9 { 10 10 global $MultiView, $conf, $template, $page, $user, $picture; 11 12 if (script_basename() == 'picture' and empty($picture['current'])) 13 { 14 return; 15 } 11 16 12 17 $url_root = get_root_url(); … … 186 191 global $page, $conf, $MultiView, $user, $picture; 187 192 193 if (!isset($_GET['delete']) and !isset($_POST['action']) and $_POST['action'] != 'quick_edit') 194 { 195 return; 196 } 197 188 198 $query = 'SELECT added_by FROM '. IMAGES_TABLE .' WHERE id = '. $page['image_id'] .';'; 189 199 list($added_by) = pwg_db_fetch_row(pwg_query($query)); 190 200 191 if (!$MultiView->is_admin() &&$user['id'] != $added_by)201 if (!$MultiView->is_admin() and $user['id'] != $added_by) 192 202 { 193 203 return; … … 215 225 } 216 226 217 if ( @$_POST['action'] == 'quick_edit')227 if ($_POST['action'] == 'quick_edit') 218 228 { 219 229 include_once(PHPWG_ROOT_PATH . 'admin/include/functions.php'); -
extensions/AdminTools/main.inc.php
r25845 r25915 15 15 // | Plugin constants | 16 16 // +-----------------------------------------------------------------------+ 17 define d('ADMINTOOLS_ID') or define('ADMINTOOLS_ID',basename(dirname(__FILE__)));18 define('ADMINTOOLS_PATH' , PHPWG_PLUGINS_PATH. ADMINTOOLS_ID . '/');19 // define('ADMINTOOLS_ADMIN', get_root_url() . 'admin.php?page=plugin-' . ADMINTOOLS_ID);20 define('ADMINTOOLS_VERSION', 'auto');17 define('ADMINTOOLS_ID', basename(dirname(__FILE__))); 18 define('ADMINTOOLS_PATH' , './plugins/' . ADMINTOOLS_ID . '/'); 19 // define('ADMINTOOLS_ADMIN', get_root_url() . 'admin.php?page=plugin-' . ADMINTOOLS_ID); 20 define('ADMINTOOLS_VERSION', 'auto'); 21 21 22 22
Note: See TracChangeset
for help on using the changeset viewer.