2010-06-20 14:48:29 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$sql = "SELECT * FROM `applications` WHERE `device_id` = '".$device['device_id']."'";
|
2011-03-16 01:11:27 +00:00
|
|
|
if ($debug) { echo($sql."\n"); }
|
2010-06-20 14:48:29 +00:00
|
|
|
$app_data = mysql_query($sql);
|
|
|
|
|
2011-03-16 01:11:27 +00:00
|
|
|
if (mysql_affected_rows())
|
2010-06-20 14:48:29 +00:00
|
|
|
{
|
2011-03-22 20:27:39 +00:00
|
|
|
echo('Applications: ');
|
|
|
|
while ($app = mysql_fetch_array($app_data))
|
2010-06-20 14:48:29 +00:00
|
|
|
{
|
2011-03-22 20:27:39 +00:00
|
|
|
$app_include = $config['install_dir'].'/includes/polling/applications/'.$app['app_type'].'.inc.php';
|
|
|
|
if (is_file($app_include))
|
|
|
|
{
|
|
|
|
include($app_include);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo($app['app_type'].' include missing! ');
|
|
|
|
}
|
2011-03-16 01:11:27 +00:00
|
|
|
}
|
2011-03-22 20:27:39 +00:00
|
|
|
echo("\n");
|
2010-06-20 14:48:29 +00:00
|
|
|
}
|
|
|
|
|
2011-03-22 20:27:39 +00:00
|
|
|
?>
|