Advertisement
Wistaro

sw bug activité

Sep 8th, 2018
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2. $currentPage = $_SERVER['REQUEST_URI'];
  3. session_start();
  4.  
  5. #Fonctions diverses et variées
  6. require('functions.inc');
  7. require('cache.inc');
  8.  
  9. require('maj_mine.php');
  10.  
  11. /* gestion de l'activité */
  12.  
  13. if(isset($_SESSION['psd'])){
  14.  
  15.     $psdMe = $_SESSION['psd'];
  16.     $pageEnCours = $currentPage.'@'.time();
  17.     $testReq = $bdd->prepare('UPDATE users SET current_activity = ? WHERE psd = ?');
  18.     $testReq->execute([$pageEnCours, $psdMe]);
  19. }
  20. [..]
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement