***********************************************************************/
include_once($path_to_root . "/includes/db/connect_db.inc");
***********************************************************************/
include_once($path_to_root . "/includes/db/connect_db.inc");
include_once($path_to_root . "/includes/errors.inc");
include_once($path_to_root . "/includes/types.inc");
include_once($path_to_root . "/includes/systypes.inc");
include_once($path_to_root . "/includes/errors.inc");
include_once($path_to_root . "/includes/types.inc");
include_once($path_to_root . "/includes/systypes.inc");
include_once($path_to_root . "/includes/prefs/sysprefs.inc");
include_once($path_to_root . "/includes/db/comments_db.inc");
include_once($path_to_root . "/includes/db/sql_functions.inc");
include_once($path_to_root . "/includes/prefs/sysprefs.inc");
include_once($path_to_root . "/includes/db/comments_db.inc");
include_once($path_to_root . "/includes/db/sql_functions.inc");
include_once($path_to_root . "/admin/db/users_db.inc");
include_once($path_to_root . "/includes/ui/ui_view.inc");
include_once($path_to_root . "/includes/ui/ui_controls.inc");
include_once($path_to_root . "/admin/db/users_db.inc");
include_once($path_to_root . "/includes/ui/ui_view.inc");
include_once($path_to_root . "/includes/ui/ui_controls.inc");
function page($title, $no_menu=false, $is_index=false, $onload="", $js="", $script_only=false)
{
function page($title, $no_menu=false, $is_index=false, $onload="", $js="", $script_only=false)
{
$hide_menu = $no_menu;
include($path_to_root . "/includes/page/header.inc");
page_header($title, $no_menu, $is_index, $onload, $js);
$hide_menu = $no_menu;
include($path_to_root . "/includes/page/header.inc");
page_header($title, $no_menu, $is_index, $onload, $js);
- flush_dir($path.'/'.$fname);
- @rmdir($path.'/'.$fname);
+ flush_dir($path.'/'.$fname, $wipe);
+ if ($wipe) @rmdir($path.'/'.$fname);
$inNormalComment = false;
//loop through line's characters and take out any literal strings, replace them with ___i___ where i is the index of this string
$inNormalComment = false;
//loop through line's characters and take out any literal strings, replace them with ___i___ where i is the index of this string
- $c = substr($line,$j,1);
- $d = substr($line,$j,2);
+ $c = $line[$j]; // this is _really_ faster than subst
+ $d = $c.$line[$j+1];
-function array_replace(&$array, $index, $len, $elements)
+function array_substitute(&$array, $index, $len, $elements)
{
array_splice($array, $index, $len);
array_insert($array, $index, $elements);
{
array_splice($array, $index, $len);
array_insert($array, $index, $elements);