Changeset 7905 for extensions/cl_conflit/conflit.inc.php
- Timestamp:
- Nov 28, 2010, 1:01:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/cl_conflit/conflit.inc.php
r7895 r7905 33 33 static public function cl_conflit_script() 34 34 { 35 36 35 37 global $template,$user,$conf,$picture ,$page,$cl_plugin; 38 36 39 $my_path = basename(dirname(__FILE__)).'/' ; 37 40 $my_path = dirname(__FILE__).'/'; … … 43 46 $template->assign( 44 47 array( 45 ' version' => $cl_plugin['version'] ,48 'cl_version' => $cl_plugin['version'] , 46 49 'name' => $cl_plugin['id'] , 47 50 'cl_conflit' => $cl_conflit , … … 53 56 if( $page['body_id'] == 'theAdminPage' ) return ; 54 57 return $template->parse( 'cl_conflit_init', false); 55 }// function cl_ autosize_script58 }// function cl_conflit_script 56 59 //================================================================================= 57 60 /* … … 70 73 $template->assign( 71 74 array( 72 ' version' => $cl_plugin['version'] ,75 'cl_version' => $cl_plugin['version'] , 73 76 'name' => $cl_plugin['id'] , 74 77 'ma_page' => $page['body_id'], … … 88 91 89 92 90 }// function cl_ autosize_script_293 }// function cl_conflit_script_2 91 94 92 95 //================================================================= … … 109 112 if ($ThePicture['is_picture'] <> 1 ) { return $content; ; } 110 113 111 $ autosizejs = '<script type="text/javascript" charset="utf-8" src="';112 $autocss = $ autosizejs.'themes/default/js/jquery.packed.js"></script>'."\n";114 $cl_conflitjs = '<script type="text/javascript" charset="utf-8" src="'; 115 $autocss = $cl_conflitjs.'themes/default/js/jquery.packed.js"></script>'."\n"; 113 116 $template->append('head_elements',$autocss); 114 117 … … 121 124 122 125 123 }// function cl_autosize_script_3 124 126 }// function cl_conflit_script_3 127 /* 128 * 129 */ 130 static public function cl_conflit_admin($menu) 131 { 132 global $lang ; 133 array_push($menu, array('NAME' => 'cl_conflit', 134 'URL' => get_admin_plugin_menu_link(CONFLIT_PATH . 'admin/cl_conflit_admin.php'))); 135 return $menu; 136 } //function cl_conflit_admin 125 137 126 138 } // class 139 /* 140 * 141 */ 142 function cl_conflit_Get_Options() 143 { 144 global $conf,$cl_conflit_parametres; 145 $cl_conflit_parametres = unserialize($conf['cl_conflit']); 146 $cl_conflit_parametres = cl_conflit_Set_Options(); 147 return $cl_conflit_parametres; 148 } 149 /* 150 * 151 */ 152 function cl_conflit_Set_Options() 153 { 127 154 155 global $cl_conflit_parametres; 156 //============================================================================= 157 $cl_conflit_parametres->query =(isset($_POST['query'])) ? $_POST['query'] : ((isset($cl_conflit_parametres->query )) ? $cl_conflit_parametres->query : '' ) ; 158 $cl_conflit_parametres->type=(isset($_POST['type']))? $_POST['type']: ((isset($cl_conflit_parametres->type)) ? $cl_conflit_parametres->type: '') ; 159 160 161 return $cl_conflit_parametres; 162 } 163 /* 164 * 165 */ 166 function cl_conflit_sauve_options_inf() 167 { 168 global $options,$infos_message,$conf,$cl_conflit_parametres ; 169 $infos_message .=l10n("cl_conflit_save_config")."<br>"; 170 $cl_conflit_parametres=cl_conflit_Set_Options(); 171 172 if ( isset($cl_conflit_parametres) ) 173 { 174 175 $query = ' 176 UPDATE '.CONFIG_TABLE.' 177 SET value="'.addslashes(serialize($cl_conflit_parametres)).'" 178 WHERE param = "cl_conflit" 179 LIMIT 1'; 180 pwg_query($query); 181 } 182 183 } 128 184 129 185
Note: See TracChangeset
for help on using the changeset viewer.