showtablefooter(); showtableheader('', 'notop'); echo '<tr><td colspan="2">' . $editext . '<br /><input type="submit" class="btn" name="jssubmit" value="' . $lang['preview'] . '"> <input type="button" class="btn" onclick="this.form.preview.value=0;this.form.jssubmit.click()" value="' . $lang['submit'] . '"><input name="preview" type="hidden" value="1" /></td></tr>'; showtablefooter(); showformfooter(); } elseif ($type == 'images') { $tcheckorderby = array(isset($parameter['orderby']) ? $parameter['orderby'] : 'dateline' => 'checked'); for ($i = 1; $i <= 4; $i++) { $icheckdigest[$i] = !empty($parameter['digest'][$i]) ? 'checked' : ''; } $parameter['newwindow'] = isset($parameter['newwindow']) ? intval($parameter['newwindow']) : 1; $parameter['isimage'] = isset($parameter['isimage']) ? $parameter['isimage'] : 1; $parameter['threadmethod'] = isset($parameter['threadmethod']) ? $parameter['threadmethod'] : 1; $tradionewwindow[$parameter['newwindow']] = 'checked'; if ($jssubmit && $function == 'images') { $jsurl = $jssetting ? $jssetting : "function={$function}" . ($parameter['images_forums'] && !in_array('all', $parameter['images_forums']) ? '&fids=' . jsfids($parameter['images_forums']) : '') . "&sidestatus={$parameter['sidestatus']}" . "&isimage={$parameter['isimage']}" . "&threadmethod={$parameter['threadmethod']}" . "&maxwidth={$parameter['maxwidth']}" . "&maxheight={$parameter['maxheight']}" . "&startrow={$parameter['startrow']}" . "&items={$parameter['items']}" . "&orderby={$parameter['orderby']}" . "&hours=" . intval($parameter['hours']) . "&digest=" . bindec(intval($parameter['digest'][1]) . intval($parameter['digest'][2]) . intval($parameter['digest'][3]) . intval($parameter['digest'][4])) . "&newwindow={$parameter['newwindow']}" . ($parameter['boardurl'] ? "&boardurl=" . rawurlencode($parameter['boardurl']) : '') . "&jscharset={$parameter['jscharset']}" . ($parameter['cachelife'] != '' ? "&cachelife={$parameter['cachelife']}" : '') . (!empty($parameter['jstemplate']) ? '&jstemplate=' . rawurlencode($parameter['jstemplate']) : ''); if (!$preview) { jssavesetting(4); } $jspreview = $lang['jswizard_innerrequest'] . '<textarea rows="2" style="width: 95%; word-break: break-all" onFocus="this.select()">{eval request(\'' . str_replace("'", "\\'", $jskey) . '\');}</textarea><br />' . $lang['jswizard_outerrequest'] . '<textarea rows="2" style="width: 95%; word-break: break-all" onFocus="this.select()">' . dhtmlspecialchars("<script type=\"text/javascript\" src=\"{$boardurl}api/javascript.php?key=" . rawurlencode($jskey) . "\"></script>") . '</textarea><br />' . jspreviewcode($jsurl) . '<br />'; } echo '<div class="colorbox">'; if ($jspreview) { echo '<h4 style="margin-bottom:15px;">' . lang('preview') . '</h4>' . $jspreview; } showformheader('jswizard&function=images#' . $lang['jswizard_images']); echo '<h4 style="margin-bottom:15px;">' . lang('jswizard_images') . ' - ' . lang('jswizard_jstemplate') . '</h4><div class="extcredits">' . $lang['jswizard_images_jstemplate_comment'] . '</div><br />'; jsinsertunit(); echo '<textarea cols="100" rows="5" id="jstemplate" name="parameter[jstemplate]" style="width: 95%;" onkeyup="textareasize(this)">' . ($parameter['jstemplate'] != '' ? stripslashes($parameter['jstemplate']) : '{file} ({filesize} Bytes)<br />') . '</textarea>'; echo '<br /><input type="button" class="btn" onclick="this.form.jssubmit.click()" value="' . $lang['preview'] . '"> <input type="button" class="btn" onclick="this.form.preview.value=0;this.form.jssubmit.click()" value="' . $lang['submit'] . '"></div><br /><br />'; showtableheader();
echo '<tr class="category" align="center"><td>' . $lang['jswizard_stats_display'] . '</td><td>' . $lang['jswizard_stats_display_title'] . '</td><td>' . $lang['jswizard_stats_display_name'] . '</td><td>' . $lang['display_order'] . '</td></tr>'; $order = 0; foreach ($predefined as $key) { echo '<tr align="center"><td class="altbg1"><input class="checkbox" type="checkbox" name="parameter[' . $key . '][display]" value="1" ' . (!isset($parameter[$key]) || $parameter[$key]['display'] ? 'checked' : '') . '></td>' . '<td class="altbg1">' . $lang['jswizard_stats_' . $key] . '</td>' . '<td class="altbg2"><input type="text" name="parameter[' . $key . '][title]" size="15" value="' . ($parameter[$key]['title'] ? $parameter[$key]['title'] : $lang['jswizard_stats_' . $key] . ':') . '"></td>' . '<td class="altbg2"><input type="text" name="displayorder[' . $key . ']" size="3" value="' . (isset($displayorder[$key]) ? intval($displayorder[$key]) : ++$order) . '"></td></tr>'; } echo '</table>' . $editext . '<br /><center><input class="button" type="submit" name="jssubmit" value="' . $lang['jswizard_preview'] . '"> <input class="button" type="button" onclick="this.form.preview.value=0;this.form.jssubmit.click()" value="' . $lang['submit'] . '"><input name="preview" type="hidden" value="1"></center></form><br />'; /* Stats == End == */ } elseif ($type == 'images') { /* Images == Start == */ for ($i = 1; $i <= 4; $i++) { $icheckdigest[$i] = !empty($parameter['digest'][$i]) ? 'checked' : ''; } $parameter['newwindow'] = isset($parameter['newwindow']) ? intval($parameter['newwindow']) : 1; $tradionewwindow[$parameter['newwindow']] = 'checked'; if ($jssubmit && $function == 'images') { $jsurl = $jssetting ? $jssetting : "function={$function}" . ($parameter['images_forums'] && !in_array('all', $parameter['images_forums']) ? '&fids=' . jsfids($parameter['images_forums']) : '') . "&maxwidth={$parameter['maxwidth']}" . "&maxheight={$parameter['maxheight']}" . "&startrow={$parameter['startrow']}" . "&items={$parameter['items']}" . "&blog={$parameter['blog']}" . "&digest=" . bindec(intval($parameter['digest'][1]) . intval($parameter['digest'][2]) . intval($parameter['digest'][3]) . intval($parameter['digest'][4])) . "&newwindow={$parameter['newwindow']}" . "&jscharset={$parameter['jscharset']}" . ($parameter['cachelife'] != '' ? "&cachelife={$parameter['cachelife']}" : '') . (!empty($parameter['jstemplate']) ? '&jstemplate=' . rawurlencode($parameter['jstemplate']) : ''); $jsurlview = "{$jsurl}&nocache=yes"; $jsurlview = "{$boardurl}api/javascript.php?{$jsurlview}&verify=" . md5($authkey . $jsurlview); if (!$preview) { jssavesetting(4); } $jsurl = "{$boardurl}api/javascript.php?{$jsurl}&verify=" . md5($authkey . $jsurl); $jspreview = "<textarea rows=\"3\" style=\"width: 100%; word-break: break-all\" onMouseOver=\"this.focus()\" onFocus=\"this.select()\">" . dhtmlspecialchars("<script language=\"JavaScript\" src=\"{$boardurl}api/javascript.php?key=" . rawurlencode($jskey) . "\"></script>") . "</textarea><br /><div class=\"jswizard\"><script language=\"JavaScript\" src=\"{$jsurlview}\"></script></div><br />"; } if ($jspreview) { showtype('preview', 'top'); echo '<tr><td class="altbg1">' . $jspreview; showtype('', 'bottom'); echo '<br />'; } echo '<form method="post" action="admincp.php?action=jswizard&function=images#' . $lang['jswizard_images'] . '">';
} echo '</table>'.$editext.'<br /><center><input class="button" type="submit" name="jssubmit" value="'.$lang['jswizard_preview'].'"> <input class="button" type="button" onclick="this.form.preview.value=0;this.form.jssubmit.click()" value="'.$lang['submit'].'"><input name="preview" type="hidden" value="1"></center></form><br />'; /* Stats == End == */ } elseif($type == 'images') { /* Images == Start == */ for($i = 1; $i <= 4; $i++) { $icheckdigest[$i] = !empty($parameter['digest'][$i]) ? 'checked' : ''; } $parameter['newwindow'] = isset($parameter['newwindow']) ? intval($parameter['newwindow']) : 1; $tradionewwindow[$parameter['newwindow']] = 'checked'; if($jssubmit && $function == 'images') { $jsurl = $jssetting ? $jssetting : "function=$function". ($parameter['images_forums'] && !in_array('all', $parameter['images_forums'])? '&fids='.jsfids($parameter['images_forums']) : ''). "&maxwidth=$parameter[maxwidth]". "&maxheight=$parameter[maxheight]". "&startrow=$parameter[startrow]". "&items=$parameter[items]". "&blog=$parameter[blog]". "&digest=".bindec(intval($parameter['digest'][1]).intval($parameter['digest'][2]).intval($parameter['digest'][3]).intval($parameter['digest'][4])). "&newwindow=$parameter[newwindow]". "&jscharset=$parameter[jscharset]". ($parameter['cachelife'] != '' ? "&cachelife=$parameter[cachelife]" : ''). (!empty($parameter['jstemplate']) ? '&jstemplate='.rawurlencode($parameter['jstemplate']) : ''); $jsurlview = "$jsurl&nocache=yes"; $jsurlview = "{$boardurl}api/javascript.php?$jsurlview&verify=".md5($authkey.$jsurlview); if(!$preview) { jssavesetting(4);