software INTEGRATION on website

ปิด โพสต์แล้ว Dec 8, 2013 ชำระเงินเมื่อจัดส่ง
ปิด ชำระเงินเมื่อจัดส่ง

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 }?>

AJAX CSS MySQL Odd Jobs PHP

หมายเลขโปรเจค: #5209771

เกี่ยวกับโปรเจกต์

4 ข้อเสนอ โปรเจกต์ระยะไกล ใช้งาน %project.latestActivity_relativeTime|แทนที่%

freelancer 4 คน กำลังเสนอราคาในงานนี้ โดยมีราคาเฉลี่ยอยู่ที่ $26

coolguyinus2004

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.

$29 USD ใน 1 วัน
(313 รีวิว)
7.5
LogicWebs

A proposal has not yet been provided

$20 USD ใน 3 วัน
(0 รีวิว)
0.0
kindai

A proposal has not yet been provided

$25 USD ใน 2 วัน
(0 รีวิว)
0.0
mbrn01

I have examined the code. If you have a website where users register and need to login to access chat, then tell me to use custom login integration as required by the sample code you sent. The task you require is easy เพิ่มเติม

$30 USD ใน 2 วัน
(0 รีวิว)
0.0