Example #1
0
 private function checkitem($userdata, $param, $key)
 {
     if (item($userdata, $param) && !isempty($userdata[$param])) {
         return 0;
     }
     $this->set_message(sptrinf(lang('account.param.empty'), $param) . '<br />');
     return 1;
 }
Example #2
0
 /**
  * Set the directory backups are saved to
  *
  * @param string $path
  * @throws Exception
  */
 public function set_path($path)
 {
     if (empty($path) || !is_string($path)) {
         throw new Exception(sptrinf(__('Invalid backup path %s must be a non empty (string)', wpremote), '<code>' . $path . '</code>'));
     }
     $this->path = self::conform_dir($path);
 }