- <?php
-
-
- /**
- * Class file.
- *
- * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
- * @copyright 2005, diemeisterei GmbH. All rights reserved.
- * @author $Author: spheenik $
- * @version $Revision: 214 $ $Date: 2006-05-18 15:35:49 +0200 (Do, 18 Mai 2006) $
- * @package Lithron
- * @subpackage Pages
- */
-
- /**
- * Displays lithrons main configuration options
- *
- * @package Lithron
- * @subpackage Pages
- */
-
- class Administration extends TPage
- {
-
- /**
- * Updates 'Globalization' settings
- */
- function updateCulture($sender, $param)
- {
- $c= $this->CultureSelector->getSelectedValue();
- $this->Application->Session->add("Culture", $c);
- $this->getApplication()->getGlobalization()->Culture= $c;
- Prado :: trace("Culture set to " . $c, "Lithron.Main");
- }
-
- /**
- * deletes cache files from the runtime folder
- */
- function deleteRuntimeCache($sender, $param)
- {
- $sel = $this->RuntimeCacheSelector->getSelectedIndices();
- if (count($sel) == 0)
- {
- Prado :: trace("No runtime files selected. Nothing deleted.", "Lithron.Main");
- return;
- }
- $ds = $this->RuntimeCacheSelector->getItems();
- $rp = $this->Application->getRuntimePath();
- foreach($sel as $index)
- {
- // TODO: Windows filepath separator?
- $filename = $rp."/".$ds[$index]->getValue();
- $result = unlink($filename);
- Prado :: trace("Deleting $filename: " . ($result ? "ok" : "failed"), "Lithron.Main");
- }
- }
-
-
-
-
- }
- ?>