Giter Club home page Giter Club logo

ntp-pooling-php-api's Introduction

Chronolabs Cooperative presents

Network Time Protocol - REST API Services

Version: 1.0.3 (stable)

Author: Dr. Simon Antony Roberts [email protected]

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

ntp-pooling-php-api's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.