当前位置: 首页>>代码示例>>PHP>>正文


PHP oos_redirect_admin函数代码示例

本文整理汇总了PHP中oos_redirect_admin函数的典型用法代码示例。如果您正苦于以下问题:PHP oos_redirect_admin函数的具体用法?PHP oos_redirect_admin怎么用?PHP oos_redirect_admin使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了oos_redirect_admin函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: oos_admin_check_login

/**
 * Admin Kernel
 *
 * @link http://www.oos-shop.de/
 * @package Admin Kernel
 * @author r23 <info@r23.de>
 * @copyright 2003 r23
 * @version $Revision: 1.67 $ - changed by $Author: r23 $ on $Date: 2009/10/28 17:42:07 $
 */
function oos_admin_check_login()
{
    // Get database information
    $dbconn =& oosDBGetConn();
    $oostable =& oosDBGetTables();
    $aFilename = oos_get_filename();
    if (!isset($_SESSION['login_id'])) {
        oos_redirect_admin(oos_href_link_admin($aFilename['login'], '', 'SSL'));
    } else {
        $filename = split('\\?', basename($_SERVER['PHP_SELF']));
        $filename = $filename[0];
        $page_key = array_search($filename, $aFilename);
        if ($filename != $aFilename['default'] && $filename != $aFilename['forbiden'] && $filename != $aFilename['logoff'] && $filename != $aFilename['admin_account'] && $filename != $aFilename['popup_image'] && $filename != $aFilename['packingslip'] && $filename != $aFilename['popup_image_product'] && $filename != $aFilename['popup_image_news'] && $filename != $aFilename['popup_subimage_product'] && $filename != $aFilename['invoice'] && $filename != $aFilename['edit_orders']) {
            $admin_filestable = $oostable['admin_files'];
            $query = "SELECT admin_files_name\n                  FROM {$admin_filestable}\n                  WHERE FIND_IN_SET( '" . $_SESSION['login_groups_id'] . "', admin_groups_id)\n                    AND admin_files_name = '" . $page_key . "'";
            $result =& $dbconn->Execute($query);
            if (!$result->RecordCount()) {
                oos_redirect_admin(oos_href_link_admin($aFilename['forbiden']));
            }
        }
    }
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:function_kernel.php

示例2: oos_draw_separator

</td>
            <td class="pageHeading" align="right"><?php 
echo oos_draw_separator('trans.gif', '1', HEADING_IMAGE_HEIGHT);
?>
</td>
            <td class="pageHeading" align="right"><?php 
echo oos_draw_pull_down_menu('goto', $goto_array, $_SESSION['current_path'], 'onChange="this.form.submit();"');
?>
</td>
          </form></tr>
        </table></td>
      </tr>
<?php 
if ($directory_writeable && $action == 'new_file' || $action == 'edit') {
    if (strstr($_GET['info'], '..')) {
        oos_redirect_admin(oos_href_link_admin($aFilename['file_manager']));
    }
    if (!isset($file_writeable)) {
        $file_writeable = true;
    }
    $file_contents = '';
    if ($action == 'new_file') {
        $filename_input_field = oos_draw_input_field('filename');
    } elseif ($action == 'edit') {
        if ($file_array = file($_SESSION['current_path'] . '/' . $_GET['info'])) {
            $file_contents = htmlspecialchars(implode('', $file_array));
        }
        $filename_input_field = $_GET['info'] . oos_draw_hidden_field('filename', $_GET['info']);
    }
    ?>
      <tr>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:file_manager.php

示例3: oos_db_input

            $dbconn->Execute("DELETE FROM {$manufacturers_infotable} WHERE manufacturers_id = '" . oos_db_input($manufacturers_id) . "'");
            if (isset($_POST['delete_products']) && $_POST['delete_products'] == 'on') {
                $productstable = $oostable['products'];
                $products_result = $dbconn->Execute("SELECT products_id FROM {$productstable} WHERE manufacturers_id = '" . oos_db_input($manufacturers_id) . "'");
                while ($products = $products_result->fields) {
                    oos_remove_product($products['products_id']);
                    // Move that ADOdb pointer!
                    $products_result->MoveNext();
                }
                // Close result set
                $products_result->Close();
            } else {
                $productstable = $oostable['products'];
                $dbconn->Execute("UPDATE {$productstable} SET manufacturers_id = '' WHERE manufacturers_id = '" . oos_db_input($manufacturers_id) . "'");
            }
            oos_redirect_admin(oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page']));
            break;
    }
}
require 'includes/oos_header.php';
?>
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php 
echo BOX_WIDTH;
?>
" valign="top"><table border="0" width="<?php 
echo BOX_WIDTH;
?>
" cellspacing="1" cellpadding="1" class="columnLeft">
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:manufacturers.php

示例4: Copyright

   http://www.oscommerce.com

   Copyright (c) 2001 - 2003 osCommerce
   ----------------------------------------------------------------------
   Released under the GNU General Public License
   ---------------------------------------------------------------------- */

define('OOS_VALID_MOD', 'yes');
require 'includes/oos_main.php';

if (!isset($_SESSION['login_id'])) {
    oos_redirect_admin(oos_href_link_admin($aFilename['login'], '', 'SSL'));
}
            
if ( !current_user_can('stats_low_stock') )
    oos_redirect_admin(oos_href_link_admin($aFilename['forbiden']));

  $no_js_general = true;
  require 'includes/oos_header.php';
?>
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<?php require 'includes/oos_blocks.php'; ?>
        </table></td>
<!-- body_text //-->
   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:stats_low_stock.php

示例5: switch

                switch ($action) {
                    case 'delete':
                        $error = ERROR_REMOVE_UNLOCKED_NEWSLETTER;
                        break;
                    case 'new':
                        $error = ERROR_EDIT_UNLOCKED_NEWSLETTER;
                        break;
                    case 'send':
                        $error = ERROR_SEND_UNLOCKED_NEWSLETTER;
                        break;
                    case 'confirm_send':
                        $error = ERROR_SEND_UNLOCKED_NEWSLETTER;
                        break;
                }
                $messageStack->add_session($error, 'error');
                oos_redirect_admin(oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']));
            }
            break;
    }
}
$no_js_general = true;
require 'includes/oos_header.php';
?>
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php 
echo BOX_WIDTH;
?>
" valign="top"><table border="0" width="<?php 
echo BOX_WIDTH;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:newsletters.php

