⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insert_icons.php

📁 通达OA部分源代码
💻 PHP
字号:
<?php
include_once "logincheck.php";
include_once "myconnect.php";
///////////////////////////////////////////////////////////////////////////////
///      THE CODE OF THIS SCRIPT HAS BEEN DEVELOPED BY SOFTBIZ SOLUTIONS  /////
///      AND IS MEANT TO BE USED ON THIS SITE ONLY AND IS NOT FOR REUSE,  /////
///      RESALE OR REDISTRIBUTION.                                        ///// 
///      IF YOU NOTICE ANY VIOLATION OF ABOVE PLEASE REPORT AT:           /////
///      admin@softbizscripts.com                                         /////
///      http://www.softbizscripts.com                                    /////
///      http://www.softbizsolutions.com                                  /////  
///////////////////////////////////////////////////////////////////////////////

if (!get_magic_quotes_gpc()) {
$title=str_replace('$', '\$',addslashes($_REQUEST["title"]));
$how_to_buy=str_replace('$', '\$',addslashes($_REQUEST["list1"]));
$how_to_sell=str_replace('$', '\$',addslashes($_REQUEST["list2"]));
$join_now=str_replace('$', '\$',addslashes($_REQUEST["list3"]));
$mem_area=str_replace('$', '\$',addslashes($_REQUEST["list4"]));
$send_inquiry=str_replace('$', '\$',addslashes($_REQUEST["list5"]));
$inquiry_basket=str_replace('$', '\$',addslashes($_REQUEST["list6"]));
$contact_list=str_replace('$', '\$',addslashes($_REQUEST["list7"]));
$block_list=str_replace('$', '\$',addslashes($_REQUEST["list8"]));
$add_fav=str_replace('$', '\$',addslashes($_REQUEST["list9"]));
$profile=str_replace('$', '\$',addslashes($_REQUEST["list10"]));
$bar=str_replace('$', '\$',addslashes($_REQUEST["list11"]));
//$mem_opt=str_replace('$', '\$',addslashes($_REQUEST["list13"]));
$more=str_replace('$', '\$',addslashes($_REQUEST["list14"]));
$sell_offers=str_replace('$', '\$',addslashes($_REQUEST["list15"]));
$buy_offers=str_replace('$', '\$',addslashes($_REQUEST["list16"]));
$products=str_replace('$', '\$',addslashes($_REQUEST["list17"]));
$profiles=str_replace('$', '\$',addslashes($_REQUEST["list18"]));
}
else
{
$title=str_replace('$', '\$',$_REQUEST["title"]);
$how_to_buy=str_replace('$', '\$',$_REQUEST["list1"]);
$how_to_sell=str_replace('$', '\$',$_REQUEST["list2"]);
$join_now=str_replace('$', '\$',$_REQUEST["list3"]);
$mem_area=str_replace('$', '\$',$_REQUEST["list4"]);
$send_inquiry=str_replace('$', '\$',$_REQUEST["list5"]);
$inquiry_basket=str_replace('$', '\$',$_REQUEST["list6"]);
$contact_list=str_replace('$', '\$',$_REQUEST["list7"]);
$block_list=str_replace('$', '\$',$_REQUEST["list8"]);
$add_fav=str_replace('$', '\$',$_REQUEST["list9"]);
$profile=str_replace('$', '\$',$_REQUEST["list10"]);
$bar=str_replace('$', '\$',$_REQUEST["list11"]);
//$mem_opt=str_replace('$', '\$',$_REQUEST["list13"]);
$more=str_replace('$', '\$',$_REQUEST["list14"]);
$sell_offers=str_replace('$', '\$',$_REQUEST["list15"]);
$buy_offers=str_replace('$', '\$',$_REQUEST["list16"]);
$products=str_replace('$', '\$',$_REQUEST["list17"]);
$profiles=str_replace('$', '\$',$_REQUEST["list18"]);
}
$id=$_REQUEST["id"];
if($id==0)
{
mysql_query("insert into sbbleads_icons 
(sb_title,sb_how_to_buy,sb_how_to_sell,sb_join_now,sb_mem_area,sb_send_inquiry,sb_inquiry_basket,sb_contact_list,sb_block_list,sb_add_fav,sb_profile,sb_bar,sb_more,sb_sell_offers,sb_buy_offers,sb_products,sb_profiles) 
values
('$title','$how_to_buy','$how_to_sell','$join_now','$mem_area','$send_inquiry','$inquiry_basket','$contact_list','$block_list','$add_fav','$profile','$bar','$more','$sell_offers','$buy_offers','$products','$profiles')");//sb_mem_opt,'$mem_opt',

$id=mysql_insert_id();

}
else
{
mysql_query("update sbbleads_icons set
sb_title='$title',
sb_how_to_buy='$how_to_buy',
sb_how_to_sell='$how_to_sell',
sb_join_now='$join_now',
sb_mem_area='$mem_area',
sb_send_inquiry='$send_inquiry',
sb_inquiry_basket='$inquiry_basket',
sb_contact_list='$contact_list',
sb_block_list='$block_list',
sb_add_fav='$add_fav',
sb_profile='$profile',
sb_bar='$bar',
sb_more='$more',
sb_sell_offers='$sell_offers',
sb_buy_offers='$buy_offers',
sb_products='$products',
sb_profiles='$profiles' where sb_id=$id");//,sb_mem_opt='$mem_opt'

}
//


header("Location:"."site_icons.php?id=$id&msg=".urlencode("You have successfully saved an icon list"));
die();
///////////////////////////////////////////////////////////////////////////////
///      THE CODE OF THIS SCRIPT HAS BEEN DEVELOPED BY SOFTBIZ SOLUTIONS  /////
///      AND IS MEANT TO BE USED ON THIS SITE ONLY AND IS NOT FOR REUSE,  /////
///      RESALE OR REDISTRIBUTION.                                        ///// 
///      IF YOU NOTICE ANY VIOLATION OF ABOVE PLEASE REPORT AT:           /////
///      admin@softbizscripts.com                                         /////
///      http://www.softbizscripts.com                                    /////
///      http://www.softbizsolutions.com                                  /////  
///////////////////////////////////////////////////////////////////////////////


?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -