Hi
I'm not good in php I need someone to help me in an auth file,
I've a link protected with a header("HTTP/1.0 200 OK") [login to view URL] I'm using:
===================================
$get = print_r($_GET, true);
$token = $_GET["token"];
if(!$token || !strlen($token)) {
header('HTTP/1.0 403 Forbidden');
error_log("No token provided", 4);
die();
}
$tokens = array();
$contents = explode("\n", file_get_contents("[login to view URL]"));
foreach($contents as $line) {
if(strlen($line) > 3) {
$parts = explode(":", $line);
$tokens[$parts[1]] = $parts[0];
}
}
if($tokens[$token]) {
header("HTTP/1.0 200 OK");
header("X-UserId: ".$tokens[$token]."\r\n");
header("X-Unique: true\r\n"); // Turn this on to protect from multiscreen
} else {
header('HTTP/1.0 403 Forbidden');
}
===================================
and [login to view URL]:
==================================
user1:fKg5sw0Dhy
==================================
the problem is my token fKg5sw0Dhy is visible, so I want to edit my php file to hide my token with a combination of md5, expiration after xx seconds and user ip. something like:
=========================
date_default_timezone_set('UTC');
$ip = $_SERVER['REMOTE_ADDR'] = isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];;
$mysecretkey = "fKg5sw0Dhy";
$expiry = strtotime("+50 seconds");
$b64 = base64_encode(md5($mysecretkey.$expiry.$ip,true));
$b64u = rtrim(str_replace(array('+','/'),array('-','_'),$b64),'=');
echo "[login to view URL]$b64u\n";
=========================
it's a 5min's task for any php coder, I'll consider the lower bid
php expert please message me so we can get started and have it done i am just doing it for the review so please message me and we can discuss price u want to pay
Hello,
I have read through your project and I am incredibly interested in taking on your project. I am an experienced developer with a diploma in the field of web development. I have been working in the field of web development for roughly 7 years. I take great pride in my work and deliver only the best quality.
My skill-set includes...
-PHP
-HTML5
-CSS
-AJAX
-Responsive Design
-Joomla
-Wordpress
-Magento
-Photoshop
-Illustrator
-Video Editing
-Data entry
I look forward to hearing from you and hopefully we will have the opportunity to work together.
Thank you,
Meagan S.
========Please Don't award this project to us without discussing this project in detail============
Hi, I (Myself a senior PHP, ASP.NET programmer using C# and VB) have a team having experience of more than 10 years in developing web and mobile applications. I have a team of expert programmers who write robust and bug-free codes at the very first instance. After seeing our quality of work and the cooperation offered to you even after the work has been delivered to you, you’ll come to us again and again to avail our services. I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. I can achieve the results that you are asking for within your timeframe and budget. I am confident I can exceed your expectations and I would love to work on your project. Thanks, Priyanka
Since I have worked possible solution for keeping it up
Puedo brindar la solución del problema tengo experiencia con php sobre todo orientado al servidor
El tiempo que oferto lo puedo cumplir perfectamente . saludos