Empowering Your API Experience, Effortlessly!
Built with the tools and technologies:
Table of Contents
The ChatGPT API Status Generator addresses the need for efficient social media management by automating status updates and user account management. Key features include user-friendly interfaces for account creation, status generation, and secure password management. Ideal for social media managers and developers, it streamlines content sharing and enhances user engagement.
Feature | Summary | |
---|---|---|
βοΈ | Architecture |
|
π© | Code Quality |
|
π | Documentation |
|
π | Integrations |
|
𧩠| Modularity |
|
π§ͺ | Testing |
|
β‘οΈ | Performance |
|
π‘οΈ | Security |
|
π¦ | Dependencies |
|
βββ /
βββ CHANGELOG.md
βββ LICENSE
βββ README.md
βββ root
β βββ app
β β βββ forms
β β β βββ accounts-forms.php
β β β βββ home-forms.php
β β β βββ info-forms.php
β β β βββ users-forms.php
β β βββ helpers
β β β βββ accounts-helper.php
β β β βββ home-helper.php
β β β βββ users-helper.php
β β βββ pages
β β βββ accounts.php
β β βββ home.php
β β βββ info.php
β β βββ users.php
β βββ config.php
β βββ cron.php
β βββ db.php
β βββ lib
β β βββ auth-lib.php
β β βββ common-lib.php
β β βββ load-lib.php
β β βββ rss-lib.php
β β βββ status-lib.php
β βββ public
β βββ .htaccess
β βββ assets
β β βββ css
β β β βββ index.php
β β β βββ login.css
β β β βββ mobile.css
β β β βββ pages.css
β β β βββ styles.css
β β βββ images
β β β βββ background-marble.png
β β β βββ default.jpg
β β β βββ default.png
β β β βββ index.php
β β β βββ logo.png
β β βββ index.php
β β βββ js
β β βββ footer-scripts.js
β β βββ header-scripts.js
β β βββ index.php
β βββ favicon.ico
β βββ feeds.php
β βββ images
β β βββ admin
β β β βββ dasdasdas
β β β β βββ index.php
β β β βββ tesstfsdfsdf
β β β βββ 6722a3c3c03ad.png
β β β βββ 6722ab0482aca.png
β β β βββ 6722ab723237e.png
β β β βββ 6722abb9cb8c5.png
β β β βββ 6722ac1d0b8c2.png
β β β βββ index.php
β β βββ index.php
β βββ index.php
β βββ login.php
β βββ robots.txt
βββ v-chatgpt-social-status-feeds.png
/
__root__
root
config.php - Configuration settings establish essential parameters for the ChatGPT API Status Generator, including API keys, endpoints, model preferences, and database connection details
- These settings facilitate seamless interaction with the OpenAI API, guiding the AI's responses and managing system behavior
- By defining operational limits and system prompts, it ensures the application functions effectively within its intended scope, enhancing user experience and performance.cron.php - Handles scheduled tasks for the ChatGPT API project, including resetting API usage, updating statuses, clearing the IP blacklist, and purging outdated images
- It ensures efficient management of user accounts by automating routine maintenance, thereby enhancing system performance and user experience
- This functionality is crucial for maintaining operational integrity and optimizing resource usage within the overall codebase architecture.db.php - Database connection and initialization are established through a class that manages interactions with the database
- It ensures the creation of essential tables for user management, account details, and logging activities
- Additionally, it handles installation checks and updates, facilitating smooth transitions between application versions while maintaining data integrity and security through password hashing and structured queries.app
forms
accounts-forms.php - Account management functionality is provided, enabling users to create, edit, and delete accounts within the ChatGPT API project
- It ensures data validation and security through CSRF token checks, while also managing associated status updates in the database
- Successful operations lead to user feedback and redirection, enhancing the overall user experience in managing their accounts effectively.home-forms.php - Handles user interactions for generating and deleting status updates within the ChatGPT API project
- It validates CSRF tokens to ensure secure requests, manages API call limits for users, and facilitates the deletion of associated images when a status is removed
- This functionality is crucial for maintaining user-generated content and ensuring a seamless experience in the applicationβs status management system.info-forms.php - Facilitates user password management within the ChatGPT API project by handling password change requests
- It ensures security through CSRF token validation and password strength checks, while also providing user feedback on errors
- Upon successful validation, it updates the user's password in the database, enhancing overall user account security and experience in the application.users-forms.php - User management functionality is facilitated through this component, enabling the creation, modification, and deletion of user accounts within the ChatGPT API project
- It ensures secure handling of user data, including password validation and CSRF protection, while also managing user roles and associated resources
- This integration plays a crucial role in maintaining the integrity and security of user interactions within the overall application architecture.helpers
accounts-helper.php - Account details generation facilitates the retrieval and display of user-specific information, including account limits and usage statistics, enhancing user experience within the ChatGPT API project
- It also supports the creation of dropdown options for scheduling tasks and managing user accounts, thereby streamlining account management and interaction
- This functionality is integral to the overall architecture, ensuring users can efficiently monitor and control their API usage.home-helper.php - Generates a set of interactive share buttons for status updates within the ChatGPT API project
- It facilitates users in sharing status text and associated images, while also providing options to copy text, download images, and delete statuses
- This functionality enhances user engagement and streamlines the management of status updates, contributing to a more dynamic and user-friendly experience in the application.users-helper.php - Generates a comprehensive user list for the ChatGPT API, displaying essential user data and providing interactive options for updating, deleting, and logging in as different users
- This functionality enhances user management within the application, facilitating administrative tasks and improving overall user experience by allowing seamless interaction with user accounts.pages
accounts.php - Facilitates the management of social media accounts by providing a user-friendly interface for adding and updating account information
- It allows users to input account details, select platforms, schedule posts, and include multimedia instructions
- Additionally, it displays existing account information and error messages, enhancing the overall user experience within the ChatGPT API project.home.php - Generates and displays the status of user accounts within the ChatGPT API project
- It retrieves account information and associated statuses, allowing users to view, generate, and share statuses seamlessly
- The interface supports account management by providing options to collapse or expand status details, enhancing user interaction while ensuring a streamlined experience in monitoring and sharing account activities.info.php - Facilitates user password management within the ChatGPT API project by providing a secure interface for changing passwords
- It ensures user authentication through session management and CSRF protection, enhancing overall security
- This component plays a crucial role in maintaining user account integrity and contributes to the project's focus on user experience and security.users.php - User management functionality is facilitated through a form that allows for the addition and updating of user details, including username, password, account limits, and expiration dates
- It integrates with the overall architecture by providing a user interface for managing API access, ensuring that administrators can efficiently handle user accounts while displaying current user data dynamically
- This enhances the project's capability to manage user interactions with the ChatGPT API effectively.lib
auth-lib.php - Authentication logic facilitates user login and logout processes within the ChatGPT API project
- It manages session states, verifies user credentials, and ensures security through session regeneration and CSRF token generation
- Additionally, it handles failed login attempts by monitoring IP addresses, enhancing overall security
- This component is essential for maintaining user access control and protecting sensitive information throughout the application.common-lib.php - Utility functions enhance the ChatGPT API by ensuring secure user input handling, managing session messages, and overseeing IP blacklist operations
- They facilitate user and account information retrieval, status update management, and API usage tracking
- Additionally, these functions support external API communication, contributing to the overall architecture's robustness and security, while enabling efficient interaction with user data and system resources.load-lib.php - Facilitates user access control and page loading within the ChatGPT API project
- It verifies user authentication and checks for blacklisted IP addresses, ensuring secure access
- By dynamically including relevant helper and forms files based on user permissions, it streamlines the management of user-specific content while maintaining session integrity and preventing unauthorized access to sensitive areas of the application.rss-lib.php - Generates an RSS feed for user status updates, allowing users to access and subscribe to updates from specific accounts or all accounts owned by a user
- By retrieving and organizing status information from the database, it constructs a well-formed RSS XML output, enhancing user engagement and providing a streamlined way to follow updates within the ChatGPT API project.status-lib.php - Generate and manage social media statuses through the ChatGPT API by retrieving account information, creating compelling content, and generating associated images
- This functionality enhances user engagement by automating status updates tailored to specific platforms, while also incorporating relevant hashtags
- The process includes error handling and retries for image generation, ensuring a seamless experience for users in managing their social media presence.public
.htaccess - Facilitates URL rewriting and caching for a web application, enhancing user experience and performance
- It serves a default image when specific PNG files are missing, redirects root and index requests to the home page, and internally rewrites certain paths to a central index file
- Additionally, it manages cache control for various file types, optimizing resource delivery and reducing server load.feeds.php - Generates an RSS feed for user accounts within the ChatGPT API project, facilitating content distribution and updates
- By validating and sanitizing input parameters, it ensures secure access to user-specific data
- This functionality enhances user engagement by allowing seamless integration of personalized content into various feed readers, thereby enriching the overall user experience within the application ecosystem.index.php - Serves as the main dashboard for the ChatGPT API Status Generator, acting as the entry point for the admin interface
- It facilitates user interaction by providing navigation tabs for various sections, including statuses, accounts, and user management, while dynamically loading content based on user roles
- Additionally, it incorporates session management and integrates essential scripts and styles for a cohesive user experience.login.php - Facilitates user authentication for the ChatGPT API project by providing a login interface for administrators
- It establishes a session, integrates necessary configurations and libraries, and presents a form for username and password input
- Additionally, it handles error messages, ensuring a smooth user experience while managing access to the administrative features of the application.robots.txt - Facilitates web crawling management by defining rules for search engine bots
- The robots.txt located in the public directory specifies a crawl delay, ensuring that bots access the site at a controlled pace
- This contributes to the overall architecture by optimizing server load and enhancing user experience, while also guiding search engines on how to interact with the site's content.images
index.php - Prevents direct access to the images directory by terminating script execution
- This mechanism enhances security within the project structure, ensuring that sensitive files are not exposed to unauthorized users
- By controlling access at this level, the overall integrity of the application is maintained, contributing to a robust architecture that prioritizes data protection and user privacy.admin
dasdasdas
index.php - Prevents direct access to the admin image directory by terminating execution when accessed
- This mechanism enhances security within the project structure, ensuring that sensitive files are protected from unauthorized viewing or manipulation
- By implementing this safeguard, the overall integrity of the application is maintained, contributing to a robust and secure codebase architecture.tesstfsdfsdf
index.php - Prevents unauthorized access to the directory by terminating script execution
- Positioned within the public images folder for admin, it serves as a security measure to safeguard sensitive content from being directly accessed or executed
- This contributes to the overall architecture by enhancing the project's security posture, ensuring that only intended functionalities are accessible to users.
Before getting started with the installation, ensure your runtime environment meets the following requirements:
- Web Server: Apache
- Programming Language: PHP 7.4+
- Database: MySQL
Install the project using the following steps:
-
Upload Files:
- Upload all the project files to your hosting server.
-
Set Webroot:
- Set the
public
folder as the webroot directory on your hosting server.
- Set the
-
Update Configuration:
- Open
root/config.php
and update the necessary variables, including MySQL database credentials.
- Open
-
Install Database:
- Load the application in your web browser. The application will automatically install the database.
-
Default Login:
- Use the default login credentials:
admin
for both username and password.
- Use the default login credentials:
-
Set Up Cron Jobs:
- Add the following cron jobs to automate tasks:
/usr/bin/php /PATH-TO-CRON.PHP/cron.php reset_usage 0 12 1 * * /usr/bin/php /PATH-TO-CRON.PHP/cron.php clear_list 0 12 * * * /usr/bin/php /PATH-TO-CRON.PHP/cron.php run_status 0 * * * * /usr/bin/php /PATH-TO-CRON.PHP/cron.php cleanup 0 12 * * *
- Replace
/PATH-TO-CRON.PHP/
with the actual path to yourcron.php
file.
- Add the following cron jobs to automate tasks:
Login as admin
with the password admin
. Follow these steps:
-
Create or Change Users:
- Navigate to the User tab.
- Add or update user details as needed.
-
Create Status Campaigns:
- Go to the Account tab.
- Click on Add/Update New Account.
- Fill in the following details:
- Account Name
- Platform
- Prompt
- Link
- Image Instructions
- Days
- Post Schedule
- Include Hashtags
- Click Add/Update.
Statuses are generated on schedule and added to the respective account feed and the user's collective omni feed. Use the feed with tools like IFTTT to update social media.
This project is protected under the MIT License License.