Exemple #1
0
        //$import[$i]['upload']=1
        //$import[$i][filename]=filename
        //$import[$i][dir]=dir
        //$import[$i][post_date]
        //$import[$i][width]
        //$import[$i][height]
        //$import[$i][size]
        //$import[$i][exif]
        //$import[$i][type]
        $csn = import_tad_gallery($csn_menu, $new_csn, $_POST['all'], $_POST['import']);
        mk_rss_xml();
        mk_rss_xml($csn);
        header("location: index.php?csn={$csn}");
        break;
    default:
        echo import_form();
        break;
}
//tad_gallery編輯表單
function import_form()
{
    global $xoopsDB;
    $myts =& MyTextSanitizer::getInstance();
    //找出要匯入的圖
    if (is_dir(_TADGAL_UP_IMPORT_DIR)) {
        $pics = read_dir_pic(_TADGAL_UP_IMPORT_DIR);
        $total_size = sizef($pics['total_size']);
    }
    $post_max_size = ini_get('post_max_size');
    //$max_input_vars=ini_get('max_input_vars');
    $row = $_SESSION['bootstrap'] == '3' ? 'row' : 'row-fluid';
Exemple #2
0
    redirect_header('pkgadmin.php', 1, _AM_PKG_REGISTER);
    exit;
}
xoops_cp_header();
echo mystyle();
include 'mymenu.php';
switch ($op) {
    default:
        clear_get_cache(3600 * 48);
        check_packages();
        // checking regsiterd packages
        break;
    case 'pkgs':
        // package managiment
        echo "<fieldset>\n";
        import_form();
        $svr = get_update_server();
        if ($svr) {
            $src = array("{SERVER}");
            $dst = array($svr);
            echo "<p>" . str_replace($src, $dst, _AM_FETCH_DESCRIPTION) . "</p>";
        }
        echo "</fieldset>\n";
        reglist_packages();
        break;
    case 'detail':
        $view = isset($_GET['view']) ? $_GET['view'] : false;
        $new = isset($_GET['new']) ? intval($_GET['new']) : 0;
        detail_package(intval($_GET['pkgid']), $view, $new);
        break;
    case 'opts':