Changeset 6813 for extensions/user_tags/include/t4u_config.class.php
- Timestamp:
- Aug 28, 2010, 4:26:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/user_tags/include/t4u_config.class.php
r6806 r6813 76 76 } 77 77 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 78 85 public function plugin_admin_menu($menu) { 79 86 array_push($menu, … … 86 93 87 94 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 .= '§ion='.$file; 109 $url .= '&action='.$action; 110 } 111 112 return $url; 89 113 } 90 114
Note: See TracChangeset
for help on using the changeset viewer.