if (isset($_POST['process'])) { $name = trim($_POST['name']); $url = trim($_POST['url']); if ($name == '') { $error_string[] = $msg_favourites10; } if ($url == '' || $url == 'http://') { $error_string[] = $msg_favourites11; } if ($error_string) { error($msg_script5, $error_string, $msg_script7, $msg_charset); } else { include FOLDER_PATH . 'classes/class_favourites.inc.php'; $MW_FAVE = new Favourites(); $MW_FAVE->prefix = $database['prefix']; $MW_FAVE->add_fave_sql($_POST); updated($msg_favourites12, 'index.php?cmd=favourites', $msg_script4, $msg_script6, $msg_charset); } } //----------------------- // SCRIPT ACTION // Update Favourite //----------------------- if (isset($_POST['update'])) { $id = $_POST['id']; $name = trim($_POST['name']); $url = trim($_POST['url']); if ($name == '') { $error_string[] = $msg_favourites10; } if ($url == '' || $url == 'http://') {