software INTEGRATION on website
$10-30 USD
ชำระเงินเมื่อจัดส่ง
Hi I have a custom built website php and flash I bought a ajax and php chat software I have installed and wish it to be intergrated with my website, it has instructions to do this for any cms
php
#############################################
#############################################
// INTEGRATION NOTES FOR CUSTOM DEVELOPERS
// You can insert your existing CMS user Global values into the
// login procedure. Simply replace the values $_FOO['username']
// and $_FOO['userid'] with your SESSION, COOKIE or MySQL results.
// Example Code:
// define('C_CUSTOM_LOGIN','1'); // 0 OFF, 1 ON
// define('C_CUSTOM_USERNAME',$_SESSION['username']); // username
// define('C_CUSTOM_USERID',$_SESSION['userid']); // userid
// if(!isset($_SESSION['userid']) || empty($_SESSION['userid']))
// {
// die("userid value is null");
// }
// You will be able to link directly to the chat room by adding
// an <a href> link to your web pages like shown below and only
// registered users will be able to auto-login to your chat room.
// <a href="[url removed, login to view]">Chat Room</a>
## CUSTOM INTEGRATION SETTINGS ##############
// Enable custom login details
define('C_CUSTOM_LOGIN','0'); // 0 OFF, 1 ON
// Enter your CMS Global values below
define('C_CUSTOM_USERNAME',$_FOO['username']); // username
define('C_CUSTOM_USERID',$_FOO['userid']); // userid
if(!isset($_FOO['userid']) || empty($_FOO['userid']))
{
die("userid value is null");
}
## DO NOT EDIT BELOW THIS LINE ##############
// if remote login via CMS
if($remotely_hosted){
// check username isset
if(!isset($_COOKIE["uname"])){
header("Location: [url removed, login to view]");
die;
}
// if userid is null, assign userid
if(!isset($_COOKIE["uid"])){
$uid='-1';
}else{
$uid=$_COOKIE["uid"];
}
}
// if custom login
if(C_CUSTOM_LOGIN){
// assign username
$uname = C_CUSTOM_USERNAME;
if(!C_CUSTOM_USERID){
// userid empty
$uid = '-1';
}else{
// assign userid
$uid = C_CUSTOM_USERID;
}
}
// if default login
if(!$remotely_hosted && !C_CUSTOM_LOGIN){
?>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
function getCookieVal (offset) {
var endstr = [url removed, login to view] (";", offset);
if (endstr == -1)
endstr = [url removed, login to view];
return unescape([url removed, login to view](offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = [url removed, login to view];
var clen = [url removed, login to view];
var i = 0;
while (i < clen) {
var j = i + alen;
if ([url removed, login to view](i, j) == arg)
return getCookieVal (j);
i = [url removed, login to view](" ", i) + 1;
if (i == 0) break;
}
return null;
}
if(GetCookie("login") == null){
window.location="[url removed, login to view]";
}
// -->
</SCRIPT>
<?php }?>
หมายเลขโปรเจค: #5209771
เกี่ยวกับโปรเจกต์
freelancer 4 คน กำลังเสนอราคาในงานนี้ โดยมีราคาเฉลี่ยอยู่ที่ $26
show me ur website url and tell me where i need to link this software and where to put thsi code etc. so i can review and tell u now asap.