function myfilesDispatch($op) { require_once _base_ . '/lib/lib.urlmanager.php'; $url =& UrlManager::getInstance('myfiles'); $url->setStdQuery('modname=myfiles&op=myfiles'); if (isset($_POST['undo'])) { $op = 'myfiles'; } switch ($op) { case "myfiles": fileList($url); break; case "modfiles": modfiles($url); break; case "savefiles": savefiles($url); break; case "delfiles": delfiles($url); break; } }
<?php include '/home/www/cb3/wp-includes/functions.php'; //include ('/home/www/cb3/wp-includes/load.php'); //include ('/home/www/cb3/wp-includes/wp-db.php'); include "/home/www/cb/ales/config.php"; //todo $link = mysql_connect($mysql_hostname, $mysql_user, $mysql_password); mysql_set_charset('utf8', $link); //savefiles if (isset($_FILES) && isset($_POST)) { foreach ($_FILES as $key => $_file) { //foreach ($_file as $vkey => $vvalue) { $fileid = savefiles($_file); //fill_product_list($fileid); //} } } // files if (isset($_FILES)) { $result = $_FILES; } else { $result = "no files received"; } fww($result); // forms if (isset($_POST)) { $result = $_POST; } else { $result = "no form fields received"; } fw($result);