Пример #1
0
        $c_smileys = $_GET['comm_smileys'] == "1" ? "1" : "0";
    } else {
        $c_user = "";
        $c_text = "";
        $c_smileys = "1";
    }
    if (iMEMBER) {
        $name_line = "";
    } else {
        $name_line = $locale['PDP002'] . ": <input type='text' size='32' maxlength='50'" . " class='textbox' name='comment_name'" . " value='" . $c_user . "' /><br />\n";
    }
    opentable($locale['PDP211']);
    if (isset($_GET['wrong_captcha'])) {
        show_info($locale['pdp_wrong_captcha']);
    }
    echo "\n<a name='new_comment'></a>\n<p></p>\n<form action='include/do_did.php?did=" . $download->id . "' method='post'\n\tname='inputform'>\n<div align='center'>\n{$name_line}\n\n<textarea cols='60' rows='5' class='textbox' name='comm_text'>" . $c_text . "</textarea><br />" . pdp_get_bb_smileys("comm_text", $c_smileys, true) . '
<hr />';
    if (!iMEMBER) {
        echo '
	<p></p>
	<label>' . $locale['pdp_captcha'] . ':</label><br />
	' . make_captcha() . '
	<input type="text" class="textbox" name="user_code" size="5" />';
    }
    echo '
<p></p>
<input type="submit" value="' . $locale['PDP211'] . '" class="button"
	name="add_comment" />
</div>
</form>';
    closetable();
</p>

<p>
<fieldset>
<legend>' . $locale['PDP108'] . ':</legend>
<span class="small2">' . $locale['PDP109'] . '</span><br />
<textarea rows="5" cols="75" class="textbox" name="abstract">' . $download->data['dl_abstract'] . '</textarea><br />
' . pdp_get_bb_smileys('abstract', 0, false) . '
</fieldset>
</p>

<p>
<fieldset>
<legend>' . $locale['PDP025'] . ':</legend>
<textarea rows="10" cols="75" class="textbox" name="desc">' . $download->data['dl_desc'] . '</textarea><br />
' . pdp_get_bb_smileys('desc', 0, false) . '
</fieldset>
</p>


<p>
<fieldset>
<legend>' . $locale['pdp_license'] . '</legend>

<p>
<select size="1" name="license_id" class="textbox">
	' . $sel_licenses . '
</select>

<strong>' . $locale['PDP133'] . '</strong>
 * GUI
 */
