예제 #1
0
$all_arr = array();
$postcount = $authorcount = $total = $get_file = $new_user = $ex_user = $attach_id = $file_name = $type = $attach = $implimit = $duptitle = $dupcontent = '';
$get_file = $_POST['postdata'][0]['get_file'];
$postcount = $_POST['postdata'][0]['postcount'];
$authorcount = $_POST['postdata'][0]['authorcount'];
$total = $_POST['postdata'][0]['total'];
$ex_user = $_POST['postdata'][0]['ex_user'];
$authcnt = $_POST['postdata'][0]['authcnt'];
$implimit = $_POST['postdata'][0]['implimit'];
$attach = $_POST['postdata'][0]['attach'];
$duptitle = $_POST['postdata'][0]['duptitle'];
$dupcontent = $_POST['postdata'][0]['dupcontent'];
$type = $_POST['postdata'][0]['type'];
$get_file = trim($get_file);
$attach = trim($attach);
$all_arr = $skinnyObj->get_xml_details($get_file);
for ($j = 1; $j <= $authcnt; $j++) {
    $user_id = $skinnyObj->processAuthor($all_arr, $j, $type, $ex_user);
    foreach ($skinnyObj->detailedLog as $logKey => $logVal) {
        echo " </p>" . $logVal['verify_here'] . "</p>";
        unset($skinnyObj->detailedLog[$logKey]);
    }
}
$user_id = $skinnyObj->get_user_id;
$res = $skinnyObj->processDataInWP($all_arr, $implimit, $user_id, $attach, $duptitle, $dupcontent, $type);
foreach ($skinnyObj->detailedLog as $logKey => $logVal) {
    print_r("</p>" . $logVal['verify_here'] . "</p>");
}
$total = $total - 1;
if ($implimit == $total) {
    foreach ($_SESSION['post_id'] as $key => $value) {