PHP Classes

File: WIMembers/WIInc/profile.php

Recommend this page to a friend!
  Classes of Jules Warner   WICMS   WIMembers/WIInc/profile.php   Download  
File: WIMembers/WIInc/profile.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 7 years ago
Size: 744 bytes
 

Contents

Class file image Download
<script type="text/javascript">
$(document).ready(function () {
    var friendId = $.cookie("friendId");
  //alert(friendId);
   $.ajax({
    url: "WICore/WIClass/WIAjax.php",
    type: "POST",
    data: {
      action : "friendProfile",
      friend : friendId
    },
    success: function (result) {

    }
  });

});

$(window).on("unload", function(e) {
    console.log("this will be triggered");
    var friendId = $.cookie("friendId", "null")
});

</script>
<?php
$thisRandNum
= rand(9999999999999,999999999999999999);
$userId = WISession::get("user_id");
$friendId = WISession::get("friendId");
//echo $friendId;
if($friendId !== "null"){
  include_once
'WIInc/friend_profile.php';
}else{
include_once
'WIInc/my_profile.php';
}