2 namespace Friendica\Core;
9 * @file include/Core/System.php
11 * @brief Contains the class with system relevant stuff
16 * @brief System methods
23 * @brief Initializes the static class variable
25 private static function init() {
28 if (!is_object(self::$a)) {
34 * @brief Retrieves the Friendica instance base URL
36 * @param bool $ssl Whether to append http or https under SSL_POLICY_SELFSIGN
37 * @return string Friendica server base URL
39 public static function baseUrl($ssl = false) {
41 return self::$a->get_baseurl($ssl);
45 * @brief Removes the baseurl from an url. This avoids some mixed content problems.
47 * @param string $orig_url
49 * @return string The cleaned url
51 function removedBaseUrl($orig_url) {
53 return self::$a->remove_baseurl($orig_url);
56 /// @todo Move the following functions from boot.php
58 function get_guid($size = 16, $prefix = "")
62 function public_contact()
63 function remote_user()
66 function is_site_admin()
67 function random_digits($digits)
69 function get_temppath()
70 function get_cachefile($file, $writemode = true)
71 function get_itemcachepath()
72 function get_spoolpath()
73 function current_load()