Menu

Tree [4b90b6] master /
 History

HTTPS access


File Date Author Commit
 api_data 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 assets 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 class 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 crons 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 docs 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 extra 2019-07-27 Dr. Simon A. Xaies Dr. Simon A. Xaies [8eabfd] Latest Backup of http://ntp.snails.email!
 include 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 .htaccess 2019-07-27 Dr. Simon A. Xaies Dr. Simon A. Xaies [8eabfd] Latest Backup of http://ntp.snails.email!
 ACADEMIC 2019-01-21 Dr. Simon A. Xaies Dr. Simon A. Xaies [1acb10] ntp.snails.email :: source code!
 LICENSE 2019-01-21 Dr. Simon A. Xaies Dr. Simon A. Xaies [1acb10] ntp.snails.email :: source code!
 README.md 2019-07-27 Dr. Simon A. Xaies Dr. Simon A. Xaies [8eabfd] Latest Backup of http://ntp.snails.email!
 apiconfig.php 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 callback.php 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 help.php 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 import-uni.php 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 index.php 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!
 mainfile.php 2019-07-27 Dr. Simon A. Xaies Dr. Simon A. Xaies [8eabfd] Latest Backup of http://ntp.snails.email!
 simonaroberts-com.sql 2022-07-01 Dr. Antony Roberts Dr. Antony Roberts [4b90b6] Latest from: simonaroberts.com.localhost!

Read Me

Chronolabs Cooperative presents

Network Time Protocol - REST API Services

Version: 1.0.3 (stable)

Author: Dr. Simon Antony Roberts wishcraft@users.sourceforge.net

Demo: http://ntp.snails.email

This API is written for internal use of chronolabs cooperative, you can find it running on http://172.104.177.252

Apache Mod Rewrite (SEO Friendly URLS)

The follow lines go in your API_ROOT_PATH/.htaccess

php_value memory_limit 25M
php_value upload_max_filesize 10M
php_value post_max_size 10M

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([a-z0-9]{2})/(editntp|addntp).(asp|php|serial|json|xml|api)$ ./index.php?version=$1&mode=$2&format=$3 [L,NC,QSA]
RewriteRule ^([a-z0-9]{2})/ntp.conf$ ./index.php?version=$1&mode=ntp.conf&format=conf [L,NC,QSA]
RewriteRule ^([a-z0-9]{2})/(top|new|worse).(rss)$ ./index.php?version=$1&mode=$2&format=$3 [L,NC,QSA]
RewriteRule ^([a-z0-9]{2})/(online|offline|pings|uptime|downtime|nextping).(asp|php|serial|json|xml)$ ./index.php?version=$1&mode=$2&format=$3 [L,NC,QSA]
RewriteRule ^index.html$ ./index.php [L]

Scheduled Cron Job Details.,

There is one or more cron jobs that is scheduled task that need to be added to your system kernel when installing this API, the following command is before you install the chronological jobs with crontab in debain/ubuntu

Execute:-
$ sudo crontab -e

CronTab Entry:

You have to add the following cronjobs to your cronjobs or on windows scheduled tasks!

* */22 * * * /usr/bin/php /var/www/html/crons/0.ntp-more-services.php
* */22 * * * /usr/bin/php /var/www/html/crons/1.ntp-more-services.php
* */22 * * * /usr/bin/php /var/www/html/crons/ntp-more-services.php
* */22 * * * /usr/bin/php /var/www/html/crons/ntp1-more-services.php
* */22 * * * /usr/bin/php /var/www/html/crons/clock-more-services.php
* */22 * * * /usr/bin/php /var/www/html/crons/time-more-services.php
*/1 * * * * /usr/bin/php /var/www/html/crons/ntp-mining-services.php
*/1 * * * * /usr/bin/php /var/www/html/crons/ping-ntp-services.php
*/1 * * * * /usr/bin/php  /var/www/html/crons/reports-ntp-services.php
*/11 * * * *  mysql ntp-snails-email < /var/www/html/crons/querys.sql && unlink /var/www/html/crons/querys.sql

Licensing

  • This is released under General Public License 3 - GPL3 + ACADEMIC!

Installation

Copy the contents of this archive/repository to the run time environment, configue apache2, ngix or iis to resolve the path of this repository and created the database then set the settings in the following files:

/mainfile.php
/include/dbconfig.php
/include/constants.php
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.