Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] WebEngine 1.0.8 / 1.0.8 PL1

Don't be afraid to ask!
Loyal Member
Joined
Jun 2, 2012
Messages
1,454
Reaction score
252
uhm so i will run that cron.bat in windows?, is that what you mean?

nothing happens xD help RevolGaming

PN51TK2 - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums

Turn on error reporting than.. and you will see the errors. Its working for me.
 

Attachments

You must be registered for see attachments list
Joined
Nov 29, 2009
Messages
506
Reaction score
92
Turn on error reporting than.. and you will see the errors. Its working for me.

Hehehe thanks man, indeed it helps...

the prob:
j4nlVT2 - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums

the fix:
jv5u0uo - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums

working:
22nVBkd - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums


99r39ZE - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums


lol, feeling like pro :D, but more to config xD...

and more to ask :D
RevolGaming

where to edit this texts?

Mcx2Pe7 - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums

Edit

nvm i found it xD... @ template.settings.ph in templates folder for the current template :)

btw dude, can you teach me how to config this vip system stuff????
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Jun 18, 2015
Messages
86
Reaction score
1
can anyone make a video on how to install this web with shoved all the drivers we need to install before properly... traying to install it it and never worked... please , it will take you only 20 minutes , please
 
Joined
Nov 29, 2009
Messages
506
Reaction score
92
Hey uhm anyone knows how to fix this ranking icon issues, how to properly config them?, what config file should i edit to call them properly? I think it is not in the templates?

5eubCTZ - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums


41qFKEE - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums

Edit

nvm, i just figured it out, it is located in includes/custom.php
 

Attachments

You must be registered for see attachments list
Last edited:
Initiate Mage
Joined
Jan 15, 2010
Messages
4
Reaction score
1
hi guys, i'm having an issue with this website: every module, including home, gives me the message "Module has been disabled by Administrator", i can't see the Rankings and when i try to login it says " You have reached the maximum number of login failures, therefore your account has been temporarily disabled to login to the website."

I really don't know what to do, i already installed every plugin, ran the crons, executed the querys, modified config.php and nothing... I run the website with error_reporting and it doesn't tell any error, it's like everything is OK but website doesn't work. I'm using IA Julia server files, could it be some kind of problem with it's db?
 
Don't be afraid to ask!
Loyal Member
Joined
Jun 2, 2012
Messages
1,454
Reaction score
252
hi guys, i'm having an issue with this website: every module, including home, gives me the message "Module has been disabled by Administrator", i can't see the Rankings and when i try to login it says " You have reached the maximum number of login failures, therefore your account has been temporarily disabled to login to the website."

I really don't know what to do, i already installed every plugin, ran the crons, executed the querys, modified config.php and nothing... I run the website with error_reporting and it doesn't tell any error, it's like everything is OK but website doesn't work. I'm using IA Julia server files, could it be some kind of problem with it's db?

Turn off bloking in config file than login and allow the modules from the admincp or you can allow it with hand in the config files.
 
Don't be afraid to ask!
Loyal Member
Joined
Jun 2, 2012
Messages
1,454
Reaction score
252
Please help
need tutorial with IIS

php with iis is not a good combo.....

IIS is for asp, not for php. you can make it but its not good.



does anyone know how to embed images on the news?

9iiykk9 - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums

check browser source on the broken image, and you will see whats the problem.
 

Attachments

You must be registered for see attachments list
Joined
Nov 29, 2009
Messages
506
Reaction score
92
PHP:
class Vip {
	
	function VipProcess($userid,$plan) {
		global $common;
		$plan = Decode($plan);
		if(check_value($userid) && Validator::Number($userid)) {
			$planData = $this->PlanInfo($plan);
			$userData = $common->accountInformation($userid);
			if(is_array($userData) && is_array($planData)) {
			
				// data
				$username = $userData[_CLMN_USERNM_];
				$vipstamp = $userData[_CLMN_VIP_STAMP_];
				$plandays = $planData['days'];
				$plandiscount = $planData['discount_percent'];
				$planprice = $this->CalculatePlanCost($plandays,$plandiscount);
				
				if(!$common->accountOnline($username)) {
					// deduct credits
					$deduct = $common->substractCredits($userid,$planprice);
					if($deduct) {
						if($this->isVIP($userid)) {
							// Extend Timestamp
							$new_timestamp = $this->CalculateExtension($vipstamp,$plandays);
							$update = $common->updateVipTimeStamp($userid,$new_timestamp);
							if($update) {
								// success
								message('success', lang('success_13',true));
							} else {
								// unkown error
								message('error', lang('error_23',true));
							}
						} else {
							
							// New timestamp
							$new_timestamp = $this->CalculateTimestamp($plandays);
							
							if(mconfig('vip_enable_promotion')) {
								if($this->vipGetsPromotion()) {
									$new_timestamp = $this->addPromotionDays($new_timestamp);
									$gotFreeDays = true;
								} else {
									$gotFreeDays = false;
								}
							}
							
							$update = $common->updateVipTimeStamp($userid,$new_timestamp);
							if($update) {
								// success
								message('success', lang('success_14',true));
								
								if($gotFreeDays) {
									message('success', lang('vip_reward_1b',true).mconfig('vip_promotion_reward_days').lang('vip_reward_1c',true), lang('vip_reward_1a',true));
								}
							} else {
								// unkown error
								message('error', lang('error_23',true));
							}
						}
					} else {
						// not enough credits
						message('error', lang('error_40',true));
					}
				} else {
					// account is online
					message('error', lang('error_14',true));
				}
			} else {
				// invalid user (unknown error)
				message('error', lang('error_23',true));
			}
		} else {
			// missing data (unknown error)
			message('error', lang('error_23',true));
		}
	}
	
	function PackageExists($id) {
		$VipPlans = mconfig('vip_plans');
		if(is_array($VipPlans)) {
			if(array_key_exists(0, $VipPlans)) {
				if(is_array($VipPlans[$id])) {
					return true;
				}
			} else {
				return true;
			}
		}
	}
	
	function PlanInfo($id) {
		if($this->PackageExists($id)) {
			$VipPlans = mconfig('vip_plans');
			if(array_key_exists(0, $VipPlans)) {
				return $VipPlans[$id];
			} else {
				return $VipPlans;
			}
		}
	}
	
	function CalculateTimestamp($days) {
		if(check_value($days) && Validator::Number($days) && $days >= 1) {
			$vip_days = 60*60*24*$days;
			$free_time = 3600;
			$result = time() + $free_time + $vip_days;
			return $result;
		}
	}
	
	function CalculateExtension($timestamp,$days) {
		if(check_value($timestamp) && check_value($days) && Validator::Number($days) && $days >= 1) {
			$vip_days = 60*60*24*$days;
			$result = $timestamp + $vip_days;
			return $result;
		}
	}
	
	function isVIP($userid) {
		global $common;
		if(check_value($userid) && Validator::Number($userid)) {
			$accountInfo = $common->accountInformation($userid);
			if($accountInfo) {
				$vipTimestamp = $accountInfo[_CLMN_VIP_STAMP_];
				if($vipTimestamp > time()) {
					return true;
				}
			}
		}
	}
	
	function RemainingVIP($timestamp) {
		if(check_value($timestamp) && Validator::Number($timestamp)) {
			$calculate = ($timestamp - time()) / (60*60*24);
			return round($calculate);
		}
	}
	
	function vipGetsPromotion() {
		$success_rate = mconfig('vip_promotion_success_percent');
		$random = rand(1,100);
		if($random <= $success_rate) {
			return true;
		}
	}
	
	function addPromotionDays($timestamp) {
		if(check_value($timestamp) && Validator::Number($timestamp)) {
			$promotion_days = 60*60*24*mconfig('vip_promotion_reward_days');
			return $timestamp+$promotion_days;
		}
	}
	
