Changeset 10337 for extensions/PHP_Optimisateur/include
- Timestamp:
- Apr 12, 2011, 7:45:22 PM (13 years ago)
- Location:
- extensions/PHP_Optimisateur/include
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PHP_Optimisateur/include/display_config.php
r9276 r10337 5 5 \***************************************/ 6 6 7 $PAGE _CONTENT[0] .= '<div class="generic config">7 $PAGE['content'] .= '<div class="generic config"> 8 8 <h2>'.l10n('Configuration').'</h2> 9 9 <ul> … … 56 56 <tr> 57 57 <td><b>'.l10n('DIMhd').' :</b></td> 58 <td>'.$CONF['DIMhd'].' px</td>58 <td>'.$CONF['DIMhd'].' px</td> 59 59 </tr> 60 60 <tr> 61 61 <td><b>'.l10n('DIMnormal').' :</b></td> 62 <td>'.$CONF['DIMnormal'].' px</td>62 <td>'.$CONF['DIMnormal'].' px</td> 63 63 </tr> 64 64 <tr> 65 65 <td><b>'.l10n('DIMthumbnail').' :</b></td> 66 <td>'.$CONF['DIMthumbnail'].' px</td>66 <td>'.$CONF['DIMthumbnail'].' px</td> 67 67 </tr> 68 68 <tr> 69 69 <td><b>'.l10n('Qhd').' :</b></td> 70 <td>'.$CONF['Qhd'].' %</td>70 <td>'.$CONF['Qhd'].' %</td> 71 71 </tr> 72 72 <tr> 73 73 <td><b>'.l10n('Qnormal').' :</b></td> 74 <td>'.$CONF['Qnormal'].' %</td>74 <td>'.$CONF['Qnormal'].' %</td> 75 75 </tr> 76 76 <tr> 77 77 <td><b>'.l10n('Qthumbnail').' :</b></td> 78 <td>'.$CONF['Qthumbnail'].' %</td>78 <td>'.$CONF['Qthumbnail'].' %</td> 79 79 </tr> 80 80 <tr> 81 81 <td><b>'.l10n('DPI').' :</b></td> 82 <td>'.$CONF['DPI'].' dpi</td>82 <td>'.$CONF['DPI'].' dpi</td> 83 83 </tr> 84 84 </table> … … 128 128 129 129 foreach ($CONF['Plugins'] as $plugin_id => $plugin_config) { 130 $PAGE _CONTENT[0] .= '<li>130 $PAGE['content'] .= '<li> 131 131 <div class="plugin-title"> 132 132 <span class="title">'.$plugin_config['name'].' :</span> 133 133 134 134 <span class="plugin-active">'; 135 // Si il est manquant on ne met que la checkbox de suppression, sinon boutons d'activation136 135 if ($plugin_config['active']) { 137 $PAGE _CONTENT[0] .= '<b class="new">'.l10n('Active').'</b>';136 $PAGE['content'] .= '<b class="new">'.l10n('Active').'</b>'; 138 137 } else { 139 $PAGE _CONTENT[0] .= '<b class="miss">'.l10n('Inactive').'</b>';138 $PAGE['content'] .= '<b class="miss">'.l10n('Inactive').'</b>'; 140 139 } 141 $PAGE _CONTENT[0] .= '</span>140 $PAGE['content'] .= '</span> 142 141 143 142 </div>'; … … 147 146 include('plugins/'.$plugin_id.'/setup.php'); 148 147 } 149 $PAGE _CONTENT[0] .= '</li>';148 $PAGE['content'] .= '</li>'; 150 149 } 151 $PAGE _CONTENT[0] .= '</ul>150 $PAGE['content'] .= '</ul> 152 151 </div>'; 153 152 ?> -
extensions/PHP_Optimisateur/include/functions.php
r9265 r10337 1 1 <?php 2 2 3 // Affiche les textes localisés 3 4 function l10n($code) { … … 22 23 while ($file = readdir($dh)) { 23 24 if ($file !== '.' && $file !== '..' && is_dir('language/'.$file)) { 24 $name = (file_exists('language/'.$file.'/ '.$file.'.txt')) ? file_get_contents('language/'.$file.'/'.$file.'.txt') : $file;25 $name = (file_exists('language/'.$file.'/iso.txt')) ? file_get_contents('language/'.$file.'/iso.txt') : $file; 25 26 $languages[$file] = $name; 26 27 } … … 66 67 return preg_replace($search, $replace, $string); 67 68 } else { 68 return str_replace(array('%','$' ), '_', $string);69 return str_replace(array('%','$',' '), '_', $string); 69 70 } 70 71 } … … 121 122 $content = array(); 122 123 foreach ($xml as $nom => $elem) { 123 if (trim($elem) == '' ) {124 if (trim($elem) == '' AND $elem != '') { 124 125 $content[$nom] = XMLParse($elem->children()); 125 126 } else { … … 165 166 $array[$key] = true; 166 167 } else if ($value === 'false') { 167 $array[$key] = false; 168 $array[$key] = false; 169 } else if ($value == null) { 170 // rien à faire ^^ 168 171 } else if (preg_match('#^([0-9]*)$#', $value)) { 169 172 settype($array[$key], 'int'); … … 247 250 // Verifie si une chaine est un nombre décimal (plus strict que is_numeric qui fonctionne avec les hexadecimaux) 248 251 function is_decimal($num) { 249 if( is_numeric($num) === true AND (float)$num == $num) {252 if((is_numeric($num) === true AND (float)$num == $num) OR $num === '0') { 250 253 return true; 251 254 } else { … … 257 260 function load_plugin_lang($plugin_id) { 258 261 global $CONF, $Lang; 259 if (file_exists('plugins/'.$plugin_id.'/lang/'.$CONF['user_lang'].'.php')) { 260 include('plugins/'.$plugin_id.'/lang/'.$CONF['user_lang'].'.php'); 261 } else { 262 include('plugins/'.$plugin_id.'/lang/en_UK.php'); 263 } 264 } 262 if (file_exists('plugins/'.$plugin_id.'/language/'.$CONF['user_lang'].'.php')) { 263 include('plugins/'.$plugin_id.'/language/'.$CONF['user_lang'].'.php'); 264 } else { 265 include('plugins/'.$plugin_id.'/language/en_UK.php'); 266 } 267 } 268 269 // fonction nconvert avec gestion du log 270 function nconvert($param, $log=true) { 271 global $LOG; 272 273 exec('include\nconvert.exe '. $param .' 2>&1', $out); 274 275 if ($log) { 276 for ($i=0; $i<=3; $i++) 277 unset($out[$i]); 278 if (count($out)) $LOG[] = array_values($out); 279 //$LOG[] = "\t" . $param; 280 } else { 281 return $out; 282 } 283 } 284 285 // fonction mkdir avec gestion du log 286 function mkdir_log($dir) { 287 global $LOG; 288 mkdir($dir, 0777, true); 289 $LOG[] = 'Dir '.$dir.' created'; 290 } 291 292 // fonction copy avec gestion du log 293 function copy_log($src, $dest) { 294 global $LOG; 295 copy($src, $dest); 296 $LOG[] = 'Copy '.$src.' to '.$dest; 297 } 298 299 // fonction rename avec gestion du log 300 function rename_log($path, $new_path, $move=false) { 301 global $LOG; 302 rename($path, $new_path); 303 if ($move) 304 $LOG[] = 'Move '.$path.' to '.$new_path; 305 else 306 $LOG[] = 'Rename '.$path.' into '.$new_path; 307 } 308 309 // enregistre le log dans un fichier 310 function print_log($nb, $s) { 311 global $APPversion, $LOG; 312 313 $config = file_get_contents('config.xml'); 314 315 $string = 316 "PHP Optimisateur " . $APPversion . "\r\n". 317 date('r') . "\r\n". 318 $nb . " files in " . $s . " seconds" . "\r\n\r\n". 319 320 $config . "\r\n\r\n"; 321 322 foreach ($LOG as $event) { 323 if (is_array($event)) { 324 $string .= implode("\r\n", $event) . "\r\n"; 325 } else { 326 $string .= $event . "\r\n"; 327 } 328 } 329 330 if (!file_exists('logs')) { 331 mkdir('logs', 0777, true); 332 } 333 334 $filename = 'log_' . date('Y-m-d_H-i-s') . '.txt'; 335 file_put_contents('logs/'.$filename, $string); 336 return $filename; 337 } 338 339 // case insentive version of in_array 340 function in_arrayi($needle, $haystack) { 341 $needle = strtolower($needle); 342 $haystack = array_map('strtolower', $haystack); 343 return in_array($needle, $haystack); 344 } 345 265 346 ?> -
extensions/PHP_Optimisateur/include/header.php
r9632 r10337 35 35 }); 36 36 }); 37 </script> 37 </script> 38 39 '.$PAGE['header'].' 38 40 39 41 </head> … … 48 50 <div id="languageSwitchLink" title="Change Language"> 49 51 <ul> 50 <li><a href="#"><img src="language/'.$CONF['user_lang'].'/ '.$CONF['user_lang'].'.png" alt="'.$CONF['languages'][$CONF['user_lang']].'"/> '.$CONF['languages'][$CONF['user_lang']].'</a></li>52 <li><a href="#"><img src="language/'.$CONF['user_lang'].'/flag.png" alt="'.$CONF['languages'][$CONF['user_lang']].'"/> '.$CONF['languages'][$CONF['user_lang']].'</a></li> 51 53 </ul> 52 54 </div> … … 55 57 <ul>'; 56 58 foreach ($CONF['languages'] as $key => $name) { 57 echo '<li><a class="lang" href="index.php?Lang='.$key.'" title="'.$name.'"><img src="language/'.$key.'/ '.$key.'.png" alt="'.$name.'"/> '.$name.'</a></li>';59 echo '<li><a class="lang" href="index.php?Lang='.$key.'" title="'.$name.'"><img src="language/'.$key.'/flag.png" alt="'.$name.'"/> '.$name.'</a></li>'; 58 60 } 59 61 echo ' </ul> -
extensions/PHP_Optimisateur/include/main.php
r9633 r10337 17 17 $path = $dir.'/'.$file; 18 18 $new_path = $dir.'/'.delete_special_car($file); 19 rename($path, $new_path); 19 20 if ($path != $new_path) { 21 rename_log($path, $new_path); 22 } 20 23 21 24 if (is_dir($new_path)) { … … 47 50 48 51 $CONF['convOptions'] = '-ratio -rtype lanczos -rflag decr'; 49 $CONF[' JPGexts'] = array('jpg', 'JPG'); // extensions admises pour le jpg52 $CONF['allowedExt'] = array('jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff'); 50 53 51 54 … … 68 71 // Boucle sur tous les fichiers 69 72 for ($i=0; $i<count($FilesSource); $i++) { 70 // Découpe le nom de fichier : dossier/fichier 71 preg_match('#(.*)/(.*).((?i)[a-z0-9]{3,4})$#', $FilesSortie[$i], $matches); 72 $FileFolder = $matches[1].'/'; // dossier de sortie 73 $FileName = $matches[2]; // nom final 74 $FileExt = $matches[3]; // extension orginale 75 73 // Découpe le nom de fichier : dossier/fichier/extension 74 preg_match('#^(.*)/(.*)\.([a-z0-9]{2,4})$#', $FilesSource[$i], $matches); 75 $file['folder_src'] = $matches[1].'/'; // dossier d'entrée 76 $file['folder_out'] = str_replace($CONF['DIRsource'], $CONF['DIRsortie'], $file['folder_src']); // dossier de sortie 77 $file['name'] = $matches[2]; // nom final 78 $file['ext'] = $matches[3]; // extension orginale 79 76 80 // Crée les sous-dossiers de sortie & 'pwg_high' & 'thumbnail' 77 if (!file_exists($ FileFolder.'pwg_high') AND $CONF['DIRhighORNOT']) {78 mkdir ($FileFolder.'pwg_high', 0777, true);81 if (!file_exists($file['folder_out'].'pwg_high') AND $CONF['DIRhighORNOT']) { 82 mkdir_log($file['folder_out'].'pwg_high'); 79 83 } 80 if (!file_exists($ FileFolder.'thumbnail')) {81 mkdir ($FileFolder.'thumbnail', 0777, true);84 if (!file_exists($file['folder_out'].'thumbnail')) { 85 mkdir_log($file['folder_out'].'thumbnail'); 82 86 } 83 87 84 // Informations sur le fichier 85 exec('include\nconvert.exe -info "'.$FilesSource[$i].'"', $FileInfos); 86 for ($m=0; $m<=5; $m++) { 87 unset($FileInfos[$m]); 88 if (!in_arrayi($file['ext'], $CONF['allowedExt'])) { 89 $BlockAll['main'] = true; 90 $LOG[] = 'Not image file : '.$FilesSource[$i]; 88 91 } 89 foreach ($FileInfos as $key) { 90 $a = explode(':', $key); 91 $FileInfos[trim($a[0])] = trim($a[1]); 92 93 if (!isset($BlockAll)) { 94 // Informations sur le fichier 95 exec('include\nconvert.exe -info "'.$FilesSource[$i].'"', $FileInfos); 96 97 for ($m=0; $m<=5; $m++) { 98 unset($FileInfos[$m]); 99 } 100 foreach ($FileInfos as $key) { 101 if ($key != '') { 102 $a = explode(':', $key); 103 $FileInfos[trim($a[0])] = trim($a[1]); 104 } 105 } 92 106 } 93 107 … … 107 121 108 122 // Compresse les fichiers dans le dossier de sortie 109 if (!isset($BlockNormal) ) {110 exec('include\nconvert.exe -q '.$CONF['Qnormal'].' -out jpeg -o "'.$FileFolder.$FileName.'.jpg" -dpi 72 '.$CONF['convOptions'].' -resize '.$CONF['DIMnormal'].' '.$CONF['DIMnormal'].' '.$CONF['copyNormal'].' "'.$FilesSource[$i].'"');123 if (!isset($BlockNormal) AND !isset($BlockAll)) { 124 nconvert('-q '.$CONF['Qnormal'].' -out jpeg -o "'.$file['folder_out'].$file['name'].'.jpg" -dpi 72 '.$CONF['convOptions'].' -resize '.$CONF['DIMnormal'].' '.$CONF['DIMnormal'].' '.$CONF['copyNormal'].' "'.$FilesSource[$i].'"'); 111 125 } 112 if (!isset($BlockThumbnail) ) {113 exec('include\nconvert.exe -q '.$CONF['Qthumbnail'].' -out jpeg -o "'.$FileFolder.'thumbnail/'.$CONF['prefixe_mini'].$FileName.'.jpg" -dpi 72 '.$CONF['convOptions'].' -resize '.$CONF['DIMthumbnail'].' '.$CONF['DIMthumbnail'].' -rmeta -rexifthumb "'.$FilesSource[$i].'"');126 if (!isset($BlockThumbnail) AND !isset($BlockAll)) { 127 nconvert('-q '.$CONF['Qthumbnail'].' -out jpeg -o "'.$file['folder_out'].'thumbnail/'.$CONF['prefixe_mini'].$file['name'].'.jpg" -dpi 72 '.$CONF['convOptions'].' -resize '.$CONF['DIMthumbnail'].' '.$CONF['DIMthumbnail'].' -rmeta -rexifthumb "'.$FilesSource[$i].'"'); 114 128 } 115 if (!isset($BlockHigh) AND $CONF['DIRhighORNOT'] ) {129 if (!isset($BlockHigh) AND $CONF['DIRhighORNOT'] AND !isset($BlockAll)) { 116 130 if ($CONF['DIMhdORNOT']) { 117 exec('include\nconvert.exe -q '.$CONF['Qhd'].' -out jpeg -o "'.$FileFolder.'pwg_high/'.$FileName.'.jpg" -dpi '.$CONF['DPI'].' '.$CONF['convOptions'].' -resize '.$CONF['DIMhd'].' '.$CONF['DIMhd'].' '.$CONF['copyHD'].' "'.$FilesSource[$i].'"');118 } else if ( !in_array($FileExt, $CONF['JPGexts'])) {119 exec('include\nconvert.exe -q '.$CONF['Qhd'].' -out jpeg -o "'.$FileFolder.'pwg_high/'.$FileName.'.jpg" "'.$FilesSource[$i].'"');131 nconvert('-q '.$CONF['Qhd'].' -out jpeg -o "'.$file['folder_out'].'pwg_high/'.$file['name'].'.jpg" -dpi '.$CONF['DPI'].' '.$CONF['convOptions'].' -resize '.$CONF['DIMhd'].' '.$CONF['DIMhd'].' '.$CONF['copyHD'].' "'.$FilesSource[$i].'"'); 132 } else if (strtolower($file['ext']) != 'jpg') { 133 nconvert('-q '.$CONF['Qhd'].' -out jpeg -o "'.$file['folder_out'].'pwg_high/'.$file['name'].'.jpg" "'.$FilesSource[$i].'"'); 120 134 } else { 121 copy ($FilesSource[$i], $FileFolder.'pwg_high/'.$FileName.'.jpg');135 copy_log($FilesSource[$i], $file['folder_out'].'pwg_high/'.$file['name'].'.jpg'); 122 136 } 123 137 } 124 138 125 // Réinitialise les bloqueurs 126 unset($FileInfos); 127 unset($BlockNormal); 128 unset($BlockThumbnail); 129 unset($BlockHigh); 139 // Réinitialise les variables 140 unset($file, $FileInfos, $BlockNormal, $BlockThumbnail, $BlockHigh, $BlockAll); 141 $LOG[] = "\r\n"; 130 142 } 131 143 … … 139 151 rmdir($dir); 140 152 } else if ($CONF['indexORNOT']) { 141 copy ('include/index.php', $dir.'/index.php');153 copy_log('include/index.php', $dir.'/index.php'); 142 154 } 143 155 } -
extensions/PHP_Optimisateur/include/save_config.php
r9201 r10337 2 2 // Quelques traitements 3 3 $_POST['copyPOS'] = implode('-', $_POST['copyPOS']); 4 $_POST['copyCOLOR'] = str_replace('#', '', $_POST['copyCOLOR']);4 $_POST['copyCOLOR'] = str_replace('#', null, $_POST['copyCOLOR']); 5 5 $_POST['prefixe_mini'] = delete_special_car($_POST['prefixe_mini']); 6 if (!preg_match('#(.*)/$#', $_POST['DIRsource'])) $_POST['DIRsource'] .='/';7 if (!preg_match('#(.*)/$#', $_POST['DIRsortie'])) $_POST['DIRsortie'] .='/';6 $_POST['DIRsource'] = rtrim($_POST['DIRsource'], '/') . '/'; 7 $_POST['DIRsortie'] = rtrim($_POST['DIRsortie'], '/') . '/'; 8 8 9 9 // Vérifications 10 10 if (!is_decimal($_POST['Qhd']) OR $_POST['Qhd'] > 100) { 11 11 $_POST['Qhd'] = 100; 12 $E rrors['ErrorConfig'] = 'notice';12 $ERRORS['conf'][] = array(l10n('Qhd'), 'must_be_integer_100'); 13 13 } 14 14 if (!is_decimal($_POST['Qnormal']) OR $_POST['Qnormal'] > 100) { 15 15 $_POST['Qnormal'] = 100; 16 $E rrors['ErrorConfig'] = 'notice';16 $ERRORS['conf'][] = array(l10n('Qnormal'), 'must_be_integer_100'); 17 17 } 18 18 if (!is_decimal($_POST['Qthumbnail']) OR $_POST['Qthumbnail'] > 100) { 19 19 $_POST['Qthumbnail'] = 100; 20 $E rrors['ErrorConfig'] = 'notice';20 $ERRORS['conf'][] = array(l10n('Qthumbnail'), 'must_be_integer_100'); 21 21 } 22 22 if (!is_decimal($_POST['DIMhd'])) { 23 23 $_POST['DIMhd'] = 2560; 24 $E rrors['ErrorConfig'] = 'notice';24 $ERRORS['conf'][] = array(l10n('DIMhd'), 'must_be_integer'); 25 25 } 26 26 if (!is_decimal($_POST['DIMnormal']) OR $_POST['DIMnormal'] > $_POST['DIMhd']) { 27 27 $_POST['DIMnormal'] = 800; 28 $E rrors['ErrorConfig'] = 'notice';28 $ERRORS['conf'][] = array(l10n('DIMnormal'), 'must_be_integer'); 29 29 } 30 30 if (!is_decimal($_POST['DIMthumbnail']) OR $_POST['DIMthumbnail'] > $_POST['DIMnormal']) { 31 31 $_POST['DIMthumbnail'] = 120; 32 $E rrors['ErrorConfig'] = 'notice';32 $ERRORS['conf'][] = array(l10n('DIMthumbnail'), 'must_be_integer'); 33 33 } 34 34 if (!is_decimal($_POST['DPI'])) { 35 35 $_POST['DPI'] = 72; 36 $Errors['ErrorConfig'] = 'notice'; 36 $ERRORS['conf'][] = array(l10n('DPI'), 'must_be_integer'); 37 } 38 if (!is_decimal($_POST['copySIZE'])) { 39 $_POST['copySIZE'] = 0.05; 40 $ERRORS['conf'][] = array(l10n('copySIZE'), 'must_be_decimal'); 37 41 } 38 42 … … 49 53 } 50 54 55 56 // écrase la configuration 57 unset($_POST['submit']); 58 $CONF = array_merge($CONF, array_settype($_POST)); 59 51 60 // Contenu du fichier 52 61 $content = '<?xml version="1.0" encoding="UTF-8"?>'."\r\n".'<config>'."\r\n"; … … 55 64 file_put_contents('config.xml', $content); 56 65 57 if ( isset($Errors['ErrorConfig'])) {58 header('Location:index.php?page=setup&ErrorConfig='.$Errors['ErrorConfig']);59 } else { 60 header('Location:index.php');66 if (!isset($ERRORS['conf'])) { 67 // header('Location:index.php'); 68 $PAGE['header'] .= '<meta http-equiv="refresh" content="3;url=index.php">'; 69 $PAGE['end'] .= '<div class="generic finish">'.l10n('Saved').'</div>'; 61 70 } 71 62 72 ?> -
extensions/PHP_Optimisateur/include/setup.php
r9276 r10337 27 27 $CONF['copyCOLOR'] = nice_hex_color($CONF['copyCOLOR']); 28 28 29 $PAGE _CONTENT[0] .= '<form action="index.php?page=setup" method="post">29 $PAGE['content'] .= '<form action="index.php?page=setup" method="post"> 30 30 <div class="generic config"> 31 31 <h2>'.l10n('Configuration').'</h2> … … 212 212 213 213 foreach ($CONF['Plugins'] as $plugin_id => $plugin_config) { 214 $PAGE _CONTENT[0] .= '<li>214 $PAGE['content'] .= '<li> 215 215 <div class="plugin-title"> 216 216 <span class="title">'.$plugin_config['name'].' :</span> … … 220 220 // Cas spéciaux dans le titre (nouveau, manquant) 221 221 if (isset($NewPlugins[$plugin_id])) { 222 $PAGE _CONTENT[0] .= ' <b class="new">'.l10n('New !').'</b>';222 $PAGE['content'] .= ' <b class="new">'.l10n('New !').'</b>'; 223 223 } else if (isset($MissingPlugins[$plugin_id])) { 224 $PAGE _CONTENT[0] .= ' <b class="miss">'.l10n('Missing !').'</b>';224 $PAGE['content'] .= ' <b class="miss">'.l10n('Missing !').'</b>'; 225 225 } 226 226 227 227 // Si il est manquant on ne met que la checkbox de suppression, sinon boutons d'activation 228 $PAGE _CONTENT[0] .= '<span class="plugin-active">';228 $PAGE['content'] .= '<span class="plugin-active">'; 229 229 if (isset($MissingPlugins[$plugin_id])) { 230 $PAGE _CONTENT[0] .= '<label><input type="checkbox" name="Plugins['.$plugin_id.'][delete]" value="true" checked="checked"/> '.l10n('erase').'</label>';230 $PAGE['content'] .= '<label><input type="checkbox" name="Plugins['.$plugin_id.'][delete]" value="true" checked="checked"/> '.l10n('erase').'</label>'; 231 231 } else { 232 $PAGE _CONTENT[0] .= '<input type="radio" id="" id="active-'.$plugin_id.'" name="Plugins['.$plugin_id.'][active]" value="true" '.(($plugin_config['active'])?'checked="checked"':'').'/>232 $PAGE['content'] .= '<input type="radio" id="" id="active-'.$plugin_id.'" name="Plugins['.$plugin_id.'][active]" value="true" '.(($plugin_config['active'])?'checked="checked"':'').'/> 233 233 <label for="active-'.$plugin_id.'">'.l10n('Active').'</label> 234 234 <input type="radio" id="" id="inactive-'.$plugin_id.'"name="Plugins['.$plugin_id.'][active]" value="false" '.((!$plugin_config['active'])?'checked="checked"':'').'/> 235 235 <label for="inactive-'.$plugin_id.'">'.l10n('Inactive').'</label>'; 236 236 } 237 $PAGE _CONTENT[0] .= '</span>237 $PAGE['content'] .= '</span> 238 238 239 239 </div>'; … … 244 244 include('plugins/'.$plugin_id.'/setup.php'); 245 245 } 246 $PAGE _CONTENT[0] .= '</li>';246 $PAGE['content'] .= '</li>'; 247 247 } 248 248 249 $PAGE _CONTENT[0] .= '</ul>249 $PAGE['content'] .= '</ul> 250 250 </div>'; 251 251 252 252 253 $PAGE _CONTENT[2] .= '<div class="generic link">254 <input type="submit" value="'.l10n('Valid').'"/>253 $PAGE['end'] .= '<div class="generic link"> 254 <input type="submit" name="submit" value="'.l10n('Valid').'"/> 255 255 <input type="reset" onclick="location.href=\'index.php\'" value="'.l10n('Back').'"/> 256 256 </div>
Note: See TracChangeset
for help on using the changeset viewer.