コード例 #1
0
ファイル: global.func.php プロジェクト: nanfs/lt
function column_copyconfig($foldername, $module, $id)
{
    global $anyid, $lang_columntip13, $lang, $db, $met_column;
    switch ($module) {
        case 1:
            $indexaddress = "../about/index.php";
            $newfile = ROOTPATH . $foldername . "/show.php";
            $address = "../about/show.php";
            Copyfile($address, $newfile);
            break;
        case 2:
            $indexaddress = "../news/index.php";
            $newfile = ROOTPATH . $foldername . "/news.php";
            $address = "../news/news.php";
            Copyfile($address, $newfile);
            $newfile = ROOTPATH . $foldername . "/shownews.php";
            $address = "../news/shownews.php";
            Copyfile($address, $newfile);
            break;
        case 3:
            $indexaddress = "../product/index.php";
            $newfile = ROOTPATH . $foldername . "/product.php";
            $address = "../product/product.php";
            Copyfile($address, $newfile);
            $newfile = ROOTPATH . $foldername . "/showproduct.php";
            $address = "../product/showproduct.php";
            Copyfile($address, $newfile);
            break;
        case 4:
            $indexaddress = "../download/index.php";
            $newfile = ROOTPATH . $foldername . "/download.php";
            $address = "../download/download.php";
            Copyfile($address, $newfile);
            $newfile = ROOTPATH . $foldername . "/showdownload.php";
            $address = "../download/showdownload.php";
            Copyfile($address, $newfile);
            $newfile = ROOTPATH . $foldername . "/down.php";
            $address = "../download/down.php";
            Copyfile($address, $newfile);
            break;
        case 5:
            $indexaddress = "../img/index.php";
            $newfile = ROOTPATH . $foldername . "/img.php";
            $address = "../img/img.php";
            Copyfile($address, $newfile);
            $newfile = ROOTPATH . $foldername . "/showimg.php";
            $address = "../img/showimg.php";
            Copyfile($address, $newfile);
            break;
        case 7:
            $array[1][0] = 'met_fd_time';
            $array[1][1] = '120';
            $array[2][0] = 'met_fd_word';
            $array[2][1] = '';
            $array[3][0] = 'met_fd_email';
            $array[3][1] = '0';
            $array[4][0] = 'met_fd_type';
            $array[4][1] = '1';
            $array[5][0] = 'met_fd_to';
            $array[5][1] = '';
            $array[6][0] = 'met_fd_back';
            $array[6][1] = '0';
            $array[7][0] = 'met_fd_title';
            $array[7][1] = '';
            $array[8][0] = 'met_fd_content';
            $array[8][1] = '';
            $array[9][0] = 'met_fd_ok';
            $array[9][1] = '1';
            $array[10][0] = 'met_fd_sms_back';
            $array[10][1] = '';
            $array[11][0] = 'met_fd_sms_content';
            $array[11][1] = '';
            $array[12][0] = 'met_fd_sms_dell';
            $array[12][1] = '';
            $array[13][0] = 'met_message_fd_class';
            $array[13][1] = '';
            $array[14][0] = 'met_message_fd_content';
            $array[14][1] = '';
            $array[15][0] = 'met_message_fd_email';
            $array[15][1] = '';
            $array[16][0] = 'met_message_fd_sms';
            $array[16][1] = '';
            verbconfig($array, $id);
            break;
        case 8:
            $indexaddress = "../feedback/index.php";
            $newfile = ROOTPATH . $foldername . "/uploadfile_save.php";
            $address = "../feedback/uploadfile_save.php";
            Copyfile($address, $newfile);
            $array[1][0] = 'met_fd_time';
            $array[1][1] = '120';
            $array[2][0] = 'met_fd_word';
            $array[2][1] = '';
            $array[3][0] = 'met_fd_type';
            $array[3][1] = '1';
            $array[4][0] = 'met_fd_to';
            $array[4][1] = '';
            $array[5][0] = 'met_fd_back';
            $array[5][1] = '0';
            $array[6][0] = 'met_fd_email';
            $array[6][1] = '1';
            $array[7][0] = 'met_fd_title';
            $array[7][1] = '';
            $array[8][0] = 'met_fd_content';
            $array[8][1] = '';
            $array[9][0] = 'met_fdtable';
            $fd_title = $db->get_one("SELECT * FROM {$met_column} WHERE id='{$id}'");
            $array[9][1] = $fd_title['name'];
            $array[10][0] = 'met_fd_class';
            $array[10][1] = '1';
            $array[11][0] = 'met_fd_ok';
            $array[11][1] = '1';
            $array[12][0] = 'met_fd_sms_back';
            $array[12][1] = '';
            $array[13][0] = 'met_fd_sms_content';
            $array[13][1] = '';
            $array[14][0] = 'met_fd_sms_dell';
            $array[14][1] = '';
            verbconfig($array, $id);
            break;
    }
    Copyindx(ROOTPATH . $foldername . '/index.php', $module);
}
コード例 #2
0
ファイル: physical.php プロジェクト: Jesuslagliva12/OpenAPI
                     break;
                 case 3:
                     $address = "../product/{$fileaddr['1']}";
                     break;
                 case 4:
                     $address = "../download/{$fileaddr['1']}";
                     break;
                 case 5:
                     $address = "../img/{$fileaddr['1']}";
                     break;
                 case 8:
                     $address = "../feedback/{$fileaddr['1']}";
                     break;
             }
             $newfile = "../../../{$val['1']}";
             Copyfile($address, $newfile);
         }
         echo $lang_physicalgenok;
         break;
     case 4:
         $filename = "../../../{$val['1']}";
         $handle = @fopen($filename, "rb");
         $filecode = @fread($handle, @filesize($filename));
         @fclose($handle);
         echo nl2br(htmlspecialchars($filecode));
         exit;
         break;
 }
 $fun = explode(',', $physical_op);
 $physical_op = NULL;
 foreach ($fun as $key1 => $val1) {