# Add-url.info Add-url.info is a web service designed to accelerate web page indexing in search engines (Google, Bing, Yandex). It allows users to mass-submit URLs for crawling and indexing by Googlebot. ## Technology Stack - **Backend:** PHP 7.x/8.x, CodeIgniter 3 (MVC framework) - **Frontend:** HTML5, CSS (Bootstrap 3, Custom CSS / style.css based on SmartAdmin theme), jQuery, AJAX - **Database:** MySQL - **Integration:** Telegram API, Google reCAPTCHA v2, various payment gateways (YooMoney, PayPal, Plati.ru, Enot, WebMoney), external APIs for bots (ZennoPoster) ## Project Architecture - `index.php` — Single entry point for all HTTP requests, initializes CodeIgniter. - `application/` — Main application logic: - `config/` — Configuration files: - `routes.php` — Request routing rules. - `autoload.php` — Auto-loaded libraries (database, sessions, form validation) and helpers. - `database.php` — MySQL database connection settings. - `controllers/` — Controller classes: - `Homepage_controller.php` — Logic for the main landing page. - `Reg_controller.php` — User registration, authentication, and password recovery. - `Addurl_controller.php` — User dashboard, managing URL submission projects. - `Google_controller.php` — API for automated bots (ZennoPoster/templates) to fetch accounts, get URLs, and update statuses. - `Api_controller.php` — External API for programmatically submitting URLs, checking balance, etc. - `Administrator_controller.php` — Admin panel. - `Addbalance_controller.php`, `Platiru_controller.php`, `Enot_controller.php`, `Money_controller.php` — Payment gateways. - `models/` — Database models: - `Users_model.php` — Operations with users (auth, API keys, notifications via Telegram/Pushover). - `Addurl_model.php` — Managing URL queues and projects. - `views/` — Templates/views (HTML/PHP templates): - `index_page.php` — The main landing page, containing login form, pricing details, and FAQ accordion. - `ajax/` — Templates and scripts for AJAX requests (e.g., email templates, modals). - `js/` — Client-side scripts: - `login.js` — Form validations and AJAX handling for authentication, registration, recovery. - `css/` — Stylesheets: - `style.css` — Purged stylesheet for the homepage (~66 KB). - `system/` — Core CodeIgniter framework files (do not modify). ## Deployment & Sync details - Deployment is synchronized with server `195.154.104.113` using Git sparse-checkout. - `README.md` and `.agents/` directory are excluded from deployment on the server (via sparse-checkout). ## Guidelines for LLMs - **Language Policy:** The user communicates in Russian. Always respond and write documentation/README.md in Russian. - **Code Style:** Keep legacy CodeIgniter 3 MVC structure. Do not use modern PHP features that are incompatible with the server's PHP version (target compatibility: PHP 7.4+). - **Security:** Avoid exposing secret keys in controllers (e.g., reCAPTCHA keys). Use config files or environment variables if possible. MD5 is currently used for legacy passwords, but modern password hashing is preferred for new systems.