} else { header("Location : http://www.google.com"); } mysql_close($conn); } } //isset($var) : Determine if a variable is set and is not NULL.If a variable has been unset with unset(), it will no longer be set. //$_GET : An associative array of variables passed to the current script via the URL parameters. if (isset($_GET['operation'])) { // $fs /var/www/test/aqfaridi/ $fs = new fs(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'users' . DIRECTORY_SEPARATOR . 'guest' . DIRECTORY_SEPARATOR); try { $rslt = null; switch ($_GET['operation']) { case 'getname': $rslt = $fs->getname(); break; case 'get_node': $node = isset($_GET['id']) && $_GET['id'] !== '#' ? $_GET['id'] : '/'; $rslt = $fs->lst($node, isset($_GET['id']) && $_GET['id'] === '#'); break; case "get_content": $node = isset($_GET['id']) && $_GET['id'] !== '#' ? $_GET['id'] : '/'; $rslt = $fs->data($node); break; case 'save_node': $node = isset($_GET['id']) && $_GET['id'] !== '#' ? $_GET['id'] : '/'; $rslt = $fs->save($node, isset($_GET['sdata']) ? $_GET['sdata'] : ''); break; case 'temp_node': $ext = $_GET['ext'];