Quote:
Originally Posted by tugasnake
but i cant download the cms
|
Download link is fixed.
Database:
[Only registered and activated users can see links. Click Here To Register...]
To run ranks, will you need to make cron jobs running:
[Only registered and activated users can see links. Click Here To Register...]
Make a new file called rank_new.php
PHP Code:
<?php
require './KERNEL-DOCMS/Init.php';
if(isset($_GET['id'])){
$all = $rnk->getAllPlayers($_GET['id']);
}elseif(isset($_GET['fi']) && $_GET['fi']==1){
$fi = $_GET['fi'];
$all = $rnk->getAllPlayers(null, $fi);
header('location: /rank_new?fi=2');
}elseif(isset($_GET['fi']) && $_GET['fi']==2){
$fi = $_GET['fi'];
$all = $rnk->getAllPlayers(null, $fi);
header('location: /rank_new?fi=3');
}elseif(isset($_GET['fi']) && $_GET['fi']==3){
$fi = $_GET['fi'];
$all = $rnk->getAllPlayers(null, $fi);
header('location: /rank_new?o=1');
}elseif(isset($_GET['o'])){
print_r($rnk->setOverAll());
}else{
}
?>
Linux people use something like this:
PHP Code:
0 0 * * * wget -O /dev/null http://callback.darkorbit.tv/rank_new?fi=1
For windows you can make task schedule run a vb script like:
PHP Code:
Call LogEntry()
Sub LogEntry()
On Error Resume Next
Dim objRequest
Dim URL
Set objRequest = CreateObject("Microsoft.XMLHTTP")
URL = "http://localhost/rank_new?fi=1"
objRequest.open "POST", URL , false
objRequest.Send
Set objRequest = Nothing
End Sub
To all you smarties, make the scripts above more secure.
This is just a fast layout.
Cron job setup | windows:
Best Regards Bau