	function CalculatePlanCost($days,$discount=0) {
		if(check_value($days) && Validator::Number($days)) {
			$vip_day_cost = mconfig('vip_day_cost');
			$calculate_days_cost = round($days*$vip_day_cost);
			if($discount >= 1) {
				// Formula: original price - ( (discount % / 100) * original price )
				$discounted_price = $calculate_days_cost - (($discount/100)*$calculate_days_cost);
				return round($discounted_price);
			} else {
				return round($calculate_days_cost);
			}
		}
	}

}

Result:
hvbyKn9 - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums


gk9gnTl - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums


acuwoZm - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums


What/how do i insert something on the script so that it would also update/post/put/insert something on AccountLevel and AccountExpireDate? These columns are the ones affecting VIP in game.

RevolGaming
natzugen

Help please...

Thanks :)


Edit
ZYJG1X4 - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums

iNZvWYU - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums


So i manged to point the stamping of vip system to muemu's AccountExpireDate column by modifying the script below:

PHP:
class Vip {
	
	function VipProcess($userid,$plan) {
		global $common;
		$plan = Decode($plan);
		if(check_value($userid) && Validator::Number($userid)) {
			$planData = $this->PlanInfo($plan);
			$userData = $common->accountInformation($userid);
			if(is_array($userData) && is_array($planData)) {
			
				// data
				$username = $userData[_CLMN_USERNM_];
				$vipstamp = $userData[_CLMN_VIP_STAMP_];
				$plandays = $planData['days'];
				$plandiscount = $planData['discount_percent'];
				$planprice = $this->CalculatePlanCost($plandays,$plandiscount);
				
				if(!$common->accountOnline($username)) {
					// deduct credits
					$deduct = $common->substractCredits($userid,$planprice);
					if($deduct) {
						if($this->isVIP($userid)) {
							// Extend Timestamp
							$new_timestamp = $this->CalculateExtension($vipstamp,$plandays);
							$update = $common->updateVipTimeStamp($userid,$new_timestamp);
							if($update) {
								// success
								message('success', lang('success_13',true));
							} else {
								// unkown error
								message('error', lang('error_23',true));
							}
						} else {
							
							// New timestamp
							$new_timestamp = $this->CalculateTimestamp($plandays);
							
							if(mconfig('vip_enable_promotion')) {
								if($this->vipGetsPromotion()) {
									$new_timestamp = $this->addPromotionDays($new_timestamp);
									$gotFreeDays = true;
								} else {
									$gotFreeDays = false;
								}
							}
							
							$update = $common->updateVipTimeStamp($userid,$new_timestamp);
							if($update) {
								// success
								message('success', lang('success_14',true));
								
								if($gotFreeDays) {
									message('success', lang('vip_reward_1b',true).mconfig('vip_promotion_reward_days').lang('vip_reward_1c',true), lang('vip_reward_1a',true));
								}
							} else {
								// unkown error
								message('error', lang('error_23',true));
							}
						}
					} else {
						// not enough credits
						message('error', lang('error_40',true));
					}
				} else {
					// account is online
					message('error', lang('error_14',true));
				}
			} else {
				// invalid user (unknown error)
				message('error', lang('error_23',true));
			}
		} else {
			// missing data (unknown error)
			message('error', lang('error_23',true));
		}
	}
	
	function PackageExists($id) {
		$VipPlans = mconfig('vip_plans');
		if(is_array($VipPlans)) {
			if(array_key_exists(0, $VipPlans)) {
				if(is_array($VipPlans[$id])) {
					return true;
				}
			} else {
				return true;
			}
		}
	}
	
	function PlanInfo($id) {
		if($this->PackageExists($id)) {
			$VipPlans = mconfig('vip_plans');
			if(array_key_exists(0, $VipPlans)) {
				return $VipPlans[$id];
			} else {
				return $VipPlans;
			}
		}
	}
	
	function CalculateTimestamp($days) {
		if(check_value($days) && Validator::Number($days) && $days >= 1) {
			//$vip_days = 60*60*24*$days;
			//$free_time = 3600;
			$result = date('Y-m-d H:i:s', strtotime("+ " .$days. " day"));
			return $result;
		}
	}
	
