Exemplo n.º 1
0
   HTML is allowed; BB-Code is not allowed!</span></td>
   <td class="mbox" width="50%"><textarea name="description" rows="2" cols="50"><?php 
    echo $row['description'];
    ?>
</textarea></td> 
  </tr>
  <tr>
   <td class="mbox" width="50%">Parent Forum:</td>
   <td class="mbox" width="50%">
   	<select name="parent" size="1">
   	 <option value="0"<?php 
    echo iif($row['parent'] == '0', ' selected="selected"');
    ?>
>No one</option>
   	 <?php 
    echo SelectBoardStructure('parent', ADMIN_SELECT_FORUMS, $row['parent'], true);
    ?>
   	</select>
   </td> 
  </tr>
  <tr> 
   <td class="ubox" width="100%" colspan="2" align="center"><input type="submit" name="Submit" value="Add" /></td> 
  </tr>
 </table>
</form>
	<?php 
    echo foot();
} elseif ($job == 'cat_edit2') {
    echo head();
    $id = $gpc->get('id', int);
    $parent = $gpc->get('parent', int);
Exemplo n.º 2
0
    die('Error: Hacking Attempt');
}
($code = $plugins->load('admin_posts_jobs')) ? eval($code) : null;
if ($_GET['job'] == 'postrating') {
    echo head();
    ?>
<form name="form" method="post" action="admin.php?action=posts&job=postrating2">
 <table class="border" border="0" cellspacing="0" cellpadding="4" align="center">
  <tr> 
   <td class="obox" colspan="2"><b>Postrating &raquo; Choose Forum</b></td>
  </tr>
  <tr>
   <td class="mbox">Forum to show:</td>
   <td class="mbox">
	 <?php 
    echo SelectBoardStructure('board', ADMIN_SELECT_FORUMS);
    ?>
   </td>
  </tr>
  <tr> 
   <td class="ubox" colspan="2" align="center"><input type="submit" name="Submit" value="Submit"></td> 
  </tr>
 </table>
</form>	
	<?php 
    echo foot();
} elseif ($_GET['job'] == 'postrating2') {
    echo head();
    $board = $gpc->get('board', int);
    $page = $gpc->get('page', int, 1);
    $count = $db->fetch_num($db->query("SELECT COUNT(*) FROM {$db->pre}postratings AS p LEFT JOIN {$db->pre}topics AS t ON p.tid = t.id  WHERE t.board = '{$board}' AND t.status != '2' GROUP BY p.tid"));