Free Php scripts that works on Pb spinning smiley sticking its tongue out

Posted by jmac928 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Free Php scripts that works on Pb spinning smiley sticking its tongue out
July 06, 2013 02:26AM
Free Databaseless Php download Counter
First you have to get installed php
then follows the instructions on the script web page ... works great.

Php Download counter


Webpage

DEMO


Download



Edited 5 time(s). Last edit at 07/19/2013 05:39PM by jmac928.
Re: Free Php scripts that works spinning smiley sticking its tongue out
July 06, 2013 02:32AM
One file cms For using with php installation
OneFileCMS
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
July 06, 2013 02:35AM
Another Light Weight Cms

Gpeasy

Gpeasy
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
July 06, 2013 06:08AM
PHP contact form for receiving messages from the viewers and store them in a flat file database.
This is ideal for receiving mail in the Piratebox and Librarybox without needing internet or mail for messages.

Contact form without mail sending

download

DEMO

Script control panel
LOGIN HERE

User: demouse
Password: password



Edited 4 time(s). Last edit at 08/01/2013 05:01PM by jmac928.
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 23, 2013 02:54PM
This would be great if could be implemented . I am interested in download counter script, could you show me tutorial to do it?
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 25, 2013 02:14AM
johanrusli Wrote:
-------------------------------------------------------
> This would be great if could be implemented . I am
> interested in download counter script, could you
> show me tutorial to do it?


Johan
You could follow the instructions onthis 2 links

[piratebox.aod-rpg.de]

[forum.daviddarts.com]

And then you only have to put ( Php download Counter ) on the php dir , really is very simple just follow the instructions .
This works very well in my piratebox.
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 25, 2013 10:19AM
Thank you very much jmac928, i never thought it will be such easy to implement it. I will try other script as mention above. Love it and will keep waiting for other great free php script. Thanks againsmileys with beer
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 26, 2013 05:06AM
I try to install a php script , but always encounter error like below:

It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier

how could I solve this timezone problem in piratebox?



Edited 1 time(s). Last edit at 08/26/2013 05:08AM by johanrusli.
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 26, 2013 08:40AM
Hey,

I haven't experimented with many php scripts yet, but look at something like:

EDIT: Link "fixed". Doesn't allow proper link.
Language: HTML
https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Installation,/reply_%289%29

Slightly different application range, but they solved it.



Edited 1 time(s). Last edit at 08/27/2013 02:41PM by Nargren.
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 26, 2013 09:57AM
Your link is broken.

My simple php script (test.php) :

Language: PHP
<?php   date_default_timezone_set(';Asia/Jakarta';);   if (date_default_timezone_get()) { echo ';date_default_timezone_set: '; . date_default_timezone_get() . ';<br />';; }   if (ini_get(';date.timezone';)) { echo ';date.timezone: '; . ini_get(';date.timezone';); }   ?>

The Output :
Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/piratebox/www/php/test/test.php on line 5

Fatal error: date_default_timezone_get(): Timezone database is corrupt - this should *never* happen! in /opt/piratebox/www/php/test/test.php on line 5
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 26, 2013 06:40PM
johanrusli Wrote:
-------------------------------------------------------
> I try to install a php script , but always
> encounter error like below:
>
>
> It is not safe to rely on the system's timezone
> settings. You are *required* to use the
> date.timezone setting or the
> date_default_timezone_set() function. In case you
> used any of those methods and you are still
> getting this warning, you most likely misspelled
> the timezone identifier
>
>
> how could I solve this timezone problem in
> piratebox?

Hello Johan

Please check this links ..
[forum.daviddarts.com]

[forum.daviddarts.com]
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 27, 2013 05:36AM
I am using the piratebox 0.6F, the timesave.sh script has been included, but it didn't help
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 27, 2013 12:04PM
Install the package "zoneinfo-core" including its dependencies,
then edit the php.ini and change the line (remove ; and add something)

;date.timezone =

or simply run:

sed 's|;date.timezone =|date.timezone = UTC|' -i  /etc/php.ini
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 27, 2013 03:00PM
Ah....at last, It solves the problem. Instead of installing zoneinfo-core in "piratebox", I install it in "root" and it works. Thanks you very much, Matthias and everyone . smileys with beer
If I may, could I update the date of the system :
root@IIzqqLdF:~# date
Sat Aug 24 20:36:06 UTC 2013

How to change it to today's date for example "Tue Aug 27" ?



Edited 3 time(s). Last edit at 08/27/2013 03:05PM by johanrusli.
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 28, 2013 07:46AM
The needed format is:

YYYYMMDDHHmm

so

date 201308280745

would change the time to 2013-08-28 07:45 am

Matthias
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 30, 2013 09:31AM
I want simple script to Read/Write one text file at server.
date(): Timezone database is corrupt
February 27, 2017 03:41PM
I am using PHP script with piratebox.

When I run script getting warning and fatal error:

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

Fatal error: date(): Timezone database is corrupt - this should *never* happen!

I have also tried to update time zone in php.ini and also using function date_default_timezone_set('GMT'), But still getting issue.

How can I fix it?

Thanks
Re: date(): Timezone database is corrupt
February 27, 2017 09:15PM
This should never happen tongue sticking out smiley

We are installing only a limited set of zone file:

	CET CST6CDT EET EST EST5EDT GB-Eire Eire \
		GB    GMT   GMT+0 GMT-0 GMT0  Greenwich  \
		HST   MET   MST   MST7MDT                \
		PRC   PST8PDT ROC ROK     UCT   UTC      \
Universal W-SU WET Zulu Etc/* zone.tab ; do \

So you have to choose one of them.
Maybe the file is corrupted on the usb stick, then you should try to reinstall it.

opkg -d ext install /mnt/usb/install/cache/zoneinfo-*
If I am not wrong, that should reinstall these files.

best regards
Matthias
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
April 04, 2019 05:02PM
Hi,

I came across this post on the piratebox forums from many years ago, but the links that you provided no longer work. Is there any way that you can send me the information?

thanks
Re: Free Php scripts that works on Pb spinning smiley sticking its tongue out
August 14, 2019 01:10PM
One file cms For using with php installation