Update of /cvsroot/openfirst/emoticon
In directory sc8-pr-cvs1:/tmp/cvs-serv5244
Modified Files:
emoticonf.php
Log Message:
Make indenting in emoticonf.php proper
Index: emoticonf.php
===================================================================
RCS file: /cvsroot/openfirst/emoticon/emoticonf.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** emoticonf.php 28 Jun 2003 15:46:27 -0000 1.5
--- emoticonf.php 28 Jun 2003 18:52:21 -0000 1.6
***************
*** 32,43 ****
// switched text.
! function emoticon_translate ($text)
! {
$query = mysql_query("SELECT * FROM ofirst_emoticon");
if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->emoticon, $er->substitution, $text);
! }
}
--- 32,42 ----
// switched text.
! function emoticon_translate ($text) {
$query = mysql_query("SELECT * FROM ofirst_emoticon");
if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->emoticon, $er->substitution, $text);
! }
}
***************
*** 49,60 ****
// or have as reference page.
! function emoticon_preview ()
! {
! $query = mysql_query("SELECT * FROM ofirst_emoticon LIMIT 0,5");
! echo "<table>";
! while ($emot = mysql_fetch_object($query)) {
! echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>";
! }
! echo "</table>";
}
--- 48,58 ----
// or have as reference page.
! function emoticon_preview () {
! $query = mysql_query("SELECT * FROM ofirst_emoticon LIMIT 0,5");
! echo "<table>";
! while ($emot = mysql_fetch_object($query)) {
! echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>";
! }
! echo "</table>";
}
***************
*** 63,74 ****
// substitution value.
! function slur_block ($text)
! {
$query = mysql_query("SELECT * FROM ofirst_slurblock");
if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->slur, $er->substitution, $text);
! }
}
--- 61,71 ----
// substitution value.
! function slur_block ($text) {
$query = mysql_query("SELECT * FROM ofirst_slurblock");
if (mysql_num_rows($query) != 0){
! while ($er = mysql_fetch_object($query)) {
! $text = str_replace($er->slur, $er->substitution, $text);
! }
}
***************
*** 76,78 ****
}
! ?>
--- 73,75 ----
}
! ?>
\ No newline at end of file
|