diff --git a/analytics.php b/analytics.php new file mode 100644 index 0000000..75cab6e --- /dev/null +++ b/analytics.php @@ -0,0 +1,146 @@ + + + + + + Analytics + + + + + + + + +
+

Analytics

+
+

Coming Soon!

+

This feature is under development. Check back later for updates.

+
+
+ + \ No newline at end of file diff --git a/dashboard.php b/dashboard.php new file mode 100644 index 0000000..03438c2 --- /dev/null +++ b/dashboard.php @@ -0,0 +1,287 @@ + + + + + + + Dashboard - Digital Marketing Suite + + + + + + + + +
+
+

Dashboard

+
Welcome, !
+
+ +
+
+
🎨
+
+
+
Designs Created
+
+
+
+
🖼️
+
+
+
Images Uploaded
+
+
+
+
🎬
+
+
+
Videos Uploaded
+
+
+
+ +
+
+

AI Post Generator

+

Create engaging social media posts from text descriptions.

+ Generate Post +
+
+

Image Library

+

Upload and manage your image assets for your marketing campaigns.

+ View Images +
+
+

Video Library

+

Upload and manage your video assets for your marketing campaigns.

+ View Videos +
+
+

AI Website Builder

+

Generate a professional website for your business in just a few clicks.

+ Build Your Site +
+
+ +
+ + diff --git a/data/users.json b/data/users.json new file mode 100644 index 0000000..b790410 --- /dev/null +++ b/data/users.json @@ -0,0 +1,7 @@ +[ + { + "business_name": "Qwerty LLP", + "email": "qwerty@gmail.com", + "password": "$2y$10$0qE1vtMnakmsBJu8lhFXruB1\/I4t.1Ezr0KsIGHSnaXPUV47p5b3i" + } +] \ No newline at end of file diff --git a/healthz.php b/healthz.php new file mode 100644 index 0000000..a4d7cb3 --- /dev/null +++ b/healthz.php @@ -0,0 +1,4 @@ + + + + + + + Image Library - Digital Marketing Suite + + + + + + + + +
+

Image Library

+ + +
+ + +
+ + +
+
+
+ + +
+ +
+
+ + +
+ + diff --git a/index.php b/index.php index f7ae6b8..592f292 100644 --- a/index.php +++ b/index.php @@ -3,101 +3,184 @@ declare(strict_types=1); @ini_set('display_errors', '1'); @error_reporting(E_ALL); @date_default_timezone_set('UTC'); - -$phpVersion = PHP_VERSION; -$now = date('Y-m-d H:i:s'); ?> - New Style + MarketingSuite - AI-Powered Digital Marketing + - + -
-
-

Welcome!

-

Your project is ready to conquer the peaks.

-

PHP version:

+ + + +
+
+

Supercharge Your Marketing with AI

+

The all-in-one platform to generate content, build websites, and drive growth.

+ Sign Up for Free +
+
+ +
+
+

Everything You Need to Succeed

+
+
+
+ + + + + +
+

AI Post Generator

+

Effortlessly create engaging social media content and overcome writer's block.

+
+
+
+ + + + +
+

AI Website Builder

+

Instantly build a professional, mobile-friendly website for your business.

+
+
+
+ + + +
+

Analytics & Insights

+

Track your growth and make data-driven decisions with a powerful analytics dashboard.

+
+
+
+
+ +
+
+

Loved by Businesses Worldwide

+
+
+
+
+

"This platform has been a game-changer for our marketing efforts. We're saving hours every week and our engagement has skyrocketed."

+
+ +
+
+
+
+
+ +
- + + \ No newline at end of file diff --git a/login.php b/login.php new file mode 100644 index 0000000..0db440a --- /dev/null +++ b/login.php @@ -0,0 +1,191 @@ + $found_user['email'], + 'business_name' => $found_user['business_name'] + ]; + header('Location: dashboard.php'); + exit; + } else { + $errors[] = 'Invalid email or password.'; + } + } +} +?> + + + + + + Login - Digital Marketing Suite + + + + + + +
+
+

Login

+ +
+

+
+ + +
+ +

+ +
+ +
+
+ + +
+
+ + +
+ +
+ +
+
+ + diff --git a/post-generator.php b/post-generator.php new file mode 100644 index 0000000..08fceb1 --- /dev/null +++ b/post-generator.php @@ -0,0 +1,286 @@ +View Image Library"; + + } catch (Exception $e) { + $error = "Error generating image: " . $e->getMessage(); + } +} + +?> + + + + + + Post Generator - Digital Marketing Suite + + + + + + + + +
+

AI Post Generator

