• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

GESIOR 2012 - Version 1.0.1 for 0.2.x, 0.3.6 and all 0.4

Which path format do I have to use for Linux? I am using '/root/dir/dir/' and it's not working.
It gives me lua file doesn't exists.
 
Which path format do I have to use for Linux? I am using '/root/dir/dir/' and it's not working.
It gives me lua file doesn't exists.
something like:
/home/otsuser/ots/config.lua
should work, make sure that PHP has access to read files in that folder.
 
Well my server is in root/dir/dir but it still says me that there is no config file.

See:

0rNWe.png


How to check if php got rights to read that folder? I am using lighttpd.
 
Fatal error: Call to a member function createObject() on a non-object in C:\xampp\htdocs\pages\wars.php on line 43
 
Hi, I got some problems with your paypal scripts. Ive removed the old IPN settings in paypal, Made it work with the config, I get the money, but the player does not get the points, what am I doing wrong?, or is the paypal script not automatic?

/Abbe
 
Still got some problems

* Old guild images are blank(homepage can't find them, and ive tried finding where the new images are to mainly just copy and paste, but can't find it)
* Elfs script with top guild etc. is not working, you asked where I got the scirpt: http://otland.net/f118/0-3-6-0-4-top-fragers-top-guilds-one-database-query-68893/
* My guild wars (by elf) is not working either, since its not showing the images(same problem as above?) http://paste.ots.me/8036/text

Regards WibbenZ
1. Old guild images were in folder, now images are in database and only way to add them is to go guild 'management' panel (as owner of guild) and use upload script. Put guild images in some folder (with 'listing') and post in news that players must get their logo and upload again on guilds page.

2. I will post that script for new acc. maker when I will have some time to test it.

3. it should work, no error + new guild logos, http://paste.ots.me/8039/text

- - - Updated - - -

Well my server is in root/dir/dir but it still says me that there is no config file.

See:

0rNWe.png


How to check if php got rights to read that folder? I am using lighttpd.
Try:
chmod 777 /root/ris.../server/config.lua

Problem can be that you keep server files in 'root' folder. I don't know if it's real folder or some 'linux magic' folder for root user.
You should make new linux user like ots and keep OTS files in /home/ots/

- - - Updated - - -

Hi, I got some problems with your paypal scripts. Ive removed the old IPN settings in paypal, Made it work with the config, I get the money, but the player does not get the points, what am I doing wrong?, or is the paypal script not automatic?

/Abbe
About PayPal
1. Config of payments (amount of money, points, your paypal e-mail) is in:
custom_scripts/paypal/config.php
2. There is:
Code:
$paypal_report_url = 'http://anderion.net/paypal_report.php';
Change anderion.net to your domain and leave /paypal_report.php, don't change to /pages/paypal_report.php or /?subtopic=paypal_report
3. Remember to make 'reported_ids' folder writeable to make acc. maker add points for payments (on linux: chmod -R 777 /var/www/custom_scripts [if acc. maker is in /var/www/):
custom_scripts/paypal/reported_ids/
4. DO NOT EDIT/CONFIGURE ANYTHING ON PAYPAL.COM, acc. maker 'tells' PayPal how to report payment. You can't turn on IPN on paypal.com - it blocks script. You just need registered account and good config of script in acc. maker to make PayPal donations work.
---------------
3rd point is VERY important, without access to make files in this folder acc. maker won't add points
 
1. Okay, dident know that hehe
2. Yeah would be great, since most ots uses it hehe
3. It kinda workes, still dosent show images, is it posible to if it dosent find the image(the players havent uploaded new images) to get that blank defult image?

WibbenZ
 
3. It kinda workes, still dosent show images, is it posible to if it dosent find the image(the players havent uploaded new images) to get that blank defult image?

WibbenZ
If it shows images for some guilds and only old does not work you can try to replace:
pages/guild_image.php
with that script:
PHP:
<?php
if(!defined('INITIALIZED'))
	exit;
$guild_id = (int) $_REQUEST['id'];
$guild = new Guild($guild_id);
$guildLogo = $guild->getGuildLogo();
$guildLogoInfo = explode(';', $guildLogo, 3);
$image = array();
$image['content_mtime'] = $guildLogoInfo[0];
if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && strtotime(preg_replace('/;.*$/','',$_SERVER["HTTP_IF_MODIFIED_SINCE"])) == $image['content_mtime'])
{
	header('HTTP/1.0 304 Not Modified');
	/* PHP/webserver by default can return 'no-cache', so we must modify it */
	header('Cache-Control: public');
	header('Pragma: cache');
	header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $image['content_mtime']) . ' GMT');
}
elseif($guild->isLoaded() && strlen($guildLogo) > 0)
{
	$image['content_type'] = substr($guildLogoInfo[1], 5);
	$image['content'] = base64_decode(substr($guildLogoInfo[2], 7));
	header('Content-Type: ' . $image['content_type']);
	header('Cache-Control: public');
	header('Pragma: cache');
	header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $image['content_mtime']) . ' GMT');
	echo $image['content'];
}
else
{
	header('Content-Type: image/gif');
	readfile('images/default_guild_logo.gif');
}
Then it will read images/default_guild_logo.gif and send as gif image when guild image in database is 'empty' (length = 0).
I did not test, but it should show 'default logo' when guild does not have logo - on all pages where you can view guild logo, not only wars.php
 
This script for war system work nice but only don`t have » Details « for wars .
16 Feb 2013, 13:06 + Asdasd killed at level 134 by Mijos.
16 Feb 2013, 13:06 + Mijos killed at level 173 by Asdasd.

try adding it but did not know.
Your web page is the best!! Waiting for 1.0.2 =)
 
Seems like the root folder is not working, I used another folder and it works now.
 
I did try that, Still isent working I get the money but the account dosent get the points, im using windows, is there any chmod command but for cmd on windows?, I tried changing owner on the map custom scripts. Could you take a look at it over team viewer or something?, I tried following your "config" and the config.php is correctly done. Please.
Abbe
 
I did try that, Still isent working I get the money but the account dosent get the points, im using windows, is there any chmod command but for cmd on windows?, I tried changing owner on the map custom scripts. Could you take a look at it over team viewer or something?, I tried following your "config" and the config.php is correctly done. Please.
Abbe
Still need help :s
Abbe
 
Last edited:
bump

--http://chimera.sytes.net/paypal_report.php--
it says wrong ip.. where do i set the ip or what ip is it talking about? im confused.

Regards,
Kakha
 
bump

--http://chimera.sytes.net/paypal_report.php--
it says wrong ip.. where do i set the ip or what ip is it talking about? im confused.

Regards,
Kakha
It says wrong IP, because only notify.paypal.com has valid IPs. After payment paypal server opens that page all tells acc. maker to add points. Of course players can't open that page ;)
Show me your custom_scripts/paypal/config.php
 
Back
Top