Changeset 11484 for extensions/set_plugins
- Timestamp:
- Jun 22, 2011, 3:51:47 PM (13 years ago)
- Location:
- extensions/set_plugins
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/set_plugins/admin.php
r11385 r11484 1 1 <?php 2 2 // Chech whether we are indeed included by Piwigo. 3 3 4 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 5 if (PHPWG_VERSION < 2.3 ) -
extensions/set_plugins/include/affiche.php
r11462 r11484 10 10 if (isset($conf['set_plugins'])) $set_plugins_parametres = unserialize($conf['set_plugins']); 11 11 $nb=set_plugins::set_var('nb','10'); 12 13 $plugins = new plugins(); 14 $plugins->sort_fs_plugins('name'); 15 //$plugins->get_incompatible_plugins(); 16 $redirect_url = get_root_url().'admin.php?page='.$_GET['page']; 17 $base_url = get_root_url().'admin.php?page='.$page['page']; 18 $action_url = $base_url.'&plugin='.'%s'.'&pwg_token='.get_pwg_token(); 12 19 13 $liste = set_plugins::set_var('list ',array());20 $liste = set_plugins::set_var('liste',array()); 14 21 if (isset($liste[0]) && is_array($liste[0])) 15 22 $liste = array(); … … 27 34 $set="false"; 28 35 } 29 30 $dir=realpath('./local/plugins/set_plugins'); 31 if (!is_dir($dir)){ 32 $dir= realpath('./local/plugins'). "\\set_plugins"; 33 $umask = umask(0); 34 $mkd = @mkdir($dir, 0755, true ); 35 umask($umask); 36 if ($mkd==false){ 37 fatal_error( "$dir ".l10n('no write access')); 38 } 39 $file = $dir.'\\.htaccess'; 40 @file_put_contents( $file, 'allow from all' ); 41 } 42 $dir=realpath('./local/plugins/set_plugins'); 43 if(!isset($edited_file) || $edited_file=="") 44 $edited_file=$dir."/config.txt"; 45 $edited_file=str_replace("\\","/", $edited_file); 46 36 global $edited_file; 47 37 if (isset($_POST['submit']) && $_POST['submit']==l10n('save_file')){ 48 if (file_exists($edited_file)){ 49 copy($edited_file, substr_replace($edited_file, '.bak', strrpos($edited_file , '.'), 0) ); 50 51 52 } 53 if ($file = @fopen($edited_file , "w")) { 54 $liste= array_unique($liste); 55 @fwrite($file , serialize($liste)); 56 @fclose($file); 57 $infos_message.=l10n("save config").set_plugins::memo_var($liste); 58 $infos_message.=set_plugins::memo_var($liste); 59 $infos_message.=set_plugins::memo_var($_POST); 60 unset($_POST['submit']); 61 } 62 38 set_plugins::save_to_file($liste); 63 39 } 64 40 65 41 ///================================================================ 66 if (isset($_POST['restore'])){ 67 $content_file = file_get_contents(substr_replace($edited_file, '.bak', strrpos($edited_file , '.'), 0)); 68 $file =array(); 69 $liste= array_unique(unserialize($content_file)); 70 unset($_POST['restore']); 42 if (isset($_POST['restore']) ){ 43 $liste=set_plugins::restore_from_file(); 71 44 } 72 45 73 46 74 if(isset($_POST['add_plugins']) && $add_plugins!="" ){ 75 $liste= array_unique($liste); 47 if($add_plugins!="" ){ 48 49 $infos_message .=$add_plugins; 76 50 if(!array_search($add_plugins, $liste)){ 77 51 array_push($liste, $add_plugins ); 78 52 } 79 $add_plugins="";80 unset( $_POST['add_plugins']);53 // $add_plugins=""; 54 // unset( $_POST['add_plugins']); 81 55 } 56 if (isset($liste_des_plugins)) 57 foreach($liste_des_plugins as $plugin_id) { 58 if(!array_search($plugin_id, $liste)){ 59 array_push($liste, $plugin_id ); 60 } 61 } 62 if(count($liste)>0) $liste= array_unique($liste); 82 63 83 64 if(count($liste )>0) … … 88 69 unset($_POST['list_visible']); 89 70 unset($_POST['nb']); 90 } 91 92 93 94 $plugins = new plugins(); 95 $plugins->sort_fs_plugins('name'); 96 //$plugins->get_incompatible_plugins(); 97 $redirect_url = get_root_url().'admin.php?page='.$_GET['page']; 98 $base_url = get_root_url().'admin.php?page='.$page['page']; 99 $action_url = $base_url.'&plugin='.'%s'.'&pwg_token='.get_pwg_token(); 71 } 72 73 74 100 75 //======================================================= 101 102 76 if($liste) $liste_plugins = array_combine($liste,$liste); 103 77 else $liste_plugins =array(); … … 112 86 if ($key!== false){ 113 87 if(isset( $plugins->db_plugins_by_id[$plugin_id])){ 88 $State_id=$plugins->db_plugins_by_id[$plugin_id]['state'] ; 114 89 $tpl_plugin = array( 115 90 'NAME' => $fs_plugin['name'], 116 91 'U_ACTION' => sprintf($action_url, $plugin_id), 117 'STATE' => $plugins->db_plugins_by_id[$plugin_id]['state']92 'STATE' =>$State_id 118 93 ); 119 94 $liste_tpl[$plugin_id]= $tpl_plugin ; … … 124 99 } 125 100 $template->assign( array( 'liste_plugins' => $liste_tpl)); 101 $edited_file=set_plugins::get_file_name(); 126 102 127 $template->assign( array( 'PHPWG_VERSION' => PHPWG_VERSION , 103 $template->assign( array( 104 'PHPWG_VERSION' => PHPWG_VERSION , 128 105 'cl_plugins' => $cl_set_plugins_plugin , 129 106 'cl_version' => $cl_set_plugins_plugin['version'] , … … 139 116 'nb_list' => count($liste), 140 117 'nb_plugins' => count($plugins->db_plugins_by_id) , 141 'restore' => false,118 'restore' => (file_exists($edited_file)) , 142 119 'edited_file' => $edited_file 143 120 ) … … 145 122 146 123 124 147 125 ?> -
extensions/set_plugins/js/field_set.js
r11462 r11484 3 3 // jQuery("#form_set_plugins").submit(); 4 4 } 5 6 7 5 jQuery().ready(function () { 8 6 jQuery('.cluetip').tipTip({ maxWidth:'600px' ,'delay': 0, 'fadeIn': 200, 'fadeOut': 200 }); 9 jQuery('.cluetip0').cluetip({ 10 width: 300, 11 splitTitle: '|' , 12 clickThrough: true 13 }); 14 15 16 17 18 }); 19 20 21 22 23 7 8 }); var post = {}; 24 9 jQuery("fieldset").hide(); 25 10 jQuery(document).ready(function () { … … 27 12 // jQuery("#form_set_plugins").submit(); 28 13 }); 29 30 14 if (typeof plus_path == "undefined") { 31 15 var plus_path = './plugins/set_plugins/js/icon/plus.png'; … … 33 17 } 34 18 var h_min = 0; 35 var liste_des_plugins = {}; 36 jQuery(window).load(function () { 19 var liste_des_plugins = new Array(); 20 21 jQuery(window).load(function (event) { 22 n = post; 23 var link = event.target.location.href; 24 if (link.indexOf("?") != -1) { 25 link = link.replace(/\"/ig, ""); 26 var query = link.split("?")[1]; 27 eval("query = {" + query.replace(/&/ig, "\",").replace(/=/ig, ":\"") + "\"};"); 28 } 29 30 if (query.plugin) 31 jQuery('#add_plugins').val(query.plugin); 32 37 33 if (jQuery(".titrePage").length >= 1) { 38 34 if (jQuery("span.sort").length >= 1) … … 119 115 jQuery("input[name=list_visible]").val(val); 120 116 jQuery('#set').val("true"); 121 122 jQuery.ajax({123 type: "POST",124 async: true,125 data: { list_visible: val, set: "true" },126 success: function (msg) {127 // jQuery("#form_set_plugins").submit();128 }129 });130 131 117 }); // click 132 118 133 119 134 }); //each 120 }); //each fieldset 121 //========================================================== 122 123 124 125 126 //========================================================= 127 135 128 var liste_action = { active: "", deactive: "" }; 129 jQuery("input[name=list_visible]").val(liste.join(",")); 130 jQuery("fieldset").show(); 131 } // fielset 132 //==================================================================== 133 jQuery(".plugin_list").each(function (i) { 134 liste_des_plugins.push(jQuery(this).attr('id')); 135 } 136 136 137 jQuery(".pluginBox a").each( 137 ) 138 139 //============================================================== 140 jQuery("input").each( 138 141 function (i) { 139 142 jQuery(this).click(function (event) { … … 143 146 144 147 }); //each 145 jQuery("input[name=list_visible]").val(liste.join(","));146 jQuery("fieldset").show();147 } // fielset148 //====================================================================149 148 150 jQuery("input").each(151 function (i) {152 jQuery(this).click(function (event) {153 jQuery(this).css("color", "red");154 jQuery('#set').val("true");155 jQuery.ajax({156 type: "POST",157 async: true,158 data: {159 set: "true"160 }161 ,162 success: function (data) {163 // jQuery("#form_set_plugins").submit();164 165 }166 });167 }); // click168 169 }); //each170 149 jQuery(".pluginBox a").click(function (event) { 171 150 var link = event.target.href; … … 175 154 jQuery('#add_plugins').val(query.plugin); 176 155 jQuery('#set').val("true"); 156 n = query.pwg_token; 157 action = query.action; 177 158 val = liste.join(","); 159 val2 = liste_des_plugins.join(","); 160 jQuery.ajax({ 161 method: 'GET', 162 // url: get_post, 163 data: { get_post: get_post, 164 liste_des_plugins: true, 165 liste: val, 166 add_plugins: query.plugin, 167 set: "true", 168 action: query.action 169 }, 170 async: false, 171 dataType: 'json', 172 success: function (data) { 173 n = eval(data); 174 jQuery("#titrePage").after( 175 '<img alt = "" width="50px" title = ""' + 176 'src = "themes/default/images/colorbox-loading.gif"' + '> ' 177 ); 178 178 179 jQuery.ajax({180 type: "POST",181 async: true,182 data: { add_plugins: query.plugin,183 set: "true",184 list_visible: val185 }186 ,187 success: function (data) {188 // jQuery("#form_set_plugins").submit();189 179 180 liste_des_plugins = data; 181 n = data; 190 182 } 191 183 }); 184 185 186 /* */ 192 187 193 188 } … … 196 191 197 192 }); // load 198 }); //ready193 }); //ready 199 194 -
extensions/set_plugins/language/fr_FR/plugin.lang.php
r11462 r11484 18 18 $lang['s_pl_action6']="Nombre d'extensions à modifier."; 19 19 $lang['s_pl_action7']="Mémorisation des extensions actives"; 20 $lang['s_pl_action8']="Sauvegarde de la liste des extensions installées";20 $lang['s_pl_action8']="Sauvegarde de la liste des extensions mémorisées"; 21 21 $lang['s_pl_action9']="Restitue la liste des extensions mémorisées"; 22 22 -
extensions/set_plugins/main.inc.php
r11462 r11484 31 31 $erreur_message = ""; 32 32 $infos_warning = ""; 33 $liste_active_plugins; 33 34 // Add an entry to the 'Plugins' menu. 34 35 add_event_handler('get_admin_plugin_menu_links', array(&$set_plugins,'set_plugins_admin_menu') ); 35 add_event_handler('loc_end_admin', array(&$set_plugins,'cl_affiche_messages_admin')); 36 add_event_handler('loc_end_page_header',array(&$set_plugins,'set_plugins_add')); 36 add_event_handler('loc_end_admin', array(&$set_plugins,'messages_admin'),50); // affichege infos 37 38 add_event_handler('loc_end_page_header', array(&$set_plugins,'begin_admin'),EVENT_HANDLER_PRIORITY_NEUTRAL ); 39 add_event_handler('loc_end_page_header',array(&$set_plugins,'set_plugins_add'),EVENT_HANDLER_PRIORITY_NEUTRAL+1 ); 37 40 38 41 //======================================================= 39 42 40 43 ?> -
extensions/set_plugins/maintain.inc.php
r11462 r11484 35 35 36 36 $nb=set_plugins::set_var('nb','10'); 37 $liste = set_plugins::set_var('list ',array());37 $liste = set_plugins::set_var('liste',array()); 38 38 $state=set_plugins::set_var('state',"active"); 39 39 $list_visible=set_plugins::set_var('list_visible',"on,on,on,on"); -
extensions/set_plugins/set_plugins_class.php
r11462 r11484 14 14 } 15 15 //============================================================================ 16 function begin_admin() { 17 global $erreur_message,$liste_des_plugins,$liste_active_plugins,$page; 18 //========= Liste des plugins actifs ================= 19 20 21 if (!isset($page['body_id'])) return; 22 if($page['body_id']!='theAdminPage' ) return ; 23 if($page['page']=='plugins_list' || $page['page']=='plugins'){ 24 25 26 27 $plugins = new plugins(); 28 $plugins->sort_fs_plugins('name'); 29 $liste_des_plugins = array(); 30 foreach ($plugins->fs_plugins as $plugin_id => $fs_plugin){ 31 if(isset( $plugins->db_plugins_by_id[$plugin_id])){ 32 $State_id=$plugins->db_plugins_by_id[$plugin_id]['state'] ; 33 if($State_id=="active" && $plugin_id!="set_plugins") 34 array_push($liste_des_plugins,$plugin_id); 35 } 36 } 37 38 if (isset($_GET['liste_des_plugins'])){ 39 array_push($liste_des_plugins,$_GET); 40 echo json_encode($liste_des_plugins); 41 exit; 42 } 43 $liste_active_plugins=$liste_des_plugins; 44 } 45 } 46 //============================================================================ 16 47 function set_plugins_add() { 17 global $user, $template, $val,$page,$conf; 48 global $user, $template, $val,$page,$conf,$erreur_message,$infos_message; 49 global $liste_des_plugins,$liste_active_plugins; 18 50 if (!isset($page['body_id'])) return; 19 if (!isset($page['body_id'])) return; 51 20 52 switch($page['body_id']){ 21 53 case 'theAdminPage': 22 54 switch($page['page']){ 23 55 case 'plugins_list': 24 56 if(!isset($template)) return ; 25 57 set_plugins::Affiche_set_plugins(); … … 34 66 } 35 67 //============================================================================ 36 function cl_affiche_messages_admin(){68 function messages_admin(){ 37 69 global $template,$page, $template, $pwg_loaded_plugins,$infos_message,$erreur_message,$infos_warning; 38 70 … … 86 118 'list_visible' => $list_visible, 87 119 'state' => $state, 88 'list '=>$liste,120 'liste'=>$liste, 89 121 'nb' =>$nb 90 122 ); … … 107 139 //=================================================================== 108 140 function Affiche_set_plugins(){ 141 global $infos_message,$liste_des_plugins,$erreur_message ; 142 109 143 include_once(SET_PLUGINS_PATH."include/constants.php"); 110 include(SET_PLUGINS_PATH.'include/affiche.php');111 $all_tpl_vars = $template->get_template_vars('plugins');144 include(SET_PLUGINS_PATH.'include/affiche.php'); 145 $all_tpl_vars = $template->get_template_vars('plugins'); 112 146 if(!$all_tpl_vars) return; 113 if( $set=="true" ){ 147 148 if( $set=="true" ){ 114 149 $state=""; 115 150 if(isset($_POST['unset_plugins']) ) … … 122 157 else 123 158 $sens="ASC"; 159 $infos_message .="-----> $state $sens<br />"; 124 160 //============================ 125 161 $query = 'SELECT * … … 172 208 173 209 } 174 175 176 177 210 if(isset($result) && $result==true){ 178 $redirect_url = get_root_url().'admin.php?page='.$_GET['page']; 179 //$infos_message .="-----> Mise à jour : " . $nb."<br />"; 180 //$infos_message .="Liste Avant: " . set_plugins::memo_var($liste); 211 $redirect_url = get_root_url().'admin.php?page='.$_GET['page']; 181 212 set_plugins::save_config(); 182 183 213 $_POST['set']=""; 184 214 $set=""; 185 215 include(SET_PLUGINS_PATH.'include/affiche.php'); 186 187 216 // redirect($redirect_url); 188 217 } 189 // 190 191 218 192 219 } 193 220 $template->set_filenames( 194 221 array( 'cl_plugin' => SET_PLUGINS_PATH_ABS.'template/admin.tpl' ) 195 222 ); 196 197 223 198 224 //=========================================================== 199 225 $header_1='<div id="titrePage"> … … 208 234 } 209 235 236 //======================================== 237 function save_to_file($liste){ 238 global $infos_message; 239 $edited_file=set_plugins::get_file_name(); 240 if (file_exists($edited_file)){ 241 copy($edited_file, substr_replace($edited_file, '.bak', strrpos($edited_file , '.'), 0) ); 242 } 243 if ($file = @fopen($edited_file , "w")) { 244 $liste= array_unique($liste); 245 @fwrite($file , serialize($liste)); 246 @fclose($file); 247 $infos_message.=l10n("save config").set_plugins::memo_var($edited_file); 248 unset($_POST['submit']); 249 } 250 } 251 //============================================== 252 function restore_from_file(){ 253 global $infos_message; 254 $edited_file=set_plugins::get_file_name(); 255 $content_file = file_get_contents($edited_file); 256 $file =array(); 257 $liste= array_unique(unserialize($content_file)); 258 unset($_POST['restore']); 259 } 260 //=============================================== 261 function get_file_name(){ 262 global $edited_file; 263 $dir=realpath('./local/plugins/set_plugins'); 264 if (!is_dir($dir)){ 265 $dir= realpath('./local/plugins'). "\\set_plugins"; 266 $umask = umask(0); 267 $mkd = @mkdir($dir, 0755, true ); 268 umask($umask); 269 if ($mkd==false){ 270 fatal_error( "$dir ".l10n('no write access')); 271 } 272 $file = $dir.'\\.htaccess'; 273 @file_put_contents( $file, 'allow from all' ); 274 } 275 $dir=realpath('./local/plugins/set_plugins'); 276 if(!isset($edited_file) || $edited_file=="") 277 $edited_file=$dir."/config.txt"; 278 $edited_file=str_replace("\\","/", $edited_file); 279 return $edited_file ; 280 } 281 210 282 211 283 }// fin classe -
extensions/set_plugins/template/admin.tpl
r11462 r11484 8 8 {include file= $SET_PLUGINS_PATH_ABS|@cat:'template/header_2_2.tpl'} 9 9 {/if} 10 11 12 10 {/html_head} 13 11 14 15 16 {*if isset($liste_plugins)*}17 18 12 <fieldset > 19 <legend class="cluetip" title="{'s_pl_action'|@translate}" 20 21 22 > 23 13 <legend class="cluetip" title="{'s_pl_action'|@translate}" > 24 14 {if $state == 'active'} 25 15 {'Last'|@translate} {'action'|@translate} :{'Activate'|@translate} … … 27 17 {'Last'|@translate} {'action'|@translate} :{'Inactivate'|@translate} 28 18 {/if} 29 30 19 {foreach from=$liste_plugins item=plugin name=plugins_name} 31 20 {if $smarty.foreach.plugins_name.first} … … 36 25 <label class="cluetip" title="{'s_pl_action3'|@translate}"> 37 26 {$smarty.foreach.plugins_loop.total}</label>] </legend> 38 39 27 <form action="{$action}" method="post" name="form_set_plugins" id="form_set_plugins"> 40 <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" 41 class="cluetip button" title="{'s_pl_action4'|@translate}" /> 42 <input name="set_plugins" type="submit" value="{'Activate'|@translate}" 43 class="cluetip" title="{'s_pl_action5'|@translate}" /> 44 28 <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" class="cluetip button" title="{'s_pl_action4'|@translate}" /> 29 <input name="set_plugins" type="submit" value="{'Activate'|@translate}" class="cluetip" title="{'s_pl_action5'|@translate}" /> 45 30 <label class="cluetip" title="{'s_pl_action6'|@translate}"> {'nb'|@translate}:</label> 46 31 <input name="nb" type="text" value="{$nb}" size="5" /> 47 48 32 <input name="list_visible" id="list_visible" type="hidden" value="{$list_visible}" /> 49 33 <input name="add_plugins" type="hidden" id="add_plugins" value="{$add_plugins}" /> 50 51 <input type="submit" name="init_plugins" class="cluetip" 52 title="{'s_pl_action7'|@translate}" 53 value="{'store'|@translate}" /> 34 <input type="submit" name="init_plugins" class="cluetip" title="{'s_pl_action7'|@translate}" value="{'store'|@translate}" /> 54 35 <input type="hidden" id="set" name="set" value="{$set}" /> 55 56 <input class="cluetip" title="{'s_pl_action8'|@translate} {$edited_file}" type="submit" 57 value="{'save_file'|@translate}" name="submit" /> 58 {if isset ($restore)} 59 <input class="cluetip" title="{'s_pl_action9'|@translate} {$edited_file}" type="submit" 60 value="{'restore'|@translate}" name="restore" onclick="return confirm('{'restore_confirm'|@translate|escape:'javascript'}');" /> 61 {/if} 36 <input class="cluetip" title="{'s_pl_action8'|@translate} {$edited_file}" type="submit" value="{'save_file'|@translate}" name="submit" /> 37 {if $restore} 38 <input class="cluetip" title="{'s_pl_action9'|@translate} {$edited_file}" type="submit" 39 value="{'restore'|@translate}" name="restore" onclick="return confirm('{'restore_confirm'|@translate|escape:'javascript'}');" /> 40 {/if} 62 41 <p> 63 42 {/if} 64 65 <div class="pluginBox" id="{$plugin.NAME}"> 43 <div class="pluginBox plugin_list" id="{$plugin.NAME}"> 66 44 <table width="100%" > <tr> 67 45 <td width="50%" align="left" name="plugins_name" rel="actif" class="pluginBoxNameCell" > … … 101 79 {if $smarty.foreach.plugins_name.total==0} 102 80 [{$smarty.foreach.plugins_name.total}/{$nb_plugins}] 103 104 81 </legend> 105 82 <form action="{$action}" method="post" name="form_set_plugins" id="form1"> 106 <input class="button" name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" /> 107 <input class="button" name="set_plugins" type="submit" value="{'Activate'|@translate}" /> 108 <label> 109 {'nb'|@translate}:</label><input name="nb" type="text" value="{$nb}" size="5" /> 83 <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" class="cluetip button" 84 title="{'s_pl_action4'|@translate}" /> 85 <input name="set_plugins" type="submit" value="{'Activate'|@translate}" class="cluetip" 86 title="{'s_pl_action5'|@translate}" /> 87 <label class="cluetip" title="{'s_pl_action6'|@translate}"> 88 {'nb'|@translate}:</label> 89 <input name="nb" type="text" value="{$nb}" size="5" /> 110 90 <input name="list_visible" id="Hidden1" type="hidden" value="{$list_visible}" /> 111 <input name="add_plugins" type="hidden" id=" Hidden2" value="{$add_plugins}" />112 <input class="button" type="submit" name="init_plugins" value="{'init'|@translate}" />91 <input name="add_plugins" type="hidden" id="add_plugins" value="{$add_plugins}" /> 92 <input type="submit" name="init_plugins" class="cluetip" title="{'s_pl_action7'|@translate}" value="{'store'|@translate}" /> 113 93 <input type="hidden" id="Hidden3" name="set" value="{$set}" /> 94 <input class="cluetip" title="{'s_pl_action8'|@translate} {$edited_file}" type="submit" value="{'save_file'|@translate}" name="submit" /> 95 {if $restore} 96 <input class="cluetip" title="{'s_pl_action9'|@translate} {$edited_file}" type="submit" value="{'restore'|@translate}" name="restore" onclick="return confirm('{'restore_confirm'|@translate|escape:'javascript'}');" /> 97 {/if} 114 98 <p> 115 99 {/if} … … 117 101 </form> 118 102 </fieldset> 119 {*/if*} 103 {*/if*} 120 104 121 105 {footer_script} 106 var root = '{$SET_PLUGINS_PATH}'; 107 var get_post = "{$SET_PLUGINS_PATH}include/set_post.php"; 108 var list_visible = '{$list_visible}'; 109 var nb = '{$nb}'; 110 {if $liste_plugins} 111 liste_plugins=new Array(); 112 {foreach from=$liste_plugins item=plugin name=plugins_name} 113 114 liste_plugins.push('{$plugin.NAME}') ; 115 {/foreach} 116 {else} 117 var liste_plugins = new Array(); 118 {/if} 119 {literal} 120 jQuery(document).ready(function() { 121 jQuery.ajax({ method: 'POST', 122 url: get_post, 123 data: { root:root,list_visible:list_visible,nb:nb }, 124 dataType: 'json', 125 success: function(data) { 126 n=data; 127 } }); 128 }); 129 {/literal}{/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.