mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 02:33:02 +02:00
feature 2999; docblocks for history, install and metadata
git-svn-id: http://piwigo.org/svn/trunk@26946 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -22,16 +22,19 @@
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
/**
|
||||
* loads an sql file and executes all queries
|
||||
*
|
||||
* @package functions\admin\install
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Loads a SQL file and executes all queries.
|
||||
* Before executing a query, $replaced is... replaced by $replacing. This is
|
||||
* useful when the SQL file contains generic words. Drop table queries are
|
||||
* not executed.
|
||||
*
|
||||
* @param string filepath
|
||||
* @param string replaced
|
||||
* @param string replacing
|
||||
* @return void
|
||||
* @param string $filepath
|
||||
* @param string $replaced
|
||||
* @param string $replacing
|
||||
*/
|
||||
function execute_sqlfile($filepath, $replaced, $replacing, $dblayer)
|
||||
{
|
||||
@@ -70,8 +73,6 @@ function execute_sqlfile($filepath, $replaced, $replacing, $dblayer)
|
||||
|
||||
/**
|
||||
* Automatically activate all core themes in the "themes" directory.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function activate_core_themes()
|
||||
{
|
||||
@@ -86,6 +87,12 @@ function activate_core_themes()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Connect to database during installation. Uses $_POST.
|
||||
*
|
||||
* @param array &$infos - populated with infos
|
||||
* @param array &$errors - populated with errors
|
||||
*/
|
||||
function install_db_connect(&$infos, &$errors)
|
||||
{
|
||||
try
|
||||
@@ -99,4 +106,5 @@ function install_db_connect(&$infos, &$errors)
|
||||
$errors[] = l10n($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user