Ashen
-
Posts
34 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Posts posted by Ashen
-
-
Yes the code is correct.
Set the timeout value to 1.
<?phpif(($fp = @fsockopen("127.0.0.1","8085", $enumber, $evalue, 1)) !== FALSE){
echo "Online";
fclose($fp);
}else{
echo "Offline";
}
?>
-
tnx , btw did any one know some web account manager? where the ppl can log in and change his expan,password, etc i found one project hungarian but its for TC http://wam.nwhost.hu/?p=55
Like this :: http://www.wowsoc.org/hd/img_road_map/ams_armory.jpg
It's very simple to make...
-
Post your error...
-
I tried the patch and it works without problem on MaNGOS Rev. 10279
Try to apply it without Tortoise-Git
-
------------------------------------------------------------
- Character Sheet -- (Stats Value)
------------------------------------------------------------
I see that some characters have values such as:
- "Power: 5790.40010528"
- "Dodge: 7.30001264 %"
- "Resilience: 1073.14000173"
------------------------------------------------------------
- Replace -- (character-sheet.php)
------------------------------------------------------------
Ceil() or Round( ... , 2) function.
[ Line 248 ]
- $xml->XMLWriter()->writeAttribute($sb_elem_name, $sb_elem_value);
+ $xml->XMLWriter()->writeAttribute($sb_elem_name, ceil($sb_elem_value));
[ Line 261 ]
- $xml->XMLWriter()->writeAttribute($stat_name, $stat_value);
+ $xml->XMLWriter()->writeAttribute($stat_name, ceil($stat_value));
[ Line 285, 299, 346, 360 ]
- $xml->XMLWriter()->writeAttribute($stat_name, $stat_value);
+ $xml->XMLWriter()->writeAttribute($stat_name, ceil($stat_value));
[ Line 317 ]
- $xml->XMLWriter()->writeAttribute('rating', $stat_value_tw);
+ $xml->XMLWriter()->writeAttribute('rating', ceil($stat_value_tw));
[ Line 324 ]
- $xml->XMLWriter()->writeAttribute($stat_name_tw, $stat_value_tw);
+ $xml->XMLWriter()->writeAttribute($stat_name_tw, ceil($stat_value_tw));
[ Line 333 ]
- $xml->XMLWriter()->writeAttribute(($stat_tw == 'bonusDamage') ? 'value' : 'percent', $stat_value_tw);
+ $xml->XMLWriter()->writeAttribute(($stat_tw == 'bonusDamage') ? 'value' : 'percent', ceil($stat_value_tw));
-
------------------------------------------------------------
- Tabard Viewer -- (Guild Roster)
------------------------------------------------------------
Replace in "_layout/guild/header.xsl":
<xsl:with-param name="flashvars" select="concat('emblemstyle=', guildHeader/emblem/@emblemIconStyle, '&emblemcolor=', guildHeader/emblem/@emblemIconColor, '&embborderstyle=', guildHeader/emblem/@emblemBorderStyle, '&embbordercolor=', guildHeader/emblem/@emblemBorderColor, '&bgcolor=',guildHeader/emblem/@emblemBackground, '&faction=', guildHeader/@faction, '&imgdir=images/tabard_images/')"/>with:
<xsl:with-param name="flashvars" select="concat('emblemstyle=', guildHeader/emblem/@emblemIconStyle, '&emblemcolor=', guildHeader/emblem/@emblemIconColor, '&embborderstyle=', guildHeader/emblem/@emblemBorderStyle, '&embbordercolor=', guildHeader/emblem/@emblemBorderColor, '&bgcolor=',guildHeader/emblem/@emblemBackground, '&faction=', guildHeader/@faction)"/>------------------------------------------------------------
- Download file -- (emblem_images.zip)
------------------------------------------------------------
Download and replace in "images" folder ----> Tabard_Emblem_335
PS: Shadez can you upload this file on git? Thank you.
-
For more compatibility with emulators/databases replace in "public function createShaHash()" (class.utils.php)
- return $this->shaHash;+ return strtoupper($this->shaHash);
}
and in "public function authUser()"
- elseif($info['sha_pass_hash'] != $this->createShaHash()) {+ elseif(strtoupper($info['sha_pass_hash']) != $this->createShaHash()) {
-------------------
"calendar": possible css bug.
If it will happen modify "calendar/css/master.css" and replace default value (background:url('/../../) with: background:url('../../
-
Known bugs:
- Armory is not working with Internet Explorer
Error in 'View XSL Transform': Error while parsing "...". Only one top level element is allowed in an XML document.HTTP_ACCEPT_LANGUAGE in class.connector.php is deprecated and case 7 errors.
Remove it and replace with "en", "ru" or other.
Also
$user_locale = strtolower(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2));
if($user_locale && $http_locale = self::IsAllowedLocale($user_locale)) {
$this->_locale = (isset($_SESSION['armoryLocale'])) ? $_SESSION['armoryLocale'] : $http_locale;
}
else {
$this->_locale = (isset($_SESSION['armoryLocale'])) ? $_SESSION['armoryLocale'] : $this->armoryconfig['defaultLocale'];
}
This code results useless because of code in next line
$this->_locale = (isset($_SESSION['armoryLocale'])) ? $_SESSION['armoryLocale'] : $this->armoryconfig['defaultLocale'];
|PHP| Interesting Scripts for your Website
in Old3rd party projects
Posted
The character "@" is used for mask errors on function.
The range of values accepted is 0/65535.
Set value to 65536 will raise an exception on function fsockopen and result of condition will be true => online