Update of /cvsroot/phpcms-plugins/betablogger4phpcms
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25520
Modified Files:
bb-script.php bb-edit.php
Log Message:
fixed a bug in the validating function
Index: bb-edit.php
===================================================================
RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-edit.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- bb-edit.php 8 Dec 2004 17:24:08 -0000 1.3
+++ bb-edit.php 9 Dec 2004 08:13:53 -0000 1.4
@@ -29,6 +29,9 @@
/*
* $Log$
+* Revision 1.4 2004/12/09 08:13:53 mjahn
+* fixed a bug in the validating function
+*
* Revision 1.3 2004/12/08 17:24:08 mjahn
* some little changes in phpdoc
*
@@ -129,8 +132,7 @@
$ping_urls = array_merge ($ping_urls, $matches[1]);
}
}
- header ('Location: '.$this->redirectURL);
- //this->redirecturl.'&edit_type=entry&item_id='.$_REQUEST ['item_id']);;
} elseif ($_REQUEST['action'] == 'Delete') {
+ } elseif ($_REQUEST['action'] == 'Delete') {
$this->blog->delete ($item);
$this->_updateIndexes ();
$_REQUEST['item_id'] = 0;
@@ -140,8 +142,6 @@
unset($_REQUEST["item_$field"]);
}
}
- header ('Location: '.$this->redirectURL);
-// header ('Location: '.$this->redirecturl);
}
}
@@ -171,7 +171,7 @@
// send pings, if there are any ping-URLs in the entry-body
if ($_REQUEST['action'] == 'Save') {
if (isset($_REQUEST['validate'])) {
- $this->_validate($this->blog, $item);
+ $this->_validate($item);
echo "<br>\n";
flush();
}
@@ -192,9 +192,11 @@
print "<br>\n";
flush();
}
+ header ('Location: '.$this->redirectURL.'&edit_type=entry&item_id='.$_REQUEST ['item_id']);
}
-
-
+ if ($_REQUEST['action'] == 'Delete') {
+ header ('Location: '.$this->redirectURL);
+ }
return $item;
}
Index: bb-script.php
===================================================================
RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-script.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- bb-script.php 8 Dec 2004 17:24:08 -0000 1.3
+++ bb-script.php 9 Dec 2004 08:13:53 -0000 1.4
@@ -5,11 +5,12 @@
* This script is a universal interface for integrating betablogger into phpCMS-
* driven websites. You can append several parameters to this script
*
+* <b>List of parameters</b>
* <ul>
* <li>showvalue=fieldname => prints the value of the named field</li>
* </ul>
*
-* Integration into a phpCMS-driven website (example)
+* <b>Integration into a phpCMS-driven website (example)</b>
*
* By appending the parameter "showvalue" to the script-call you can determine
* what part of the betablogger-output is printed out by the script. A example:
@@ -37,7 +38,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*
+*
* @author Martin Jahn <mj...@us...>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @copyright Copyright (c) 2004, Martin Jahn
@@ -47,6 +48,9 @@
/*
* $Log$
+* Revision 1.4 2004/12/09 08:13:53 mjahn
+* fixed a bug in the validating function
+*
* Revision 1.3 2004/12/08 17:24:08 mjahn
* some little changes in phpdoc
*
|