mirror of
https://github.com/cuga-rajal/hgauth.git
synced 2026-08-14 00:57:50 +00:00
22 lines
544 B
PHP
22 lines
544 B
PHP
<?php
|
|
// Github: https://github.com/cuga-rajal/hgauth
|
|
|
|
$db_server = 'dbserver';
|
|
$db_name = 'dbname';
|
|
$db_user = 'dbuser';
|
|
$db_pass = 'dbpass';
|
|
$tablename = "hgauth"; //this is the table name that will store your authorizations.
|
|
|
|
$authlink = "http://mydomain.com/path/to/index.php"; // URL your users will use to submit consent
|
|
|
|
|
|
function base64_url_encode($input) {
|
|
return strtr(base64_encode(str_rot13($input)), '+/=', '-_,');
|
|
}
|
|
|
|
function base64_url_decode($input) {
|
|
return str_rot13(base64_decode(strtr($input, '-_,', '+/=')));
|
|
}
|
|
|
|
|
|
?>
|