Location: PHPKode > projects > Ajax File Manager - AjaxExplorer > ajaxexplorer/script/moving.php
<?php

/*
AjaxExplorer Copyright (C) 2007-2008 Syed Mohammad Sidque Tahir Al-Habshi

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Head to
GNU site http://www.gnu.org/licenses/ for license copy.
*/

$access='0002';
include 'core.php';

$dirc=Post('dirc');
$file=Post('file');
$move=Post('move');

$does="Move\t".$move."\t".$file;
include 'track.php';

$item=explode('|', Post('item'), -1);
foreach(explode('|', $file) as $id=>$name)
{
  if($name) echo rename($root.$move.$name, ($file=$root.$dirc.$name))? ($item[$id]? $item[$id].'|':$name.':'.(is_dir($file)? 'folder':filesize($file)).':'.filemtime($file).'|'):'';
}

?>
Return current item: Ajax File Manager - AjaxExplorer