//system information - keep old route with typo ('s' on 'information') for now (0.9.4)
$app->get(
'/system-informations',
- function($request, $response, $args) {
+ function ($request, $response, $args) {
return $response
->withStatus(302)
->withHeader('Location', $this->router->pathFor('sysinfos'));
$linecount = count($lines);
$in_comment = false;
- for($i = 0; $i < $linecount; $i++)
+ for ($i = 0; $i < $linecount; $i++)
{
- if( preg_match("/^\/\*/", preg_quote($lines[$i])) )
+ if (preg_match("/^\/\*/", preg_quote($lines[$i])))
{
$in_comment = true;
}
- if( !$in_comment )
+ if (!$in_comment)
{
$output .= $lines[$i] . "\n";
}
- if( preg_match("/\*\/$/", preg_quote($lines[$i])) )
+ if (preg_match("/\*\/$/", preg_quote($lines[$i])))
{
$in_comment = false;
}
'tempimages'
);
- if ( !in_array($dirname, $nomove) ) {
+ if (!in_array($dirname, $nomove)) {
$origdir = GALETTE_ROOT . $dirname . '/';
$destdir = GALETTE_DATA_PATH . $dirname . '/';
$go = false;
//move directory contents
- switch ( $dirname ) {
+ switch ($dirname) {
case 'logs':
- if ( GALETTE_LOGS_PATH === $destdir && file_exists($origdir) ) {
+ if (GALETTE_LOGS_PATH === $destdir && file_exists($origdir)) {
$go = true;
}
break;
case 'exports':
- if ( GALETTE_EXPORTS_PATH === $destdir && file_exists($origdir) ) {
+ if (GALETTE_EXPORTS_PATH === $destdir && file_exists($origdir)) {
$go = true;
}
break;
case 'imports':
- if ( GALETTE_IMPORTS_PATH === $destdir && file_exists($origdir) ) {
+ if (GALETTE_IMPORTS_PATH === $destdir && file_exists($origdir)) {
$go = true;
}
break;
case 'photos':
- if ( GALETTE_PHOTOS_PATH === $destdir && file_exists($origdir) ) {
+ if (GALETTE_PHOTOS_PATH === $destdir && file_exists($origdir)) {
$go = true;
}
break;
case 'attachments':
- if ( GALETTE_ATTACHMENTS_PATH === $destdir
+ if (GALETTE_ATTACHMENTS_PATH === $destdir
&& file_exists($origdir)
) {
$go = true;
}
break;
case 'files':
- if ( GALETTE_FILES_PATH === $destdir && file_exists($origdir) ) {
+ if (GALETTE_FILES_PATH === $destdir && file_exists($origdir)) {
$go = true;
}
break;
}
- if ( $go ) {
+ if ($go) {
$moved = true;
$d = dir($origdir);
while (($entry = $d->read()) !== false) {
- if ( $entry != '.' && $entry != '..' ) {
+ if ($entry != '.' && $entry != '..') {
$moved = @rename($origdir . $entry, $destdir . $entry);
- if ( !$moved ) {
+ if (!$moved) {
$moved = false;
$this->addError(
str_replace(
?>
<form action="installer.php" method="POST">
<p id="btn_box">
- <input id="next_btn" type="submit" value="<?php echo _T("Next step"); ?>"<?php if (!$conndb_ok || !$permsdb_ok) { echo ' disabled="disabled"'; } ?>/>
+ <input id="next_btn" type="submit" value="<?php echo _T("Next step"); ?>"<?php if (!$conndb_ok || !$permsdb_ok) { echo ' disabled="disabled"'; } ?>/>
<?php
if ($conndb_ok && $permsdb_ok) {
?>