Copyright (c) 2002 - 2005 SystemsManager.Net SystemsManager Technologies oscMall System Version 4 http://www.systemsmanager.net Portions Copyright (c) 2002 osCommerce This source file is subject to version 2.0 of the GPL license, that is bundled with this package in the file LICENSE. If you did not receive a copy of the oscMall System license and are unable to obtain it through the world-wide-web, please send a note to license@systemsmanager.net so we can mail you a copy immediately. */ require 'includes/application_top.php'; $affiliate_banner_extension = smn_banner_image_extension(); if ($_GET['action']) { switch ($_GET['action']) { case 'setaffiliate_flag': if ($_GET['affiliate_flag'] == '0' || $_GET['affiliate_flag'] == '1') { smn_set_banner_status($_GET['abID'], $_GET['affiliate_flag']); $messageStack->add_session(SUCCESS_BANNER_STATUS_UPDATED, 'success'); } else { $messageStack->add_session(ERROR_UNKNOWN_STATUS_FLAG, 'error'); } smn_redirect(smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $_GET['abID'])); break; case 'insert': case 'update': $affiliate_banners_id = smn_db_prepare_input($_POST['affiliate_banners_id']); $affiliate_banners_title = smn_db_prepare_input($_POST['affiliate_banners_title']);
SystemsManager Technologies oscMall System Version 4 http://www.systemsmanager.net Portions Copyright (c) 2002 osCommerce This source file is subject to version 2.0 of the GPL license, that is bundled with this package in the file LICENSE. If you did not receive a copy of the oscMall System license and are unable to obtain it through the world-wide-web, please send a note to license@systemsmanager.net so we can mail you a copy immediately. */ require 'includes/application_top.php'; $type = isset($_GET['type']) ? $_GET['type'] : ''; $banner_extension = smn_banner_image_extension(); // check if the graphs directory exists $dir_ok = false; if (function_exists('imagecreate') && smn_not_null($banner_extension)) { if (is_dir(DIR_WS_IMAGES . 'graphs')) { if (is_writeable(DIR_WS_IMAGES . 'graphs')) { $dir_ok = true; } else { $messageStack->add(ERROR_GRAPHS_DIRECTORY_NOT_WRITEABLE, 'error'); } } else { $messageStack->add(ERROR_GRAPHS_DIRECTORY_DOES_NOT_EXIST, 'error'); } } $banner_query = smn_db_query("select banners_title from " . TABLE_BANNERS . " where banners_id = '" . (int) $_GET['bID'] . "'"); $banner = smn_db_fetch_array($banner_query);