From: Arno H. <aho...@us...> - 2000-11-01 11:31:44
|
Update of /cvsroot/phpwiki/phpwiki In directory slayer.i.sourceforge.net:/tmp/cvs-serv24731 Modified Files: index.php Log Message: fixed E_NOTICE warnings Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** index.php 2000/10/25 09:58:53 1.3 --- index.php 2000/11/01 11:31:40 1.4 *************** *** 8,11 **** --- 8,12 ---- set_magic_quotes_runtime(0); + error_reporting(E_ALL ^ E_NOTICE); // remove E_NOTICE for debugging include "lib/config.php"; *************** *** 17,41 **** // Allow choice of submit buttons to determine type of search: ! if ($searchtype == 'full') $full = $searchstring; ! elseif ($searchstring) // default to title search $search = $searchstring; ! if ($edit) { $admin_edit = 0; include "lib/editpage.php"; ! } elseif ($links) { include "lib/editlinks.php"; ! } elseif ($copy) { include "lib/editpage.php"; ! } elseif ($search) { include "lib/search.php"; ! } elseif ($full) { include "lib/fullsearch.php"; ! } elseif ($post) { include "lib/savepage.php"; ! } elseif ($info) { include "lib/pageinfo.php"; ! } elseif ($diff) { include "lib/diff.php"; } else { --- 18,42 ---- // Allow choice of submit buttons to determine type of search: ! if (isset($searchtype) && ($searchtype == 'full')) $full = $searchstring; ! elseif (isset($searchstring)) // default to title search $search = $searchstring; ! if (isset($edit)) { $admin_edit = 0; include "lib/editpage.php"; ! } elseif (isset($links)) { include "lib/editlinks.php"; ! } elseif (isset($copy)) { include "lib/editpage.php"; ! } elseif (isset($search)) { include "lib/search.php"; ! } elseif (isset($full)) { include "lib/fullsearch.php"; ! } elseif (isset($post)) { include "lib/savepage.php"; ! } elseif (isset($info)) { include "lib/pageinfo.php"; ! } elseif (isset($diff)) { include "lib/diff.php"; } else { |