OfferCo.de is a web-based service that provides short URLs for offer codes. Users can input an offer code along with a description, and the service generates a unique short code. When this short code is accessed, the original offer code and description are retrieved and displayed.
- Short Code Generation: Generate a concise and unique short code for each offer code submitted.
- Offer Code Retrieval: Retrieve the original offer code and its description using the generated short code.
- User-Friendly Interface: Easy to navigate interface for generating and retrieving offer codes.
- Secure Storage: Offer codes and descriptions are securely stored and retrieved from the database.
- Clone the repository to your web server.
- Configure your database settings in dbconfig.php.
- Ensure that your server meets the following requirements:
- PHP 7.0 or higher
- MySQL Database
-
Generating a Short Code:
- Navigate to the 'Get Offer Short Code' tab.
- Enter the full offer code and an optional description.
- Submit the form to receive a unique short code.
-
Retrieving an Offer Code:
- Use the generated short code in the 'View Offer' tab or by accessing
https://offerco.de/[short_code]
. - The original offer code and description will be displayed.
- Use the generated short code in the 'View Offer' tab or by accessing
The service integrates with https://api.dexie.space/v1/offers/
to retrieve additional details about the offer. This includes the status of the offer, dates, price, and items offered and requested.
- index.php: Main file handling both the generation and retrieval of offer codes.
- library.php: Contains utility functions for random string generation, user input sanitization, and base58 encoding.
- dbconfig.php: Configuration file for database settings (not included in this repository for security reasons).
- Input sanitization to prevent SQL injection and XSS attacks.
- Secure database connection handling.
Contributions to the project are welcome. Please follow the standard GitHub pull request process.
Apache-2.0