Ajaxel content management system and framework

Ajaxel система управления сайтом в9.1 и фреймворк

Очень простая аяксовая CMS и фреймворк для любых потребностей проекта. Редактируйте содержимое своего веб-сайта из бэкэнда или внешнего интерфейса. Попробуйте и убедитесь, насколько хорош этот материал!

Ajaxel intranet system

Ajaxel интранет система заказов

Список новых входящих заказов (с удаленных веб-сайтов) с возможностью массовой рассылки электронных писем с сгенерированными вложениями в формате PDF и SMS-сообщениями. Изменение статусов, сохранение ответов и другие. Поставляется с CMS Ajaxel

Ajaxel live slot-machine game

Игровой автомат Ajaxel

Проверьте эту игру, посмотрите, насколько это круто) Доска 5x3, чтобы крутить для победы. Приятная анимация, играющая музыка, бонусы, списки победителей. Можно создавать собственные иконки, линии и призы... Поставляется с Ajaxel CMS. Кроме того, у меня есть игра в онлайн-покер.

Timemonkey - efficient time management web based software

TimeMonkey - Efficient time management web-based

Think positive, save ideas, save thoughts, manage you tasks and control your calendar. Export calendar to your web site!

Ajaxel customer relationship manager

PollExpert - Professional survey web-based

Create your individual, corporate-, secure- or step-by-step online poll. You don't need to be an IT expert. Export results to excel.

Ajaxel customer relationship manager

Любой другой летающий сайт с Ajaxel CMS. Разработка

Создайте желаемый проект с помощью Ajaxel Студии!

The most craziest function for recursive handling with files

Home :: PHP lessons :: The most craziest function for recursive handling with filesReply
The most craziest function for recursive handling with files
Posted by Alexander Shatalov
But it works smile And I adore that)
PHP
function FuncDirFileRecursive($dir, $to, $func_file = 'copy', $func_dir = 'mkdir', $total = 0, $time = 0, $chmod = 0777, $str = 0, $strto = 0) {
        if (!$dir) return 0;
        $dir = File::fixPath($dir);
        if ($to) $to = File::fixPath($to);
        if ($to && strlen($to)<=2) return 0;
        if (!is_dir($dir)) {
                return 0;
        }
        $dh = @opendir($dir);
        if (!$dh) {
                return 0;
        }
        $func_file = trim(strtolower($func_file));
       
        if (($func_dir==='mkdir' || $func_dir==='rename') && $to && !is_dir($to)) File::checkDir($to);
        $t = time();
        while ($f = readdir($dh)) {
                if ($f=='..' || $f=='.') continue;
                if ($time && filemtime($dir.$file) > $t-$time) continue;
                if (is_dir($dir.$f) && $func_dir!==NULL) {
                        if ($func_dir) {
                                if ($func_dir==='rmdir') {
                                        if (!is_dir($dir.$f) && @rmdir($dir.$f)) {
                                                $total++;
                                        }
                                }
                                elseif (function_exists($func_dir) && !is_dir($to.$f)) {
                                        if ($func_dir($to.$f,0777)) {
                                                File::chown2($to.$f,File::CHMOD_READ | File::CHMOD_WRITE);
                                                $total++;
                                        }
                                }
                        }
                        if ($func_file==='array') {
                                $total = FuncDirFileRecursive($dir.$f, $to.$f, $func_file, $func_dir, $total, $time, $chmod, $str, $strto);
                        } else {
                                $total += FuncDirFileRecursive($dir.$f, $to.$f, $func_file, $func_dir, 0, $time, $chmod, $str, $strto);
                        }
                }
                elseif (is_file($dir.$f) && $func_file) {
                        if ($func_file==='array') {
                                $total[$dir][] = $f;
                        }
                        elseif ($func_file==='filesize') {
                                $total += filesize($dir.$f);
                        }
                        elseif ($func_file==='rename') {
                                if (is_file($to.$f)) unlink($to.$f);
                                $total += rename($dir.$f,$to.$f);
                        }
                        elseif ($func_file==='copy') {
                                if (is_file($to.$f)) unlink($to.$f);
                                $total += copy($dir.$f,$to.$f);
                        }
                        elseif ($func_file=='copy_replace' && $str && $strto) {
                                if (copyReplace($dir.$f,$to.$f,$str,$strto)) {
                                        $total++;
                                }
                        }
                        elseif ($func_file==='unlink') {
                                File::chown2($dir.$f,File::CHMOD_READ | File::CHMOD_WRITE);
                                if (@unlink($dir.$f)) {
                                        $total++;
                                }
                        }
                        else {
                                if (function_exists($func_file) && $func_file($dir.$f,$to.$f)) {
                                        $total++;
                                }
                                if ($chmod) @chmod($to.$f,$chmod);
                        }
                }
        }
        closedir($dh);
        if (!is_array($total)) $total = (int)$total;
        return $total;
}

Complete this survey before you download :)


Which website you like to create:
Your plan:
Tell us more about the website you wish to have: (optional)
Website domain:
Your E-mail:
Survey passed: 314 times, starting from 16.09.2013

Главная – Новости – Партнёры – Услуги – Портфолио – Скрипты – Заказать – Обратка