403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/khohangtieudung.vn/public_html/wp-content/themes/mtw-shop/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/khohangtieudung.vn/public_html/wp-content/themes/mtw-shop/functions_cart.php
<?php
function insert_query_vars($vars) {
	array_push($vars, 'pro_id'); //lưu id sản phẩm
	array_push($vars, 'action'); //lưu thao tác (thêm, xóa)
	return $vars;
}
add_filter('query_vars', 'insert_query_vars');

function rewrite_rules($rules) {
	$new_rules = array();
	$new_rules['(gio-hang)/(them|xoa)/([0-9]+)/?'] = 'index.php?pagename=$matches[1]&action=$matches[2]&pro_id=$matches[3]';
	return $new_rules + $rules;
	echo $matches[2];
}
add_action('rewrite_rules_array', 'rewrite_rules'); 


function mySessionStart() {
	ob_start();
	if(!session_id()) {
		session_start();
	}
}
add_action('init', 'mySessionStart', 1);

function mySessionEnd() {
	session_destroy ();
}
add_action('wp_logout', 'mySessionEnd');
add_action('wp_login', 'mySessionEnd');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit