0.7.12
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user