die('0'); } break; case 'set': $surl = $_GET['source']; $url = $_GET['url']; $re = $murl->set($surl, $url); if ($re) { die(strval($re)); } else { die('0'); } break; case 'del': $url = $_GET['url']; $re = $murl->delete($url); if ($re) { die('1'); } else { die('0'); } break; default: $url = trim($_GET['url']); if (empty($url)) { die('0'); } if (!preg_match("/^http\\:\\/\\/" . $option['domain'] . "/is", $url)) { $url = "http://" . $option['domain'] . "/" . $url; } $source = $murl->get($url);