feat: Add comprehensive documentation suite and reorganize project structure
- Created complete documentation in docs/ directory - Added PROJECT_OVERVIEW.md with feature highlights and getting started guide - Added ARCHITECTURE.md with system design and technical details - Added SECURITY.md with comprehensive security implementation guide - Added DEVELOPMENT.md with development workflows and best practices - Added DEPLOYMENT.md with production deployment instructions - Added API.md with complete REST API documentation - Added CONTRIBUTING.md with contribution guidelines - Added CHANGELOG.md with version history and migration notes - Reorganized all documentation files into docs/ directory for better organization - Updated README.md with proper documentation links and quick navigation - Enhanced project structure with professional documentation standards
This commit is contained in:
43
f_modules/m_frontend/m_live/status.php
Normal file
43
f_modules/m_frontend/m_live/status.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/*******************************************************************************************************************
|
||||
| Software Name : EasyStream
|
||||
| Software Description : High End YouTube Clone Script with Videos, Shorts, Streams, Images, Audio, Documents, Blogs
|
||||
| Software Author : (c) Sami Ahmed
|
||||
|*******************************************************************************************************************
|
||||
|
|
||||
|*******************************************************************************************************************
|
||||
| This source file is subject to the EasyStream Proprietary License Agreement.
|
||||
|
|
||||
| By using this software, you acknowledge having read this Agreement and agree to be bound thereby.
|
||||
|*******************************************************************************************************************
|
||||
| Copyright (c) 2025 Sami Ahmed. All rights reserved.
|
||||
|*******************************************************************************************************************/
|
||||
define('_ISVALID', true);
|
||||
|
||||
include_once 'f_core/config.core.php';
|
||||
|
||||
$host = array('127.0.0.1');
|
||||
|
||||
if ($cfg["live_module"] == 0 or !in_array($_SERVER[REM_ADDR], $host)) {
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
$data = ['ls' => 0];
|
||||
|
||||
if (isset($_POST['a']) and isset($_GET['l'])) {
|
||||
$get_file_key = $class_filter->clr_str($_GET['l']);
|
||||
$post_file_key= secured_decrypt($class_filter->clr_str($_POST['a']));
|
||||
|
||||
if ($post_file_key and $post_file_key == $get_file_key) {
|
||||
$rs = $db->execute(sprintf("SELECT `stream_live` FROM `db_livefiles` WHERE `file_key`='%s' LIMIT 1;", $post_file_key));
|
||||
|
||||
if ($rs->fields["stream_live"] == 1) {
|
||||
$data = ['ls' => 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$json = json_encode($data);
|
||||
|
||||
echo $json; return $json;
|
||||
Reference in New Issue
Block a user