示例6: reset

            }
            if (isset($_REQUEST['page_type'])) {
                reset($_REQUEST['page_type']);
                foreach ($_REQUEST['page_type'] as $k => $id) {
                    $sql = "INSERT INTO " . $oostable['block_to_page_type'] . "\n                     (block_id,\n                      page_type_id)\n                      VALUES (" . $dbconn->qstr($block_content_id) . ',' . $dbconn->qstr($id) . ")";
                    $dbconn->Execute($sql);
                }
            }
            oos_redirect_admin(oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $block_content_id));
            break;
        case 'deleteconfirm':
            $block_content_id = oos_db_prepare_input($_GET['bID']);
            $dbconn->Execute("DELETE FROM " . $oostable['block'] . " WHERE block_id = '" . intval($block_content_id) . "'");
            $dbconn->Execute("DELETE FROM " . $oostable['block_info'] . " WHERE block_id = '" . intval($block_content_id) . "'");
            $dbconn->Execute("DELETE FROM " . $oostable['block_to_page_type'] . " WHERE block_id = '" . intval($block_content_id) . "'");
            oos_redirect_admin(oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page']));
            break;
    }
}
$no_js_general = true;
require 'includes/oos_header.php';
?>
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php 
echo block_WIDTH;
?>
" valign="top"><table border="0" width="<?php 
echo block_WIDTH;
?>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:content_block.php

示例7: fopen

            $fp = fopen(OOS_FEEDS_EXPORT_PATH . $file_google, "w");
            $fout = fwrite($fp, $output);
            fclose($fp);
            if (!$dryrun) {
                $result = ftp_file($ftp_server, $ftp_user_name, $ftp_password, OOS_FEEDS_EXPORT_PATH . $file_google, $ftp_directory, $ftp_destination_file);
            }
            $messageStack->add(SUCCESS_EXPORT_DATABASE_SAVED, 'success');
            break;
        case 'deleteconfirm':
            if (strstr($_GET['file'], '..')) {
                oos_redirect_admin(oos_href_link_admin($aFilename['export_googlebase']));
            }
            oos_remove(OOS_FEEDS_EXPORT_PATH . '/' . $_GET['file']);
            if (!$oos_remove_error) {
                $messageStack->add_session(SUCCESS_EXPORT_DELETED, 'success');
                oos_redirect_admin(oos_href_link_admin($aFilename['export_googlebase']));
            }
            break;
    }
}
// check if the backup directory exists
$dir_ok = false;
if (is_dir(oos_get_local_path(OOS_FEEDS_EXPORT_PATH))) {
    if (is_writeable(oos_get_local_path(OOS_FEEDS_EXPORT_PATH))) {
        $dir_ok = true;
    } else {
        $messageStack->add(ERROR_EXPORT_DIRECTORY_NOT_WRITEABLE, 'error');
    }
} else {
    $messageStack->add(ERROR_EXPORT_DIRECTORY_DOES_NOT_EXIST, 'error');
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:export_googlebase.php

示例8: header

                    header('Content-disposition: attachment; filename=' . $_GET['file']);
                    echo $buffer;
                    exit;
                }
            } else {
                $messageStack->add(ERROR_DOWNLOAD_LINK_NOT_ACCEPTABLE, 'error');
            }
            break;
        case 'deleteconfirm':
            if (strstr($_GET['file'], '..')) {
                oos_redirect_admin(oos_href_link_admin($aFilename['export_stampit']));
            }
            oos_remove(OOS_EXPORT_PATH . '/' . $_GET['file']);
            if (!$oos_remove_error) {
                $messageStack->add_session(SUCCESS_EXPORT_DELETED, 'success');
                oos_redirect_admin(oos_href_link_admin($aFilename['export_stampit']));
            }
            break;
    }
}
// check if the backup directory exists
$dir_ok = false;
if (is_dir(oos_get_local_path(OOS_EXPORT_PATH))) {
    if (is_writeable(oos_get_local_path(OOS_EXPORT_PATH))) {
        $dir_ok = true;
    } else {
        $messageStack->add(ERROR_EXPORT_DIRECTORY_NOT_WRITEABLE, 'error');
    }
} else {
    $messageStack->add(ERROR_EXPORT_DIRECTORY_DOES_NOT_EXIST, 'error');
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:export_stampit.php

示例9: unset

                if (isset($_SESSION['password_forgotten'])) {
                    unset($_SESSION['password_forgotten']);
                }
                $_SESSION['login_id'] = $check_admin['login_id'];
                $_SESSION['login_groups_id'] = $check_admin['login_groups_id'];
                $_SESSION['login_first_name'] = $check_admin['login_firstname'];
                $login_email_address = $check_admin['login_email_address'];
                $login_logdate = $check_admin['login_logdate'];
                $login_lognum = $check_admin['login_lognum'];
                $login_modified = $check_admin['login_modified'];
                //$date_now = date('Ymd');
                $dbconn->Execute("UPDATE " . $oostable['admin'] . "\n                        SET admin_logdate = '" . date("Y-m-d H:i:s", time()) . "', admin_lognum = admin_lognum+1\n                        WHERE admin_id = '" . $_SESSION['login_id'] . "'");
                if ($login_lognum == 0 || !$login_logdate || $login_email_address == 'admin@localhost' || $login_modified == '0000-00-00 00:00:00') {
                    oos_redirect_admin(oos_href_link_admin($aFilename['admin_account']));
                } else {
                    oos_redirect_admin(oos_href_link_admin($aFilename['default']));
                }
            }
        }
    }
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo CHARSET;
?>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:login.php

示例10: currencies

  }


  $currencies = new currencies();

  // Delete Entry Begin
  if ($_GET['action'] == 'delete') {
    $customers_baskettable = $oostable['customers_basket'];
    $sql = "DELETE FROM $customers_baskettable WHERE customers_id = '" . (int)$_GET['customer_id'] . "'";
    $dbconn->Execute($sql);

    $customers_basket_attributestable = $oostable['customers_basket_attributes'];
    $sql = "DELETE FROM $customers_basket_attributestable WHERE customers_id = '" . (int)$_GET['customer_id'] . "'";
    $dbconn->Execute($sql);

    oos_redirect_admin(oos_href_link_admin($aFilename['recover_cart_sales'], 'delete=1&customer_id=' . (int)$_GET['customer_id'] . '&tdate=' . $_GET['tdate']));
  }

  if ($_GET['delete']) {
    $messageStack->add(MESSAGE_STACK_CUSTOMER_ID . (int)$_GET['customer_id'] . MESSAGE_STACK_DELETE_SUCCESS, 'success');
  }
  // Delete Entry End

  $tdate = ($_POST['tdate']?$_POST['tdate']:RCS_BASE_DAYS);

  require 'includes/oos_header.php';
?>
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top">
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:recover_cart_sales.php

