Advertisement
Guest User

Donation

a guest
Mar 2nd, 2015
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.28 KB | None | 0 0
  1. <?php
  2.  
  3. //Database
  4. define("DB_HOST", "http://osirisgaming.site.nfoservers.com/");
  5. define("DB_USERNAME", "osirisgamin");
  6. define("DB_PASSWORD", "khb3Lwv4GG");
  7. define("DB_DATABASE", "osirisgamin_donations");
  8.  
  9. //Paypal
  10. define("PAYPAL_CURRENCY", "USD");
  11. define("PAYPAL_SANDBOX", false);
  12. define("PAYPAL_ID", "jamal123alkurdi@gmail.com");
  13. define("PAYPAL_ID_SANDBOX", "jamal123alkurdi@gmail.com" ); // https://developer.paypal.com/webapps/developer/applications/accounts
  14.  
  15. //Steam API
  16. define("STEAM_API", "3EBD6696D76845EC7827501189164168"); // http://steamcommunity.com/dev/apikey
  17.  
  18. //Donation System URL
  19. define("DONATE_URL", "http://osirisgaming.site.nfoservers.com/donate/");
  20.  
  21.  
  22. //Games
  23. $GAMES = array(
  24. "gmod" => array(
  25. 'name' => "Garry's mod",
  26. 'icon' => "icons/gmod.png",
  27. 'display' => true,
  28. 'servers' => array("ttt")
  29. )
  30. );
  31.  
  32. //Servers
  33. $SERVERS = array(
  34. "darkrp" => array(
  35. 'name' => "Example DarkRP",
  36. 'icon' => "icons/gmod.png",
  37. 'orderfile' => "order.php",
  38. 'packages' => array(1,2,3)
  39. ),
  40. "ttt" => array(
  41. 'name' => "OsirisGaming 24/7Minecraft",
  42. 'icon' => "icons/gmod.png",
  43. 'orderfile' => "order.php",
  44. 'packages' => array(4,5,6,7)
  45. )
  46. );
  47.  
  48. //Packages
  49. $PACKAGES = array(
  50. 1 => array(
  51. 'title' => "VIP",
  52. 'buytitle' => "DarkRP - VIP",
  53. 'description' => "
  54. <b>Price: <b style=\"color:green;\">$10</b></b>
  55. </br>
  56. <b>Features:</b><br/>
  57. <b>1.</b> VIP rank<br/>
  58. <b>2.</b> 40,000 ingame Cash<br/>
  59. <br/>
  60. <b style=\"color:green;\">This rank is valid for 30 days.</b>",
  61. 'price' => 10,
  62. 'execute' => array(
  63. "darkrp" => array(
  64. 'online' => array(
  65. 0 => array(
  66. array("darkrp_money",40000),
  67. array("broadcast", array(255,0,0) ,"%name% has donated for VIP!" )
  68. )
  69. ),
  70. 'offline' => array(
  71. 0 => array(
  72. array("cancel", true, "darkrp"),
  73. array("sv_cmd","ulx", "adduserid", "%steamid%", "vip-donator")
  74. )
  75. )
  76. )
  77. ),
  78. 'checkout' => "source.php"
  79. ),
  80. 2 => array(
  81. 'title' => "Admin",
  82. 'buytitle' => "DarkRP - Admin",
  83. 'description' => "
  84. <b>Price: <b style=\"color:green;\">$25</b></b>
  85. </br>
  86. <b>Features:</b><br/>
  87. <b>1.</b> Admin rank<br/>
  88. <b>2.</b> 100,000 ingame cash<br/>
  89. <br/>
  90. <b style=\"color:red;\">This rank is valid for 30 days and if abused it will be taken away.</b>",
  91. 'price' => 25,
  92. 'execute' => array(
  93. "darkrp" => array(
  94. 'online' => array(
  95. 0 => array(
  96. array("darkrp_money",100000),
  97. array("broadcast", array(255,0,0) ,"%name% has donated for Admin!" )
  98. )
  99. ),
  100. 'offline' => array(
  101. 0 => array(
  102. array("cancel", true, "darkrp"),
  103. array("sv_cmd","ulx", "adduserid", "%steamid%", "admin-donator")
  104. ),
  105. 0 => array(
  106. array("sv_cmd","ulx", "removeuserid", "%steamid%")
  107. )
  108. )
  109. )
  110. ),
  111. 'checkout' => "source.php"
  112. ),
  113. 3 => array(
  114. 'title' => "Mod",
  115. 'buytitle' => "DarkRP - Mod",
  116. 'description' => "
  117. <b>Price: <b style=\"color:green;\">$15</b></b>
  118. </br>
  119. <b>Features:</b><br/>
  120. <b>1.</b> Mod rank<br/>
  121. <b>2.</b> 65,000 ingame cash<br/>
  122. <br/>
  123. <b style=\"color:red;\">This rank is valid for 30 days and if abused it will be taken away.</b>",
  124. 'price' => 15,
  125. 'execute' => array(
  126. "darkrp" => array(
  127. 'online' => array(
  128. 0 => array(
  129. array("darkrp_money",65000),
  130. array("broadcast", array(255,0,0) ,"%name% has donated for Mod!" )
  131. )
  132. ),
  133. 'offline' => array(
  134. 0 => array(
  135. array("cancel", true, "darkrp"),
  136. array("sv_cmd","ulx", "adduserid", "%steamid%", "mod-donator")
  137. ),
  138. 0 => array(
  139. array("sv_cmd","ulx", "removeuserid", "%steamid%")
  140. )
  141. )
  142. )
  143. ),
  144. 'checkout' => "source.php"
  145. ),
  146. 4 => array(
  147. 'title' => "Vip",
  148. 'buytitle' => "TTT - VIP",
  149. 'description' => "
  150. <b>Price: <b style=\"color:green;\">$5</b></b>
  151. </br>
  152. <b>Features:</b><br/>
  153. <b>1.</b> VIP rank<br/>
  154. <b>3.</b>5000 pointshop points<br/>
  155. <b>4.</b>Make your own load out<br/>
  156. <b>Playermodels:</b><br/>
  157. <b>1.</b> Nightwing<br/>
  158. <b>Commands:</b><br/>
  159. </b> Gag and Ungag<br/>
  160. </b> Mute and unmute<br/>
  161. </b> Ban,BanID,Unban<br/>
  162. </b> See admin chat<br/>
  163. </b> Slaynr and rslaynr<br/>
  164. </b> Kick<br/>
  165. <b>Contact:</b><br/>
  166. </b> Once you donate send an email here osirisdonationsttt@gmail.com<br/>
  167. <br/>
  168. <b style=\"color:red;\">This rank is permanent but if abused it will be taken away.</b>",
  169. 'price' => 5,
  170. 'execute' => array(
  171. "ttt" => array(
  172. 'online' => array(
  173. 0 => array(
  174. array("pointshop_points",5000),
  175. array("broadcast", array(255,0,0) ,"%name% has donated for vip!" )
  176. )
  177. ),
  178. 'offline' => array(
  179. 0 => array(
  180. array("cancel", true, "ttt"),
  181. array("sv_cmd","ulx", "adduserid", "%steamid%", "vip-donator")
  182. ),
  183. 86400*730 => array(
  184. array("sv_cmd","ulx", "removeuserid", "%steamid%")
  185. )
  186. )
  187. )
  188. ),
  189. 'checkout' => "source.php"
  190. ),
  191. 5 => array(
  192. 'title' => "Vip+",
  193. 'buytitle' => "TTT - Vip+",
  194. 'description' => "
  195. <b>Price: <b style=\"color:green;\">$10</b></b>
  196. </br>
  197. <b>Features:</b><br/>
  198. <b>1.</b> Vip+ rank<br/>
  199. <b>3.</b>10000 pointshop points<br/>
  200. <b>4.</b>Make your own load out<br/>
  201. <b>Playermodels:</b><br/>
  202. <b>1.</b> Nightwing<br/>
  203. <b>2.</b> Deadpool<br/>
  204. <b>Commands:</b><br/>
  205. </b> Gag and Ungag<br/>
  206. </b> Mute and unmute<br/>
  207. </b> Ban,BanID,Unban<br/>
  208. </b> See admin chat<br/>
  209. </b> Slaynr and rslaynr<br/>
  210. </b> Kick<br/>
  211. </b> Tsay<br/>
  212. </b> Whip and slap<br/>
  213. </b> RdmManager<br/>
  214. </b> Forcespectate and unspectate<br/>
  215. </b> All teleport commands<br/>
  216. <b>Contact:</b><br/>
  217. </b> Once you donate send an email here osirisdonationsttt@gmail.com<br/>
  218. <br/>
  219. <b style=\"color:red;\">This rank is permanent but if abused it will be taken away.</b>",
  220. 'price' => 10,
  221. 'execute' => array(
  222. "ttt" => array(
  223. 'online' => array(
  224. 0 => array(
  225. array("pointshop_points",10000),
  226. array("broadcast", array(255,0,0) ,"%name% has donated for vipplus!" )
  227. )
  228. ),
  229. 'offline' => array(
  230. 0 => array(
  231. array("cancel", true, "ttt"),
  232. array("sv_cmd","ulx", "adduserid", "%steamid%", "vipplus-donator")
  233. ),
  234. 86400*730 => array(
  235. array("sv_cmd","ulx", "removeuserid", "%steamid%")
  236. )
  237. )
  238. )
  239. ),
  240. 'checkout' => "source.php"
  241. ),
  242. 6 => array(
  243. 'title' => "Mvp",
  244. 'buytitle' => "TTT - Mvp",
  245. 'description' => "
  246. <b>Price: <b style=\"color:green;\">$15</b></b>
  247. </br>
  248. <b>Features:</b><br/>
  249. <b>1.</b> Mvp rank<br/>
  250. <b>3.</b>15000 pointshop points<br/>
  251. <b>4.</b>Make your own load out<br/>
  252. <b>Playermodels:</b><br/>
  253. <b>1.</b> Nightwing<br/>
  254. <b>2.</b> Deadpool<br/>
  255. <b>3.</b> CyborgSuperman<br/>
  256. <b>Commands:</b><br/>
  257. </b> Gag and Ungag<br/>
  258. </b> Mute and unmute<br/>
  259. </b> Ban,BanID,Unban<br/>
  260. </b> See admin chat<br/>
  261. </b> Slaynr and rslaynr<br/>
  262. </b> Kick<br/>
  263. </b> Tsay and Csay<br/>
  264. </b> Whip and slap<br/>
  265. </b> RdmManager<br/>
  266. </b> Forcespectate and unspectate<br/>
  267. </b> All teleport commands<br/>
  268. </b> Set warp and warp<br/>
  269. </b> Url command<br/>
  270. </b> Csay color<br/>
  271. </b> Shock<br/>
  272. <b>Contact:</b><br/>
  273. </b> Once you donate send an email here osirisdonationsttt@gmail.com<br/>
  274. <br/>
  275. <b style=\"color:red;\">This rank is permanent but if abused it will be taken away.</b>",
  276. 'price' => 15,
  277. 'execute' => array(
  278. "ttt" => array(
  279. 'online' => array(
  280. 0 => array(
  281. array("pointshop_points",15000),
  282. array("broadcast", array(255,0,0) ,"%name% has donated for mvp" )
  283. )
  284. ),
  285. 'offline' => array(
  286. 0 => array(
  287. array("cancel", true, "ttt"),
  288. array("sv_cmd","ulx", "adduserid", "%steamid%", "mvp-donator")
  289. ),
  290. 86400*730 => array(
  291. array("sv_cmd","ulx", "removeuserid", "%steamid%")
  292. )
  293. )
  294. )
  295. ),
  296. 'checkout' => "source.php"
  297. ),
  298. 7 => array(
  299. 'title' => "Mvp+",
  300. 'buytitle' => "TTT - Mvp+",
  301. 'description' => "
  302. <b>Price: <b style=\"color:green;\">$20</b></b>
  303. </br>
  304. <b>Features:</b><br/>
  305. <b>1.</b> Mvp+ rank<br/>
  306. <b>2.</b> Admin commands<br/>
  307. <b>3.</b> Force power rounds<br/>
  308. <b>3.</b>20000 pointshop points<br/>
  309. <b>4.</b>Make your own load out<br/>
  310. <b>Playermodels:</b><br/>
  311. <b>1.</b> Nightwing<br/>
  312. <b>2.</b> Deadpool<br/>
  313. <b>3.</b> CyborgSuoerman<br/>
  314. <b>4.</b> Tron<br/>
  315. <b>5.</b> Thresh<br/>
  316. </b> All future Playermodels!<br/>
  317. <b>Commands:</b><br/>
  318. </b> Gag and Ungag<br/>
  319. </b> Mute and unmute<br/>
  320. </b> Ban,BanID,Unban<br/>
  321. </b> See admin chat<br/>
  322. </b> Slaynr and rslaynr<br/>
  323. </b> Kick<br/>
  324. </b> Tsay and Csay<br/>
  325. </b> Whip and slap<br/>
  326. </b> RdmManager<br/>
  327. </b> Forcespectate and unspectate<br/>
  328. </b> All teleport commands<br/>
  329. </b> Set warp and warp<br/>
  330. </b> Url command<br/>
  331. </b> Csay color and Tsay color<br/>
  332. </b> Shock<br/>
  333. </b> Dban<br/>
  334. </b> Launch<br/>
  335. </b> Maul<br/>
  336. <b>Contact:</b><br/>
  337. </b> Once you donate send an email here osirisdonationsttt@gmail.com<br/>
  338. <br/>
  339. <b style=\"color:red;\">This rank is permanent but if abused it will be taken away.</b>",
  340. 'price' => 20,
  341. 'execute' => array(
  342. "ttt" => array(
  343. 'online' => array(
  344. 0 => array(
  345. array("pointshop_points",20000),
  346. array("broadcast", array(255,0,0) ,"%name% has donated for mvpplus!" )
  347. )
  348. ),
  349. 'offline' => array(
  350. 0 => array(
  351. array("cancel", true, "ttt"),
  352. array("sv_cmd","ulx", "adduserid", "%steamid%", "mvpplus-donator")
  353. ),
  354. 86400*730 => array(
  355. array("sv_cmd","ulx", "removeuserid", "%steamid%")
  356. )
  357. )
  358. )
  359. ),
  360. 'checkout' => "source.php"
  361. )
  362. );
  363.  
  364. // Advanced
  365. function price($pid, $playerid){
  366. global $PACKAGES;
  367. return $PACKAGES[$pid]['price']; // What price should user pay
  368. }
  369. function ipnPriceValidation($pid, $playerid, $price){
  370. global $PACKAGES;
  371. return $PACKAGES[$pid]["price"] == $price; // Check if price valid after payment was done.
  372. }
  373.  
  374. // !!!!! IGNORE !!!!!
  375. if(PAYPAL_SANDBOX){
  376. define("PAYPAL_URL", "https://www.sandbox.paypal.com/cgi-bin/webscr" );
  377. }else{
  378. define("PAYPAL_URL", "https://www.paypal.com/cgi-bin/webscr" );
  379. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement