aftabgardon
Member
بلوك off يا online بودن مدير رو از كجا ميتونم پيدا كنم ؟
واسه چي كانفيگ؟؟؟؟aftabgardon گفت:آقا وقتي كه شناسه ايدي رو تو config.php ميدم
پيغام خطا ميده
Parse error: parse error, unexpected T_VARIABLE in /home/spatogh/public_html/config.php on line 56
بايد چكار كنم ؟
<?php
######################################################################################
# YIM Indicator Block For PHPNuke 7.4 Version 2.0 #
# Copyright 2003-2004 iranportals.com. [email][email protected][/email] #
# Last Updated 23/04/2004 http://www.iranportals.com/ #
##############################################################################################
# #
# Copyright 2004 iranportals.com. All Rights Reserved. #
# #
# This program may be modified as long as the copyright information remains intact. #
# #
# Any use of this program is entirely at the risk of the user. No liability will be #
# accepted by iranportals.com or the author. #
# #
# This code must not be sold or distributed, even in modified form, without the #
# written permission of iranportals.com. Use on commercial websites is permitted. #
###################################################################################
# Note:add a line like this to your config.php file : $yahooid = "your_yahoo_id";#
#################################################################################
if (eregi("block-yahoo.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
global $yahooid;
$url = "http://mail.opi.yahoo.com/online?u=".$yahooid."&m=t&t=0";
$handle = fopen ("$url", "r");
$contents = "";
do {
$data = fread($handle, 10000);
if (strlen($data) == 0) {
break;
}
$contents .= $data;
} while(true);
fclose ($handle);
if ((strpos(strtoupper($contents),"NOT ONLINE") ? strpos(strtoupper($contents),"NOT ONLINE")+1 : 0)>0)
{
$strStatus = ""._YAHOOOFF."";
$imgStatus = "<br><a href=\"ymsgr:sendIM?$yahooid\"><img src=\"images/offline.gif\" ALT=\""._YAHOOOFF."\" border=\"0\"></a>";
}
else
{
$strStatus = ""._YAHOOON."";
$imgStatus = "<br><a href=\"ymsgr:sendIM?$yahooid\"><img src=\"images/online.gif\" ALT=\""._YAHOOON."\" border=\"0\"></a>";
}
$content = "<center>"._YAHOOSTATUS."&nbsp;"._YAHOOMANAGER."&nbsp;".$yahooid."&nbsp;"._YAHOOIS."&nbsp;".$strStatus."&nbsp;"._YAHOOOK."&nbsp;".$imgStatus."</center>";
?>
$url = "http://mail.opi.yahoo.com/online?u=".$yahooid."&m=t&t=0";