Location: PHPKode > scripts > DNP script > admin/domains.php
<?PHP
/*
    This file is part of DNP Script, an open source domain portfolio manager.
    Copyright (C) 2011  Robert Picard

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

	// Make sure the user is logged in as the admin
	session_start();
	
	if(!$_SESSION['admin']){
		header('Location: index.php');
		die;
	}
?>
<h2>Manage Domains</h2>

<?php
	switch($_GET['action']) {
		case "new":
			include('new-domain.php');
			break;
		default:
			include('manage-domain.php');
	
	}
?>


Return current item: DNP script