I’ll be taking another shot at public torrent scraping, I need it by this weekend so should be of result. Seems we get a working solution, and it goes down over time. Maybe a public tracker list is needed for this script.
"coco, post: 69559, member: 20298":
I don't know what's going on but still the same error.
I changed line 415 in Account.php
$sql = "INSERT INTO users (username, password, secret, email, status, added, last_access, age, country, gender, client, stylesheet, language, class, ip) VALUES (" . implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $email, $status, get_date_time(), get_date_time(), $age, $country, $gender, $client, $config["default_theme"], $config["default_language"], $signupclass, getip()))) . ")";
$ins_user = DB::run($sql);
$id = DB::lastInsertId();
with this
$ins_user = DB::run("INSERT INTO users
(username, password, secret, email, status, added, last_login, last_access, age, country, gender, client, stylesheet, language, class, ip)
VALUES
(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
[$wantusername, $wantpassword, $secret, $email, $status, get_date_time(), get_date_time(), get_date_time(), $age, $country, $gender, $client, $config["default_theme"], $config["default_language"], $signupclass, getip()]);
$id = DB::lastInsertId()
in address bar https://xxxxxxx.xxx/exceptions/error
error_log and exception_log.txt files are empty
And also this line $config['SITEURL'] = '[url='http://localhost/pdo;']http://localhost/pdo';[/url] //Main Site URL how it should be?
In main config is $config['SITEURL'] = 'https://xxxxxxx.xxx'; //Main Site URL without pdo, if you add it many redirects start
Thank you m-jay
"STorrents2020, post: 69561, member: 20382":
I’ll be taking another shot at public torrent scraping, I need it by this weekend so should be of result. Seems we get a working solution, and it goes down over time. Maybe a public tracker list is needed for this script.
"Botanicar, post: 69563, member: 19833":
it was a very quick response from you mate,
most use the following opentrackers:
udp://tracker.opentrackr.org:1337/announce
udp://9.rarbg.to:2990
udp://tracker.coppersurfer.tk:6969/announce
udp://eddie4.nl:6969/announce
udp://9.rarbg.me:2720
udp://tracker.leechers-paradise.org:6969/announce
[URL unfurl="true"]http://tracker.trackerfix.com:80/announce[/url]
udp://tracker.zer0day.to:1337/announce
etc etc ...
hope you resolve some problems with that
Regards
// Mass check life on public announce URLs
include_once('simple_html_dom.php');
// Create DOM from URL
$html = file_get_html('http://www.torrenttrackerlist.com/torrent-tracker-list/');
// find all trackers on URL
foreach($html->find('pre.prettyprint') as $e)
$geturls = $e->innertext;
// Format rendered tracker list
$trackerlist = str_replace('announce', 'announce<br>', $geturls);
echo $trackerlist;
if (!class_exists('DOMDocument') {
die('DOM not enabled. This will not work.');
}
"m-jay, post: 69568, member: 20288":
I had a go with this mate bit more modern
[URL unfurl="true"]https://github.com/medariox/scrapeer[/url]
With that it was again tempermental - again a setting something to do with the function socket_create() - sockets is enabled
It would explain why it stopped working on different versions it's not code its server/host side im sure - xammp runs scraping perfect every time now on update I'm working on at minute with the old mod from here :unsure:
public function adduser()
{
if ($_SESSION["class"] < "7") {
show_error_msg("Error", "Sorry you do not have the rights to view this page!", 1);
}
$data = [];
$this->view('admin/adduser', $data);
}
public function addeduserok()
{
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if ($_POST["username"] == "" || $_POST["password"] == "" || $_POST["email"] == "") {
show_error_msg("Error", "Missing form data.");
}
if ($_POST["password"] != $_POST["password2"]) {
show_error_msg("Error", "Passwords mismatch.");
}
$username = $_POST["username"];
$password = $_POST["password"];
$email = $_POST["email"];
$secret = mksecret();
$passhash = md5($password);
$secret = $secret;
$count = get_row_count("users", "WHERE username=$username");
if (!$count !=0) {
show_error_msg("Error", "Unable to create the account. The user name is possibly already taken.");
Redirect::to(URLROOT . "/admincp");
die;
}
DB::run("INSERT INTO users (added, last_access, secret, username, password, status, email) VALUES (?,?,?,?,?,?,?)", [get_date_time(), get_date_time(), $secret, $username, $passhash, 'confirmed', $email]);
Redirect::autolink(URLROOT . "/admincp", Lang::T("COMPLETE"));
}
}
<?php
Style::adminheader("Add User");
Admincp::adminnavmenu1();
Style::begin("Add User");
?>
<center><b>Add user</b></center>
<div class="form-group">
<form method=get action=?>
<input type=hidden name=action value=users>
Search Users: <input type=text size=30 name=search>
<input type=submit value='Search'>
</form>
<form method=post action='<?php echo URLROOT; ?>/admincp/addeduserok'>
<div class="form-group">
<label for="name">Username</label>
<input id="name" type="text" class="form-control" name="username" minlength="3" maxlength="25" required autofocus>
</div>
<div class="form-group">
<label for="name">Password</label>
<input id="name" type="text" class="form-control" name="password" minlength="3" maxlength="25" required autofocus>
</div>
<div class="form-group">
<label for="name">Re-type password</label>
<input id="name" type="text" class="form-control" name="password2" minlength="3" maxlength="25" required autofocus>
</div>
<div class="form-group">
<label for="name">E-mail</label>
<input id="name" type="text" class="form-control" name="email" minlength="3" maxlength="25" required autofocus>
</div>
<div class="form-group">
<div class="form-group no-margin">
<button type="submit" class="btn btn-primary btn-block">Okay</button>
</div>
</form>
</div>
</div>
<?php
Style::end();
Style::adminfooter();
"m-jay, post: 69700, member: 20288":
added note to first post the code has changed a lot so github is far behind until next month ,
and a quick look at the admin side the admincp will preferably go everything will be split like the adduser section this will end up on profile controller inline
the controller methods (the query should be in the model)
public function adduser()
{
if ($_SESSION["class"] < "7") {
show_error_msg("Error", "Sorry you do not have the rights to view this page!", 1);
}
$data = [];
$this->view('admin/adduser', $data);
}
public function addeduserok()
{
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if ($_POST["username"] == "" || $_POST["password"] == "" || $_POST["email"] == "") {
show_error_msg("Error", "Missing form data.");
}
if ($_POST["password"] != $_POST["password2"]) {
show_error_msg("Error", "Passwords mismatch.");
}
$username = $_POST["username"];
$password = $_POST["password"];
$email = $_POST["email"];
$secret = mksecret();
$passhash = md5($password);
$secret = $secret;
$count = get_row_count("users", "WHERE username=$username");
if (!$count !=0) {
show_error_msg("Error", "Unable to create the account. The user name is possibly already taken.");
Redirect::to(URLROOT . "/admincp");
die;
}
DB::run("INSERT INTO users (added, last_access, secret, username, password, status, email) VALUES (?,?,?,?,?,?,?)", [get_date_time(), get_date_time(), $secret, $username, $passhash, 'confirmed', $email]);
Redirect::autolink(URLROOT . "/admincp", Lang::T("COMPLETE"));
}
}
the template (bootstrap)
<?php
Style::adminheader("Add User");
Admincp::adminnavmenu1();
Style::begin("Add User");
?>
<center><b>Add user</b></center>
<div class="form-group">
<form method=get action=?>
<input type=hidden name=action value=users>
Search Users: <input type=text size=30 name=search>
<input type=submit value='Search'>
</form>
<form method=post action='<?php echo URLROOT; ?>/admincp/addeduserok'>
<div class="form-group">
<label for="name">Username</label>
<input id="name" type="text" class="form-control" name="username" minlength="3" maxlength="25" required autofocus>
</div>
<div class="form-group">
<label for="name">Password</label>
<input id="name" type="text" class="form-control" name="password" minlength="3" maxlength="25" required autofocus>
</div>
<div class="form-group">
<label for="name">Re-type password</label>
<input id="name" type="text" class="form-control" name="password2" minlength="3" maxlength="25" required autofocus>
</div>
<div class="form-group">
<label for="name">E-mail</label>
<input id="name" type="text" class="form-control" name="email" minlength="3" maxlength="25" required autofocus>
</div>
<div class="form-group">
<div class="form-group no-margin">
<button type="submit" class="btn btn-primary btn-block">Okay</button>
</div>
</form>
</div>
</div>
<?php
Style::end();
Style::adminfooter();
image is from mobile device
No users online
Torrents
Members
Online