A customisable version of the Kickass Torrents Status page. (Originally up at kastatus.com)
Example: https://kastatus.pxgamer.xyz
A customisable version of the Kickass Torrents Status page.
A customisable version of the Kickass Torrents Status page. (Originally up at kastatus.com)
Example: https://kastatus.pxgamer.xyz
If provided by the user, the value of
mysqli_real_escape_string($db_conn, $_POST['username'])
may allow an SQL injection attack. Avoid concatenating parameters to SQL query strings, and use parameter binding instead.
include '../head.php';
include '../backend/funcs.php';
$db_conn = \funcs\Functions::conn();
if (isset($_POST['login']) && $_POST['username'] !== '' && $_POST['password'] !== '') {
$sql = "SELECT password FROM `users` WHERE username='".mysqli_real_escape_string($db_conn, $_POST['username'])."'";
$res = \funcs\Functions::query($db_conn, $sql);
while ($row = mysqli_fetch_assoc($res)) {
$hash = $row['password'];
}
$verified = password_verify($_POST['password'], $hash);
Posted from SensioLabsInsight
Need to add PHP session usage for the login/admin areas.
So, when logging in it sets the session with the following details:
$_SESSION['user'] = (object) [
"id" => "%USERID%",
"username" => "%USER%",
"loginDate" => "%DATE%"
];
And on the admin page, check that $_SESSION['user']
is set and isn't equal to null
.
This is quite an easy one, so anyone who wants it, just comment below. ๐
If you need any help, let me know.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.