opentable($locale['PDP021']);
if (isset($id)) {
    $res = dbquery("SELECT comment_id, comment_timestamp,\n\t\tcomment_text, comment_smileys\n\t\tFROM " . DB_PDP_COMMENTS . "\n\t\tWHERE comment_id='" . $id . "'\n\t\t\tAND download_id='" . $download->id . "'");
    if (!dbrows($res)) {
        fallback(FUSION_SELF . '?did=' . $download->id);
    }
    $comm = dbarray($res);
    echo '
<form action="' . FUSION_SELF . '?did=' . $download->id . '&id=' . $id . '" method="post"
	name="inputform">
<table align="center" cellspacing="1">
<tr>
	<td align="center">
	<textarea cols="70" rows="8" class="textbox" name="comm_text">' . $comm['comment_text'] . '</textarea><br />' . pdp_get_bb_smileys('comm_text', $comm['comment_smileys'], true) . '</td>
</tr>
<tr>
	<td align="center"><input type="submit"
		value="' . $locale['PDP010'] . '" class="button" name="save">
	</td>
</tr>
</table>';
}
// show all
$res = dbquery("SELECT comment_id, comment_text, comment_smileys, user_id,\n\tcomment_user_name, comment_ip, comment_timestamp\n\tFROM " . DB_PDP_COMMENTS . "\n\tWHERE download_id='" . $download->id . "'\n\tORDER BY comment_timestamp ASC");
if (!dbrows($res)) {
    echo "<p>" . $locale['PDP212'];
} else {
    echo '
<form method="post" action="include/do_did.php?did=' . $download->id . '">
	<td>' . $locale['PDP730'] . '</td>
	<td><input type="text" size="5" maxlength="3"
		value="' . $pdp->settings['broken_count'] . '"
		class="textbox" name="broken_count">
		<span class="small2">(' . $locale['PDP731'] . ')</span></td>
</tr>
<tr>
	<td>' . $locale['PDP736'] . '</td>
	<td><select name="broken_access" class="textbox">' . $broken_access . '</select></td>
</tr>
<tr>
	<td valign="top">' . $locale['PDP725'] . ':<br />' . $broken_text_legend . '</td>
	<td>
		<textarea class="textbox" name="broken_text" cols="30"
			rows="6">' . $pdp->settings['broken_text'] . '</textarea>
		<br />' . pdp_get_bb_smileys('broken_text', 'not_used', false, false) . '
	</td>
</tr>
</tbody>
</table>
</fieldset>
</p>


<p>
<fieldset>
<legend>' . $locale['PDP015'] . '</legend>
<table width="100%" border="0" cellspacing="4">
<colgroup>
	<col width="33%" />
	<col width="*" />
	<td class="tbl1"><select name="upload_access" class="textbox">' . $sel_upload_access . '</select></td>
</tr>
<tr>
	<td class="tbl2">' . $locale['PDP826'] . ':</td>
	<td class="tbl1"><select name="download_access" class="textbox">' . $sel_download_access . '</select></td>
</tr>
<tr>
	<td class="tbl2">' . $locale['PDP828'] . ':</td>
	<td class="tbl1"><input type="text" name="order" class="textbox"
		size="5" value="' . $order . '"></td>
</tr>
<tr>
	<td class="tbl2"></td>
	<td class="tbl1">
		<textarea cols="40" rows="5" maxlength="255" class="textbox"
			name="desc">' . $desc . '</textarea><br />' . pdp_get_bb_smileys('desc', '0', false) . '</td>
</tr>
<tr>
	<td class="tbl2" colspan="2" align="center">
		<input type="submit" value="' . $locale['PDP010'] . '"
			class="button" name="save" />
	</td>
</tr>
</table>
</form>';
}
// show all cats
if (count($cats_for_table)) {
    echo '
<table align="center" class="tbl-border" cellspacing="1">
<thead>
Пример #6
0
	<td>
		<input type="checkbox" name="new_comm_pm" id="ncp0"' . ($pdp->settings['new_comm_pm'] == 1 ? ' checked="checked"' : '') . '> <label for="ncp0">' . $locale['PDP706'] . '</label>
		<br />
		<input type="checkbox" name="allow_notify" id="an0"' . ($pdp->settings['allow_notify'] == 'yes' ? ' checked="checked"' : '') . '> <label for="an0">' . $locale['PDP750'] . '</label>
	</td>
</tr>
</tbody>
</table>
</fieldset>
</p>





' . "\n<p>\n<fieldset>\n<legend>" . $locale['pdp_downloads'] . "</legend>\n<table width='100%' border='0' cellspacing='1' class='fusion-settings'>\n<colgroup>\n\t<col width='33%' />\n\t<col width='*' />\n</colgroup>\n<tbody>\n<tr>\n\t<td align='right'>" . $locale['PDP703'] . ":</td>\n\t<td><input type='text' name='upload_file'" . " value='" . substr($pdp->settings['upload_file'], strlen(BASEDIR)) . "'" . " size='50' maxlength='200' class='textbox'><br>" . $locale['pdp_status'] . ": {$status_upload_file}</td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PDP722'] . ":<br><span class='small2'>" . $locale['PDP713'] . "</span></td>\n\t<td><input type='text' size='50' name='file_ext'" . " value='" . $pdp->settings['file_ext'] . "' class='textbox'><br>" . "<span class='small2'>" . $locale['PDP715'] . "</span></td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PDP716'] . ":<br><span class='small2'>" . $locale['PDP717'] . "</span></td>\n\t<td>{$upload_max_filesize}<br>\n\t\t<input type='text' value='" . $pdp->settings['file_max'] . "'" . " size='14' maxlength='12' class='textbox'" . " name='file_max'> =" . parsebytesize($pdp->settings['file_max']) . " (" . $status_file_maxsize . ")<br>" . "<span class='small2'>" . $locale['PDP720'] . "</span></td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['pdp_misc'] . ":</td>\n\t<td><input type='checkbox' name='user_edit' id='ue0'" . ($pdp->settings['user_edit'] == 1 ? " checked" : "") . "> " . "<label for='ue0'>" . $locale['PDP721'] . "</label><br>\n\t\t<input type='checkbox' name='hide_user_allow' id='hua0'" . ($pdp->settings['hide_user_allow'] == "yes" ? " checked" : "") . "> " . "<label for='hua0'>" . $locale['PDP741'] . "</label>" . "</td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PDP712'] . "</td>\n\t<td><input type='text' size='5' maxlength='3'" . " value='" . $pdp->settings['broken_count'] . "'" . " class='textbox' name='broken_count'>" . " <span class='small2'>(" . $locale['PDP731'] . ")</span></td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PDP736'] . "</td>\n\t<td><select name='broken_access' class='textbox'>" . $broken_access . "</select></td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PDP737'] . "</td>\n\t<td><select name='new_days_long' class='textbox'>" . $new_days_long . "</select> " . $locale['PDP738'] . "</td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PDP725'] . ":<br>{$broken_text_legend}</td>\n\t<td><textarea class='textbox' name='broken_text' cols='50'" . " rows='6'>" . $pdp->settings['broken_text'] . "</textarea><br>" . pdp_get_bb_smileys("broken_text", "not_used", false, false) . "</td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PDP762'] . ":</td>\n\t<td><textarea class='textbox' name='download_restricted' cols='50'" . " rows='6'>" . $pdp->settings['download_restricted'] . "</textarea><br>" . pdp_get_bb_smileys('download_restricted', "not_used", false, false) . "</td>\n</tr>\n</tbody>\n</table>\n</fieldset>\n</p>\n" . '


