punbb-1.2.20/upload/misc.php |
punbb-1.2.21/upload/misc.php |
253: message($lang_common['Bad request']); | 253: message($lang_common['Bad request']); |
254: | 254: |
255: // Make sure the user can view the topic | 255: // Make sure the user can view the topic |
256: $result = $db->query('SELECT 1 FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=t.forum_id AND fp.group_id=1) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$topic_id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error()); | 256: $result = $db->query('SELECT 1 FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=t.forum_id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$topic_id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error()); |
257: if (!$db->num_rows($result)) | 257: if (!$db->num_rows($result)) |
258: message($lang_common['Bad request']); | 258: message($lang_common['Bad request']); |
259: | 259: |
punbb-1.2.20/upload/profile.php |
punbb-1.2.21/upload/profile.php |
1209: <?php echo $posts_field ?> | 1209: <?php echo $posts_field ?> |
1210: <?php if ($pun_user['g_id'] < PUN_GUEST): ?> <label><?php echo $lang_profile['Admin note'] ?><br /> | 1210: <?php if ($pun_user['g_id'] < PUN_GUEST): ?> <label><?php echo $lang_profile['Admin note'] ?><br /> |
1211: <input id="admin_note" type="text" name="admin_note" value="<?php echo pun_htmlspecialchars($user['admin_note']) ?>" size="30" maxlength="30" /><br /></label> | 1211: <input id="admin_note" type="text" name="admin_note" value="<?php echo pun_htmlspecialchars($user['admin_note']) ?>" size="30" maxlength="30" /><br /></label> |
1212: </div> | 1212: <?php endif; ?> </div> |
1213: <?php endif; ?> </fieldset> | 1213: </fieldset> |
1214: </div> | 1214: </div> |
1215: <p><input type="submit" name="update" value="<?php echo $lang_common['Submit'] ?>" /><?php echo $lang_profile['Instructions'] ?></p> | 1215: <p><input type="submit" name="update" value="<?php echo $lang_common['Submit'] ?>" /><?php echo $lang_profile['Instructions'] ?></p> |
1216: </form> | 1216: </form> |