DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • January 19, 2019, 02:56:00 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: Counter  (Read 2869 times)
0 Members and 1 Guest are viewing this topic.
« on: July 06, 2005, 12:14:54 PM »

Hi there,

as it is impossible to Count anything using the module_setting (at least when u'r runnig a server with more then 10 users) correctly i made a little counter.

I think it's easy to handle but feel free to drop suggestions.

The Download is 3 files:

the Module : counter.php

it was no runnig code. It's just to install and remove the Table for the module and to check if the lib. file exists

the lib file : counter.php

provides 4 functions :

where you instert a new counter
(to call in the _install part of a module)

where you remove a counter
(to call in the _uninstall part of a module


returns the count for that counter

counter_set($name , $value , $type='+')

here u change the counter
$type can be "+" , "-" and "="

where "+" is add , "-" is sub and "=" is set

the third file (testcounter.php) is the test file where i use all the functions and debug some output to the village.

the only thing to you need to care about is the
when you use its functions.

Finally the download : http://lotgd.de/edorian/counter.tar

Feel free to drop comments, questions and suggestions.
« Last Edit: July 06, 2005, 12:18:09 PM by edorian » Logged
« Reply #1 on: July 06, 2005, 12:22:36 PM »

Wrong place. you want to post that here.

Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
33 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search