07-17-2015, 06:53 AM
Hmm... /install/install.php
Is that how you nulled it? Lol.
But why not also the following, which still exists:
And, "Checking for Updates"
/sim/controllers/settings.php (Ling 641)
And, Saving the updated files from the developers server to yours...
/sim/helpers/curl_helper.php (line 22)
And the this... Which is kinda a big deal.
/update/update.php (lines 105 and 292 area)
Which you originally have commented out in the install, but not for the update process... So, since you didn't disable the update procedure... it will cry home if someone updates.
Code:
/*$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://tecdiary.com/support/api/getdb/');
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array(
'username' => $_POST["username"],
'code' => $_POST["code"],
'id' => '4259689',
'version' => '3.0',
'type' => 'install'
));*/
Is that how you nulled it? Lol.
But why not also the following, which still exists:
Code:
if ($_POST) {
$code = $_POST["code"];
$username = $_POST["username"];
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://tecdiary.com/support/api/register/');
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
$referer = "http://" . $_SERVER["SERVER_NAME"] . substr($_SERVER["REQUEST_URI"], 0, -17);
$path = substr(realpath(dirname(__FILE__)), 0, -8);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array(
'username' => $_POST["username"],
//'email' => $_POST["email"],
'code' => $_POST["code"],
'id' => '4259689',
'ip' => $_SERVER['REMOTE_ADDR'],
'referer' => $referer,
'path' => $path
));
And, "Checking for Updates"
/sim/controllers/settings.php (Ling 641)
Code:
$updates = get_curl_contents('http://tecdiary.com/api/v1/update/', $fields);
And, Saving the updated files from the developers server to yours...
/sim/helpers/curl_helper.php (line 22)
Code:
file_put_contents('./files/updates/'.$file, fopen("http://tecdiary.com/api/v1/download/file/".$file, 'r'));
And the this... Which is kinda a big deal.
/update/update.php (lines 105 and 292 area)
Code:
if ($_POST) {
$code = $_POST["code"];
$username = $_POST["username"];
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://tecdiary.com/support/api/register/');
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
$referer = "http://" . $_SERVER["SERVER_NAME"] . substr($_SERVER["REQUEST_URI"], 0, -14);
$path = substr(realpath(dirname(__FILE__)), 0, -7);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array(
'username' => $_POST["username"],
//'email' => $_POST["email"],
'code' => $_POST["code"],
'id' => '4259689',
'ip' => $_SERVER['REMOTE_ADDR'],
'referer' => $referer,
'path' => $path
));
//////////////////////////////////////////
if ($_POST) {
$code = $_POST['code'];
$username = $_POST['username'];
define("BASEPATH", "update/");
include("../sim/config/database.php");
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://tecdiary.com/support/api/getdb/');
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array(
'username' => $_POST["username"],
'code' => $_POST["code"],
'id' => '4259689',
'version' => '3.0',
'type' => 'update'
));
Which you originally have commented out in the install, but not for the update process... So, since you didn't disable the update procedure... it will cry home if someone updates.