+ + +
+ + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + \ No newline at end of file diff --git a/register.php b/register.php new file mode 100644 index 0000000..45cd47d --- /dev/null +++ b/register.php @@ -0,0 +1,191 @@ + $business_name, + 'email' => $email, + 'password' => password_hash($password, PASSWORD_DEFAULT), + ]; + file_put_contents($users_file, json_encode($users, JSON_PRETTY_PRINT)); + + $_SESSION['success_message'] = 'Registration successful! You can now log in.'; + header('Location: login.php'); + exit; + } + } +} +?> + + + + + + Sign Up - Digital Marketing Suite + + + + + + +
+
+

Create Account

+ +
+ +

+ +
+ +
+
+ + +
+
+ + +
+
+ + +
+ +
+ +
+
+ + diff --git a/settings.php b/settings.php new file mode 100644 index 0000000..78b9548 --- /dev/null +++ b/settings.php @@ -0,0 +1,146 @@ + + + + + + Settings + + + + + + + + +
+

Settings

+
+

Coming Soon!

+

This feature is under development. Check back later for updates.

+
+
+ + \ No newline at end of file diff --git a/templates/website/classic.html b/templates/website/classic.html new file mode 100644 index 0000000..384a89e --- /dev/null +++ b/templates/website/classic.html @@ -0,0 +1,25 @@ + + + + + + {{BUSINESS_NAME}} + + + +
+

{{BUSINESS_NAME}}

+

{{TAGLINE}}

+
+
+

Welcome to our website!

+

This is a classic website generated for your business.

+
+ + \ No newline at end of file diff --git a/templates/website/modern.html b/templates/website/modern.html new file mode 100644 index 0000000..c206a5b --- /dev/null +++ b/templates/website/modern.html @@ -0,0 +1,25 @@ + + + + + + {{BUSINESS_NAME}} + + + +
+

{{BUSINESS_NAME}}

+

{{TAGLINE}}

+
+
+

Welcome to our website!

+

This is a simple, modern website generated for your business.

+
+ + \ No newline at end of file diff --git a/templates/website/vibrant.html b/templates/website/vibrant.html new file mode 100644 index 0000000..38ee32d --- /dev/null +++ b/templates/website/vibrant.html @@ -0,0 +1,25 @@ + + + + + + {{BUSINESS_NAME}} + + + +
+

{{BUSINESS_NAME}}

+

{{TAGLINE}}

+
+
+

Welcome to our website!

+

This is a vibrant website generated for your business.

+
+ + \ No newline at end of file diff --git a/video-generator.php b/video-generator.php new file mode 100644 index 0000000..355c9c0 --- /dev/null +++ b/video-generator.php @@ -0,0 +1,284 @@ + 0) { + $filename = preg_replace('/[^a-zA-Z0-9_\-]/ ', '_', strtolower($title)) . '_' . time() . '.mp4'; + $outputPath = $userVideosDir . '/' . $filename; + + // Create a text file for ffmpeg input + $list_file_path = '/tmp/ffmpeg_list_' . uniqid() . '.txt'; + $list_content = ""; + foreach ($uploaded_files as $file) { + $list_content .= "file '" . $file . "'\n"; + $list_content .= "duration 3\n"; // Each image shows for 3 seconds + } + file_put_contents($list_file_path, $list_content); + + // FFmpeg command + $cmd = "$ffmpeg_path -f concat -safe 0 -i $list_file_path -c:v libx264 -r 30 -pix_fmt yuv420p $outputPath 2>&1"; + + $output = shell_exec($cmd); + + if (file_exists($outputPath)) { + $success = "Video generated successfully! View Video Library"; + } else { + $error = "Error generating video. Please check server logs. FFmpeg output:
$output
"; + } + + // Clean up temporary files + unlink($list_file_path); + foreach ($uploaded_files as $file) { + unlink($file); + } + } else { + $error = "Please upload at least one image to generate a video."; + } +} + +?> + + + + + + Video Generator - Digital Marketing Suite + + + + + + + + +
+

AI Video Generator

+ + +
+ + +
+ + +
+
+ + +
+
+ + +
+ +
+
+ + \ No newline at end of file diff --git a/video-library.php b/video-library.php new file mode 100644 index 0000000..4380e10 --- /dev/null +++ b/video-library.php @@ -0,0 +1,266 @@ + + + + + + + Video Library - Digital Marketing Suite + + + + + + + + +
+

Video Library

+ + +
+ + +
+ + +
+
+
+ + +
+ +
+
+ + +
+ + diff --git a/view-website.php b/view-website.php new file mode 100644 index 0000000..e9a57b5 --- /dev/null +++ b/view-website.php @@ -0,0 +1,14 @@ +View Website"; + } + } + } + } + } +} + +?> + + + + + + Website Builder - Digital Marketing Suite + + + + + + + + +
+

AI Website Builder

+ + +
+ + +
+ + +
+
+ +
+
+
+
Modern
+
+
+
+
Classic
+
+
+
+
Vibrant
+
+
+ +
+ +
+ + +
+ +
+ + +
+ + +
+
+ + + + \ No newline at end of file