Files
Phraseanet/www/admin/publi_settings.php
Romain Neutron 4c5b7eb658 V 3.5 RC 1
2011-12-05 00:23:28 +01:00

59 lines
1.0 KiB
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2010 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
*
* @package
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
$appbox = appbox::get_instance();
$session = $appbox->get_session();
$registry = $appbox->get_registry();
?>
<html lang="<?php echo $session->get_I18n(); ?>">
<head>
</head>
<body>
<form>
<div>
ajouter une preset de publication automatique :
<select>
<?php
if (($dir = opendir($registry->get('GV_RootPath') . '/lib/classes/publi/')) !== false)
{
while (($file = readdir($dir)) !== false)
{
$substr = substr($file, -10);
if (is_file($file) && trim($substr) !== false)
{
?><option value="<?php echo $substr; ?>"><?php echo $substr; ?></option><?php
}
}
}
?>
</select>
<input type="text" value=""/>
</div>
</form>
</body>
</html>