forked from jamiedaniels123/encoder-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexecutive.php
42 lines (37 loc) · 1.4 KB
/
executive.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
<?PHP
/*========================================================================================*\
# Coder : Ian Newton
# Date : 24th May,2011
# Test version
# controller to process actions queued in the media_actions table and report status to the admin server
\*=========================================================================================*/
require_once("./lib/config.php");
require_once("./lib/classes/action-encoder.class.php");
require_once("./cron.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin post command</title>
<script type="application/x-javascript">
<!--
function submitform()
{
document.getElementById('action').submit();
}
-->
</script>
</head>
<body>
<br /><?PHP if (isset($m_data)) print_r($m_data);?><br /><br />
<br /><?PHP if (isset($error)) print_r($error);?><br /><br />
<form action="" method="post" enctype="application/x-www-form-urlencoded" name="action" id="action">
<select name="action_select" onchange="javascript:submitform();">
<option value="">Select action ...</option>
<option value="execute">Execute items in admin queue</option>
</select>
</form>
<?PHP // phpinfo(); ?>
</body>
</html>