示例#1
0
$sfile = DISCUZ_ROOT . './source/' . $source . '/setting.ini';
if (!submitcheck('submit')) {
    show_form_header();
    show_table_header();
    show_table_row(array(array('colspan="3"', '编辑配置文件 source/' . $source . '/setting.ini')), 'title');
    foreach ($setting as $key => $value) {
        if (is_array($value) && !empty($value)) {
            show_table_row(array(array('colspan="3" align="left"', '<strong>[' . $key . ']<strong>')), 'bg1');
            $disabled = in_array($key, array('program', 'config', 'steps', 'start', 'tablecheck')) ? ' disabled readonly' : '';
            foreach ($value as $k => $v) {
                show_table_row(array(lang($k), array('class="bg2" width="70%"', '<input type="text" size="40" name="newsetting[' . $key . '][' . $k . ']" value="' . htmlspecialchars($v) . '"' . $disabled . '>' . ($disabled ? ' 只读' : ''))), 'bg2');
            }
        }
    }
    show_table_footer();
    show_form_footer('submit', lang('submit'));
} else {
    $newsetting = getgpc('newsetting');
    if (is_array($newsetting)) {
        $lines = file($sfile);
        foreach ($lines as $num => $line) {
            $lines[$num] = $line = trim($line);
            $check = substr($line, 0, 1);
            if ($check !== '' && $check != ';') {
                if ($check == '[') {
                    $group = trim(str_replace(array('[', ']'), '', $line));
                } elseif ($group != '') {
                    list($key, $val) = explode('=', $line);
                    $key = trim($key);
                    if (isset($newsetting[$group][$key])) {
                        if (is_numeric($newsetting[$group][$key])) {
            if (!empty($newconfig[$key]['dbhost'])) {
                $check = mysql_connect_test($newconfig[$key], $key);
                if ($check < 0) {
                    $error[$key] = lang('mysql_connect_error_' . abs($check));
                }
            } else {
                $error[$key] = lang('mysql_config_error');
            }
        }
        save_config_file($configfile, $newconfig, $config_default);
        if (empty($error)) {
            $db_target = new db_mysql($newconfig['target']);
            $db_target->connect();
            delete_process('all');
            showmessage('config_success', 'index.php?a=select&source=' . $source);
        }
    }
}
showtips('如果无法显示设置项目,请删除文件 data/config.inc.php');
$config = loadconfig('config.inc.php');
if (empty($config)) {
    $config = $config_default;
}
show_form_header();
show_config_input('source', $config['source'], $error['source']);
show_config_input('target', $config['target'], $error['target']);
if ($setting['config']['ucenter']) {
    show_config_input('ucenter', $config['ucenter'], $error['ucenter']);
}
show_form_footer('submit', 'config_save');
示例#3
0
    $category = "\n<select name=\"cat\" class=\"categoryselect\">\n";
    $category .= "<option value=\"0\">" . $lang['all_categories'] . "</option>\n";
    $category .= "<option value=\"0\">-------------------------------</option>\n";
    $drop_down_cat_cache = array();
    $drop_down_cat_cache = $cat_parent_cache;
    $category .= get_category_dropdown_bits($cat_id);
    $category .= "</select>\n";
    show_form_header("files_check.php", "checkimages");
    show_table_header("Files Check", 2);
    show_custom_row("Category", $category);
    show_radio_row("Include sub-categories", "subcat", 1);
    show_input_row("Number of images to do per cycle", "imchksize", 50, 5);
    show_radio_row("Check Remote Files", "local", 1);
    show_radio_row("Check Thumbnails", "thumbs", 1);
    show_radio_row("Include automatic JavaScript redirect to next page", "autoredirect", 1);
    show_form_footer($lang['submit'], $lang['reset'], 2);
}
if ($action == "checkimages") {
    if (isset($HTTP_GET_VARS['cat']) || isset($HTTP_POST_VARS['cat'])) {
        $cat = isset($HTTP_GET_VARS['cat']) ? intval($HTTP_GET_VARS['cat']) : intval($HTTP_POST_VARS['cat']);
    } else {
        $cat = 0;
    }
    if (isset($HTTP_GET_VARS['subcat']) || isset($HTTP_POST_VARS['subcat'])) {
        $subcat = isset($HTTP_GET_VARS['subcat']) ? intval($HTTP_GET_VARS['subcat']) : intval($HTTP_POST_VARS['subcat']);
    } else {
        $subcat = 0;
    }
    if ($cat) {
        $cats = array($cat);
        if ($subcat) {
示例#4
0
         echo "<td>" . $show_user_name . "</td>\n";
         $show_image = "<a href=\"" . $site_sess->url(ROOT_PATH . "details.php?" . URL_IMAGE_ID . "=" . $comment_row['image_id']) . "\" target=\"_blank\">" . format_text($comment_row['image_name'], 2) . "</a> (ID: " . $comment_row['image_id'] . ")";
         echo "<td>" . $show_image . "</td>\n";
         echo "<td>" . format_date($config['date_format'] . " " . $config['time_format'], $comment_row['comment_date']) . "</td>\n";
         echo "<td><p>";
         show_text_link($lang['edit'], "comments.php?action=editcomment&comment_id=" . $comment_row['comment_id']);
         show_text_link($lang['delete'], "comments.php?action=removecomment&comment_id=" . $comment_row['comment_id']);
         echo "</p></td>\n";
         echo "</tr>\n";
     }
     echo "<tr class=\"tablefooter\">\n<td colspan=\"6\" align=\"left\">\n&nbsp;";
     echo "<input type=\"submit\" value=\"  " . $lang['delete'] . "   \" class=\"button\">\n";
     echo "&nbsp;\n</td>\n</tr>\n</table>\n</td>\n</tr>\n</table>\n</form>\n";
 } else {
     show_description_row($lang['no_search_results'], 6);
     show_form_footer("", "");
 }
 echo "<div align=\"right\">";
 echo "<form action=\"" . $site_sess->url("comments.php") . "\" name=\"form2\" method=\"post\">\n";
 if ($limitnumber != 5000 && $limitfinish < $countcomments['comments']) {
     show_hidden_input("action", "findcomments");
     show_hidden_input("image_id", $image_id);
     show_hidden_input("image_name", $image_name, 1);
     show_hidden_input("user_name", $user_name, 1);
     show_hidden_input("comment_headline", $comment_headline, 1);
     show_hidden_input("comment_text", $comment_text, 1);
     show_hidden_input("dateafter", $dateafter);
     show_hidden_input("datebefore", $datebefore);
     show_hidden_input("orderby", $orderby, 1);
     show_hidden_input("direction", $direction, 1);
     show_hidden_input("limitstart", $limitstart + $limitnumber + 1);
示例#5
0
     }
 }
 show_form_header("backup.php", "makebackup");
 show_table_header($lang['do_backup'], 2);
 $table_select = "<select name=\"db_tables[]\" size=\"10\" multiple>\n";
 $result = $site_db->query("SHOW tables");
 while ($row = $site_db->fetch_array($result)) {
     $table_select .= "<option value=\"" . $row[0] . "\"";
     if (in_array($row[0], $default_tables) && preg_match("/^" . $table_prefix . "/i", $row[0])) {
         $table_select .= " selected";
     }
     $table_select .= ">" . $row[0] . "</option>\n";
 }
 $table_select .= "</select>\n";
 show_custom_row($lang['do_backup_desc'] . $db_status, $table_select);
 show_form_footer($lang['do_backup'], $lang['reset']);
 show_table_header($lang['list_backups'], 4);
 $handle = opendir(ROOT_PATH . DATABASE_DIR);
 $filelist = array();
 while ($file = @readdir($handle)) {
     if (is_file(ROOT_PATH . DATABASE_DIR . "/" . $file) && $file != "." && $file != ".." && preg_match("/\\.sql/i", $file)) {
         $filelist[] = $file;
     }
 }
 closedir($handle);
 if (!empty($filelist)) {
     rsort($filelist);
     foreach ($filelist as $key => $file) {
         echo "<tr class=\"" . get_row_bg() . "\" width=\"30%\">\n<td><p class=\"rowtitle\">{$file}</p></td>\n";
         $file_time = format_date($config['date_format'] . " " . $config['time_format'], filemtime(ROOT_PATH . DATABASE_DIR . "/" . $file));
         echo "<td>" . $file_time . "</td>";
示例#6
0
    echo "</ul>\n</td></tr>";
}
$tablelist = array();
$cdir = dir($prgdir);
while (($entry = $cdir->read()) !== false) {
    if ($entry != '.' && $entry != '..' && is_file($prgdir . $entry)) {
        $tablelist[] = $entry;
    }
}
$cdir->close();
if ($tablelist) {
    sort($tablelist);
    show_table_row(array('<span style="float: left">' . lang('update', 'table_convert') . '</span>'), 'bg1');
    echo "<tr class=bg2><td colspan=2>\n<ul id=\"ulist\">";
    foreach ($tablelist as $entry) {
        echo "<li><label><input type=\"checkbox\" class=\"checkbox\" name=\"prgs[]\" value=\"{$entry}\" checked>&nbsp;" . basename($entry, '.php') . "</label></li>";
    }
    echo "</ul>\n</td></tr>";
}
if ($setting['steps']) {
    show_table_row(array(lang('update', 'other_convert')), 'bg1');
    echo "<tr class=bg2><td colspan=2>\n<ul id=\"ulist\">";
    foreach ($setting['steps'] as $key => $value) {
        echo "<li><label><input type=\"checkbox\" class=\"checkbox\" name=\"prgs[]\" value=\"s_prg_{$key}.php\" checked>&nbsp;{$key}({$value})</label></li>";
    }
    echo "</ul>\n</td></tr>";
}
show_table_footer();
show_form_footer('submit', lang('update', 'start_conversion'));
showfooter();
exit;
示例#7
0
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
$nozip = 1;
define('IN_CP', 1);
$root_path = false === stristr($_SERVER['PHP_SELF'], "/plugins/") ? "./../" : "./../../";
define('ROOT_PATH', $root_path);
require ROOT_PATH . 'admin/admin_global.php';
if ($config['language_dir'] == 'deutsch') {
    $lang_clear_cache = 'Cache leeren';
    $lang_clear_confirm = 'Wollen Sie das Cache-Verzeichnis leeren (%s)?';
    $lang_clear_success = 'Cache-Verzeichnis geleert';
} else {
    $lang_clear_cache = 'Clear Cache';
    $lang_clear_confirm = 'Do you want to clear the cache directory (%s)?';
    $lang_clear_success = 'Cache directory cleared';
}
show_admin_header();
if ($action == "clearcache") {
    @set_time_limit(0);
    clear_cache();
    $msg = $lang_clear_success;
}
if ($msg != "") {
    printf("<b>%s</b>\n", $msg);
}
show_form_header($HTTP_SERVER_VARS['PHP_SELF'], "clearcache");
show_table_header($lang_clear_cache);
show_description_row(sprintf($lang_clear_confirm, realpath($cache_path)));
show_form_footer($lang['submit'], "");
show_admin_footer();
示例#8
0
    }
}
if ($action == "addusers") {
    if (isset($HTTP_GET_VARS['num_newusers']) || isset($HTTP_POST_VARS['num_newusers'])) {
        $num_newusers = isset($HTTP_GET_VARS['num_newusers']) ? intval($HTTP_GET_VARS['num_newusers']) : intval($HTTP_POST_VARS['num_newusers']);
    } else {
        $num_newusers = 1;
    }
    if ($msg != "") {
        printf("<b>%s</b>\n", $msg);
    }
    show_form_header("users.php", "saveusers", "form", 1);
    show_table_header($lang['nav_users_add'], 2);
    show_num_select_row("&nbsp;", "num_newusers", $lang['num_newusers_desc']);
    for ($i = 1; $i <= $num_newusers; $i++) {
        show_table_separator($lang['user'] . " " . $i, 2);
        show_userlevel_select_row($lang['field_userlevel'], "user_level_" . $i);
        show_input_row($lang['field_username'], "user_name_" . $i, "", $textinput_size);
        show_input_row($lang['field_email'], "user_email_" . $i, "", $textinput_size);
        show_input_row($lang['field_password'], "user_password_" . $i, "", $textinput_size);
        show_input_row($lang['field_homepage'], "user_homepage_" . $i, "", $textinput_size);
        show_input_row($lang['field_icq'], "user_icq_" . $i, "", $textinput_size);
        show_radio_row($lang['field_showemail'], "user_showemail_" . $i, 0);
        show_radio_row($lang['field_allowemails'], "user_allowemails_" . $i, 1);
        show_radio_row($lang['field_invisible'], "user_invisible_" . $i, 0);
        show_additional_fields("user", array(), USERS_TABLE, $i);
    }
    show_hidden_input("num_newusers", $num_newusers);
    show_form_footer($lang['add'], $lang['reset'], 2);
}
show_admin_footer();
示例#9
0
    $select = "<select name=\"emails[]\" size=\"15\" multiple=\"multiple\">\n";
    $sql = "SELECT " . get_user_table_field("", "user_id") . get_user_table_field(", ", "user_level") . get_user_table_field(", ", "user_name") . get_user_table_field(", ", "user_email") . "\n          FROM " . USERS_TABLE . "\n          WHERE " . get_user_table_field("", "user_id") . " <> " . GUEST . " AND " . get_user_table_field("", "user_allowemails") . " = 1\n          ORDER BY " . get_user_table_field("", "user_level") . " DESC";
    $result = $site_db->query($sql);
    $level = 1000;
    while ($row = $site_db->fetch_array($result)) {
        $user_level = $row[$user_table_fields['user_level']];
        if ($level != $user_level && $user_level == ADMIN) {
            $select .= "<option value=\"0\">__________________________</option>\n";
            $select .= "<option value=\"0\" class=\"dropdownmarker\">" . $lang['userlevel_admin'] . "</option>\n";
        } elseif ($level != $user_level && $user_level == USER) {
            $select .= "<option value=\"0\">__________________________</option>\n";
            $select .= "<option value=\"0\" class=\"dropdownmarker\">" . $lang['userlevel_registered'] . "</option>\n";
        } elseif ($level != $user_level && $user_level == USER_AWAITING) {
            $select .= "<option value=\"0\">__________________________</option>\n";
            $select .= "<option value=\"0\" class=\"dropdownmarker\">" . $lang['userlevel_registered_awaiting'] . "</option>\n";
        }
        $user_email = $row[$user_table_fields['user_email']];
        $user_name = $row[$user_table_fields['user_name']];
        $selected = isset($HTTP_POST_VARS['emails']) && !in_array($user_email, $HTTP_POST_VARS['emails']) ? "" : " selected=\"selected\"";
        $select .= "<option value=\"" . $user_email . "\"" . $selected . ">&raquo; " . format_text($user_name, 2) . " (" . $user_email . ")</option>\n";
        $level = $user_level;
    }
    $select .= "</select>\n";
    $title = $lang['select_email_user'];
    if (isset($error['emails'])) {
        $title = sprintf("<span class=\"marktext\">%s *</span>", $title);
    }
    show_custom_row($title, $select);
    show_form_footer($lang['send_emails'], "", 2);
}
show_admin_footer();
示例#10
0
            $table_source = str_replace('.php', '', $db_source->tablepre . $entry);
            $source_exist = $db_source->result_first("SHOW TABLES LIKE '" . substr($table_source, strpos($table_source, '.') + 1) . "'");
            if (empty($source_exist)) {
                continue;
            }
        }
        $tablelist[] = $entry;
    }
}
$cdir->close();
if ($tablelist) {
    sort($tablelist);
    show_table_row(array('<span style="float: left">数据表转换程序</span>'), 'bg1');
    echo "<tr class=bg2><td colspan=2>\n<ul id=\"ulist\">";
    foreach ($tablelist as $entry) {
        echo "<li><label><input type=\"checkbox\" class=\"checkbox\" name=\"prgs[]\" value=\"{$entry}\" checked>&nbsp;" . basename($entry, '.php') . "</label></li>";
    }
    echo "</ul>\n</td></tr>";
}
if ($setting['steps']) {
    show_table_row(array('其他辅助转换程序'), 'bg1');
    echo "<tr class=bg2><td colspan=2>\n<ul id=\"ulist\">";
    foreach ($setting['steps'] as $key => $value) {
        echo "<li><label><input type=\"checkbox\" class=\"checkbox\" name=\"prgs[]\" value=\"s_prg_{$key}.php\" checked>&nbsp;{$key}({$value})</label></li>";
    }
    echo "</ul>\n</td></tr>";
}
show_table_footer();
show_form_footer('submit', '开始转换');
showfooter();
exit;
示例#11
0
    show_form_header();
    show_table_header();
    show_table_row(array(array('colspan="3"', lang('config_usergroup'))), 'header title');
    //vot
    show_table_row(array(lang('config_from_usergroup'), array('class="bg1" width="10%" align="center"', '->'), lang('config_target_usergroup')));
    foreach ($sourcegroup as $key => $value) {
        $addmsg = $error && $key == 'dbhost' ? lang($error) : '';
        //vot
        $key = intval($key);
        show_table_row(array(array('class="bg2" width="45%"', $value), array('class="bg1" width="10%" align="center"', '->'), array('class="bg2" width="45%"', '<select name="targetgroup[' . $key . ']">' . $targetoption . '</select>')), 'bg1');
    }
    show_table_footer();
    echo '<br/>';
    show_table_header();
    show_table_row(array(array('colspan="3"', lang('config_extcredits'))), 'header title');
    //vot
    show_table_row(array(lang('config_from_credit'), array('class="bg1" width="10%" align="center"', '->'), lang('config_target_credit')));
    show_table_row(array(array('class="bg2" width="45%"', lang('config_credit')), array('class="bg1" width="10%" align="center"', '->'), array('class="bg2" width="45%"', '<select name="extcredits[credit]">' . $extcredits . '</select>')), 'bg1');
    show_table_row(array(array('class="bg2" width="45%"', lang('config_experience')), array('class="bg1" width="10%" align="center"', '->'), array('class="bg2" width="45%"', '<select name="extcredits[experience]">' . $extcredits . '</select>')), 'bg1');
    show_table_footer();
    echo '<br/>';
    show_table_header();
    show_table_row(array(array('colspan="3"', lang('config_convert_forum'))), 'header title');
    //vot
    show_table_row(array(lang('config_from_data'), array('class="bg1" width="10%" align="center"', '->'), lang('config_target_forum')));
    show_table_row(array(array('class="bg2" width="45%"', lang('config_poll')), array('class="bg1" width="10%" align="center"', '->'), array('class="bg2" width="45%"', '<select name="forum[poll]"><option value="0" selected>' . lang('config_auto_create') . '</option>' . $forumoption . '</select>')), 'bg1');
    show_table_row(array(array('class="bg2" width="45%"', lang('config_event')), array('class="bg1" width="10%" align="center"', '->'), array('class="bg2" width="45%"', '<select name="forum[event]"><option value="0" selected>' . lang('config_auto_create') . '</option>' . $forumoption . '</select>')), 'bg1');
    show_table_footer();
    show_form_footer('submit', 'config_convert');
    exit;
}
示例#12
0
    $category .= "<option value=\"0\">" . $lang['main_category'] . "</option>\n";
    $category .= "<option value=\"0\">--------------</option>\n";
    $drop_down_cat_cache = array();
    $drop_down_cat_cache = $cat_parent_cache;
    $category .= get_category_dropdown_bits($cat_parent_id);
    $category .= "</select>\n";
    show_custom_row($lang['field_parent'], $category);
    if ($show_cat_order_dropdown) {
        show_custom_row($lang['cat_order'], get_cat_order_dropdown($cat_parent_id, $cat_row['cat_order']));
    }
    show_input_row($lang['field_hits'], "cat_hits", $cat_row['cat_hits'], 5);
    show_table_separator($lang['permissions'], 2);
    foreach ($access_field_array as $key => $val) {
        show_access_select($lang[$key], $key, $cat_row[$key]);
    }
    show_form_footer($lang['save_changes'], $lang['reset'], 2, $lang['back']);
}
if ($action == "modifycats") {
    $site_sess->set_session_var('back_url', $self_url);
    show_admin_header();
    if ($msg != "") {
        printf("<b>%s</b>\n<p>", $msg);
    } else {
        $msg = $site_sess->get_session_var('msg');
        if ($msg != "") {
            printf("<b>%s</b>\n<p>", $msg);
        }
        $site_sess->drop_session_var('msg');
    }
    if ($ser_map = $site_sess->get_session_var('map')) {
        $GLOBALS['map'] = unserialize($ser_map);
示例#13
0
$sfile = DISCUZ_ROOT . './source/' . $source . '/setting.ini';
if (!submitcheck('submit')) {
    show_form_header();
    show_table_header();
    show_table_row(array(array('colspan="3"', lang('update', 'edit_file') . ' source/' . $source . '/setting.ini')), 'title');
    foreach ($setting as $key => $value) {
        if (is_array($value) && !empty($value)) {
            show_table_row(array(array('colspan="3" align="left"', '<strong>[' . $key . ']<strong>')), 'bg1');
            $disabled = in_array($key, array('program', 'config', 'steps', 'start', 'tablecheck')) ? ' disabled readonly' : '';
            foreach ($value as $k => $v) {
                show_table_row(array(lang('update', $k), array('class="bg2" width="70%"', '<input type="text" size="40" name="newsetting[' . $key . '][' . $k . ']" value="' . htmlspecialchars($v) . '"' . $disabled . '>' . ($disabled ? lang('update', 'r/o') : ''))), 'bg2');
            }
        }
    }
    show_table_footer();
    show_form_footer('submit', lang('update', 'submit'));
} else {
    $newsetting = getgpc('newsetting');
    if (is_array($newsetting)) {
        $lines = file($sfile);
        foreach ($lines as $num => $line) {
            $lines[$num] = $line = trim($line);
            $check = substr($line, 0, 1);
            if ($check !== '' && $check != ';') {
                if ($check == '[') {
                    $group = trim(str_replace(array('[', ']'), '', $line));
                } elseif ($group != '') {
                    list($key, $val) = explode('=', $line);
                    $key = trim($key);
                    if (isset($newsetting[$group][$key])) {
                        if (is_numeric($newsetting[$group][$key])) {
示例#14
0
            }
            if ($image_counter == $num_newimages) {
                break;
            }
        }
    }
    if (empty($imgs)) {
        echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td class=\"tableborder\">\n<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";
        $bgcounter = 0;
        show_description_row($lang['no_search_results'], 4);
        show_table_footer();
    } else {
        show_form_header("thumbnailer.php", "createthumbnails", "form");
        echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td class=\"tableborder\">\n<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";
        echo "<tr class=\"tableseparator\">\n<td class=\"tableseparator\"><input name=allbox type=checkbox onClick=\"CheckAll();\" checked=\"checked\"></td>\n<td class=\"tableseparator\">" . $lang['field_image_name'] . "</td>\n<td class=\"tableseparator\">" . $lang['field_image_file'] . "</td>\n<td class=\"tableseparator\">" . $lang['field_category'] . "</td>\n</tr>\n";
        echo $imgs;
        show_table_separator($lang['convert_options'], 4);
        echo "<tr class=\"" . get_row_bg() . "\">\n<td colspan=\"2\"><p class=\"rowtitle\">" . $lang['convert_thumbnail_dimension'] . "</p></td>\n";
        echo "<td colspan=\"2\"><p><input type=\"text\" size=\"" . $textinput_size . "\" name=\"dimension\" value=\"" . $config['auto_thumbnail_dimension'] . "\"></p></td>\n</tr>\n";
        echo "<tr class=\"" . get_row_bg() . "\">\n<td colspan=\"2\" valign=\"top\"><p class=\"rowtitle\">" . $lang['resize_proportions_desc'] . "</p></td>\n";
        echo "<td colspan=\"2\"><p>";
        echo "<input type=\"radio\" name=\"resize_type\" value=\"1\" checked=\"checked\"> " . $lang['resize_proportionally'] . "<br />";
        echo "<input type=\"radio\" name=\"resize_type\" value=\"2\"> " . $lang['resize_fixed_width'] . "<br />";
        echo "<input type=\"radio\" name=\"resize_type\" value=\"3\"> " . $lang['resize_fixed_height'] . "<br />";
        echo "</p></td>\n</tr>\n";
        echo "<tr class=\"" . get_row_bg() . "\">\n<td colspan=\"2\"><p class=\"rowtitle\">" . $lang['convert_thumbnail_quality'] . "</p></td>\n";
        echo "<td colspan=\"2\"><p><input type=\"text\" size=\"" . $textinput_size . "\" name=\"quality\" value=\"" . $config['auto_thumbnail_quality'] . "\"></p></td>\n</tr>\n";
        show_form_footer($lang['create_thumbnails'], "", 4);
    }
}
show_admin_footer();
示例#15
0
if ($action == "modifytemplates") {
    if ($msg != "") {
        printf("<p><b>%s</b></p>\n", $msg);
    }
    show_table_header($lang['edit_templates'], 2);
    show_theme_select_row($lang['choose_theme']);
    if ($themes_found) {
        show_template_select_row($lang['choose_template'], $template_folder);
    }
    show_table_footer();
    if (!isset($content)) {
        $content = "";
    }
    show_form_header("templates.php", "savetemplate");
    show_table_header($lang['edit_template'] . ": " . $template_file_name, 1);
    echo "<tr class=\"tablerow\"><td>";
    ?>
  <style>
  .template_textarea {
    width: 100%;
  }
  </style>
  <?php 
    echo "<textarea name=\"content\" cols=\"60\" rows=\"30\" wrap=\"off\" class=\"template_textarea\">";
    echo htmlspecialchars($content);
    echo "</textarea>";
    show_hidden_input("template_file_name", $template_file_name);
    show_hidden_input("template_folder", $template_folder);
    show_form_footer($lang['save_changes'], "", 1);
}
show_admin_footer();
示例#16
0
                        $imgs .= "<td>" . $quality . "</td>";
                        $imgs .= "</tr>\n";
                        $imgs .= "<input type=\"hidden\" name=\"image_dimensions[" . $image_row['image_id'] . "]\" value=\"" . $image_info[0] . "x" . $image_info[1] . "\">";
                        $image_counter++;
                    }
                }
            }
            if ($image_counter == $num_newimages) {
                break;
            }
        }
    }
    if (empty($imgs)) {
        echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td class=\"tableborder\">\n<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";
        $bgcounter = 0;
        show_description_row($lang['no_search_results']);
        show_table_footer();
    } else {
        show_form_header("resizer.php", "resizeimages", "form");
        show_hidden_input("image_type", $image_type);
        show_hidden_input("height", $height);
        show_hidden_input("dimension", $dimension);
        show_hidden_input("resize_type", $resize_type);
        show_hidden_input("quality", $quality);
        echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td class=\"tableborder\">\n<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";
        echo "<tr class=\"tableseparator\">\n<td class=\"tableseparator\">\n<input name=\"allbox\" type=\"checkbox\" onClick=\"CheckAll();\" checked=\"checked\">\n</td>\n<td class=\"tableseparator\">" . $lang['field_image_file'] . "</td>\n<td class=\"tableseparator\">" . $lang['resize_org_size'] . "</td>\n<td class=\"tableseparator\">" . $lang['resize_new_size'] . "</td>\n<td class=\"tableseparator\">" . $lang['resize_new_quality'] . "</td>\n</tr>\n";
        echo $imgs;
        show_form_footer($lang['resize_start'], "", 5);
    }
}
show_admin_footer();
示例#17
0
                echo "<input type=\"radio\" name=\"image_active_" . $i . "\" value=\"1\"" . $c1 . "> " . $lang['yes'] . "&nbsp;&nbsp;&nbsp;\n";
                echo "<input type=\"radio\" name=\"image_active_" . $i . "\" value=\"0\"" . $c2 . "> " . $lang['no'] . " ";
                echo "</td>\n";
                echo "<td>" . $lang['field_allow_comments'] . ":<br />";
                if (isset($HTTP_POST_VARS['image_allow_comments_' . $i]) && $HTTP_POST_VARS['image_allow_comments_' . $i] == 0) {
                    $c1 = "";
                    $c2 = " checked=\"checked\"";
                } else {
                    $c1 = " checked=\"checked\"";
                    $c2 = "";
                }
                echo "<input type=\"radio\" name=\"image_allow_comments_" . $i . "\" value=\"1\"" . $c1 . "> " . $lang['yes'] . "&nbsp;&nbsp;&nbsp;\n";
                echo "<input type=\"radio\" name=\"image_allow_comments_" . $i . "\" value=\"0\"" . $c2 . "> " . $lang['no'] . " ";
                echo "</td>\n";
                echo "</tr>\n";
                //        show_hidden_input("user_id_".$i, $user_id);
            }
        }
    }
    if ($num_all_newimages) {
        show_hidden_input("max_dimension", $max_dimension);
        show_hidden_input("num_newimages", $num_newimages);
        show_hidden_input("detailed", $detailed);
        show_hidden_input("subcats", $subcats);
        show_hidden_input("mode", 1);
        show_form_footer($lang['add'], $lang['reset'], $colspan);
    } else {
        show_table_footer();
    }
}
show_admin_footer();
示例#18
0
            $table_source = str_replace('.php', '', $db_source->tablepre . $entry);
            $source_exist = $db_source->result_first("SHOW TABLES LIKE '" . substr($table_source, strpos($table_source, '.') + 1) . "'");
            if (empty($source_exist)) {
                continue;
            }
        }
        $tablelist[] = $entry;
    }
}
$cdir->close();
if ($tablelist) {
    sort($tablelist);
    show_table_row(array('<span style="float: left">數據表轉換程序</span>'), 'bg1');
    echo "<tr class=bg2><td colspan=2>\n<ul id=\"ulist\">";
    foreach ($tablelist as $entry) {
        echo "<li><label><input type=\"checkbox\" class=\"checkbox\" name=\"prgs[]\" value=\"{$entry}\" checked>&nbsp;" . basename($entry, '.php') . "</label></li>";
    }
    echo "</ul>\n</td></tr>";
}
if ($setting['steps']) {
    show_table_row(array('其他輔助轉換程序'), 'bg1');
    echo "<tr class=bg2><td colspan=2>\n<ul id=\"ulist\">";
    foreach ($setting['steps'] as $key => $value) {
        echo "<li><label><input type=\"checkbox\" class=\"checkbox\" name=\"prgs[]\" value=\"s_prg_{$key}.php\" checked>&nbsp;{$key}({$value})</label></li>";
    }
    echo "</ul>\n</td></tr>";
}
show_table_footer();
show_form_footer('submit', '開始轉換');
showfooter();
exit;