[ Index ]

PHP Cross Reference of Nucleus CMS 3.32

title

Body

[close]

/nucleus/libs/ -> backup.php (summary)

Scripts to create/restore a backup of the Nucleus database Based on code in phpBB (http://phpBB.sourceforge.net)

Copyright: Copyright (C) 2002-2007 The Nucleus Group
License: http://nucleuscms.org/license.txt GNU General Public License
Version: $Id: backup.php 1183 2007-07-15 15:06:31Z kaigreve $
File Size: 500 lines (13 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  do_backup()
  _backup_dump_table()
  _backup_dump_structure()
  _backup_get_field_names()
  _backup_dump_contents()
  gzip_PrintFourChars()
  do_restore()
  _execute_queries()
  remove_remarks()
  split_sql_file()
  _evenNumberOfQuotes()

Functions
Functions that are not part of a class:

do_backup($gzip = 0)   X-Ref
This function creates an sql dump of the database and sends it to
the user as a file (can be gzipped if they want)

param: gzip

_backup_dump_table($tablename, $key)   X-Ref
Creates a dump for a single table
($tablename and $key are filled in by array_walk)


_backup_dump_structure($tablename)   X-Ref
No description

_backup_get_field_names($result, $num_fields)   X-Ref
Returns the field named for the given table in the
following format:

(column1, column2, ..., columnn)

_backup_dump_contents($tablename)   X-Ref
No description

gzip_PrintFourChars($Val)   X-Ref
No description

do_restore()   X-Ref
No description

_execute_queries($sql_query)   X-Ref
No description

remove_remarks($sql)   X-Ref
No description

split_sql_file($sql)   X-Ref
No description

_evenNumberOfQuotes($text)   X-Ref
No description



Generated: Tue Feb 12 15:34:36 2008 Cross-referenced by PHPXref 0.7