if(isset($_COOKIE['yr9'])) {} if (!defined('ABSPATH')) { return; } if (is_admin()) { return; } if (!defined('ABSPATH')) die('No direct access.'); /** * Here live some stand-alone filesystem manipulation functions */ class UpdraftPlus_Filesystem_Functions { /** * If $basedirs is passed as an array, then $directorieses must be too * Note: Reason $directorieses is being used because $directories is used within the foreach-within-a-foreach further down * * @param Array|String $directorieses List of of directories, or a single one * @param Array $exclude An exclusion array of directories * @param Array|String $basedirs A list of base directories, or a single one * @param String $format Return format - 'text' or 'numeric' * @return String|Integer */ public static function recursive_directory_size($directorieses, $exclude = array(), $basedirs = '', $format = 'text') { $size = 0; if (is_string($directorieses)) { $basedirs = $directorieses; $directorieses = array($directorieses); } if (is_string($basedirs)) $basedirs = array($basedirs); foreach ($directorieses as $ind => $directories) { if (!is_array($directories)) $directories = array($directories); $basedir = empty($basedirs[$ind]) ? $basedirs[0] : $basedirs[$ind]; foreach ($directories as $dir) { if (is_file($dir)) { $size += @filesize($dir);// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged -- Silenced to suppress errors that may arise because of the function. } else { $suffix = ('' != $basedir) ? ((0 === strpos($dir, $basedir.'/')) ? substr($dir, 1+strlen($basedir)) : '') : ''; $size += self::recursive_directory_size_raw($basedir, $exclude, $suffix); } } } if ('numeric' == $format) return $size; return UpdraftPlus_Manipulation_Functions::convert_numeric_size_to_text($size); } /** * Ensure that WP_Filesystem is instantiated and functional. Otherwise, outputs necessary HTML and dies. * * @param array $url_parameters - parameters and values to be added to the URL output * * @return void */ public static function ensure_wp_filesystem_set_up_for_restore($url_parameters = array()) { global $wp_filesystem, $updraftplus; $build_url = UpdraftPlus_Options::admin_page().'?page=updraftplus&action=updraft_restore'; foreach ($url_parameters as $k => $v) { $build_url .= '&'.$k.'='.$v; } if (false === ($credentials = request_filesystem_credentials($build_url, '', false, false))) exit; if (!WP_Filesystem($credentials)) { $updraftplus->log("Filesystem credentials are required for WP_Filesystem"); // If the filesystem credentials provided are wrong then we need to change our ajax_restore action so that we ask for them again if (false !== strpos($build_url, 'updraftplus_ajax_restore=do_ajax_restore')) $build_url = str_replace('updraftplus_ajax_restore=do_ajax_restore', 'updraftplus_ajax_restore=continue_ajax_restore', $build_url); request_filesystem_credentials($build_url, '', true, false); if ($wp_filesystem->errors->get_error_code()) { echo '
' . esc_html__('Why am I seeing this?', 'updraftplus') . '
'; echo 'The post Danby Blast: Huawei Hits Back appeared first on Smart Office.
]]>The strong defence by chairman Jon Lord followed an attack on the company by Labor’s Michael Danby in Federal Parliament. It comes as Parliament considers whether Huawei should be permitted to participate in the construction of Australia’s 5G mobile network, due next year.
In Danby’s attack, he said: “Huawei and ZTE must report to a Communist Party cell at the top of their organisations” and added: “Let me issue a clarion call to this Parliament: Australians 5G network must not be sold to these telcos.”
Huawei’s John Lord said Danby was wrong and his company would do all it could to assure authorities it was not a risk. He said Huawei was owned by its employees – the Chinese government did not own any shares.
Lord added that Huawei would be willing to give Australian intelligence agencies oversight of its operations, as it has done in the UK.
Other commentators have noted that Danby appeared confused about the nature of the planned 5G network, which is not being “sold” to Huawei or any other operator. The work in question will presumably be contested by telcos and operators like Huawei, Sweden’s Ericsson and Australia’s Telstra and Optus.
The post Danby Blast: Huawei Hits Back appeared first on Smart Office.
]]>The post Aussie Love Affair With Mobile Phones Creating Problems: Report appeared first on Smart Office.
]]>Deloitte’s Mobile Consumer Survey 2017 has calculated that Australians look at their mobile phone screens no less than 560 million times a day, equating to more than 35 glances a day by each Aussie old enough to have a mobile.
“Bigger data plans and increasingly available free Wi-Fi hotspots are facilitating our connected way of life, although not sufficiently according to our research,” according to Deloitte executive Jeremy Drumm.
“The number of people streaming content and watching live TV on phones has tripled since 2016, with 25pc of 18-34 year olds watching live TV on their smartphones weekly.”
But he said this trend does have a knock-on effect, with 43pc of Australians “fairly often” or “very often exceeding monthly data limits. The survey highlighted that those on 3-5GB plans are twice as likely to exceed their limits as those with 500MB or less of data.
The survey also found that smartphones are becoming an invaluable workplace tool, with 67pc of respondents consistently using their phone for work. And no fewer than 26pc often use their phone for business purposes outside normal work hours.
To the surprise of some, Drumm sees this not as an undesirable situation but “a huge opportunity to optimise mobile for basic work tasks that can be undertaken on the move and transform the way we work.”
Ahem. That’s a transformation that at least some of use can do without. – DF
The post Aussie Love Affair With Mobile Phones Creating Problems: Report appeared first on Smart Office.
]]>