Changeset 2488 for trunk/plugins/AMenuManager/amm_aip.class.inc.php
- Timestamp:
- Aug 28, 2008, 2:32:39 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/AMenuManager/amm_aip.class.inc.php
r2468 r2488 190 190 public function init_events() 191 191 { 192 add_event_handler('menubar_file', array(&$this, 'plugin_public_menu') );193 192 add_event_handler('loc_end_page_header', array(&$this->css, 'apply_CSS')); 194 193 } … … 238 237 239 238 case 'setmenu_modspecial_sections_list': 240 $result=$this->ajax_amm_setmenu_mod_section_list('amm_sections_modspecial ');239 $result=$this->ajax_amm_setmenu_mod_section_list('amm_sections_modspecials'); 241 240 break; 242 241 case 'setmenu_modspecial_sections_showhide': 243 $result=$this->ajax_amm_setmenu_mod_section_showhide('amm_sections_modspecial ', $_REQUEST['fItem']);242 $result=$this->ajax_amm_setmenu_mod_section_showhide('amm_sections_modspecials', $_REQUEST['fItem']); 244 243 break; 245 244 … … 326 325 'AMM_AJAX_URL_LIST' => $this->page_link."&ajaxfct=", 327 326 'show_icons_selected' => $this->my_config['amm_links_show_icons'], 328 'active_selected' => $this->my_config['amm_links_active'],329 327 'lang_selected' => $user['language'], 330 328 'fromlang' => substr($user['language'],0,2) … … 460 458 { 461 459 $this->my_config['amm_links_show_icons']=$_POST['famm_links_show_icons']; 462 $this->my_config['amm_links_active']=$_POST['famm_links_active'];463 460 $languages=get_languages(); 464 461 foreach($languages as $key => $val) … … 474 471 protected function action_randompic_modify_config() 475 472 { 476 $this->my_config['amm_randompicture_active']=$_POST['famm_randompicture_active'];477 473 $this->my_config['amm_randompicture_showname']=$_POST['famm_randompicture_showname']; 478 474 $this->my_config['amm_randompicture_showcomment']=$_POST['famm_randompicture_showcomment']; … … 542 538 $template_datas=array( 543 539 'lnk_list' => $this->page_link.'&fAMM_tabsheet=links', 544 'active_selected' => $this->my_config['amm_randompicture_active'],545 540 'showname_selected' => $this->my_config['amm_randompicture_showname'], 546 541 'showcomment_selected' => $this->my_config['amm_randompicture_showcomment'], … … 703 698 protected function action_create_modify_personalised() 704 699 { 705 global $ menu, $user;700 global $user; 706 701 707 702 if($_POST['famm_modeedit']=='create') … … 734 729 } 735 730 } 736 737 if($_POST['famm_modeedit']=='create')738 {739 $menu->register('mbAMM_personalised'.$id, ($_POST['famm_personalised_nfo']=='')?$_POST['famm_personalised_title_'.$user['language']]:$_POST['famm_personalised_nfo'], 0, 'AMM');740 }741 742 743 744 731 } 745 732 … … 813 800 { 814 801 $numurl=$this->get_count_url(); 815 $sql="INSERT INTO ".$this->tables['urls']." ( id,label, url, mode, icon, position, visible)816 VALUES (' ', '".$datas['label']."', '".$datas['url']."', '".$datas['mode']."',802 $sql="INSERT INTO ".$this->tables['urls']." (label, url, mode, icon, position, visible) 803 VALUES ('".$datas['label']."', '".$datas['url']."', '".$datas['mode']."', 817 804 '".$datas['icon']."', '".$numurl."', '".$datas['visible']."')"; 818 805 return(pwg_query($sql)); … … 1054 1041 private function ajax_amm_personalised_delete($sectionid) 1055 1042 { 1056 global $menu;1057 1058 1043 if(!$this->adviser_abort()) 1059 1044 { 1060 1045 $this->delete_personalised($sectionid); 1061 $menu->unregister('mbAMM_personalised'.$sectionid);1062 1046 } 1063 1047 return($this->ajax_amm_personalised_list());
Note: See TracChangeset
for help on using the changeset viewer.