Shop Script Free > Includes / Admin / Sub / Conf Aux.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Shop Script Free

Download:
shop-script-free.zip

Category:
E Commerce

Archive Content:

Cfg

Extra

Images

Includes

Includes > Admin

Includes > Admin > Sub

Includes

Includes > Database > Install

Includes > Database

Includes

Includes > Language

Includes

Products Pictures

Smarty

Smarty > Core

Smarty > Plugins

Smarty

Templates

Templates > Tmpl1 > Admin

Templates > Tmpl1

Templates > Tmpl1 > Mail

Templates > Tmpl1

Templates C

Content:

Smarty

Images

Content:

Templates > Tmpl1

Conf Aux.php:


<?php
/*****************************************************************************
 *                                                                           *
 * Shop-Script FREE                                                          *
 * Copyright (c) 2005 WebAsyst LLC. All rights reserved.                     *
 *                                                                           *
 ****************************************************************************/

    //aux pages

    
if (!strcmp($sub,  "aux"))
    {

        if (isset(
$_GET["save_successful"])) //show successful save confirmation message
        
{
            
$smarty->assign("configuration_saved",  1);
        }

        if (isset(
$_POST["save_aux"])) //save system settings
        
{

            
//appearence settings
            
$f fopen("./cfg/aux1", "w");
            
$str stripslashesstr_replace("\r\n", "\n", $_POST["about_page"]) );
            
fputs($f, $str);
            
fclose($f);
            
$f fopen("./cfg/aux2", "w");
            
$str stripslashesstr_replace("\r\n", "\n", $_POST["shipping_page"]) );
            
fputs($f, $str);
            
fclose($f);

            
header("Location: admin.php?dpt=conf&sub=aux&save_successful=yes");
        }

        
$f implode("", file("./cfg/aux1"));
        
$smarty->assign("about_page",  $f);
        
$f implode("", file("./cfg/aux2"));
        
$smarty->assign("shipping_page",  $f);

        
//set sub-department template
        
$smarty->assign("admin_sub_dpt",  "conf_aux.tpl.html");
    }

?>


Other E Commerce Scripts:

WebMaster Resources Home

©RingsWorld.com