示例11: intval

         $configurationtable = $oostable['configuration'];
         $dbconn->Execute("UPDATE {$configurationtable} SET configuration_value = '" . intval($products_units_id) . "' WHERE configuration_key = 'DEFAULT_PRODUCTS_UNITS_ID'");
     }
     oos_redirect_admin(oos_href_link_admin($aFilename['products_units'], 'page=' . $_GET['page'] . '&uID=' . $products_units_id));
     break;
 case 'deleteconfirm':
     $uID = oos_db_prepare_input($_GET['uID']);
     $configurationtable = $oostable['configuration'];
     $products_units_result = $dbconn->Execute("SELECT configuration_value FROM {$configurationtable} WHERE configuration_key = 'DEFAULT_PRODUCTS_UNITS_ID'");
     $products_units = $products_units_result->fields;
     if ($products_units['configuration_value'] == $uID) {
         $dbconn->Execute("UPDATE " . $oostable['configuration'] . " SET configuration_value = '' WHERE configuration_key = 'DEFAULT_PRODUCTS_UNITS_ID'");
     }
     $products_unitstable = $oostable['products_units'];
     $dbconn->Execute("DELETE FROM {$products_unitstable} WHERE products_units_id = '" . intval($uID) . "'");
     oos_redirect_admin(oos_href_link_admin($aFilename['products_units'], 'page=' . $_GET['page']));
     break;
 case 'delete':
     $uID = oos_db_prepare_input($_GET['uID']);
     $productstable = $oostable['products'];
     $status_result = $dbconn->Execute("SELECT COUNT(*) AS total FROM {$productstable} WHERE products_units_id = '" . oos_db_input($uID) . "'");
     $status = $status_result->fields;
     $remove_status = true;
     if ($uID == DEFAULT_PRODUCTS_UNITS_ID) {
         $remove_status = false;
         $messageStack->add(ERROR_REMOVE_DEFAULT_PRODUCTS_UNITS, 'error');
     } elseif ($status['total'] > 0) {
         $remove_status = false;
         $messageStack->add(ERROR_STATUS_USED_IN_PRODUCTS, 'error');
     }
     break;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:products_units.php

示例12: date

    if ($status == '1') {
      return $dbconn->Execute("UPDATE " . $oostable['manual_info'] . " SET status = '1', expires_date = NULL, manual_last_modified = '" . date("Y-m-d H:i:s", time()) . "', date_status_change ='" . date("Y-m-d H:i:s", time()) . "' WHERE man_info_id = '" . $man_info_id . "'");
    } elseif ($status == '0') {
      return $dbconn->Execute("UPDATE " . $oostable['manual_info'] . " SET status = '0', man_key = '', man_key2 = '', manual_last_modified = '" . date("Y-m-d H:i:s", time()) . "' WHERE man_info_id = '" . $man_info_id . "'");
    } else {
      return -1;
    }
  }

  $action = (isset($_GET['action']) ? $_GET['action'] : '');

  if (!empty($action)) {
    switch ($action) {
      case 'setflag':
        oos_set_login_status($_GET['id'], $_GET['flag']);
        oos_redirect_admin(oos_href_link_admin($aFilename['manual_loging'], '', 'NONSSL'));
        break;
    }
  }
  require 'includes/oos_header.php';
?>
<!-- body //-->

<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<?php require 'includes/oos_blocks.php'; ?>
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:manual_loging.php

示例13: while

            $check_email_query = "SELECT admin_email_address FROM " . $admintable . " WHERE admin_id <> " . $admin_id . "";
            $check_email_result =& $dbconn->Execute($check_email_query);
            while ($check_email = $check_email_result->fields) {
                $stored_email[] = $check_email['admin_email_address'];
                // Move that ADOdb pointer!
                $check_email_result->MoveNext();
            }
            // Close result set
            $check_email_result->Close();
            if (in_array($_POST['admin_email_address'], $stored_email)) {
                oos_redirect_admin(oos_href_link_admin($aFilename['admin_account'], 'action=edit_process&error=email'));
            } else {
                $sql_data_array = array('admin_firstname' => oos_db_prepare_input($_POST['admin_firstname']), 'admin_lastname' => oos_db_prepare_input($_POST['admin_lastname']), 'admin_email_address' => oos_db_prepare_input($_POST['admin_email_address']), 'admin_password' => oos_encrypt_password(oos_db_prepare_input($_POST['admin_password'])), 'admin_modified' => '" . date("Y-m-d H:i:s", time()) . "');
                oos_db_perform($oostable['admin'], $sql_data_array, 'update', 'admin_id = \'' . $admin_id . '\'');
                //oos_mail($_POST['admin_firstname'] . ' ' . $_POST['admin_lastname'], $_POST['admin_email_address'], ADMIN_EMAIL_SUBJECT, sprintf(ADMIN_EMAIL_TEXT, $_POST['admin_firstname'], OOS_HTTP_SERVER . OOS_SHOP . 'admin/', $_POST['admin_email_address'], $hiddenPassword, STORE_OWNER), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
                oos_redirect_admin(oos_href_link_admin($aFilename['admin_account'], 'page=' . $_GET['page'] . '&mID=' . $admin_id));
            }
            break;
    }
}
require 'includes/oos_header.php';
require 'includes/account_check.js.php';
?>
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php 
echo BOX_WIDTH;
?>
" valign="top"><table border="0" width="<?php 
echo BOX_WIDTH;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:admin_account.php

