<?php /* * DNSPod API PHP Web 示例 * http://www.zhetenga.com/ * * Copyright 2011, Kexian Li * Released under the MIT, BSD, and GPL Licenses. * */ error_reporting(0); header('Content-type:text/html; charset=utf-8'); require './dnspod/dnspod.php'; require './dnspod/likexian.php'; $dnspod = new dnspod(); @session_start(); if ($_GET['action'] == 'domainlist') { if ($_POST['login_email'] == '') { if ($_SESSION['login_email'] == '') { exit('请输入登录账号。'); } } else { $_SESSION['login_email'] = $_POST['login_email']; } if ($_POST['login_password'] == '') { if ($_SESSION['login_password'] == '') { exit('请输入登录密码。'); } } else { $_SESSION['login_password'] = $_POST['login_password']; }
<?php /* * DNSPod API PHP Web 示例 * http://www.likexian.com/ * * Copyright 2011-2014, Kexian Li * Released under the Apache License, Version 2.0 * */ error_reporting(0); header('Content-type:text/html; charset=utf-8'); require './dnspod.php'; $dnspod = new dnspod(); @session_start(); if ($_GET['action'] == 'domainlist') { if ($_POST['login_code'] == '') { if ($_POST['login_email'] == '') { if ($_SESSION['login_email'] == '') { $dnspod->message('danger', '请输入登录账号。', -1); } } else { $_SESSION['login_email'] = $_POST['login_email']; } if ($_POST['login_password'] == '') { if ($_SESSION['login_password'] == '') { $dnspod->message('danger', '请输入登录密码。', -1); } } else { $_SESSION['login_password'] = $_POST['login_password']; }