$ttt1 = timpexec(); filesuck($cccam_host, $webinfo_port, $webinfo_user, $webinfo_pass, "/entitlements", $entitlements_update); checkUpdateFile($entitlements_update); $ttt2 = timpexec(); $difff = number_format(substr($ttt2, 0, 9) + substr($ttt2, -10) - substr($ttt1, 0, 9) - substr($ttt1, -10), 4); if ($downloadfacut == false) { $difff = "error"; } $updatelog_text = $updatelog_text . "\nEntitlements : " . $difff . " ms"; } } if (!file_exists($shares_file) || $forceupdate || $update_shares) { if ($server_offline == false) { $ttt1 = timpexec(); filesuck($cccam_host, $webinfo_port, $webinfo_user, $webinfo_pass, "/shares", $shares_update); checkUpdateFile($shares_update); $ttt2 = timpexec(); $difff = number_format(substr($ttt2, 0, 9) + substr($ttt2, -10) - substr($ttt1, 0, 9) - substr($ttt1, -10), 4); if ($downloadfacut == false) { $difff = "error"; } $updatelog_text = $updatelog_text . "\nShares : " . $difff . " ms"; } } if ($downloadfacut == true) { CopyUpdate($caminfo_update, $caminfo_file); CopyUpdate($servers_update, $servers_file); CopyUpdate($shares_update, $shares_file); CopyUpdate($clients_update, $clients_file); CopyUpdate($activeclients_update, $activeclients_file); CopyUpdate($entitlements_update, $entitlements_file);
} $edit_user_profile = entity_str(getPost('edit_user_profile')); if (!isExist($edit_user_profile)) { $errors[] = 'プロフィールを入力してください'; } else { if (!isOvertext($edit_user_profile, 200)) { $errors[] = '文字数は200文字以内にしてください'; } } if (isset($_FILES['edit_user_profile_photo'])) { // todo: 画像アップロード入力チェック if (!checkPostMaxSize()) { $errors[] = 'ファイルサイズは100KB以下にしてください'; } // アップロードファイルチェック list($result, $ext, $error_msg) = checkUpdateFile(); $errors = array_merge($errors, $error_msg); if ($result) { $name = $_FILES['edit_user_profile_photo']['name']; $tmp_name = $_FILES['edit_user_profile_photo']['tmp_name']; // 画像保存先ファイルパス $move_to = $dir_src . makeRandStr() . $ext; // アップロードした一時ファイルを指定した場所へ移動します if (!move_uploaded_file($tmp_name, $move_to)) { $errors[] = '画像のアップロードに失敗しました'; $edit_user_profile_photo = ''; } else { $edit_user_profile_photo = $move_to; } } if (count($errors) === 0) {