15 lines
396 B
PHP
15 lines
396 B
PHP
<?php
|
|
|
|
if(isset($_GET['filename']) && isset($_GET['inFolder']) ) {
|
|
$FC = file_put_contents(APP_DIR.'/CONTENT/ROOT_URI/Admission/form_settings/'.$_GET['inFolder'].'/'.$_GET['filename'] , '');
|
|
if($FC === false) {
|
|
$ret->msg="no data to process";
|
|
}
|
|
else {
|
|
$ret->status="y";$ret->msg="$FC bytes written to file";
|
|
}
|
|
}
|
|
else $ret->msg="no data to process";
|
|
|
|
echo json_encode($ret);
|
|
?>
|