This commit is contained in:
2019-05-22 04:02:22 -07:00
parent c062910a22
commit e84c693464
11 changed files with 313 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
<?php
// Classes
// 0.7.10.3
// 0.7.12
//////////////////////////////////////////
class ProgressBar {
@@ -67,6 +67,16 @@ class ProgressBar {
// Functions
//////////////////////////////////////////
function alert($string, $title = "Warning") {
echo "\nALERT:".$title."|".$string."\n";
}
function askMulti($string, $buttons) {
$buttonstring = "buttons {\\\"".implode("\\\", \\\"",$buttons)."\\\"} default button ".count($buttons);
$result = exec("osascript -e \"display dialog \\\"".$string."\\\" ".$buttonstring."\" | cut -f2 -d':'");
return array_search($result,$buttons);
}
function msg($string) {
global $messages_log_file;
$logstring = "[".date('Y-m-d h:i:s')."] ".$string."\n";