push notification setting and update pages with PDO

This commit is contained in:
2026-07-31 14:34:26 +02:00
parent 8ad8d279e6
commit b553f7e9e9
10 changed files with 1971 additions and 2290 deletions
+48 -47
View File
@@ -10,21 +10,20 @@ include('../extra/auth.php');
// logged in, and in that case we redirect
// the user to vanguard login page.
if (! Auth::check()) {
redirectTo('login');
}
redirectTo('login');
}
$user = Auth::user();
$iduserlogin=$user->present()->id;
$nameuser=$user->present()->name;
$emailuser=$user->present()->email;
$idcompany=$user->present()->idcompany;
$langid=$user->present()->langid;
$privacyacc=$user->present()->privacyaccepted;
$loginusername=$user->present()->username;
$roleuser=$user->present()->role_id;
$firstname=$user->present()->first_name;
$lastname=$user->present()->last_name;
$iduserlogin = $user->present()->id;
$nameuser = $user->present()->name;
$emailuser = $user->present()->email;
$idcompany = $user->present()->idcompany;
$langid = $user->present()->langid;
$privacyacc = $user->present()->privacyaccepted;
$loginusername = $user->present()->username;
$roleuser = $user->present()->role_id;
$firstname = $user->present()->first_name;
$lastname = $user->present()->last_name;
//$user = "1";
//$iduserlogin="1";
//$idcompany="1";
@@ -34,55 +33,61 @@ $lastname=$user->present()->last_name;
?>
<?php require_once('Connections/bkngstm.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
<?php // require_once('@@RSObjectPath@@'); ?>
<?php require_once('webassist/mysqli/queryobj.php'); ?>
<?php // require_once("../webassist/form_validations/wavt_scripts_php.php"); ?>
<?php //include('generalsettings.php'); ?>
<?php
<?php // require_once('@@RSObjectPath@@');
?>
<?php require_once('webassist/mysqli/queryobj.php'); ?>
<?php require_once('class/db-functions.php'); ?>
<?php // require_once("../webassist/form_validations/wavt_scripts_php.php");
?>
<?php //include('generalsettings.php');
?>
<?php
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
?>
<?php
if (!isset($_SESSION["idowneruser"])) {
$_SESSION["iduserlogin"]=$iduserlogin;
}
$iduserlog=$_SESSION["iduserlogin"];
$_SESSION["nameuser"]=$nameuser;
$_SESSION["emailuser"]=$emailuser;
$_SESSION["iduserlogin"] = $iduserlogin;
}
$iduserlog = $_SESSION["iduserlogin"];
$_SESSION["nameuser"] = $nameuser;
$_SESSION["emailuser"] = $emailuser;
if (!isset($_SESSION["tempcode"])) {
$timestampnow=time();
$temporarycode=$iduserlog."-".$timestampnow;
$_SESSION["tempcode"]=$temporarycode;
$tempcode=$_SESSION["tempcode"];
} else { $tempcode=$_SESSION["tempcode"]; }
$timestampnow = time();
$temporarycode = $iduserlog . "-" . $timestampnow;
$_SESSION["tempcode"] = $temporarycode;
$tempcode = $_SESSION["tempcode"];
} else {
$tempcode = $_SESSION["tempcode"];
}
?>
<?php
// if undermanteinance
//if ($undermanteinance == "yes" && $roleuser != 1 && $roleuser != 4 && $roleuser != 5) {
//header("Location: undermanteinance.php");
//exit();
//header("Location: undermanteinance.php");
//exit();
//}
?>
<?php
<?php
//check privacy policy accepted
//if (empty($privacyacc)) {
// header("location: privacyaccept.php");
// header("location: privacyaccept.php");
//die();
//}
?>
<?php
?>
<?php
if (isset($_GET['info'])) {
$infobox=$_GET['info'];
$_SESSION["infobox"]=$infobox;
}
$infobox = $_GET['info'];
$_SESSION["infobox"] = $infobox;
}
if (isset($_SESSION["infobox"])) {
$infobox=$_SESSION["infobox"];
}
$infobox = $_SESSION["infobox"];
}
?>
<?php // include('languages/it/general.php');
<?php // include('languages/it/general.php');
//include('languages/it/questionaire.php');
?>
<!-- query languages -->
@@ -98,10 +103,10 @@ $languageselection->setQuery("SELECT * FROM languages WHERE languages.active_lan
$languageselection->execute(); */
?>
<?php
$avat = new WA_MySQLi_RS("avat",$bkngstm,0);
$avat = new WA_MySQLi_RS("avat", $bkngstm, 0);
$avat->setQuery("SELECT avatar,id FROM auth_users WHERE auth_users.id='$iduserlogin'");
$avat->execute();
$avatarname=$avat->getColumnVal("avatar");
$avatarname = $avat->getColumnVal("avatar");
?>
<?php
//$companydetails = new WA_MySQLi_RS("companydetails",$cmctrfdb,1);
@@ -148,9 +153,5 @@ if ($companyData["edited"]!="Y") {
header("location: companyprofile.php");
die();
} */
?>
?>