- 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
55 lines
2.7 KiB
PHP
55 lines
2.7 KiB
PHP
<?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';
|
|
|
|
include_once $class_language->setLanguageFile('frontend', 'language.global');
|
|
|
|
$error_message = null;
|
|
$notice_message = null;
|
|
|
|
switch ($_GET["do"]) {
|
|
case "contact": //footer contact form
|
|
include_once $class_language->setLanguageFile('frontend', 'language.notifications');
|
|
|
|
$email_check = new VValidation;
|
|
$name = $class_filter->clr_str($_POST["ft_name"]);
|
|
$email = $class_filter->clr_str($_POST["ft_email"]);
|
|
$msg = $class_filter->clr_str($_POST["ft_msg"]);
|
|
$ip = $class_filter->clr_str($_SERVER[REM_ADDR]);
|
|
|
|
$error_message = (!isset($name) or $name == $language["frontend.global.name"]) ? $language["notif.error.invalid.request"] : null;
|
|
$error_message = (!$email_check->checkEmailAddress($email) and $error_message == '') ? $language["notif.error.invalid.request"] : $error_message;
|
|
$error_message = (strlen($msg) < 10 or !isset($msg) or $msg == $language["frontend.global.message.text"]) ? $language["notif.error.invalid.request"] : $error_message;
|
|
|
|
if ($error_message == '') {
|
|
$notifier = new VNotify;
|
|
|
|
VNotify::queInit('contact', array($email), '');
|
|
|
|
$_SESSION["contact"] = $ip;
|
|
|
|
echo VGenerate::declareJS('$(document).ready(function(){$(".ft_button").replaceWith("' . $language["footer.contact.thank.note"] . '");});');
|
|
} else {
|
|
echo '<a href="javascript:;" class="ft_err" onclick="$(this).detach();">' . $error_message . '</a>';
|
|
}
|
|
break;
|
|
default: //display static pages
|
|
$class_smarty->displayPage('frontend', 'tpl_page', $error_message, $notice_message);
|
|
break;
|
|
}
|