<?php
/**********************************************************
* ______ ______ ___ _______ ___ ___ _______ *
* | _ \ | _ \ | | | _ || Y || _ | *
* |. | \|. | \|. | |. 1___||. || 1___| *
* |. | |. | |. |___ |. |___ |. \_/ ||____ | *
* |: 1 |: 1 |: 1 ||: 1 ||: | ||: 1 | *
* |::.. . /|::.. . /|::.. . ||::.. . ||::.|:. ||::.. . | *
* `------' `------' `-------'`-------'`--- ---'`-------' *
* _______ _______ *
* .--.--. | _ | | | *
* | | | |___| | __ |___| | *
* \___/ _(__ | |__| / ___/ *
* |: 1 | |: 1 \ *
* |::.. . | |::.. . | *
* `-------' `-------' *
* *
* Script: DDLCMS v3.2 *
* Author: Little Dragon *
* Email: hide@address.com *
* Website: http://www.ddlcms.com *
* *
* Please direct bug reports, suggestions or feedback *
* to the DDLCMS forums: *
* *
* http://www.ddlcms.com/forums *
* *
* DDLCMS is a commercial grade content management *
* system for DDL site owners. It is provided free *
* of charge, provided: *
* *
* 1. You keep the linkback to http://www.ddlcms.com *
* in the footer. *
* *
* 2. You keep the sponsored links to Sharingzone.net *
* on your site. *
* *
* By using this script, you agree that you will not *
* modify, remove, or replace any encoded parts of *
* this script. All encoded parts MUST remain intact *
* for your site to remain in good standing. *
* *
**********************************************************/
session_start();
if(!isset($_SESSION) || !is_array($_SESSION) || !array_key_exists('authuser', $_SESSION))
{
$_SESSION = NULL;
session_destroy();
header('Location: ' . $site_url . '/admin/');
}
define('ADMINDIR', dirname(__FILE__) . '/');
define('WWWROOT', substr(ADMINDIR, 0, -6));
define('BASEDIR', substr(WWWROOT, 0, ##BASEDIR##));
require(BASEDIR . 'funcs.inc');
require(BASEDIR . 'config.php');
require(ADMINDIR . 'adminheader.php');
$c = new config();
?>
<!-- LEFT side -->
<tr>
<td width="180" style="padding: 0;">
<div class='sidebartitle'>
Maintenance
</div>
<a href="<?php echo $site_url; ?>/admin/news.php"> • View Pages</a><br />
<a href="<?php echo $site_url; ?>/admin/addnews.php"> • Add Page</a><br />
<a href="<?php echo $site_url; ?>/admin/submitfiles.php"> • Submit Pages</a><br />
<a href="<?php echo $site_url; ?>/admin/submitfiles.php?submit_to=katz"> • Submit to Katz</a><br />
<a href="<?php echo $site_url; ?>/admin/submitfiles.php?submit_to=phaze"> • Submit to Phaze</a><br />
</td>
<!-- END LEFT SIDE -->
<!-- BEGIN RIGHT SIDE -->
<td width="*" align="left" valign="top" class="mainbox">
<h2>Add a New Page</h2>
<form action="submitnews.php" method="post">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<b>Title:</b>
<br />
<input type="text" name="title" size="80" maxlength="80" value="" />
</td>
<td width="35%">
<b>Type:</b><br>
<select name="atype"><?php $c->option_list(); ?></select>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<b>Page Contents:</b>
<br />
<textarea name="news" color="#ffffff" rows="30" cols="50" id="1"></textarea>
<script type="text/javascript">
generate_wysiwyg('1');
</script>
<br />
<br />
<input type="submit" value="Add Page" />
</td>
</tr>
</table>
</td>
</tr>
<!-- END RIGHT SIDE -->
<?php
require(ADMINDIR . 'adminfooter.php');
?>