-
Notifications
You must be signed in to change notification settings - Fork 3
/
show_log.php
65 lines (54 loc) · 1.18 KB
/
show_log.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Show log</title>
<LINK href='main.css' type=text/css rel=stylesheet>
<script>
function confirm_prompt( text,url ) {
if (confirm( text )) {
window.location = url ;
}
}
function openURLpopup( PageURL ) {
window.open( PageURL ,'popUpWindow','height=400,width=600,left=10,top=10,,scrollbars=yes,menubar=no');
}
</script>
</head>
<body>
<h2>Show log</h2>
<?php
$basedir=dirname(__FILE__);
include_once("image2video.php");
#include_once( image2video::$queue4job_path."/queue4job.php");
#$queue=new queue4job( image2video::$queue4job_path );
#$db=$queue->db;
/*
echo "<pre>";
echo var_dump( $queue );
echo "</pre>";
*/
$statusColors=array( 'failed'=>'#ffe6e6', 'finished'=>'#e6fff2' );
$errors= array();
$messages= array();
$today = date("F j, Y, g:i a");
$dt = date("U");
if( image2video::get_param( 'file' ) ) {
$file=base64_decode ( image2video::get_param( 'file' ) );
}
if( !file_exists( $file ) ) {
echo "<h3> File $file do not exist !!! </h3>
</body>
</html>
";
exit(0);
}
$content=file_get_contents( $file );
echo "<h2>$file</h2><hr>
<pre>
$content
</pre>
</body>
</html>
";
?>