Rev 2073 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| SVN
| RSS feed
<?php
require_once("config.php");
if ($atomdOld)
{
require_once("atom_interface_old.php");
}
else
{
require_once("atom_interface_new.php");
}
function GetSubfolders($directory)
{
{
$directory_handle = opendir($directory);
while (false !== ($filename = readdir($directory_handle)))
{
if (is_dir($directory . "/" . $filename) && $filename[0] != ".")
{
$folders[] = $filename;
}
}
{
}
}
return $folders;
}
if (isset($_GET["ajax"]))
{
global $atomdHostname;
global $atomdPort;
$buffer = "";
try
{
$socket = atomd_initialize($atomdHostname, $atomdPort);
atomd_send_command($socket, $_GET["command"]);
echo trim(atomd_read_command_response
($socket));
}
catch (Exception $e)
{
}
}
else
{
$pages = GetSubfolders("pages/");
}
?>