Esempio n. 1
0
File: view.php Progetto: nirn/karnaf
 from <?php 
        echo $result2['r_from'];
        ?>
 at <?php 
        echo showtime($result2['r_time']);
        ?>
</td></tr>
<tr>
<td class="ticket_replies" colspan="2">
<?php 
        if (!empty($result2['title'])) {
            echo "Title: ";
            show_board_body($result2['title']);
            echo "<hr>\n";
        }
        echo show_board_body(preg_replace("/(\\*)?\\[image\\:\\sironSource\\](\\*)?.*Thank\\syou\\./s", "*** Signature ***", $result2['reply']));
        ?>
</td>
</tr>
<?php 
    }
    if (!$cnt) {
        echo "<tr><td colspan=\"2\" align=\"center\">*** None ***</td></tr>\r\n";
    }
    sql_free_result($query2);
    ?>
</table>
</td>
</tr>
<?php 
    if (!isset($_GET['ajax']) && (!$isoper || $result['unick'] == $nick) && $result['status'] != 0) {
Esempio n. 2
0
 [<?php 
            echo USER_FIELD;
            ?>
: <?php 
            echo $result2['r_by'];
            ?>
 / IP: <?php 
            echo IsKarnafAdminSession() ? $result2['ip'] : "HIDDEN";
            ?>
] at <?php 
            echo showtime($result2['r_time']);
            ?>
</td></tr>
<tr>
<td class="ticket_replies" colspan="2"><?php 
            echo show_board_body($reply);
            ?>
</td>
</tr>
<?php 
        }
        if (!$cnt) {
            echo "<tr><td colspan=\"2\" align=\"center\">*** None ***</td></tr>\r\n";
        }
        sql_free_result($query2);
        ?>
</table>
</td></tr>
<?php 
    }
    ?>
Esempio n. 3
0
</table>
</td></tr>
<? } else { ?>
<tr><td colspan="2">
<table border="1" width="100%" cellpadding="0" cellspacing="0">
<tr class="Karnaf_Head2"><td colspan="2">Replies</td></tr>
<?
  $query2 = squery("SELECT reply,r_time,r_from,r_by,ip FROM karnaf_replies WHERE tid=%d ORDER BY r_time", $id);
  $cnt = 0;
  while($result2 = sql_fetch_array($query2)) {
    $cnt++;
    $reply = preg_replace("/(\*)?\[image\:\sironSource\](\*)?.*Thank\syou\./s", "*** Signature ***", $result2['reply']);
?>
<tr class="Karnaf_P_Head"><td colspan="2">Reply #<?=$cnt?> from <?=$result2['r_from']?> [<?=USER_FIELD?>: <?=$result2['r_by']?> / IP: <?=IsKarnafAdminSession()?$result2['ip']:"HIDDEN"?>] at <?=showtime($result2['r_time'])?></td></tr>
<tr>
<td class="ticket_replies" colspan="2"><?=show_board_body($reply)?></td>
</tr>
<?
  }
  if(!$cnt) echo "<tr><td colspan=\"2\" align=\"center\">*** None ***</td></tr>\r\n";
  sql_free_result($query2);
?>
</table>
</td></tr>
<? } ?>
<tr class="Karnaf_Head2">
<td colspan="2" align="center">Add new reply</td>
</tr>
<tr>
<td width="1%">To:</td>
<td><input name="reply_to" type="text" size="50" value="<?=htmlspecialchars2($result['uemail'])?>"></td>
Esempio n. 4
0
 [<?php 
            echo USER_FIELD;
            ?>
: <?php 
            echo $result2['r_by'];
            ?>
 / IP: <?php 
            echo IsKarnafAdminSession() ? $result2['ip'] : "HIDDEN";
            ?>
] at <?php 
            echo showtime($result2['r_time']);
            ?>
</td></tr>
<tr>
<td class="ticket_replies" colspan="2"><?php 
            echo show_board_body($result2['reply']);
            ?>
</td>
</tr>
<?php 
        }
        if (!$cnt) {
            echo "<tr><td colspan=\"2\" align=\"center\">*** None ***</td></tr>\r\n";
        }
        sql_free_result($query2);
        ?>
</table>
</td></tr>
<?php 
    }
    ?>