示例#1
0
            $field = "dl_size";
            break;
        case "pic":
            $field = "dl_pic";
            break;
    }
    if (!empty($field)) {
        dbquery("UPDATE " . DB_PRP_DOWNLOADS . "" . " SET {$field}=''" . " WHERE review_id='" . $review->id . "'");
    }
    fallback(FUSION_SELF . "?did=" . $review->id);
}
/*
 * GUI
 */
if ($review->status == PRP_PRO_NEW) {
    prp_upload_step(4, "upload_done.php", $review->id);
}
opentable($locale['prp_misc']);
if (isset($_GET['errno'])) {
    prp_process_errno($_GET['errno']);
}
if ($prp->settings['hide_user_allow'] == "yes") {
    echo "<form method='post' action='" . FUSION_SELF . "?did=" . $review->id . "'>\n<p>\n\t<input type='checkbox' name='hide_user' id='hu0'" . ($review->data['hide_user'] == "yes" ? " checked" : "") . "> " . "<label for='hu0'>" . $locale['PRP501'] . "</label>\n<p><input type='submit' class='button' name='do_hide_user'" . " value='" . $locale['PRP010'] . "'>\n</form>\n";
}
/*
 * GUI
 */
if ($review->status == PRP_PRO_OFF) {
    if ($prp->settings['need_verify'] == "yes" && !iPRP_MOD) {
        echo "<p><h2>" . $locale['PRP502'] . "</h2>\n<form method='post' action='" . FUSION_SELF . "?did=" . $review->id . "'>\n<p><input type='checkbox' name='oh_yeah' id='oy1'><label for='oy1'>" . $locale['PRP503'] . "</label>\n<p><input type='submit' class='button' name='check_review' value='" . $locale['PRP504'] . "'>\n</form>\n";
    } else {
示例#2
0
    $review->log_event($log_event, $log_errno);
}
if ($do_pm) {
    if ($review->status != PRP_PRO_NEW) {
        $review->set_status(PRP_PRO_OFF);
    }
    fallback(FUSION_SELF . '?did=' . $review->id);
}
/*
 * GUI
 */
if (isset($_GET['errno'])) {
    prp_process_errno($_GET['errno']);
}
if ($review->status == PRP_PRO_NEW) {
    prp_upload_step(3, "edit_misc.php", $review->id);
}
/*
 * GUI
 */
opentable($locale['PRP015']);
if ($review->data['max_pics']) {
    echo "<p><strong>" . str_replace("%s", $review->data['max_pics'], $locale['PRP151']) . "</strong>\n";
}
$res = dbquery("SELECT pic_id, pic_desc, pic_url" . " FROM " . DB_PRP_IMAGES . "" . " WHERE review_id='" . $review->id . "'");
echo '<p></p>
<table border="0" cellspacing="1" width="100%" class="tbl-border">
<thead>
<tr>
	<th width="16"></th>
	<th>' . $locale['PRP025'] . ' [<a href="' . FUSION_SELF . '?did=' . $review->id . '">' . $locale['prp_new'] . '</a>]</th>
示例#3
0
        if ($thiscat['parentcat'] == $parentid && checkgroup($thiscat['access'])) {
            $retval .= "<option value='{$myid}'" . ($sel_this == $myid ? ' selected="selected"' : '') . '>' . str_repeat("&nbsp;", $level * 4) . $thiscat['name'] . '</option>';
            $retval .= prp_tmp_show_cat($myid, $cat_array, $level + 1, $sel_this);
        }
    }
    return $retval;
}
$sel_cats = prp_tmp_show_cat(0, $all_cats, 0, $review->id ? $review->data['cat_id'] : $cat);
if (empty($sel_cats)) {
    fallback("error.php?type=cats");
}
/*
 * GUI
 */
if (!$review->id || $review->status == PRP_PRO_NEW) {
    prp_upload_step(1, $review->id ? "edit_files.php" : "");
    $button = $locale['PRP044'] . " 2";
    $caption = $locale['PRP103'];
} else {
    $button = $locale['PRP010'];
    $caption = $locale['PRP025'];
}
opentable($caption);
if (isset($_GET['errno'])) {
    prp_process_errno($_GET['errno']);
}
if ($errors) {
    echo "<p><div style='text-align:center;'><strong>" . $locale['PRP011'] . "</strong></div></p>\n";
}
if ($review->id) {
    $name = $review->data['dl_name'];
示例#4
0
 * ACTION
 */
if (isset($_GET['confirm'])) {
    $new_status = $prp->settings['need_verify'] == "yes" && !iPRP_MOD ? PRP_PRO_CHECK : PRP_PRO_ON;
    $ok = $review->set_status($new_status);
    $review->log_event(PRP_EV_NEWDOWNLOAD, 0);
    if ($ok) {
        if ($new_status == PRP_PRO_ON) {
            $review->fallback_review();
        } else {
            fallback("profile.php?id=" . $userdata['user_id']);
        }
    }
}
/*
 * GUI
 */
prp_upload_step(5);
opentable($locale['PRP045']);
echo '
<p>
	' . $locale['PRP320'] . '
</p>
<p>
	' . $locale['PRP321'] . '
</p>
<p>
	[ <a href="' . FUSION_SELF . '?did=' . $review->id . '&amp;confirm=1">' . '<strong>' . $locale['PRP322'] . '</b></a> ]
</p>';
closetable();
require_once 'include/die.php';
示例#5
0
    if ($review->set_status(PRP_PRO_OFF)) {
        fallback(FUSION_SELF . "?did=" . $review->id);
    }
}
/*
 * GUI - errno
 */
if (isset($_GET['errno'])) {
    prp_process_errno($_GET['errno']);
}
/*
 * GUI
 */
$action = FUSION_SELF . '?did=' . $review->id;
if ($review->status == PRP_PRO_NEW) {
    prp_upload_step(2, 'edit_pics.php', $review->id);
}
/*
 * GUI
 */
opentable($locale['PRP019']);
// files table
$files_in_table = array();
$res = dbquery("SELECT file_id, file_url, file_version, file_timestamp,\n\tfile_desc, file_size\n\tFROM " . DB_PRP_FILES . " AS ff\n\tWHERE review_id='" . $review->id . "'\n\tORDER BY file_timestamp DESC");
if (!dbrows($res)) {
    echo '<p>' . $locale['PRP120'] . '</p>';
} else {
    echo '
<table width="100%" cellspacing="1" class="tbl-border">
<colgroup>
	<col width="16" />