	function CalculateExtension($timestamp,$days) {
		if(check_value($timestamp) && check_value($days) && Validator::Number($days) && $days >= 1) {
			$vip_days = 60*60*24*$days;
			$tsnum = strtotime($timestamp);
			$tsnumvip = $tsnum + $vip_days;
			$extendtime = date('Y-m-d H:i:s', $tsnumvip);
			//$result = $timestamp + $vip_days;
			return $extendtime;
		}
	}
	
	function isVIP($userid) {
		global $common;
		if(check_value($userid) && Validator::Number($userid)) {
			$accountInfo = $common->accountInformation($userid);
			if($accountInfo) {
				$vipTimestamp = $accountInfo[_CLMN_VIP_STAMP_];
				if($vipTimestamp > date('Y-m-d H:i:s', time())) {
					return true;
				}
			}
		}
	}
	
	function RemainingVIP($timestamp) {
		if(check_value($timestamp) && Validator::Date($timestamp)) {
			//$calculate = ($timestamp - time()) / (60*60*24);
			return $timestamp;
		}
	}
	
	function vipGetsPromotion() {
		$success_rate = mconfig('vip_promotion_success_percent');
		$random = rand(1,100);
		if($random <= $success_rate) {
			return true;
		}
	}
	
	function addPromotionDays($timestamp) {
		if(check_value($timestamp) && Validator::Number($timestamp)) {
			$promotion_days = 60*60*24*mconfig('vip_promotion_reward_days');
			return $timestamp+$promotion_days;
		}
	}
	
	function CalculatePlanCost($days,$discount=0) {
		if(check_value($days) && Validator::Number($days)) {
			$vip_day_cost = mconfig('vip_day_cost');
			$calculate_days_cost = round($days*$vip_day_cost);
			if($discount >= 1) {
				// Formula: original price - ( (discount % / 100) * original price )
				$discounted_price = $calculate_days_cost - (($discount/100)*$calculate_days_cost);
				return round($discounted_price);
			} else {
				return round($calculate_days_cost);
			}
		}
	}

}

But the problem is with modifying the column AccountLevel.

i tried to use original automatic vip expiry procedure which is originally working with expiration:

Code:
USE [MuOnline]
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

ALTER Procedure [dbo].[WZ_GetAccountLevel]
 [USER=162874]account[/USER] varchar(10)
AS
BEGIN

SET NOCOUNT ON
SET XACT_ABORT ON

DECLARE @CurrentAccountLevel int
DECLARE @CurrentAccountExpireDate smalldatetime

SELECT @CurrentAccountLevel = AccountLevel, @CurrentAccountExpireDate = AccountExpireDate FROM MEMB_INFO WHERE memb___id = [USER=162874]account[/USER]

IF (@CurrentAccountLevel <> 0 AND GETDATE() > @CurrentAccountExpireDate)
BEGIN
	SET @CurrentAccountLevel = 0
	UPDATE MEMB_INFO SET AccountLevel = @CurrentAccountLevel, AccountExpireDate = @CurrentAccountExpireDate WHERE memb___id = [USER=162874]account[/USER]
END

SELECT @CurrentAccountLevel as AccountLevel, @CurrentAccountExpireDate as AccountExpireDate

SET NOCOUNT OFF
SET XACT_ABORT OFF

END
GO

SET ANSI_NULLS OFF
GO

SET QUOTED_IDENTIFIER OFF
GO

