403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/vx/usa/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/vx/usa/functions/add_alert.php
<?php
	session_start();
	include_once($_SERVER['DOCUMENT_ROOT'].'/vx_/site_info.php');
	include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/mysql.php');
	include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/ua.php');
	
	if(!empty($_SESSION['user'])) {
		if(!empty($_POST['cat_id'])) {
			$db->query("INSERT INTO grdb.grd_usa_alerts
						(
							site_code
							,client_id
							,alert_type_cat
							,alert_type_id
							,ts_added
						) VALUES (
							'".$db->clean($siteCode)."'
							,'".$db->clean($_SESSION['user'])."'
							,'".$db->clean($_POST['cat'])."'
							,'".$db->clean($_POST['cat_id'])."'
							,NOW()
						)");
			$new_id = $db->last_insert_id();
			$res = array();
			switch($_POST['cat']) {
				case 'category':
					$res = $db->get_results("SELECT categories_id as type_id,name,icon FROM grdb.grd_categories WHERE categories_id='".$db->clean($_POST['cat_id'])."'");
					break;
				case 'subcategory':
					$res = $db->get_results("SELECT subcategories_id as type_id,name,icon FROM grdb.grd_subcategories WHERE subcategories_id='".$db->clean($_POST['cat_id'])."'");
					break;
				case 'industry':
					$res = $db->get_results("SELECT industries_id as type_id,name,'' as icon FROM grdb.grd_industries WHERE industries_id='".$db->clean($_POST['cat_id'])."'");
					break;
				case 'minority':
					$res = $db->get_results("SELECT minorities_id as type_id,name,'' as icon FROM grdb.grd_minorities WHERE minorities_id='".$db->clean($_POST['cat_id'])."'");
					break;
			}
			if(!empty($res)) {
				$alert = $res[0];
				?>
				<div class="rb p10 pl20 white-bg bborder my_alert">
					<div class="rb f16" style="max-width:300px;">
						<?php if(!$phone) { ?>
						<span class="glyphicons <?= $alert->icon;?>" style="margin:-4px; margin-right:4px;"></span>
						<?php } ?>
						<?= $alert->name;?>
					</div>
					<div class="ab f20" style="right:20px; top:7px;"
						onclick="remove_alert(this,'<?= $new_id;?>'); return false;">
						<i class="fa fa-times-circle xremove"></i> 
					</div>
				</div>
				<?php
			}
		}
	}

Youez - 2016 - github.com/yon3zu
LinuXploit