-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ali Mokhtari
committed
Sep 8, 2019
1 parent
bab567e
commit 59b4761
Showing
119 changed files
with
1,659 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
<h1>Dashboard</h1> | ||
<br> | ||
<style> | ||
@media (min-width: 34em) { | ||
.card-columns { | ||
-webkit-column-count: 3; | ||
-moz-column-count: 3; | ||
column-count: 3; | ||
} | ||
} | ||
</style> | ||
<div class="container-fluid"> | ||
<h1 class="float-left">Dashboard</h1> | ||
<br> | ||
</div> | ||
<div class="card p-3" style="width: 100%;"> | ||
<?php | ||
$web_dir = "website"; | ||
if(is_dir($web_dir)) | ||
{ | ||
echo ("<p><strong>Welcome to Ara....</strong></p>"); | ||
} | ||
else | ||
{ | ||
echo ("lets create your first website <br> Loading...."); | ||
include 'AraNewDirectory.php'; | ||
function newFolder(){ | ||
mkdir("website"); | ||
echo "done"; | ||
} | ||
newFolder(); | ||
mkdir("media"); | ||
} | ||
?> | ||
</div> | ||
<?php | ||
$web_dir = "website"; | ||
if(is_dir($web_dir)) | ||
{ | ||
echo ("<p><strong></strong></p>"); | ||
echo ("<p></p>"); | ||
echo '<blockquote class="blockquote"><p class="mb-0">Welcome to Ara....</p><footer class="blockquote-footer">Lets get ready</footer></blockquote>'; } | ||
else | ||
{ | ||
echo ("lets create your first website <br> Loading...."); | ||
include 'AraNewDirectory.php'; | ||
function newFolder(){ | ||
mkdir("website"); | ||
echo "done"; | ||
} | ||
newFolder(); | ||
mkdir("media"); | ||
} | ||
?> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
<h1>New</h1> | ||
<br> | ||
<div class="card p-3" style="width: 100%"> | ||
<?php | ||
include('extention/extention-dir/editor/tinyMCE/tinyMCE.php'); | ||
if(isset($_POST['submitme'])){ | ||
include('../config/db_connect.php'); | ||
$title = mysqli_real_escape_string($conn, $_POST['new-post-title']); | ||
$author = mysqli_real_escape_string($conn, $_POST['new-post-author']); | ||
$content = mysqli_real_escape_string($conn, $_POST['new-post-content']); | ||
$sql = "INSERT INTO posts(title,author,content) VALUES ('$title', '$author', '$content')"; | ||
//save to db and check | ||
if(mysqli_query($conn, $sql)){ | ||
//success | ||
header('location: ../index.php');//redirect to the index page | ||
}else{ | ||
//error | ||
echo 'query error: ' . mysqli_error($conn); | ||
} | ||
} | ||
?> | ||
<div class="row"> | ||
<div class="container-fluid"> | ||
<h1 class="float-left">New</h1> | ||
<br> | ||
</div> | ||
<div class="card p-3 col-md-9" style="width: 100%"> | ||
<?php | ||
include('extention/extention-dir/editor/tinyMCE/tinyMCE.php'); | ||
if(isset($_POST['submitme'])){ | ||
include('../config/db_connect.php'); | ||
$title = mysqli_real_escape_string($conn, $_POST['new-post-title']); | ||
$author = mysqli_real_escape_string($conn, $_POST['new-post-author']); | ||
$content = mysqli_real_escape_string($conn, $_POST['new-post-content']); | ||
$sql = "INSERT INTO posts(title,author,content) VALUES ('$title', '$author', '$content')"; | ||
//save to db and check | ||
if(mysqli_query($conn, $sql)){ | ||
//success | ||
header('location: ../index.php');//redirect to the index page | ||
}else{ | ||
//error | ||
echo 'query error: ' . mysqli_error($conn); | ||
} | ||
} | ||
?> | ||
</div> | ||
<div class="col-md-3"> | ||
<div class="card p-3 col-md-10" style="width: 100%"> | ||
featured image: | ||
<input type="text"><input type="submit" value="ok"> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<h1>Settings</h1> | ||
<br> | ||
<div class="container-fluid"> | ||
<h1 class="float-left">Settings</h1> | ||
<br> | ||
</div> | ||
<div class="card p-3" style="width: 100%;"> | ||
<h3>Themes</h3> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="container-fluid"> | ||
<h1 class="float-left">Sheets</h1> | ||
<br> | ||
</div> | ||
<div class="card p-3" style="width: 100%"> | ||
<?php | ||
include('extention/extention-dir/editor/tinyMCE/tinyMCE.php'); | ||
if(isset($_POST['submitme'])){ | ||
$myfile = fopen("sheet.txt", "w") or die("Unable to open file!"); | ||
$txt = $_POST['submitme']; | ||
fwrite($myfile, $txt); | ||
fclose($myfile); | ||
} | ||
?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,3 @@ | ||
<?php | ||
require_once 'config/db.php'; | ||
if(isset($_SESSION['loggedin'])){ | ||
header('location: dashboard_admin.php'); | ||
} | ||
?> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>login</title> | ||
<link rel="stylesheet" href="signin.css"> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" | ||
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | ||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" | ||
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"> | ||
</script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" | ||
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"> | ||
</script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" | ||
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"> | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<form class="form-signin" action="do-login.php" method="post"> | ||
<img class="mb-4" src="ara.svg" alt="" width="72" height="72"> | ||
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1> | ||
<label for="inputEmail" class="sr-only">Email address</label> | ||
<input type="email" name="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus> | ||
<label for="inputPassword" class="sr-only">Password</label> | ||
<input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required> | ||
<button class="btn btn-lg btn-primary btn-block" type="submit" name="do-login">Sign in</button> | ||
</form> | ||
</body> | ||
|
||
</html> | ||
header("location: website"); | ||
?> |
Oops, something went wrong.