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