<p>
<fieldset>
<legend>' . $locale['PDP015'] . '</legend>
<table width="100%" border="0" cellspacing="1" class="fusion-settings">
<colgroup>
	<col width="33%" />
	<col width="*" />
</colgroup>
<tbody>
<tr>
	<td align="right">' . $locale['PDP704'] . ':</td>
	<td>
		<input type="text" name="upload_image" value="' . substr($pdp->settings['upload_image'], strlen(BASEDIR)) . '" size="50" maxlength="200" class="textbox"><br />' . $locale['pdp_status'] . ': ' . $status_upload_image . '</td>
Пример #7
0
            //FIXME			}
        }
    }
    return $retval;
}
$cats_for_table = array();
$maxlevel = 0;
$sel_cats = "<option value='0'>" . $locale['PDP821'] . "</option>\n" . pdp_tmp_show_cat(0, $all_cats, 0, $top_cat, $cats_for_table, $maxlevel, isset($id) ? $id : 0);
$maxlevel++;
/*
 * GUI
 */
opentable($locale['PDP820']);
pdp_admin_menu();
if (isset($_GET['new']) || isset($_GET['edit'])) {
    echo "<p>\n<form action='{$action}' method='POST' name='inputform'>\n<table align='center' cellspacing='1' class='tbl-border'>\n<tr>\n\t<td class='tbl2'>" . $locale['PDP002'] . ": *</td>\n\t<td class='tbl1'><input type='text' size='50' maxlength='50'" . " class='textbox' name='cat_name' value='{$name}'></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PDP012'] . ":</td>\n\t<td class='tbl1'><select name='top_cat' size='1' class='textbox'>" . "{$sel_cats}</select></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PDP822'] . ":</td>\n\t<td class='tbl1'><select name='sort_field' class='textbox'>" . $sel_sort_by . "</select> <select name='sort_dir'" . " class='textbox'>{$sel_sort_dir}</select>\n\t</td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PDP829'] . ":</td>\n\t<td class='tbl1'><select name='access' class='textbox'>" . $access_ops . "</select></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PDP827'] . ":</td>\n\t<td class='tbl1'><select name='upload_access' class='textbox'>" . $sel_upload_access . "</select></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PDP826'] . ":</td>\n\t<td class='tbl1'><select name='download_access' class='textbox'>" . $sel_download_access . "</select></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PDP828'] . ":</td>\n\t<td class='tbl1'><input type='text' name='order' class='textbox'" . " size='5' value='{$order}'></td>\n</tr>\n<tr>\n\t<td class='tbl2'></td>\n\t<td class='tbl1'>\n\t\t<textarea cols='70' rows='5' maxlength='255' class='textbox'" . " name='desc'>{$desc}</textarea><br>" . pdp_get_bb_smileys("desc", "0", false) . "</td>\n</tr>\n<tr>\n\t<td class='tbl2' colspan='2' align='center'><input type='submit'" . " value='" . $locale['PDP010'] . "' class='button' name='save'>\n\t</td>\n</tr>\n</table>\n</form>\n</p>";
}
// show all cats
if (count($cats_for_table)) {
    echo '
<table align="center" class="tbl-border" cellspacing="1">
<thead>
<tr>
	<th width="16"></th>
	<th>' . $locale['PDP002'] . ' [<a href="' . FUSION_SELF . '?new=1">' . $locale['pdp_new'] . '</a>]</th>
	<th colspan="' . $maxlevel . '">' . $locale['PDP828'] . '</th>
	<th align="center">' . $locale['PDP829'] . '</th>
	<th>' . $locale['PDP827'] . '</th>
	<th>' . $locale['PDP826'] . '</th>
	<th>' . $locale['PDP822'] . '</th>
	<th  width="1" colspan="2">' . $locale['pdp_downloads'] . '</th>