Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Database
- define("DB_HOST", "http://osirisgaming.site.nfoservers.com/");
- define("DB_USERNAME", "osirisgamin");
- define("DB_PASSWORD", "khb3Lwv4GG");
- define("DB_DATABASE", "osirisgamin_donations");
- //Paypal
- define("PAYPAL_CURRENCY", "USD");
- define("PAYPAL_SANDBOX", false);
- define("PAYPAL_ID", "jamal123alkurdi@gmail.com");
- define("PAYPAL_ID_SANDBOX", "jamal123alkurdi@gmail.com" ); // https://developer.paypal.com/webapps/developer/applications/accounts
- //Steam API
- define("STEAM_API", "3EBD6696D76845EC7827501189164168"); // http://steamcommunity.com/dev/apikey
- //Donation System URL
- define("DONATE_URL", "http://osirisgaming.site.nfoservers.com/donate/");
- //Games
- $GAMES = array(
- "gmod" => array(
- 'name' => "Garry's mod",
- 'icon' => "icons/gmod.png",
- 'display' => true,
- 'servers' => array("ttt")
- )
- );
- //Servers
- $SERVERS = array(
- "darkrp" => array(
- 'name' => "Example DarkRP",
- 'icon' => "icons/gmod.png",
- 'orderfile' => "order.php",
- 'packages' => array(1,2,3)
- ),
- "ttt" => array(
- 'name' => "OsirisGaming 24/7Minecraft",
- 'icon' => "icons/gmod.png",
- 'orderfile' => "order.php",
- 'packages' => array(4,5,6,7)
- )
- );
- //Packages
- $PACKAGES = array(
- 1 => array(
- 'title' => "VIP",
- 'buytitle' => "DarkRP - VIP",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$10</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> VIP rank<br/>
- <b>2.</b> 40,000 ingame Cash<br/>
- <br/>
- <b style=\"color:green;\">This rank is valid for 30 days.</b>",
- 'price' => 10,
- 'execute' => array(
- "darkrp" => array(
- 'online' => array(
- 0 => array(
- array("darkrp_money",40000),
- array("broadcast", array(255,0,0) ,"%name% has donated for VIP!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "darkrp"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "vip-donator")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 2 => array(
- 'title' => "Admin",
- 'buytitle' => "DarkRP - Admin",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$25</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Admin rank<br/>
- <b>2.</b> 100,000 ingame cash<br/>
- <br/>
- <b style=\"color:red;\">This rank is valid for 30 days and if abused it will be taken away.</b>",
- 'price' => 25,
- 'execute' => array(
- "darkrp" => array(
- 'online' => array(
- 0 => array(
- array("darkrp_money",100000),
- array("broadcast", array(255,0,0) ,"%name% has donated for Admin!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "darkrp"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "admin-donator")
- ),
- 0 => array(
- array("sv_cmd","ulx", "removeuserid", "%steamid%")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 3 => array(
- 'title' => "Mod",
- 'buytitle' => "DarkRP - Mod",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$15</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Mod rank<br/>
- <b>2.</b> 65,000 ingame cash<br/>
- <br/>
- <b style=\"color:red;\">This rank is valid for 30 days and if abused it will be taken away.</b>",
- 'price' => 15,
- 'execute' => array(
- "darkrp" => array(
- 'online' => array(
- 0 => array(
- array("darkrp_money",65000),
- array("broadcast", array(255,0,0) ,"%name% has donated for Mod!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "darkrp"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "mod-donator")
- ),
- 0 => array(
- array("sv_cmd","ulx", "removeuserid", "%steamid%")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 4 => array(
- 'title' => "Vip",
- 'buytitle' => "TTT - VIP",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$5</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> VIP rank<br/>
- <b>3.</b>5000 pointshop points<br/>
- <b>4.</b>Make your own load out<br/>
- <b>Playermodels:</b><br/>
- <b>1.</b> Nightwing<br/>
- <b>Commands:</b><br/>
- </b> Gag and Ungag<br/>
- </b> Mute and unmute<br/>
- </b> Ban,BanID,Unban<br/>
- </b> See admin chat<br/>
- </b> Slaynr and rslaynr<br/>
- </b> Kick<br/>
- <b>Contact:</b><br/>
- </b> Once you donate send an email here osirisdonationsttt@gmail.com<br/>
- <br/>
- <b style=\"color:red;\">This rank is permanent but if abused it will be taken away.</b>",
- 'price' => 5,
- 'execute' => array(
- "ttt" => array(
- 'online' => array(
- 0 => array(
- array("pointshop_points",5000),
- array("broadcast", array(255,0,0) ,"%name% has donated for vip!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "ttt"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "vip-donator")
- ),
- 86400*730 => array(
- array("sv_cmd","ulx", "removeuserid", "%steamid%")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 5 => array(
- 'title' => "Vip+",
- 'buytitle' => "TTT - Vip+",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$10</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Vip+ rank<br/>
- <b>3.</b>10000 pointshop points<br/>
- <b>4.</b>Make your own load out<br/>
- <b>Playermodels:</b><br/>
- <b>1.</b> Nightwing<br/>
- <b>2.</b> Deadpool<br/>
- <b>Commands:</b><br/>
- </b> Gag and Ungag<br/>
- </b> Mute and unmute<br/>
- </b> Ban,BanID,Unban<br/>
- </b> See admin chat<br/>
- </b> Slaynr and rslaynr<br/>
- </b> Kick<br/>
- </b> Tsay<br/>
- </b> Whip and slap<br/>
- </b> RdmManager<br/>
- </b> Forcespectate and unspectate<br/>
- </b> All teleport commands<br/>
- <b>Contact:</b><br/>
- </b> Once you donate send an email here osirisdonationsttt@gmail.com<br/>
- <br/>
- <b style=\"color:red;\">This rank is permanent but if abused it will be taken away.</b>",
- 'price' => 10,
- 'execute' => array(
- "ttt" => array(
- 'online' => array(
- 0 => array(
- array("pointshop_points",10000),
- array("broadcast", array(255,0,0) ,"%name% has donated for vipplus!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "ttt"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "vipplus-donator")
- ),
- 86400*730 => array(
- array("sv_cmd","ulx", "removeuserid", "%steamid%")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 6 => array(
- 'title' => "Mvp",
- 'buytitle' => "TTT - Mvp",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$15</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Mvp rank<br/>
- <b>3.</b>15000 pointshop points<br/>
- <b>4.</b>Make your own load out<br/>
- <b>Playermodels:</b><br/>
- <b>1.</b> Nightwing<br/>
- <b>2.</b> Deadpool<br/>
- <b>3.</b> CyborgSuperman<br/>
- <b>Commands:</b><br/>
- </b> Gag and Ungag<br/>
- </b> Mute and unmute<br/>
- </b> Ban,BanID,Unban<br/>
- </b> See admin chat<br/>
- </b> Slaynr and rslaynr<br/>
- </b> Kick<br/>
- </b> Tsay and Csay<br/>
- </b> Whip and slap<br/>
- </b> RdmManager<br/>
- </b> Forcespectate and unspectate<br/>
- </b> All teleport commands<br/>
- </b> Set warp and warp<br/>
- </b> Url command<br/>
- </b> Csay color<br/>
- </b> Shock<br/>
- <b>Contact:</b><br/>
- </b> Once you donate send an email here osirisdonationsttt@gmail.com<br/>
- <br/>
- <b style=\"color:red;\">This rank is permanent but if abused it will be taken away.</b>",
- 'price' => 15,
- 'execute' => array(
- "ttt" => array(
- 'online' => array(
- 0 => array(
- array("pointshop_points",15000),
- array("broadcast", array(255,0,0) ,"%name% has donated for mvp" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "ttt"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "mvp-donator")
- ),
- 86400*730 => array(
- array("sv_cmd","ulx", "removeuserid", "%steamid%")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 7 => array(
- 'title' => "Mvp+",
- 'buytitle' => "TTT - Mvp+",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$20</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Mvp+ rank<br/>
- <b>2.</b> Admin commands<br/>
- <b>3.</b> Force power rounds<br/>
- <b>3.</b>20000 pointshop points<br/>
- <b>4.</b>Make your own load out<br/>
- <b>Playermodels:</b><br/>
- <b>1.</b> Nightwing<br/>
- <b>2.</b> Deadpool<br/>
- <b>3.</b> CyborgSuoerman<br/>
- <b>4.</b> Tron<br/>
- <b>5.</b> Thresh<br/>
- </b> All future Playermodels!<br/>
- <b>Commands:</b><br/>
- </b> Gag and Ungag<br/>
- </b> Mute and unmute<br/>
- </b> Ban,BanID,Unban<br/>
- </b> See admin chat<br/>
- </b> Slaynr and rslaynr<br/>
- </b> Kick<br/>
- </b> Tsay and Csay<br/>
- </b> Whip and slap<br/>
- </b> RdmManager<br/>
- </b> Forcespectate and unspectate<br/>
- </b> All teleport commands<br/>
- </b> Set warp and warp<br/>
- </b> Url command<br/>
- </b> Csay color and Tsay color<br/>
- </b> Shock<br/>
- </b> Dban<br/>
- </b> Launch<br/>
- </b> Maul<br/>
- <b>Contact:</b><br/>
- </b> Once you donate send an email here osirisdonationsttt@gmail.com<br/>
- <br/>
- <b style=\"color:red;\">This rank is permanent but if abused it will be taken away.</b>",
- 'price' => 20,
- 'execute' => array(
- "ttt" => array(
- 'online' => array(
- 0 => array(
- array("pointshop_points",20000),
- array("broadcast", array(255,0,0) ,"%name% has donated for mvpplus!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "ttt"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "mvpplus-donator")
- ),
- 86400*730 => array(
- array("sv_cmd","ulx", "removeuserid", "%steamid%")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- )
- );
- // Advanced
- function price($pid, $playerid){
- global $PACKAGES;
- return $PACKAGES[$pid]['price']; // What price should user pay
- }
- function ipnPriceValidation($pid, $playerid, $price){
- global $PACKAGES;
- return $PACKAGES[$pid]["price"] == $price; // Check if price valid after payment was done.
- }
- // !!!!! IGNORE !!!!!
- if(PAYPAL_SANDBOX){
- define("PAYPAL_URL", "https://www.sandbox.paypal.com/cgi-bin/webscr" );
- }else{
- define("PAYPAL_URL", "https://www.paypal.com/cgi-bin/webscr" );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement