[eGroupWare-svn] r56076 - in /trunk: egroupware/api/setup/default_records.inc.php phpgwapi/setup/default_records.inc.php

[email protected] Fri, 06 May 2016 16:13:35 -0000
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: ralfbecker
Date: Fri May  6 18:13:35 2016
New Revision: 56076

URL: http://svn.stylite.de/viewvc/egroupware?rev=56076&view=rev
Log:
mv missing default_records to api

Added:
    trunk/egroupware/api/setup/default_records.inc.php
      - copied, changed from r56073, trunk/phpgwapi/setup/default_records.inc.php
Removed:
    trunk/phpgwapi/setup/default_records.inc.php

Copied: trunk/egroupware/api/setup/default_records.inc.php (from r56073, trunk/phpgwapi/setup/default_records.inc.php)
URL: http://svn.stylite.de/viewvc/egroupware/trunk/egroupware/api/setup/default_records.inc.php?p2=trunk/egroupware/api/setup/default_records.inc.php&p1=trunk/phpgwapi/setup/default_records.inc.php&r1=56073&r2=56076&rev=56076&view=diff
==============================================================================
--- trunk/phpgwapi/setup/default_records.inc.php (original)
+++ trunk/egroupware/api/setup/default_records.inc.php Fri May  6 18:13:35 2016
@@ -1,15 +1,16 @@
 <?php
-/**************************************************************************\
-* eGroupWare - Setup                                                       *
-* http://www.egroupware.org                                                *
-* --------------------------------------------                             *
-*  This program is free software; you can redistribute it and/or modify it *
-*  under the terms of the GNU General Public License as published by the   *
-*  Free Software Foundation; either version 2 of the License, or (at your  *
-*  option) any later version.                                              *
-\**************************************************************************/
-
-/* $Id$ */
+/**
+ * EGroupware - API Setup
+ *
+ * @link http://www.egroupware.org
+ * @package api
+ * @subpackage setup
+ * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
+ * @version $Id$
+ */
+
+use EGroupware\Api;
+use EGroupware\Api\Vfs;
 
 //$oProc->m_odb->Halt_On_Error = 'yes';
 
@@ -160,7 +161,7 @@
 foreach(array(
 	'sessions_checkip' => 'True',
 	'asyncservice'     => 'fallback',
-	'install_id'       => md5(microtime(true).common::randomstring(15)),
+	'install_id'       => md5(microtime(true).Api\Auth::randomstring(15)),
 ) as $name => $value)
 {
 	$oProc->insert($GLOBALS['egw_setup']->config_table,array(
@@ -209,8 +210,8 @@
  */
 $admins = $GLOBALS['egw_setup']->add_account('Admins','Admin','Group',False,False);
 
-egw_vfs::$is_root = true;
-$prefs = new preferences();
+Vfs::$is_root = true;
+$prefs = new Api\Preferences();
 $prefs->read_repository(false);
 foreach(array('','addressbook', 'calendar', 'infolog', 'tracker', 'timesheet', 'projectmanager', 'filemanager') as $app)
 {
@@ -218,9 +219,9 @@
 
 	// create directory and set permissions: Admins writable and other readable
 	$dir = '/templates'.($app ? '/'.$app : '');
-	egw_vfs::mkdir($dir, 075, STREAM_MKDIR_RECURSIVE);
-	egw_vfs::chgrp($dir, abs($admins));
-	egw_vfs::chmod($dir, 075);
+	Vfs::mkdir($dir, 075, STREAM_MKDIR_RECURSIVE);
+	Vfs::chgrp($dir, abs($admins));
+	Vfs::chmod($dir, 075);
 	if (!$app) continue;
 
 	// set default preference for app (preserving a maybe already set document-directory)
@@ -233,7 +234,7 @@
 	$prefs->add($app, 'document_dir', $dir, 'default');
 }
 $prefs->save_repository(false, 'default');
-egw_vfs::$is_root = false;
+Vfs::$is_root = false;
 
 /**
  * Create anonymous user for sharing of files


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z