示例14: oos_db_input

            if ($information_id > 5) {
                if (isset($_POST['delete_image']) && $_POST['delete_image'] == 'on') {
                    $informationtable = $oostable['information'];
                    $informations_result = $dbconn->Execute("SELECT information_image FROM {$informationtable} WHERE information_id = '" . oos_db_input($information_id) . "'");
                    $informations = $informations_result->fields;
                    $image_location = OOS_ABSOLUTE_PATH . OOS_IMAGES . $informations['information_image'];
                    if (file_exists($image_location)) {
                        @unlink($image_location);
                    }
                }
                $informationtable = $oostable['information'];
                $dbconn->Execute("DELETE FROM {$informationtable} WHERE information_id = '" . oos_db_input($information_id) . "'");
                $information_descriptiontable = $oostable['information_description'];
                $dbconn->Execute("DELETE FROM {$information_descriptiontable} WHERE information_id = '" . oos_db_input($information_id) . "'");
            }
            oos_redirect_admin(oos_href_link_admin($aFilename['information'], 'page=' . $_GET['page']));
            break;
    }
}
require 'includes/oos_header.php';
?>
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php 
echo BOX_WIDTH;
?>
" valign="top"><table border="0" width="<?php 
echo BOX_WIDTH;
?>
" cellspacing="1" cellpadding="1" class="columnLeft">
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:information.php

示例15: intval

          $dbconn->Execute("DELETE FROM " . $oostable['reviews'] . " WHERE customers_id = '" . intval($customers_id) . "'");
        } else {
          $dbconn->Execute("UPDATE " . $oostable['reviews'] . " SET customers_id = null WHERE customers_id = '" . intval($customers_id) . "'");
        }

        $dbconn->Execute("DELETE FROM " . $oostable['address_book'] . " WHERE customers_id = '" . intval($customers_id) . "'");
        $dbconn->Execute("DELETE FROM " . $oostable['customers'] . " WHERE customers_id = '" . intval($customers_id) . "'");
        $dbconn->Execute("DELETE FROM " . $oostable['customers_info'] . " WHERE customers_info_id = '" . intval($customers_id) . "'");
        $dbconn->Execute("DELETE FROM " . $oostable['customers_basket'] . " WHERE customers_id = '" . intval($customers_id) . "'");
        $dbconn->Execute("DELETE FROM " . $oostable['customers_basket_attributes'] . " WHERE customers_id = '" . intval($customers_id) . "'");
        $dbconn->Execute("DELETE FROM " . $oostable['customers_wishlist'] . " WHERE customers_id = '" . intval($customers_id) . "'");
        $dbconn->Execute("DELETE FROM " . $oostable['customers_wishlist_attributes'] . " WHERE customers_id = '" . intval($customers_id) . "'");
        $dbconn->Execute("DELETE FROM " . $oostable['customers_status_history'] . " WHERE customers_id = '" . intval($customers_id) . "'");
        $dbconn->Execute("DELETE FROM " . $oostable['whos_online'] . " WHERE customer_id = '" . intval($customers_id) . "'");

        oos_redirect_admin(oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID', 'action'))));
        break;
    }
  }
  require 'includes/oos_header.php';

  if ($action == 'edit') {
?>
<script language="javascript"><!--
function resetStateText(theForm) {
  theForm.entry_state.value = '';
  if (theForm.entry_zone_id.options.length > 1) {
    theForm.entry_state.value = '<?php echo JS_STATE_SELECT; ?>';
  }
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:30,代码来源:customers.php


注:本文中的oos_redirect_admin函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。