This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| defined('BASEPATH') OR exit('No direct script access allowed'); | |
| /** | |
| * Retrieves supported user's language or use default one | |
| * Usage: | |
| * get_language( | |
| * 'en', | |
| * array( | |
| * 'ru' => array( 'ru', 'be', 'uk' ), | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| cat /dev/null > whois-results.txt | |
| for domain in `cat domains.txt` | |
| do | |
| echo "checking : $domain" | |
| echo -n "$domain -- " >> whois-results.txt | |
| PAID_TILL=`whois $domain | grep 'paid-till'` | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Commands should be run from SSH | |
| # Link: http://svn.dd-wrt.com/ticket/1480 | |
| nvram set connblue=1 | |
| nvram commit | |
| reboot | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # This script used to backup files and db to the Yandex.Disk. | |
| # Also it encrypts every file with gpg utility. | |
| TIME=`date +%s` | |
| SERVER_NAME="<server_name>" | |
| MYSQL_HOST="<host>" | |
| MYSQL_USER="<user>" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| # Put this script into crontab to be done automatically: | |
| # */10 * * * * root /tmp/custom.sh | |
| RELEASE="kill -USR2 `cat /var/run/udhcpc.pid` 2> /dev/null" | |
| RENEW="kill -USR1 `cat /var/run/udhcpc.pid` 2> /dev/null" | |
| WAN_GATEWAY=`nvram get wan_gateway` | |
| if [ "$WAN_GATEWAY" != "0.0.0.0" ]; then | |
| COUNTER=0 | |
| until ping -c 1 $WAN_GATEWAY > /dev/null; do | |
| if [ $COUNTER -eq 3 ]; then | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| AMBER="gpio enable 12; gpio disable 14" | |
| GREEN="gpio enable 14; gpio disable 12" | |
| while sleep 1; do | |
| WAN_IPADDR=`nvram get wan_ipaddr` | |
| if [ "$WAN_IPADDR" != "0.0.0.0" ]; then | |
| LED=$GREEN | |
| else | |
| LED=$AMBER | |
| fi | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | phpBB 3.0.14 Quick Reply with possibility to quote. | |
| This allows to quote selected part of the message or whole message. | |
| by @killradio | |
| diff --git a/styles/prosilver/template/quickreply_editor.html b/styles/prosilver/template/quickreply_editor.html | |
| index ea07c2e..7be7489 100644 | |
| --- a/styles/prosilver/template/quickreply_editor.html | |
| +++ b/styles/prosilver/template/quickreply_editor.html | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp | |
| index e389af1..07cea4f 100644 | |
| --- a/src/server/game/Entities/Object/Object.cpp | |
| +++ b/src/server/game/Entities/Object/Object.cpp | |
| @@ -1119,9 +1119,11 @@ float WorldObject::GetDistanceZ(const WorldObject* obj) const | |
| return (dist > 0 ? dist : 0); | |
| } | |
| -bool WorldObject::_IsWithinDist(WorldObject const* obj, float dist2compare, bool is3D) const | |
| +bool WorldObject::_IsWithinDist(WorldObject const* obj, float dist2compare, bool is3D, bool incOwnRadius, bool incTargetRadius) const |