<?php
-/************************************************************************
- * Mailer v0.2.1-FINAL Start: 08/31/2010 *
- * =================== Last change: 08/31/2010 *
- * *
- * -------------------------------------------------------------------- *
- * File : what-config_networks.php *
- * -------------------------------------------------------------------- *
- * Short description : Advertisement Network Configuration *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung : Werbenetzwerkkonfiguration *
- * -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://mxchange.org *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
- * MA 02110-1301 USA *
- ************************************************************************/
-
-// Some security stuff...
-if ((!defined('__SECURITY')) || (!isAdmin())) {
- die();
-} // END - if
-
-// Add description as navigation point
-addYouAreHereLink('admin', __FILE__);
-
-// By default we should display list/add new forms
-$GLOBALS['network_display'] = true;
-
-// Handle form here
-doNetworkHandleForm();
-
-// Display forms?
-if ($GLOBALS['network_display'] === false) {
- // Abort here
- return;
-} // END - if
-
-// Do we have a network selected?
-if (isGetRequestElementSet('network')) {
- // Check all networks that doesn't have a configuration entry
- $result = SQL_QUERY_ESC("SELECT
- d.`network_id`, d.`network_short_name`, d.`network_title`, d.`network_reflink`,
- c.`network_affiliate_id`, c.`network_api_password`, c.`network_site_id`, c.`network_query_amount`, c.`network_active`
-FROM
- `{?_MYSQL_PREFIX?}_network_data` AS `d`
-LEFT JOIN
- `{?_MYSQL_PREFIX?}_network_config` AS `c`
-ON
- d.`network_id`=c.`network_id`
-WHERE
- d.`network_id`=%s
-ORDER BY
- d.`network_short_name` ASC",
- array(
- bigintval(getRequestElement('network'))
- ), __FILE__, __LINE__);
-
- // Do we have entries?
- if (!SQL_HASZERONUMS($result)) {
- // Load data
- $content = SQL_FETCHARRAY($result);
-
- // Fix empty 'active' to 'yes'
- if (is_null($content['network_active'])) {
- // Fix it for our API function
- $content['network_active'] = 'Y';
- } // END - if
-
- // Load main template
- loadTemplate('admin_config_network', false, $content);
- } else {
- // Please setup some networks first
- displayMessage('{--ADMIN_NETWORK_DATA_MISSING--}');
- }
-
- // Free result
- SQL_FREERESULT($result);
-} else {
- // Generate network list for this script
- outputHtml(generateAdminNetworkList());
-}
-
-// [EOF]
+// @DEPRECATED
?>