| Current Path : /var/www/html/persada/flowpaper/php/ |
| Current File : /var/www/html/persada/flowpaper/php/checkdirpermissions.php |
<?php
require_once("lib/config.php");
$configManager = new Config();
session_start();
if($configManager->getConfig('admin.password')!=null && !isset($_SESSION['FLOWPAPER_AUTH'])){
$url = 'index.php';
header("Location: $url");
exit;
}
if(isset($_GET["dir"])){
$dir = $_GET["dir"];
if(is_dir($dir) && is_writable($dir)){
echo "1";
}else{
echo "0";
}
}
?>