Into:
Code:
USE [MuOnline]
GO
/****** Object:  StoredProcedure [dbo].[WZ_GetAccountLevel]    Script Date: 11/30/2016 21:32:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER Procedure [dbo].[WZ_GetAccountLevel]
 [USER=162874]account[/USER] varchar(10)
AS
BEGIN

SET NOCOUNT ON
SET XACT_ABORT ON

DECLARE @CurrentAccountLevel int
DECLARE @CurrentAccountExpireDate smalldatetime

SELECT @CurrentAccountLevel = AccountLevel, @CurrentAccountExpireDate = AccountExpireDate FROM MEMB_INFO WHERE memb___id = [USER=162874]account[/USER]

IF (@CurrentAccountLevel <> 0 AND GETDATE() > @CurrentAccountExpireDate)
BEGIN
	SET @CurrentAccountLevel = 0
	UPDATE MEMB_INFO SET AccountLevel = @CurrentAccountLevel, AccountExpireDate = @CurrentAccountExpireDate WHERE memb___id = [USER=162874]account[/USER]
END
ELSE
IF (@CurrentAccountLevel = 0 AND GETDATE() < @CurrentAccountExpireDate)
BEGIN
	SET @CurrentAccountLevel = 0
	UPDATE MEMB_INFO SET AccountLevel = @CurrentAccountLevel, AccountExpireDate = @CurrentAccountExpireDate WHERE memb___id = [USER=162874]account[/USER]
END

SELECT @CurrentAccountLevel as AccountLevel, @CurrentAccountExpireDate as AccountExpireDate

SET NOCOUNT OFF
SET XACT_ABORT OFF

END

But it is not working......

i also tried:
Code:
USE [MuOnline]
GO
/****** Object:  StoredProcedure [dbo].[WZ_GetAccountLevelVIP]    Script Date: 11/30/2016 21:34:26 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER Procedure [dbo].[WZ_GetAccountLevelVIP]
 [USER=162874]account[/USER] varchar(10)
AS
BEGIN

SET NOCOUNT ON
SET XACT_ABORT ON

DECLARE @CurAccountLevel int
DECLARE @CurAccountExpireDate smalldatetime

SELECT @CurAccountLevel = AccountLevel, @CurAccountExpireDate = AccountExpireDate FROM MEMB_INFO WHERE memb___id = [USER=162874]account[/USER]

IF (@CurAccountLevel = 0 AND @CurAccountExpireDate < Getdate())
BEGIN
	SET @CurAccountLevel = 1
	UPDATE MEMB_INFO SET AccountLevel = @CurAccountLevel, AccountExpireDate = @CurAccountExpireDate WHERE memb___id = [USER=162874]account[/USER]
END

SELECT @CurAccountLevel as AccountLevel, @CurAccountExpireDate as AccountExpireDate

SET NOCOUNT OFF
SET XACT_ABORT OFF

END

Still not working....

Any idea how to make it work?, holiday is ending so fast xD....
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Jan 31, 2016
Messages
111
Reaction score
15
Hello,
finally managed to install ...
The problem is that I can not enter the admincp because they always bring up the home page.
How can I access the admincp?
 
Initiate Mage
Joined
Jan 15, 2010
Messages
4
Reaction score
1
Hello,
finally managed to install ...
The problem is that I can not enter the admincp because they always bring up the home page.
How can I access the admincp?

Define an ingame account as admin in config.php, login in the website and go to admincp
 
Joined
Nov 29, 2009
Messages
506
Reaction score
92
freaking noob....

i just needed a good sleep xD..

missed a single part, now vip system fully working on muemu :D

bMEHK6z - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums


iJGuELe - [Release] WebEngine 1.0.8 / 1.0.8 PL1 - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Feb 15, 2008
Messages
90
Reaction score
4
Thanks for the files, its fast unlike other mu web, easy to config, i tested this files with PerfectZone S4 and its great, btw is there any other compatible template that i can try?
 
Joined
Nov 29, 2009
Messages
506
Reaction score
92
uhm, is it only paying with paypal account (the one with register paypal email) you can received credits automatically? I tried setting the paypal module but it is connected with my paypal account, so i paid using it, it won't accept. So tried debit/credit instead, it does not add credits automatically to the account i used, but i received the payment in my paypal account, for manual credit addition though. Can someone share their experiences, thanks..
 
Junior Spellweaver
Joined
Jan 31, 2016
Messages
111
Reaction score
15
Hello

someone would describe how I configure MSSQL you to reach your webhost PDO driver from linux?


I use WebEngine 1.0.8

windows vps- MSSQL 2008 R2 Standard / linux hos- cPanel
 
Back
Top