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:
SamiAhmed7777
2025-10-21 00:39:45 -07:00
commit 0b7e2d0a5b
6080 changed files with 1332936 additions and 0 deletions

46
f_core/config.smarty.php Normal file
View File

@@ -0,0 +1,46 @@
<?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.
|*******************************************************************************************************************/
defined('_ISVALID') or header('Location: /error');
include_once $cfg["class_files_dir"] . '/class_smarty/Smarty.class.php';
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->debugging = false;
$smarty->template_dir = $cfg["templates_dir"];
$smarty->cache_dir = $cfg["smarty_cache_dir"];
$smarty->compile_dir = $cfg["smarty_cache_dir"];
//$smarty->allow_php_tag = false;
$smarty->assign('main_dir', $cfg["main_dir"]);
$smarty->assign('main_url', $cfg["main_url"]);
$smarty->assign('scripts_url', $cfg["scripts_url"]);
$smarty->assign('modules_url', $cfg["modules_url"]);
$smarty->assign('modules_url_be', $cfg["modules_url_be"]);
$smarty->assign('styles_url', $cfg["styles_url"]);
$smarty->assign('javascript_dir', $cfg["javascript_dir"]);
$smarty->assign('javascript_url', $cfg["javascript_url"]);
$smarty->assign('styles_url_be', $cfg["styles_url_be"]);
$smarty->assign('javascript_url_be', $cfg["javascript_url_be"]);
$smarty->assign('global_images_url', $cfg["global_images_url"]);
$smarty->assign('media_files_url', $cfg["media_files_url"]);
$smarty->assign('profile_images_url', $cfg["profile_images_url"]);
$smarty->assign('logging_dir', $cfg["logging_dir"]);
// Fixed: Use null coalescing to prevent undefined key warning
$smarty->assign('new_layout', $cfg["new_layout"] ?? '1');
$userAgent = $_SERVER['HTTP_USER_AGENT'] ?? '';
$smarty->assign('is_mobile', (strpos($userAgent, 'Mobile') ? true : (strpos($userAgent, 'iPad') ? true : (strpos($userAgent, 'iPhone') ? true : false))));