Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/admin/index.php
<?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();
	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 . 'adminfuncs.inc');
	require(ADMINDIR . 'login.php');
	if(!isset($_SESSION) || !is_array($_SESSION) || !array_key_exists('authuser', $_SESSION))
	{
		$_SESSION = NULL;
		session_destroy();
		loginpage(FALSE);
	}
	else
	{
		require(ADMINDIR . 'adminheader.php');
?>
						<tr>
							<td width="180" style="padding: 0;">
<?php
		$e->leftmenu();
?>
							</td>
<!-- END LEFT SIDE -->

<!-- BEGIN RIGHT SIDE -->
							<td width="790" align="left" valign="top" class="mainbox">
							<h2><?php echo $site_name; ?> Administration</h2>
							<p>Welcome Administrator!</p>
							<?php
								$lastLoginQuery = dbcom('SELECT ip, UNIX_TIMESTAMP(loginTime) AS theTime FROM admin_logins WHERE loginType = 1 ORDER BY id DESC LIMIT 1;');
								if(mysql_num_rows($lastLoginQuery) == 1)
								{
									$lastLoginArray = mysql_fetch_assoc($lastLoginQuery);
								}
								else
								{
									$lastLoginArray = array
									(
										'ip' => $_SERVER['REMOTE_ADDR'],
										'theTime' => time()
									);
								}
							?>
							<p>You last logged in at:  <?php echo date($date_format, $lastLoginArray['theTime']); ?> from <span style="color:
							<?php
								if($_SERVER['REMOTE_ADDR'] == $lastLoginArray['ip'])
								{
									echo '#008800';
								}
								else
								{
									echo '#ff0000';
								}
								echo '">';
								echo $lastLoginArray['ip'];
								echo '</span>' . "\n";
								echo '</p>' . "\n";
								$versionQuery = dbcom("SELECT version FROM config WHERE siteID = $siteID LIMIT 1;");
								$versionArray = mysql_fetch_assoc($versionQuery);
								$version = 'DDLCMS Version ' . $versionArray['version'];
								$currentVersion = file_get_contents('http://www.ddlcms.com/changelog/');
								echo '<p>You are using ' . $version . '<P>';
								if($version <= $currentVersion)
								{
									echo ' <span style="color: #ff0000">The newest version is ' . $currentVersion . '</span>';
								}
								else
								{
									echo ' This is the latest version!';
								}
								if($version <= $currentVersion)
								{
									echo '<a href="http://www.ddlcms.com/latest/"><br /><br />Click here to upgrade.</a>';
								}
								echo '<p><b>Your Affiliate Button:</b>';
								echo '<p><img src="'.$site_url.'/images/button.gif" alt="Your affiliate button">';
								echo '<br><small>'.$site_url.'/images/button.gif</small>';
							?>
							</p>
							</td>
						</tr>
<!-- END RIGHT SIDE -->
<?php
	}
	require(ADMINDIR . 'adminfooter.php');
?>
Return current item: DDL CMS