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 Things Go Better With Microsoft appeared first on Smart Office.
]]>SEATTLE: Microsoft has won a five-year deal with soft drink giant Coca-Cola to supply business software, including its Teams chat app and tools for customer service agents.
The companies did not disclose the size of the deal but said it will include Dynamics 365, a suite of Microsoft tools that competes directly with Salesforce.
Coca-Cola said it will use Microsoft technology to pull together information from several internal systems, using artificial intelligence to fetch data from them, and answer questions.
The post Things Go Better With Microsoft appeared first on Smart Office.
]]>The post Harvey Norman + Dick Smith Online Back End Up For Sale appeared first on Smart Office.
]]>The post Harvey Norman + Dick Smith Online Back End Up For Sale appeared first on Smart Office.
]]>The post Review: Optus Smart Safe Eliminates Download Quotas From The Cloud appeared first on Smart Office.
]]>The Smart Safe app, downloadable for a range of mobile device operating systems, is a simple utility with four main buttons – but it’s a little too simple. There are backup and restore buttons as well as one to manage your subscription and one to display quick, handy tips on using the Smart Safe. The app is not compatible with iPhones though, but works on Android, Windows Phone 6, BlackBerry and Symbian.
It being a little too simple means that you can’t pick and choose what files you want to upload or download from the mobile app, though there is a settings section for choosing what type of media and content (whether it be music, photos, SMS, contacts, etc) you want to back up. Managing specific files will always lead you back into the less-than-perfect web app rather than using the Android app. Otherwise, you can also customise automatic back up scheduling and caps on backups.
The web app for browsers on PCs, Macs and mobiles offers a similar feature set, but more in-depth. Files on a computer or saved into the Safe from a linked device can be explored under subheadings like Videos, Contacts, Documents, etc. From here, they can be played, downloaded, edited or shared over social networks.
If you were to lose your mobile phone, all of your data could be replaced onto a new phone by signing the device up to your account, though there’s a cap of five linked devices. If you were to cancel your Optus mobile account, you’re given a 60 day leeway to re-subscribe to Smart Safe and access stored files again.
The big perk of the unlimited download/upload quota is also only applicable to Optus mobiles rather than desktop broadband connections. There are also charges involved in mobile roaming, though this is switched off by default.
It’s a good start from a telco jumping into mass consumer cloud offerings, but the process could be a lot more refined with a few app redesigns and tweaks. It’s simple, functional and very useful. Whether you’re paranoid about losing data or want to access all your phone data across devices and computers like Google’s cloud, this service is worth adopting if you’re already with Optus (unless you’re an iPhone user, in which case you’ll be looking out for iCloud).
The post Review: Optus Smart Safe Eliminates Download Quotas From The Cloud appeared first on Smart Office.
]]>