Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
elseif($action == "addcat")
{
include ENGINE_DIR.'/inc/parse.class.php';
$parse = new ParseFilter(Array(), Array(), 1, 1);
$parentid = intval($_POST["category"]);
$name = $parse->process($_POST["cat_name"]);
$name = $db->safesql($parse->process($name));
$dir = totranslit(stripslashes($_POST['cat_directory']));
$uploads_dir = ROOT_DIR."/uploads/download/$dir/";
if(is_dir($uploads_dir)){
//папка для файлов уже создана
}else{
mkdir("$uploads_dir", 0777);
}
$status_down = intval($_POST['status_down']);
$description = $db->safesql(substr(strip_tags(stripslashes($_REQUEST['descr'])), 0, 150));
$keywords = $db->safesql(str_replace($quotes, " ", strip_tags(stripslashes($_REQUEST['keywords']))));
if (empty($keywords) AND !empty($description)){
$metatags = create_metatags ($description);
$keywords=$metatags['keywords'];
}
if(!$dir){
echo "<div class='main'>Папка для категории не выбрана !!</div>";
}else{
if ($newid == 0) {
$newid = $db->insert_id($query);
}
$db->query("INSERT INTO ".PREFIX."_cat_downloads SET id='$newid', parentid='$parentid', name='$name', dir='$dir', descr='$description', keywords='$keywords', status_down='$status_down'");
@unlink(ENGINE_DIR.'/cache/system/cat_files.php');
@unlink(ENGINE_DIR.'/cache/system/count_all_files.php');
@unlink(ENGINE_DIR.'/cache/system/numrowsfiles.php');
clear_cache();
header("Location: admin.php?mod=admin_files&action=cat_add");
exit();
}
Warning: include(D:\xampp\htdocs\DataLife/engine/inc/parse.class.php failed to open stream: No such file or directory in D:\xampp\htdocs\DataLife\engine\inc\admin_files.php on line 878 Warning: include( Failed opening 'D:\xampp\htdocs\DataLife/engine/inc/parse.class.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\DataLife\engine\inc\admin_files.php on line 878 Fatal error: Class 'ParseFilter' not found in D:\xampp\htdocs\DataLife\engine\inc\admin_files.php on line 879