Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions stutter-web/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
Stutter - Aid
Stutter - Aid Web application

Web application
Web application version written in php CodeIgniter framework and MySQL database.



####Building the stutter-web application


* you need to setup localhost server like: XAMPP-appserv.

* be sure that it comes with latest version in php and mysql database.

* setup CodeIgniter framework.

* import web application project to your localserver.

* import "stutter-aid.sql" file to MySQL database.
2 changes: 1 addition & 1 deletion stutter-web/application/config/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/
$autoload['libraries'] = array('database','session');
$autoload['libraries'] = array('database','session','form_validation');

/*
| -------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions stutter-web/application/controllers/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function index()
}
else
{
$this->session->set_flashdata('logout', 'Logged out');
redirect('users/login');
}
}
Expand Down Expand Up @@ -72,6 +73,7 @@ public function delete($file_name)
{
if($this->session->userdata('user_id'))
{
$this->session->set_flashdata('delete', 'Audio Deleted');
if($this->session->userdata('user_type')==1)
{
$this->load->model('Upload');
Expand Down
2 changes: 1 addition & 1 deletion stutter-web/application/views/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="col-lg-8 col-lg-offset-2">
<footer style="text-align:center">
<p>
&copy; Sustainable Computing Research Group 2015
&copy; Sustainable Computing Research Group 2016
</p>
</footer>
</div>
Expand Down
4 changes: 4 additions & 0 deletions stutter-web/application/views/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<div class="col-lg-4 col-lg-offset-4" >
<form class="form-horizontal" method="post" action="<?php echo base_url('/users/login')?>">
<fieldset>
<?php echo validation_errors('<p class="alert alert-dismissable alert-danger">'); ?>
<?php if($this->session->flashdata('logout')) : ?>
<?php echo '<p class="alert alert-dismissable alert-success">' .$this->session->flashdata('logout') . '</p>'; ?>
<?php endif; ?>
<div class="form-group">
<label for="inputEmail" class="col-lg-2 control-label">Email</label>
<div class="col-lg-10">
Expand Down
4 changes: 4 additions & 0 deletions stutter-web/application/views/welcome_page.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<div class="container">
<div class="page-header">
<?php echo validation_errors('<p class="alert alert-dismissable alert-danger">'); ?>
<?php if($this->session->flashdata('delete')) : ?>
<?php echo '<p class="alert alert-dismissable alert-success">' .$this->session->flashdata('delete') . '</p>'; ?>
<?php endif; ?>
<h1 id="navbar">Stutter Aid</h1>
</div>
<div class="panel panel-primary">
Expand Down