📦
Community Guide
  • README
  • ❔Faq
    • Accessing Pma
    • Level Reupload 1005 Error
    • Missing Dlls Fix
    • Package Parsing Error Android
    • Phpmyadmin And Ftp
  • 🛠️In Game Help
    • Add Mod Menu
    • Level Commands
    • Remove 6 Digit Song Limit Android
    • Remove Android Anticheat
    • Texture Pack
  • 🔐Phpmyadmin
    • Actions Explain
    • Banning
    • Basic Explanation Of The Php My Admin Tables
    • Change Default Downloads Likes
    • Create Gauntlets
    • Create Mappacks
    • Create Modip
    • Create Quests
    • Create Roles
    • Detailed Explanation Of Phpmyadmin Tables And Columns
    • Elegant Sql Fixes
    • Give Permissions
    • Placing Roles
    • Site Structure
    • PhpMyAdmin FAQ
  • Misc
    • How To Use Tools
    • Making An Old GDPS Version
  • Backend
    • How Autoban Php Works
    • How Cron Works
Powered by GitBook
On this page
  • Cron.php
  • autoban.php
  • fixnames.php
  • SongCount.php
  • fixcps.php
  • CP SHARING
  • DAILY LEVEL CP
  • DONE
  • removeBlankLevels.php
  • Friendsleaderboard.php

Was this helpful?

Edit on GitHub
  1. Backend

How Cron Works

This is the grand for everything Cron.php does. Including Autoban.php, fixcps.php and every other php file in the cron folder.

Last updated 1 year ago

Was this helpful?

Cron.php

Cron.php is the main file that is in the folder. it runs every other php file in result running all of the php files in the folder simultaneously.

autoban.php

Since i already coversed it in a different post, i will just link you there.

  • How Autoban works

fixnames.php

It really only fixes the username in the accounts section in the sql server to the usernames in the user section.

SongCount.php

This file updates the amunt of levels use the song in the sql server. There isnt much else to say about this one.

fixcps.php

this is one of the longer ones.

it first of all checks if there is a log file in the tools directory. if there is, it will check when it was created and see if was before the cooldown end. if it does the code will exit saying:

	exit("Please wait $remainmins minutes and $remainsecs seconds before running ". basename($_SERVER['SCRIPT_NAME'])." again");

CP SHARING

DAILY LEVEL CP

DONE

were finally done with Fix CP.

removeBlankLevels.php

Friendsleaderboard.php

if the cooldown expired already, it include the connection.php file and start getting the users.

the code will now check the levels to see if the level has IsCPShared = 1 if its a yes, it will give both users a creator point each, also dependent if the level is star, featured or epiced.

the code at this part is going to slelect the ID's from daily features and will give the creator of the level some creator points.

the code finally finishes calculating everything and will give all of the users the specified creator point the code calculated.

simply removes invalid users, songs, fixes invalid passwords and removes songs with nonsensical URL's. Although no mention of deleting blank level as to the name.

Simply updates the friends leaderboard for people.

first part
Cron.php code
fixnames.php code
SongCount.php Code
second part
third part
cp distrobution daily
fixcps done
removeblank
friendslead