Changeset 2406 for modules/branches/2.2
- Timestamp:
- 09/10/06 20:19:11 (7 years ago)
- Files:
-
- modules/branches/2.2/gabcast/functions.inc.php (modified) (2 diffs)
- modules/branches/2.2/gabcast/module.xml (modified) (1 diff)
- modules/branches/2.2/gabcast/page.gabcast.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.2/gabcast/functions.inc.php
r1938 r2406 2 2 /* $Id:$ */ 3 3 4 function gabcast_hook_core($viewing_itemid, $target_menuid) { 5 if ($viewing_itemid != "" & ($target_menuid == 'extensions' | $target_menuid == 'users')) { 4 function gabcast_configpageinit($dispnum) { 5 global $currentcomponent; 6 7 if ( $dispnum == 'users' || $dispnum == 'extensions' ) { 8 $currentcomponent->addguifunc('gabcast_configpageload'); 9 } 10 } 11 12 function gabcast_configpageload() { 13 global $currentcomponent; 14 15 $viewing_itemid = $_REQUEST['extdisplay']; 16 if ( $viewing_itemid != '' ) { 6 17 $list = gabcast_get($viewing_itemid); 7 18 if (is_array($list)) { 8 $res = "<p><a href='".$_SERVER['PHP_SELF']."?display=gabcast&ext=$viewing_itemid&action=edit'>";9 $ res .= _("Edit Gabcast Settings")."</a></p>";19 $res = $_SERVER['PHP_SELF']."?display=gabcast&type=tool&ext=$viewing_itemid&action=edit"; 20 $currentcomponent->addguielem('_top', new gui_link('gabcastlink', 'Edit Gabcast Settings', $res)); 10 21 } else { 11 $res = "<p><a href='".$_SERVER['PHP_SELF']."?display=gabcast&ext=$viewing_itemid&action=add'>";12 $ res .= _("Add Gabcast Settings")."</a></p>";22 $res = $_SERVER['PHP_SELF']."?display=gabcast&type=tool&ext=$viewing_itemid&action=add"; 23 $currentcomponent->addguielem('_top', new gui_link('gabcastlink', 'Add Gabcast Settings', $res)); 13 24 } 14 return $res;15 25 } 16 26 } … … 28 38 return $extens; 29 39 } else { 30 return null;40 return null; 31 41 } 32 42 } modules/branches/2.2/gabcast/module.xml
r2351 r2406 2 2 <rawname>gabcast</rawname> 3 3 <name>Gabcast</name> 4 <version>1. 1</version>5 <type>tool s</type>4 <version>1.2.0</version> 5 <type>tool</type> 6 6 <category>Addon</category> 7 7 <menuitems> modules/branches/2.2/gabcast/page.gabcast.php
r1938 r2406 102 102 if(isset($_REQUEST['action']) && $_REQUEST['action'] == 'add') { 103 103 $thisxtn['ext'] = $_REQUEST['ext']; 104 $thisxtn[0] = $_REQUEST['ext']; 104 105 $player = ""; 105 106 $action = 'add';
