first commit 2
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
$sub_menu = '100900';
|
||||
include_once('./_common.php');
|
||||
|
||||
check_admin_token();
|
||||
|
||||
if ($w == 'd') {
|
||||
auth_check_menu($auth, $sub_menu, 'd');
|
||||
$sql = " delete from g5_google_ads where ga_id = '$ga_id' ";
|
||||
sql_query($sql);
|
||||
} else {
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
$sql_common = "
|
||||
ga_name = '{$_POST['ga_name']}',
|
||||
ga_client_id = '{$_POST['ga_client_id']}',
|
||||
ga_slot_id = '{$_POST['ga_slot_id']}',
|
||||
ga_format = '{$_POST['ga_format']}',
|
||||
ga_responsive = '{$_POST['ga_responsive']}',
|
||||
ga_use = '{$_POST['ga_use']}'
|
||||
";
|
||||
|
||||
if ($w == '') {
|
||||
$sql_common .= ", ga_datetime = '".G5_TIME_YMDHIS."' ";
|
||||
$sql = " insert into g5_google_ads set {$sql_common} ";
|
||||
sql_query($sql);
|
||||
} else if ($w == 'u') {
|
||||
$sql = " update g5_google_ads set {$sql_common} where ga_id = '$ga_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
goto_url('./google_ads_list.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user