Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.88 KB | None | 0 0
  1. green='\e[0;32m'
  2. NC='\e[0m' # No Color
  3. VER=$(exec uname -m|grep 64)
  4.         if [ "$VER" = "" ]
  5.                 then VER="x86"
  6.                 else VER="x64"
  7.         fi
  8. echo -e "${green}[+]Checking System Version...${NC}"
  9. sleep 1
  10. echo -e "${green}[+]Detected a $VER System...${NC}"
  11. sleep 1
  12. echo -e "${green}[+]Installing System Requirements... This May Take Some Time...${NC}"
  13. apt-get -qq update > /dev/null 2>&1
  14. apt-get upgrade -y
  15. apt-get -qq install aptitude -qy > /dev/null 2>&1
  16. apt-get -qq install apache2 -qy > /dev/null 2>&1
  17. echo -e "${green}[+]Installing PHP ...${NC}"
  18. apt-get -qq install php5 libapache2-mod-php5 php5-mysql php5-mcrypt -qy > /dev/null 2>&1
  19. apt-get -qq install unzip -qy > /dev/null 2>&1
  20. if [ $(php -v | grep -v grep | grep -c '5\.3\.') -eq 1 ]
  21. then PHPV="53"
  22. elif [ $(php -v | grep -v grep | grep -c '5\.4\.') -eq 1 ]
  23. then PHPV="54"
  24. elif [ $(php -v | grep -v grep | grep -c '5\.5\.') -eq 1 ]
  25. then PHPV="55"
  26. fi
  27. if [ "$PHPV" == "53" ] && [ "$VER" == "x86" ]
  28. then url="http://www.xtream-codes.com/downloads/extension/x86_PHP5.3.zip"
  29. elif [ "$PHPV" == "53" ] && [ "$VER" == "x64" ]
  30. then url="http://www.xtream-codes.com/downloads/extension/x64_PHP5.3.zip"
  31. elif [ "$PHPV" == "54" ] && [ "$VER" == "x86" ]
  32. then url="http://www.xtream-codes.com/downloads/extension/x86_PHP5.4.zip"
  33. elif [ "$PHPV" == "54" ] && [ "$VER" == "x64" ]
  34. then url="http://www.xtream-codes.com/downloads/extension/x64_PHP5.4.zip"
  35. elif [ "$PHPV" == "55" ] && [ "$VER" == "x86" ]
  36. then url="http://www.xtream-codes.com/downloads/extension/x86_PHP5.5.zip"
  37. elif [ "$PHPV" == "55" ] && [ "$VER" == "x64" ]
  38. then url="http://www.xtream-codes.com/downloads/extension/x64_PHP5.5.zip"
  39. fi
  40. cd /etc/
  41. wget -O /etc/xtream_codes.zip "$url" && unzip xtream_codes.zip && rm xtream_codes.zip
  42. if ! cat /etc/php5/apache2/php.ini | grep -v grep | grep -c 10000000000 > /dev/null
  43. then
  44. echo extension=mcrypt.so >> /etc/php5/apache2/php.ini
  45. fi
  46. if ! cat /etc/php5/apache2/php.ini | grep -v grep | grep -c 10000000000 > /dev/null
  47. then
  48. echo pcre.backtrack_limit=10000000000 >> /etc/php5/apache2/php.ini
  49. fi
  50. if ! cat /etc/php5/apache2/php.ini | grep -v grep | grep -c xtream_codes.so > /dev/null
  51. then
  52. echo extension=/etc/xtream_codes.so >> /etc/php5/apache2/php.ini
  53. fi
  54. sleep 1
  55. if ! cat /etc/php5/cli/php.ini | grep -v grep | grep -c mcrypt.so > /dev/null
  56. then
  57. echo extension=mcrypt.so >> /etc/php5/cli/php.ini
  58. fi
  59. if ! cat /etc/php5/cli/php.ini | grep -v grep | grep -c 10000000000 > /dev/null
  60. then
  61. echo pcre.backtrack_limit=100000000 >> /etc/php5/cli/php.ini
  62. fi
  63. if ! cat /etc/php5/cli/php.ini | grep -v grep | grep -c xtream_codes.so > /dev/null
  64. then
  65. echo -e "${red}[%]Extension Not Found in php.ini, installing..${NC}"
  66. echo extension=/etc/xtream_codes.so >> /etc/php5/cli/php.ini
  67. fi
  68. service apache2 restart > /dev/null 2>&1
  69. sleep 1
  70. cd /root
  71. wget http://xtream-codes.com/iptv_install.txt -O install.php
  72. php install.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement