Ignore:
Timestamp:
Aug 28, 2010, 4:26:07 PM (14 years ago)
Author:
nikrou
Message:

Update tags with an ajax request

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/include/t4u_config.class.php

    r6806 r6813  
    7676  }
    7777
     78
     79  public function hasPermission($permission='add') {
     80    return
     81      (($this->getPermission($permission)!='')
     82       and is_autorize_status(get_access_type_status($this->getPermission($permission))));
     83  }
     84
    7885  public function plugin_admin_menu($menu) {
    7986    array_push($menu,
     
    8693
    8794  public function get_admin_help($help_content, $page) {
    88     return load_language('help/'.$page.'.html', $this->plugin_dir .'/', array('return'=>true) );
     95    return load_language('help/'.$page.'.html',
     96                         $this->plugin_dir .'/',
     97                         array('return'=>true)
     98                         );
     99  }
     100 
     101  public function getActionUrl($action, $method='POST') {
     102    $url = get_root_url().'admin.php?page=plugin';
     103    $file = basename($this->plugin_dir) . '/' .'admin.php';
     104    if (strtoupper($method)=='POST') {
     105        $url .= '&section='.urlencode($file);     
     106        $url .= '&action='.urlencode($action);     
     107    } else {
     108        $url .= '&section='.$file;           
     109        $url .= '&action='.$action;           
     110    }
     111
     112    return $url;
    89113  }
    90114
Note: See TracChangeset for help on using the changeset viewer.