From: Javier B. <jb...@us...> - 2004-11-17 10:28:54
|
Update of /cvsroot/openbash-org/openbash-org/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6544/modules Modified Files: Quote.php View.php Log Message: mini cambios Index: View.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/modules/View.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** View.php 16 Nov 2004 17:23:40 -0000 1.3 --- View.php 17 Nov 2004 10:28:40 -0000 1.4 *************** *** 52,63 **** } ! function inserted_quote($url) { global $quote_language;?> <p class="quote"><?=$quote_language['inserted']?></p> ! <?php $this->redirect($url); } ! function redirect($url) { ?> <meta http-equiv=Refresh CONTENT="8; URL=<?=$url?>"> --- 52,70 ---- } ! function view_inserted_quote($url) { global $quote_language;?> <p class="quote"><?=$quote_language['inserted']?></p> ! <?php $this->view_redirect($url); } ! function view_non_inserted_quote() ! { ! global $quote_language;?> ! <p class="quote"><?=$quote_language['non_inserted']?></p> ! <?php ! } ! ! function view_redirect($url) { ?> <meta http-equiv=Refresh CONTENT="8; URL=<?=$url?>"> Index: Quote.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/modules/Quote.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Quote.php 17 Nov 2004 08:08:37 -0000 1.8 --- Quote.php 17 Nov 2004 10:28:40 -0000 1.9 *************** *** 34,40 **** $ins = $bd->_Execute($sql); ! $this->mail_warning($author, $quote, $ip); ! $url = '?page=quote&action=single&quote='.$bd->Insert_ID(); ! $view->inserted_quote($url); } --- 34,44 ---- $ins = $bd->_Execute($sql); ! if ($ins === false) { ! $view->view_non_inserted_quote(); ! } else { ! $this->mail_warning($author, $quote, $ip); ! $url = '?page=quote&action=single&quote='.$bd->Insert_ID(); ! $view->view_inserted_quote($url); ! } } |