# 投票系统 **Repository Path**: gmsh917/voting-system ## Basic Information - **Project Name**: 投票系统 - **Description**: 建议投票系统,基于PHP+mysql,前后端分离。可通过二维码分享投票地址。支持创建图片和纯文本投票,后台能导出投票结果到word或pdf. - **Primary Language**: PHP - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-01 - **Last Updated**: 2026-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Voting System An online voting management system based on PHP, supporting image uploads, vote statistics, and PDF export features. ## Features - **Vote Management**: Create and manage voting projects - **Image Support**: Upload candidate photos with automatic compression - **Result Export**: Export voting results in PDF format - **Admin Privileges**: Built-in admin authentication - **Logging**: System operation log recording ## Technology Stack - PHP - Database (requires configuration) - PDF export library - Image processing (GD library) ## File Structure - `index.php` - System entry page - `vote.php` - Core voting functionality - `config.php` - Configuration file and utility functions - `export_pdf.php` - PDF export functionality - `package.json` - Frontend dependency configuration ## Installation & Configuration 1. Ensure the server environment supports PHP 2. Configure database connection 3. Set write permissions for the upload directory 4. Modify configuration parameters in `config.php` ## Usage Instructions 1. Access `index.php` to enter the system 2. Admins can log in to manage voting projects 3. Users can participate in voting 4. Admins can export voting results as PDF files ## Notes - Ensure the upload directory has write permissions - Image uploads are limited to a maximum size of 2MB by default - It is recommended to use HTTPS for security