diff --git a/upload/includes/defined_links.php b/upload/includes/defined_links.php index 25e6d564..88331091 100644 --- a/upload/includes/defined_links.php +++ b/upload/includes/defined_links.php @@ -18,7 +18,7 @@ $cbLinks = array 'login_success' =>array('login_success.php','login_success.php'), 'logout' =>array('logout.php','logout.php'), 'logout_success'=>array('logout_success.php','logout_success.php'), -'my_account' =>array('myaccount.php','my_account'), +'my_account' =>array('myaccount.php?user=','my_account'), 'my_videos' =>array('manage_videos.php','manage_videos.php'), 'my_favorites' =>array('manage_videos.php?mode=favorites','manage_videos.php?mode=favorites'), 'my_playlists' =>array('manage_playlists.php','manage_playlists.php'), diff --git a/upload/includes/plugin.functions.php b/upload/includes/plugin.functions.php index f7a81d2b..9f6cabb3 100644 --- a/upload/includes/plugin.functions.php +++ b/upload/includes/plugin.functions.php @@ -522,4 +522,13 @@ } return 'check_remote_url()'; } + if(!function_exists('plug_url')){ + function plug_url($file,$dir,$admin_base=false) + { + $url = 'plugin.php?folder='.$dir.'&file='.$file; + if($admin_base) + $url = ADMIN_BASEURL.'/'.$url; + return $url; + } + } ?> \ No newline at end of file