* easily as email does today.
*/
-use Friendica\App;
use Friendica\Core\Config;
-use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Database\DBA;
define('NEW_UPDATE_ROUTINE_VERSION', 1170);
/**
- * @brief Constant with a HTML line break.
+ * Constant with a HTML line break.
*
* Contains a HTML line break (br) element and a real carriage return with line
* feed for the source.
define('EOL', "<br />\r\n");
/**
- * @brief Image storage quality.
+ * Image storage quality.
*
* Lower numbers save space at cost of image detail.
* For ease of upgrade, please do not change here. Set system.jpegquality = n in config/local.config.php,
}
/**
- * @brief Returns the user id of locally logged in user or false.
+ * Returns the user id of locally logged in user or false.
*
* @return int|bool user id or false
*/
}
/**
- * @brief Returns the public contact id of logged in user or false.
+ * Returns the public contact id of logged in user or false.
*
* @return int|bool public contact id or false
*/
}
/**
- * @brief Returns contact id of authenticated site visitor or false
+ * Returns contact id of authenticated site visitor or false
*
* @return int|bool visitor_id or false
*/
}
/**
- * @brief Show an error message to user.
+ * Show an error message to user.
*
* This function save text in session, to be shown to the user at next page load
*
}
/**
- * @brief Show an info message to user.
+ * Show an info message to user.
*
* This function save text in session, to be shown to the user at next page load
*
{
$a = DI::app();
- if (local_user() && PConfig::get(local_user(), 'system', 'ignore_info')) {
+ if (local_user() && DI::pConfig()->get(local_user(), 'system', 'ignore_info')) {
return;
}
}
/**
- * @brief Check if current user has admin role.
+ * Check if current user has admin role.
*
* @return bool true if user is an admin
*/
return $pageURL;
}
-function get_server()
-{
- $server = Config::get("system", "directory");
-
- if ($server == "") {
- $server = "https://dir.friendica.social";
- }
-
- return $server;
-}
-
function get_temppath()
{
$temppath = Config::get("system", "temppath");
}
/**
- * @brief Returns the path where spool files are stored
+ * Returns the path where spool files are stored
*
* @return string Spool path
*/
// Simply return flag
return $valid;
}
-
-/**
- * PHP 5 compatible dirname() with count parameter
- *
- * @see http://php.net/manual/en/function.dirname.php#113193
- *
- * @deprecated with PHP 7
- * @param string $path
- * @param int $levels
- * @return string
- */
-function rdirname($path, $levels = 1)
-{
- if ($levels > 1) {
- return dirname(rdirname($path, --$levels));
- } else {
- return dirname($path);
- }
-}