Location: PHPKode > projects > Pointter PHP CMS > pointtercms_package/pointtercms_package/pointtercms/admin/functions/editbodysubmit.php
<?php 

/***************************************************************************
 * Product Name			: Pointter PHP Content Management System
 * Version 			: V 1.2
 * Release Date			: 01/02/11
 * Copyright			: (C) 2011 PangramSoft / Murat Cevik
 * Program URL			: http://www.pointter.com
 * Company URL			: http://www.pangramsoft.com
 * Email Address                : hide@address.com
 
 ***************************************************************************/
 

/****************************************************************************

Pointter PHP Content Management System is licensed under Creative Commons Attribution Non-commercial No Derivatives 3.0 Unported (by-nc-nd) License.
To view a copy of this license, (a) visit http://creativecommons.org/licenses/by-nc-nd/3.0/ or (b) send a letter to Creative Commons, 171 2nd Street, 
Suite 300, San Francisco, California, 94105, USA.” 

You must not remove/modify/alter the copyright informations both visible and invisible forms in the source code and you must not remove/modify/alter 
the copyright informations in the footer part of the script including the Pointter image (png format file), hard link and title tag.

Please contact the copyright holder PangramSoft / Murat Cevik for a commercial license to remove the copyright information in the footer part of the script.


*****************************************************************************/

//Change Background Colour

if ($_POST[colour]!="")
{

$colour=htmlentities($_POST[colour]);

$file="../../body.css";

$code="body{background-color:#".$colour."}"; 

//Open And Update CSS File
$temp=fopen($file,'w');
fwrite($temp,$code);
fclose($temp);
header("location:../editbody.php");
}

//Change Background Image

if (eregi('image/',$_FILES['uploadedfile']['type']))
{

$target="../../".basename( $_FILES['uploadedfile']['name']);
move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$target);

$file="../../body.css";
$code="body{background-image:url(".basename( $_FILES['uploadedfile']['name']).")}"; 

//Open And Update CSS File
$temp=fopen($file,'w');
fwrite($temp,$code);
fclose($temp);
header("location:../editbody.php");
}
else
header("location:../editbody.php");

//Change Banner Image

if (eregi('image/',$_FILES['banner']['type']))
{

$target="../../".basename( $_FILES['banner']['name']);
move_uploaded_file($_FILES['banner']['tmp_name'],$target);
$url=basename( $_FILES['banner']['name']);

$file="../../header.php";
$code="<?php echo '<img src=$url align=middle border=0 alt=banner/>'; ?>"; 

//Open And Update Header File
$temp=fopen($file,'w');
fwrite($temp,$code);
fclose($temp);
header("location:../editbody.php");
}
else
header("location:../editbody.php");


?>
Return current item: Pointter PHP CMS