non mi sembra : ti posto il file visto che non è grandissimo
codice:<?php /************************* Coppermine Photo Gallery ************************ Copyright (c) 2003-2005 Coppermine Dev Team v1.1 originaly written by Gregory DEMAR This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ******************************************** Coppermine version: 1.3.3 $Source: /cvsroot/coppermine/stable/config.php,v $ $Revision: 1.13 $ $Author: gaugau $ $Date: 2005/04/19 03:17:10 $ **********************************************/ define('IN_COPPERMINE', true); define('CONFIG_PHP', true); require('include/init.inc.php'); require('include/sql_parse.php'); if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__); function form_label($text) { echo <<<EOT <tr> <td class="tableh2" colspan="2"> $text </td> </tr> EOT; } function form_input($text, $name) { global $CONFIG; $value = $CONFIG[$name]; echo <<<EOT <tr> <td width="60%" class="tableb"> $text </td> <td width="40%" class="tableb" valign="top"> <input type="text" maxlength="255" class="textinput" style="width: 100%" name="$name" value="$value"> </td> </tr> EOT; } function form_yes_no($text, $name) { global $CONFIG, $lang_yes, $lang_no; $value = $CONFIG[$name]; $yes_selected = $value ? 'checked="checked"' : ''; $no_selected = !$value ? 'checked="checked"' : ''; echo <<<EOT <tr> <td class="tableb"> $text </td> <td class="tableb" valign="top"> <input type="radio" id="{$name}1" name="$name" value="1" $yes_selected /><label for="{$name}1" class="clickable_option">$lang_yes</label> <input type="radio" id="{$name}0" name="$name" value="0" $no_selected /><label for="{$name}0" class="clickable_option">$lang_no</label> </td> </tr> EOT; } function form_img_pkg($text, $name) { global $CONFIG; $value = $CONFIG[$name]; $im_selected = ($value == 'im') ? 'selected' : ''; $gd1_selected = ($value == 'gd1') ? 'selected' : ''; $gd2_selected = ($value == 'gd2') ? 'selected' : ''; echo <<<EOT <tr> <td class="tableb"> $text </td> <td class="tableb" valign="top"> <select name="$name" class="listbox"> <option value="im" $im_selected>Image Magick</option> <option value="gd1" $gd1_selected>GD version 1.x</option> <option value="gd2" $gd2_selected>GD version 2.x</option> </select> </td> </tr> EOT; } function form_sort_order($text, $name) { global $CONFIG, $lang_config_php; $value = $CONFIG[$name]; $ta_selected = ($value == 'ta') ? 'selected' : ''; $td_selected = ($value == 'td') ? 'selected' : ''; $na_selected = ($value == 'na') ? 'selected' : ''; $nd_selected = ($value == 'nd') ? 'selected' : ''; $da_selected = ($value == 'da') ? 'selected' : ''; $dd_selected = ($value == 'dd') ? 'selected' : ''; echo <<<EOT <tr> <td class="tableb"> $text </td> <td class="tableb" valign="top"> <select name="$name" class="listbox"> <option value="ta" $ta_selected>{$lang_config_php['title_a']}</option> <option value="td" $td_selected>{$lang_config_php['title_d']}</option> <option value="na" $na_selected>{$lang_config_php['name_a']}</option> <option value="nd" $nd_selected>{$lang_config_php['name_d']}</option> <option value="da" $da_selected>{$lang_config_php['date_a']}</option> <option value="dd" $dd_selected>{$lang_config_php['date_d']}</option> </select> </td> </tr> EOT; } function form_charset($text, $name) { global $CONFIG; $charsets = array('Default' => 'language file', 'Arabic' => 'iso-8859-6', 'Baltic' => 'iso-8859-4', 'Central European' => 'iso-8859-2', 'Chinese Simplified' => 'euc-cn', 'Chinese Traditional' => 'big5', 'Cyrillic' => 'koi8-r', 'Greek' => 'iso-8859-7', 'Hebrew' => 'iso-8859-8-i', 'Icelandic' => 'x-mac-icelandic', 'Japanese' => 'euc-jp', 'Korean' => 'euc-kr', 'Maltese' => 'iso-8859-3', 'Thai' => 'windows-874 ', 'Turkish' => 'iso-8859-9', 'Unicode' => 'utf-8', 'Vietnamese' => 'windows-1258', 'Western' => 'iso-8859-1' ); $value = strtolower($CONFIG[$name]); echo <<<EOT <tr> <td class="tableb"> $text </td> <td class="tableb" valign="top"> <select name="$name" class="listbox"> EOT; foreach ($charsets as $country => $charset) { echo " <option value=\"$charset\" " . ($value == $charset ? 'selected' : '') . ">$country ($charset)</option>\n"; } echo <<<EOT </select> </td> </tr> EOT; } function form_language($text, $name) { global $CONFIG; $value = strtolower($CONFIG[$name]); $lang_dir = 'lang/'; $dir = opendir($lang_dir); while ($file = readdir($dir)) { if (is_file($lang_dir . $file) && strtolower(substr($file, -4)) == '.php') { $lang_array[] = strtolower(substr($file, 0 , -4)); } } closedir($dir); natcasesort($lang_array); echo <<<EOT <tr> <td class="tableb"> $text </td> <td class="tableb" valign="top"> <select name="$name" class="listbox"> EOT; foreach ($lang_array as $language) { echo " <option value=\"$language\" " . ($value == $language ? 'selected' : '') . ">" . ucfirst($language) . "</option>\n"; } echo <<<EOT </select> </td> </tr> EOT; } ..............

Rispondi quotando