Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
pepiuox committed Aug 17, 2023
1 parent 2404e19 commit 66b5277
Show file tree
Hide file tree
Showing 74 changed files with 5,301 additions and 5,042 deletions.
1 change: 0 additions & 1 deletion admin/Autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ static public function loader($classes) {
}
return FALSE;
}

}

spl_Autoload_register('Autoload::loader');
Expand Down
102 changes: 50 additions & 52 deletions admin/adduser.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="container-fluid">
<div class="row">
<?php
$form = new Form();
$newuser = new newUser();
if (isset($_SESSION['regsuccess'])) {
<?php
$form = new Form();
$newuser = new newUser();
if (isset($_SESSION['regsuccess'])) {
/* Registration was successful */
if ($_SESSION['regsuccess']) {
echo "<h1>Registered!</h1>";
Expand All @@ -19,7 +19,6 @@
echo "<p>We're sorry, but an error has occurred and your registration for the username <b>" . $_SESSION['username'] . "</b>, "
. "could not be completed.<br />Please try again at a later time.</p>";
}

}
/**
* The user has not filled out the registration form yet.
Expand All @@ -34,56 +33,55 @@
if ($form->num_errors > 0) {
echo "<td><font size=\"2\" color=\"#ff0000\">" . $form->num_errors . " error(es) econtrados</font></td>";
}

?>
<div class="card">
<div class="card-body register-card-body">
<p class="login-box-msg">Add a new user</p>
<form method="post" class="form-inline d-flex justify-content-center">
<div class="input-group mb-3">
<input type="text" name="username" id="username" class="form-control" placeholder="Username" value="<?php echo $form->value("username"); ?>"><?php echo $form->error("username"); ?>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-user"></span>
?>
<div class="card">
<div class="card-body register-card-body">
<p class="login-box-msg">Add a new user</p>
<form method="post" class="form-inline d-flex justify-content-center">
<div class="input-group mb-3">
<input type="text" name="username" id="username" class="form-control" placeholder="Username" value="<?php echo $form->value("username"); ?>"><?php echo $form->error("username"); ?>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-user"></span>
</div>
</div>
</div>
<div class="input-group mb-3">
<input type="email" name="email" id="email" class="form-control" placeholder="Email" value="<?php echo $form->value("email"); ?>"><?php echo $form->error("email"); ?>>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-envelope"></span>
</div>
</div>
</div>
</div>
</div>
<div class="input-group mb-3">
<input type="email" name="email" id="email" class="form-control" placeholder="Email" value="<?php echo $form->value("email"); ?>"><?php echo $form->error("email"); ?>>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-envelope"></span>
<div class="input-group mb-3">
<input type="password" name="password" id="password" class="form-control" placeholder="Password" value="<?php echo $form->value("password"); ?>"><?php echo $form->error("password"); ?>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
</div>
</div>
</div>
</div>
</div>
<div class="input-group mb-3">
<input type="password" name="password" id="password" class="form-control" placeholder="Password" value="<?php echo $form->value("password"); ?>"><?php echo $form->error("password"); ?>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
<div class="input-group mb-3">
<input type="password" name="password2" id="password2" class="form-control" placeholder="Retype password" value="<?php echo $form->value("password2"); ?>"><?php echo $form->error("password2"); ?>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
</div>
</div>
</div>
</div>
</div>
<div class="input-group mb-3">
<input type="password" name="password2" id="password2" class="form-control" placeholder="Retype password" value="<?php echo $form->value("password2"); ?>"><?php echo $form->error("password2"); ?>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
<div class="row">
<!-- /.col -->
<div class="mb-3">
<button type="submit" name="register" class="btn btn-primary btn-block">Register</button>
</div>
<!-- /.col -->
</div>
</div>
</div>
<div class="row">
<!-- /.col -->
<div class="mb-3">
<button type="submit" name="register" class="btn btn-primary btn-block">Register</button>
</div>
<!-- /.col -->
</div>
</form>
</div>
</form>
</div>
</div>
<?php
}
?>
</div>
<?php
}
?>
</div>
</div>
16 changes: 8 additions & 8 deletions admin/builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ function Get_ImagesToFolder($targetDir) {
<script src="../assets/plugins/grapesjs/js/grapesjs-script-editor.min.js"></script>
<script src="../assets/plugins/grapesjs/js/grapesjs-project-manager.min.js"></script>
<script src="../assets/plugins/grapesjs/js/grapesjs-component-code-editor.min.js"></script>


<script src="../assets/plugins/ckeditor/ckeditor.js"></script>
<script>
jQuery.htmlPrefilter = function (html) {
Expand Down Expand Up @@ -624,13 +624,13 @@ className: 'icons-flex icon-al-center'
'grapesjs-plugin-export': {
addExportBtn: true
},
'grapesjs-custom-code':{},
'grapesjs-component-code-editor':{},
'grapesjs-custom-code': {},
'grapesjs-component-code-editor': {},
'grapesjs-plugin-forms': {
blocks:['form', 'input', 'textarea', 'select', 'button', 'label', 'checkbox', 'radio'],
category:'Forms'
blocks: ['form', 'input', 'textarea', 'select', 'button', 'label', 'checkbox', 'radio'],
category: 'Forms'
},

'grapesjs-bootstrap-elements': {
blocks: {},
blockCategories: {},
Expand Down Expand Up @@ -764,7 +764,7 @@ className: 'icons-flex icon-al-center'
})
});

// Add info command
// Add info command

var panelViews = pn.addPanel({
id: "views"
Expand Down
2 changes: 1 addition & 1 deletion admin/components/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<div class="col-xl-5 col-lg-6 col-md-8 col-sm-11">
<div class="single-features-one-items text-center">
<div class="features-image">
<img src="<?php echo SITE_PATH; ?>assets/images/about/about-02/remote-team.svg" alt="image" />
<img src="<?php echo SITE_PATH; ?>assets/images/about/about-02/remote-team.svg" alt="image" />
</div>
<div class="features-content">
<h3 class="features-title">Dedicated Team</h3>
Expand Down
Loading

0 comments on commit 66b5277

Please sign in to comment.