VirtualTrader
Web / PHP Game trading realtime stocks with virtual cash
Install / Use
/learn @SirFUDAlot/VirtualTraderREADME
VirtualTrader - A Web / PHP Game where users trade Realtime stocks with Virtual Money !
Changelog:
- Cron script can only be executed by local system to reduce server load
- Email activation sytem in place. User cannot login without having activated his / her account
- Added search functionality, placed search form in main menu. CSS still needs tweaking
- resetpass.php modified to add reset hash expiry functionality. The reset hash expires after 24 hours via cron job
- updatestocks.php became cron.php, the sitewide cron job handler... It now handles reset hash expiry (over 24 hours) and updates stocks DB
- Fixed Random String generator
- Fixed Reset Password Hash error
- Fixed a null stock purchase bug with PHP float (Ex: float(0.7) = 0 -> You have purchased / sold 0 stocks)
- Fixed an XSS vulnerability with Usernames (Thanks to GreenBean for finding that)
- Disallowed the purchase / sale of 0 stocks / negative quantity of stocks (Thanks to GreenBean for finding that)
- Decimal quantities (ex: 0.2) are now rounded up / down using php round() (Thanks to GreenBean for finding that)
- Added recentactivity.php
- New table in MySQL Database - activity_log
- Fixed the too many digits after the decimal point in user balance bug
- No longer showing inactive users in Leaderboard (Users with original 200 $
- Stocks now show in Alphabetical Order
- Moved to the Google Finance API
Cron Job Info :
The /includes/cron.php script should be run every 5 minutes to update the stocks database, and also expire reset hashes over 24 hours old. On a linux system, you an add a cron job by using crontab -e via SSH terminal
Once inside the Crontab editor, add the following line :
5 * * * * /usr/bin/php /LOCATION/TO/VIRTUALTRADER/includes/cron.php >/dev/null 2>&1
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
