Skip to content
Snippets Groups Projects
Commit 438d3c56 authored by Raghav's avatar Raghav
Browse files

RDBMS Integration tested

parent d6b2f7ff
Branches master
No related tags found
No related merge requests found
......@@ -41,11 +41,11 @@ class Session
// To get the key value
public static function get($key, $default = false)
{
if(Session::isset($key)){
// Check if the key exists return key else return default value.
if (Session::isset($key)) {
return $_SESSION[$key];
}else{
} else {
return $default;
}
}
}
......@@ -66,4 +66,30 @@ class User
}
}
// public function __construct($username)
// {
// $this -> conn = Database::getConnection();
// }
public function authenticate()
{
}
public function setBio()
{
}
public function getBio()
{
}
public function setAvatar()
{
}
public function getAvatar()
{
}
}
-- 24 March, 2025
ALTER TABLE `auth` ADD `sec_email` varchar(256) NULL;
\ No newline at end of file
......@@ -6,7 +6,7 @@ include 'libs/load.php';
<!doctype html>
<html lang="en" data-bs-theme="auto">
<!-- To load head -->
<? load_template('head') ?>
<?php load_template('head') ?>
<body>
<!-- Style for toggle button -->
......@@ -161,19 +161,19 @@ include 'libs/load.php';
<!--To load header file from template -->
<? load_template('header') ?>
<?php load_template('header') ?>
<!-- To load signup-content form to sign-in -->
<? load_template('signup-content'); ?>
<?php load_template('signup-content'); ?>
<!-- To load footer (footer.php) from template folder -->
<? load_template('footer'); ?>
<?php load_template('footer'); ?>
<script src="/photogram-project-php/assets/dist/js/bootstrap.bundle.min.js"></script>
</body>
......
......@@ -11,13 +11,11 @@ echo "string length: " . strlen($str) . "\n";
echo "md5: ". md5($str) . "(length: ". strlen(md5($str)) . ")\n";
echo "base64: ". base64_encode($str) . "\n(Length: ". strlen(base64_encode($str)) . ")";
// Testing type of hashing in php
// Testing type of hashing in php
$data = "hello";
foreach (hash_algos() as $v) {
$r = hash($v, $data, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment