<meta http-equiv=Content-Language content=zh-CN> <title>福布斯中文网</title> <?php include "../../frame.php"; ?> </head> <body> <?php $user = new table_class($tb_user); if ($_POST['id'] != '0') { $user->find($_POST['id']); if ($user->name != $_POST['post']['name']) { $db = get_db(); $record = $db->query("select * from " . $tb_user . " where name='" . $_POST['post']['name'] . "'"); if (count($record) == 0) { if ($user->update_attributes($_POST['post'])) { redirect('user_list.php'); } else { display_error('修改用户失败'); echo '<a href="user_list.php">返回</a>'; } } else { alert("您注册的用户名已经存在,请重新注册!"); redirect($_SERVER['HTTP_REFERER']); } } else { if ($_FILES['image_src']['name'] != '') { $upload = new upload_file_class(); $upload->save_dir = '/upload/news/'; $user->image_src = '/upload/news/' . $upload->handle('image_src', 'filter_pic'); $changed = true;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>forbes</title> <?php require_once '../../frame.php'; ?> </head> <?php require_once '../../frame.php'; #var_dump($_POST); $magazine = new table_class("fb_old_magazine"); $id = intval($_POST['id']); if ($id != '') { $magazine->find($id); } $magazine->update_attributes($_POST['post']); redirect('old_magazine_index.php');
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> </head> <?php require "../../frame.php"; $id = $_POST['id']; $city = new table_class('fb_city'); if ($id != '') { $city->find($id); } if ($_FILES['city_photo']['name'] != null) { $upload = new upload_file_class(); $upload->save_dir = "/upload/city/"; $img = $upload->handle('city_photo', 'filter_pic'); if ($img === false) { alert('上传文件失败 !'); redirect($_SERVER['HTTP_REFERER']); } $city->photo = "/upload/city/{$img}"; } if (!$city->update_attributes($_POST['city'])) { alert('城市已存在或执行错误!'); redirect($_SERVER['HTTP_REFERER']); } redirect('index.php'); ?> </html>
<?php require_once "../frame.php"; var_dump($_POST); $upload = new upload_file_class(); $employ = new table_class("hoau_employ"); if ($_FILES['url']['name'] != '') { $upload->save_dir = "/upload/employ/"; $em = $upload->handle('url'); if ($em === false) { alert('上传失败 !'); redirect($_SERVER['HTTP_REFERER']); } $employ->url = "/upload/employ/" . $em; } $employ->id_read = 0; $employ->date = date("Y-m-d H:i:s"); $employ->update_attributes($_POST['post']); redirect($_POST['url']);
$upload = new upload_file_class(); $upload->save_dir = '/upload/images/'; $img = $upload->handle('image', 'filter_pic'); if ($img === false) { alert('上传文件失败 !'); ?> <script> parent.remove_tb2(); </script> <?php die; } $vote->photo_url = "/upload/images/" . $img; } //如果投票上传图片,做处理 $vote->update_attributes($_POST['vote'], false); $vote->save(); $count = count($_POST['vote_item']['title']); $old_count = count($_POST['old_item']['title']); $item = new table_class("fb_vote_item"); if ($_POST['vote']['vote_type'] == 'image_vote') { $upload = new upload_file_class(); $upload->save_dir = '/upload/images/'; $img = $upload->handle('vote_item', 'filter_pic'); $old_img = $upload->handle('old_item', 'filter_pic'); } for ($i = 0; $i < $count; $i++) { $item->id = 0; $item->vote_id = $vote->id; if ($_POST['vote']['vote_type'] == 'image_vote') { if ($img[$i]['result']) {
include "../../frame.php"; ?> </head> <body> <?php $image = new table_class('fb_magazine_image'); $id = intval($_POST['id']); if ($id != '') { $image->find($id); } else { $image->created_at = date("Y-m-d H:i:s"); } //var_dump($_POST); if ($_FILES['image']['name'] != null) { $upload = new upload_file_class(); $upload->save_dir = "/upload/images/"; $img = $upload->handle('image', 'filter_pic'); if ($img === false) { alert('上传文件失败 !'); redirect($_SERVER['HTTP_REFERER']); } $image->src = "/upload/images/{$img}"; } if ($_POST['image']["priority"] == null) { $image->update_attribute("priority", "100"); } $image->update_attributes($_POST['image']); redirect('img_list.php?id=' . $image->magazine_id); ?> </body> </html>
<?php require "../../frame.php"; $id = $_POST['id']; $f_mrb = new table_class('fb_fhb'); if ($id != '') { $f_mrb->find($id); } $f_mrb->update_attributes($_POST['fhb'], false); if ($_FILES['image_src']['name'] != '') { $upload = new upload_file_class(); $upload->save_dir = '/upload/news/'; if (!($upload_name = $upload->handle('image_src', 'filter_pic'))) { alert('上传图片失败!'); redirect($_SERVER['HTTP_REFERER']); die; } $f_mrb->image_src = '/upload/news/' . $upload_name; } $f_mrb->save(); redirect('index.php');
<?php include '../../frame.php'; $table = new table_class('fb_filte_words'); $id = intval($_POST['id']); if ($id) { $table->find($id); } $table->update_attributes($_POST['post']); redirect('list.php');
<?php include_once "../../frame.php"; use_jquery(); js_include_tag('jquery.colorbox-min'); $pos = new table_class('eb_page_pos'); $pos->find_by_name($_POST[pos][name]); $pos->update_file_attributes('pos'); $pos->update_attributes($_POST['pos'], false); $pos->save(); ?> <script> parent.$.fn.colorbox.close(); parent.frames['admin_iframe'].location.reload(); </script>
} if (empty($_FILES)) { alert("上传的文件太大!"); redirect('edit.php'); die; } if ($_FILES['image'][name]) { $upload = new upload_file_class(); $upload->save_dir = '/upload/images/'; $img = $upload->handle('image', 'filter_pic'); if ($img === false) { alert('上传图片失败 !'); redirect('edit.php'); die; } $teach->img_url = "/upload/images/" . $img; } if ($_FILES['flash'][name]) { $upload = new upload_file_class(); $upload->save_dir = '/upload/flash/'; $flash = $upload->handle('flash'); if ($flash === false) { alert('上传flash失败 !'); redirect('edit.php'); die; } $teach->content = "/upload/flash/" . $flash; } $teach->update_attributes($_POST['post'], false); $teach->save(); redirect('index.php');
<?php include '../../frame.php'; $post_type = intval($_POST['mlist']['list_type']); $id = intval($_POST['id']); $list_type = new table_class('fb_custom_list_type'); if ($id) { $list_type->find($id); } $list_type->update_attributes($_POST['mlist'], false); $list_type->table_name = 'fb_picture_list_items'; if ($_FILES['image_src']['name'] != '') { $upload = new upload_file_class(); $upload->save_dir = '/upload/news/'; if (!($upload_name = $upload->handle('image_src', 'filter_pic'))) { alert('上传图片失败!'); redirect($_SERVER['HTTP_REFERER']); die; } $list_type->image_src = '/upload/news/' . $upload_name; } $list_type->save(); redirect('picture_list_list.php');
if ($right->id) { $db->execute("delete from fb_role_rights where rights_id = {$right->id}"); $right->delete(); } } if (isset($_POST['rela'])) { $db = get_db(); $db->execute("delete from fb_position_relation where type='{$_POST['rela']}' and news_id={$_POST['del_id']}"); } $post->delete($_POST['del_id']); echo $_POST['del_id']; } elseif ("edit" == $_POST['post_type']) { if ($_POST['id'] != '') { $post->find($_POST['id']); } $post->update_attributes($_POST['post']); redirect($_POST['url']); } elseif ("edit_priority" == $_POST['post_type']) { $id_str = explode("|", $_POST['id_str']); $priority_str = explode("|", $_POST['priority_str']); $id_str_num = sizeof($id_str) - 1; if ($_POST['is_dept_list'] == 'true') { $priority = 'dept_priority'; } else { $priority = 'priority'; } for ($i = $id_str_num - 1; $i >= 0; $i--) { if ($priority_str[$i] == "") { $priority_str[$i] = "100"; } $db = get_db();
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>forbes</title> <?php require_once '../../frame.php'; ?> </head> <?php require_once '../../frame.php'; #var_dump($_POST); $survey = new table_class("fb_survey"); $id = intval($_POST['id']); if ($id != '') { $survey->find($id); } $survey->update_attributes($_POST['post'], false); $survey->update_file_attributes('post'); $survey->save(); redirect('index.php');
<?php #var_dump($_POST); require "../../frame.php"; $module = new table_class('fb_subject_modules'); $module->update_attributes($_POST['module'], false); $module->id = $_POST['id']; if ($module->save()) { echo 'ok'; } else { echo 'fail'; }
<?php session_start(); include_once '../../frame.php'; $role = judge_role(); $yh_id = intval($_POST['id']); $db = get_db(); $info = $db->query("select id from fb_yh_xx where yh_id={$yh_id}"); if ($db->record_count == 1) { $id = $info[0]->id; } else { $id = 0; } $info = new table_class('fb_yh_xx'); if ($id != 0) { $info->find($id); } $info->update_attributes($_POST['info'], false); if ($_FILES['tx']['name'] != null) { $upload = new upload_file_class(); $upload->save_dir = "/upload/user/"; $img = $upload->handle('tx', 'filter_pic'); if ($img === false) { alert('上传文件失败 !'); redirect($_SERVER['HTTP_REFERER']); } $info->tx = "/upload/user/{$img}"; } $info->yh_id = $yh_id; $info->save(); redirect('index.php');
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title></title> </head> <?php require_once '../../frame.php'; $question = new table_class('fb_survey_question'); $id = intval($_POST['id']); if (!empty($_POST['id'])) { $question->find($_POST['id']); } else { $question->survey_id = $_POST['p_id']; } $question->update_attributes($_POST['post']); for ($i = 0; $i < count($_POST['item']['id']); $i++) { $item = new table_class('fb_survey_item'); $item->find($_POST['item']['id'][$i]); if (empty($_POST['item']['name'][$i])) { $item->delete($_POST['item']['id'][$i]); } else { $item->name = $_POST['item']['name'][$i]; $item->save(); } } for ($i = 0; $i < count($_POST['item']['new_name']); $i++) { $item = new table_class('fb_survey_item'); if ($_POST['item']['new_name'][$i] != '') { $item->name = $_POST['item']['new_name'][$i]; $item->question_id = $question->id;
<?php include "../../frame.php"; $category = new table_class('fb_subject_category'); if ($_REQUEST['id']) { $category->find($_REQUEST['id']); } $category->update_attributes($_POST['category']); redirect('subject_category.php?id=' . $category->subject_id);
<title>迅傲信息</title> </head> <body> <?php include_once '../../frame.php'; $role = judge_role(); if (empty($_POST)) { alert('提交失败,可能是上传文件过大或发生未知错误,请检查后再提交'); redirect($_SERVER['HTTP_REFERER']); die; } $id = $_REQUEST['id']; $ad = new table_class('eachbb_ad.eb_ad'); if ($id != '') { $ad->find($id); $ad->update_attributes($_POST['ad'], false); } else { $ad->update_attributes($_POST['ad'], false); $ad->is_adopt = 1; } if ($_FILES['image']['name'] != null) { if ($_FILES['image']['size'] > 2000000) { alert('上传图片不得大于2M,请重新上传 !'); redirect($_SERVER['HTTP_REFERER']); die; } $upload = new upload_file_class(); $upload->save_dir = "/upload/jj/"; $img = $upload->handle('image', 'filter_pic'); if ($img === false) { alert('上传图片失败 !');
<?php require '../../frame.php'; $category_type = str_replace('list', '', $_POST['category']['category_type']); $c = "name='" . $_POST['category']['name'] . "' and category_type='" . $category_type . "'"; $category = new table_class($tb_category); if ($category->find('all', array('conditions' => $c))) { echo "<script>alert('分类已经存在');</script>"; exit; } $category->update_attributes($_POST['category'], false); $category->category_type = $category_type; $category->parent_id = 0; $category->save(); ?> <script> $('#category_id').append('<option selected="selected" value=<?php echo $category->id; ?> ><?php echo $category->name; ?> </option>'); </script>
<?php session_start(); include_once '../../frame.php'; judge_role(); $partner = new table_class("zzh_partner"); $id = intval($_POST['id']); if ($id != '') { $partner->find($id); } else { $partner->created_at = now(); } $partner->update_attributes($_POST['post'], false); $partner->update_file_attributes('post'); $partner->save(); redirect('partner.php');
<?php require "../../frame.php"; $news_id = $_POST['id'] ? $_POST['id'] : 0; //var_dump($_POST); //exit; $news = new table_class($tb_news); if ($news_id != 0) { $news->find($news_id); } $news->update_attributes($_POST['news'], false); $news->is_adopt = 1; $news->content = str_replace("'", '\\"', $news->content); //mysql_escape_string($news->content); $news->description = str_replace("'", '\\"', $news->description); //$news->description = mysql_escape_string($news->description); #$news->content = strtr($news->content,array('<div>' => '','</div>' => '','<DIV>' => '','</DIV>' => '')); $news->keywords = str_replace(' ', ' ', $news->keywords); #$news->echo_sql = true; $pos = strpos(strtolower($news->content), '<img '); if ($pos !== false) { $pos_end = strpos(strtolower($news->content), '>', $pos); $imgstr = substr($news->content, $pos, $pos_end - $pos + 1); #alert($pos_end .';'.$imgstr); $imgstr = str_replace('\\"', '"', $imgstr); $pos = strpos($imgstr, 'src="'); $pos_end = strpos($imgstr, '"', $pos + 5); $src = substr($imgstr, $pos + 5, $pos_end - $pos - 5); $news->photo_src = $src; $news->is_photo_news = 1; } else {
include '../../frame.php'; $role = new table_class('eb_role'); $id = intval($_POST['id']); $has_rights = array(); $modify_rights = $_POST['rights'] ? $_POST['rights'] : array(); $db = get_db(); if ($id) { $role->find($id); $hr = $db->query("select * from eb_role_rights where role_id={$id}"); if ($hr) { foreach ($hr as $v) { $has_rights[] = $v->rights_id; } } } $role->update_attributes($_POST['role']); /* handle the deleted rights * */ $deleted = array_diff($has_rights, $modify_rights); if (!empty($deleted)) { $ids = implode(',', $deleted); $sql = "delete from eb_role_rights where role_id={$id} and rights_id in({$ids})"; $db->execute($sql); } $added = array_diff($modify_rights, $has_rights); if (!empty($added)) { $ids = implode(',', $added); foreach ($added as $v) { $db->execute("insert into eb_role_rights (role_id,rights_id) values ({$role->id},{$v})"); }
<?php require_once '../frame.php'; rights($_SESSION["hoaurights"], '3'); $yywd = new table_class('hoau_yywd'); $id = $_POST['id']; if ($id != '') { $yywd->find($id); } $yywd->update_attributes($_POST['post'], false); $yywd->save(); redirect($_POST['url']);
<?php session_start(); include_once '../../frame.php'; judge_role(); #var_dump($_POST); $seo = new table_class("fb_seo"); $id = intval($_POST['id']); if ($id != '') { $seo->find($id); } $seo->update_attributes($_POST['seo'], false); $seo->save(); redirect('index.php');
<?php session_start(); include_once '../../frame.php'; judge_role(); $activity = new table_class("zzh_activity"); $id = intval($_POST['id']); if ($id != '') { $activity->find($id); } else { $activity->created_at = now(); } $activity->update_attributes($_POST['post'], false); $activity->update_file_attributes('post'); if ($_POST['is_old'] == 'on') { $activity->is_old = 1; } else { $activity->is_old = 0; } $activity->save(); redirect('activity.php');
die; } if ($_POST['sub']['StockCompany'] != 1 && $_POST['sub']['StockCompany'] != 0 || trim($_POST['sub']['StockCompany']) == "") { alert('请正确选择您的公司是否是上市公司!'); redirect($back_url); die; } if (strlen($_POST['sub']['Product']) > 70 || trim($_POST['sub']['Product']) == "") { alert('请正确选择您的公司所制造的产品!'); redirect($back_url); die; } if (strlen($_POST['sub']['turnover']) > 30) { alert('请正确选择您的公司年营业额!'); redirect($back_url); die; } if (strlen($_POST['sub']['Earning']) > 30) { alert('请正确选择您的年收入!'); redirect($back_url); die; } $subscript = new table_class('fb_subscription'); $subscript->update_attributes($_POST['sub'], false); $subscript->stime = now(); if ($subscript->save()) { alert('申请成功'); #$content = "感谢您订阅福布斯杂志。"; #send_mail('smtp.qiye.163.com','*****@*****.**','userservice','*****@*****.**',$_POST['sub']['Email'],'福布斯中文网',$content); } redirect($back_url);
<?php require_once '../frame.php'; rights($_SESSION["hoaurights"], '3'); //var_dump($_POST); $id = $_POST['id']; $price = new table_class('hoau_drd_price'); if ($id != '') { $price->find($id); } $pid = province_update('hoau_drd_price', '0', $_POST['drd']['startprovince']); province_update('hoau_drd_price', '1', $_POST['drd']['startcity'], $pid); $pid = province_update('hoau_drd_price', '0', $_POST['drd']['endprovince']); province_update('hoau_drd_price', '1', $_POST['drd']['endcity'], $pid); $price->update_attributes($_POST['drd']); redirect($_POST['url']);
<?php include '../../frame.php'; $list_id = intval($_POST['list_id']); if (!$list_id) { alert('invalid request!'); redirect('index.php'); die; } $id = intval($_POST['id']); $item = new table_class('fb_rich_list_items'); if ($id) { $item->find($id); } $item->update_attributes($_POST['item'], false); $item->list_id = $list_id; $db = get_db(); $db->query("select id from fb_rich where name='{$item->name}'"); if ($db->move_first()) { $item->rich_id = $db->field_by_name('id'); } $item->update_file_attributes('item'); if (!$item->save()) { alert('fail to update!'); } redirect("rich_list_items_list.php?id={$list_id}");
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>迅傲信息</title> <?php include "../../frame.php"; ?> </head> <body> <?php $menu = new table_class($tb_menu); if ($_REQUEST['id']) { $menu->find($_REQUEST['id']); } if ($menu->update_attributes($_POST['post'])) { redirect('menu_list.php'); } else { display_error('修改菜单失败'); echo '<a href="menu_list.php">返回</a>'; } ?> </body> </html>
$vid = $upload->handle('video', 'filter_video'); if ($vid === false) { alert('上传视频失败 !'); redirect($_SERVER['HTTP_REFERER']); } $video->video_url = "/upload/video/" . $vid; } } else { $upload = new upload_file_class(); if ($_FILES['image']['name'] != null) { $upload->save_dir = "/upload/images/"; $img = $upload->handle('image', 'filter_pic'); if ($img === false) { alert('上传图片失败 !'); redirect($_SERVER['HTTP_REFERER']); } $video->photo_url = "/upload/images/" . $img; } } if ($_POST['video']["priority"] == null) { $video->priority = 100; } $video->update_attributes($_POST['video']); if ($video->category_id != '') { redirect('video_list.php?category=' . $video->category_id); } else { redirect('video_list.php'); } ?> </body> </html>