Author: ralfbecker
New Revision: 55272
URL: http://svn.stylite.de/viewvc/egroupware?rev=55272&view=rev
Log:
move egw_csrf class to Api\Csrf without a compatibility class
Added:
trunk/egroupware/api/src/Csrf.php
- copied, changed from r55263, trunk/phpgwapi/inc/class.egw_csrf.inc.php
Removed:
trunk/phpgwapi/inc/class.egw_csrf.inc.php
Modified:
trunk/admin/inc/class.uiconfig.inc.php
trunk/setup/account_migration.php
trunk/setup/admin_account.php
trunk/setup/applications.php
trunk/setup/config.php
trunk/setup/db_backup.php
trunk/setup/index.php
— trunk/admin/inc/class.uiconfig.inc.php (original)
+++ trunk/admin/inc/class.uiconfig.inc.php Sat Mar 5 15:02:13 2016
@@ -9,6 +9,8 @@
+use EGroupware\Api;
+
/**
- Site configuration for all apps using an $app/templates/default/config.tpl
*/
@@ -24,7 +26,7 @@
// for POST requests validate CSRF token (or terminate request)
if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’)
{
@@ -44,7 +46,7 @@
// load the translations of the app we show too, so they dont need to be in admin!
if ($_appname != ‘admin’)
{
@@ -103,7 +105,7 @@
// fix footer submit buttons to just {submit} {cancel}
$t->set_var(‘footer’, preg_replace(’/<input[^>]+value="{lang_(submit|cancel)}"[^>]*>/’, ‘{$1}’, $t->get_var(‘footer’)));
-
$c = new Api\Config($config_appname);
$c->read_repository();
if ($_POST['cancel'] || ($_POST['submit'] || $_POST['save'] || $_POST['apply']) && $GLOBALS['egw']->acl->check('site_config_acce',2,'admin'))
{
@@ -177,7 +179,7 @@
$t->set_var(‘th_text’, $GLOBALS[‘egw_info’][‘theme’][‘th_text’]);
$t->set_var(‘row_on’, $GLOBALS[‘egw_info’][‘theme’][‘row_on’]);
$t->set_var(‘row_off’, $GLOBALS[‘egw_info’][‘theme’][‘row_off’]);
— trunk/phpgwapi/inc/class.egw_csrf.inc.php (original)
+++ trunk/egroupware/api/src/Csrf.php Sat Mar 5 15:02:13 2016
@@ -6,9 +6,14 @@