Skip to content

Commit

Permalink
ver 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
petazeta committed Aug 12, 2021
0 parents commit 1a4a0ba
Show file tree
Hide file tree
Showing 137 changed files with 12,994 additions and 0 deletions.
20 changes: 20 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
License for Your Online Shop

Copyright 2015-2021 by Alberto Melchor <[email protected]>

All Rights Reserved

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation.

NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
OR PERFORMANCE OF THIS SOFTWARE.
7 changes: 7 additions & 0 deletions PRIVACY.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This software sends periodically data of its use to a central
data system. Your online shop creators can get adventage of
this information and improve the development process.
This data also contains the http address of the site where
the software has been installed. Software creators could also
use this information to contact software users so they can
also recieve personal assistance in case they wish so.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

![Your Online Shop](images/logotype.svg "Your Online Shop")

----------------------------------------------------------------------

# Your Online Shop System V 3.3.1

## Live Demo

Shop with sample products -> [Your Online Shop Demo Shop](https://youronlineshop.net/sample/)

Admin -> (usr/password) webadmin/webadmin, productsadmin/productsadmin


## About

This is a dynamic web app (Single Page Application) for e-commerce. Backend is written in PHP. It uses Mysql database system.


## Installation

If you prefer we offer FREE YOUR ONLINE SHOP installation and hosting service: ask at our email.

1. Upload the compressed file to your web server.
2. Unpack it to the desired folder (All files are inside "yos" folder).
3. Create a new mysql database.
4. Edit database settings at: backend/includes/config.php.
5. Run the app at the web browser and continue with the installation process.


## Support

Please write: [email protected]


## Getting started

Once Your Online Shop is installed you can open your browser at the corresponding url address. Lets log-in with some of the admin users to make changes: user **webadmin** for web content and **productsadmin** for catalog content. Other operations can be done by user **systemadmin**, and to check customer orders log-in with **ordersadmin**.

Once editing some content press Intro or click outside of the editable area to save changes.

To edit some features from the checkout process you should log in with systemadmin user and make an order as if you were a customer. Once you get to the checkout step you should be able to edit checkout options.

Some other configuration can be done by editing file javascript/config.js.


## Troubleshooting


If the database connection is not working you may need to check settings at backend/includes/config.php. Also you may need to import the database content directly from the file backend/utils/database.php.

If the products images can not be uploaded you may need to allow write permisions at folders catalog/images/big and catalog/images/small.

If it doesn't admin to make changes you can try to copy backend/utils/htaccess file to the folder backend and rename it to ".htaccess".


## Themes


Y.O.S. system has a themes feature. You can select themes and styles at the **config.js** file. Themes files are inside folder themes/[theme path]/components.
77 changes: 77 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
***************
* YOS Version *
***************

3.3.1 13/08/2021


***********
* Support *
***********

Please write: [email protected]


*********
* About *
*********

This is a dynamic web app (Single Page Application) for e-commerce. Backend is written in PHP. It uses Mysql database system.


****************
* Installation *
****************

If you prefer we offer FREE YOUR ONLINE SHOP installation and hosting service: ask at our email.

1 - Upload the compressed file to your web server.
2 - Unpack it to the desired folder (All files are inside "yos" folder).
3 - Create a new mysql database.
4 - Edit database settings at: backend/includes/config.php.
5 - Run the app at the web browser and continue with the installation process.


***********
* Support *
***********

[email protected]


*******************
* Getting started *
*******************

Once Your Online Shop is installed you can open your browser at the corresponding url address. Lets log-in with some of the admin users to make changes: user webadmin for web content and productsadmin for catalog content. Other operations can be done by user systemadmin, and to check customer orders log-in with ordersadmin.

Once editing some content press Intro or click outside of the editable area to save changes.

To edit some features from the checkout process you should log in with systemadmin user and make an order as if you were a customer. Once you get to the checkout step you should be able to edit checkout options.

Some other configuration can be done by editing file javascript/config.js.


*******************
* Troubleshooting *
*******************

If the database connection is not working you may need to check settings at backend/includes/config.php. Also you may need to import the database content directly from the file backend/utils/database.php.

If the products images can not be uploaded you may need to allow write permisions at folders catalog/images/big and catalog/images/small.

If it doesn't allow admin to make changes you can try to copy backend/utils/htaccess file to the folder backend and rename it to ".htaccess".


**********
* Themes *
**********

Y.O.S. system has a themes feature. You can select themes and styles at the config.js file. Themes files are inside folder themes/[theme path]/components.


********
* More *
********

Find us at http://www.youronlineshop.net/ for more information.
7 changes: 7 additions & 0 deletions backend/includes/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
//DataBase
define('DB_DATABASENAME', 'dbname');
define('DB_USERNAME', 'uname');
define('DB_USERPWD', 'pwd');
define('DB_HOST', 'localhost');
?>
11 changes: 11 additions & 0 deletions backend/includes/database_tables.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/*
Table Names to constants.
*/

$databaseTableNames=Node::db_gettables();

for ($i=0; $i<count($databaseTableNames); $i++) {
define('TABLE_' . strtoupper($databaseTableNames[$i]), $databaseTableNames[$i]);
}
?>
9 changes: 9 additions & 0 deletions backend/includes/default.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/*
Constants that have a default value
*/

if (!defined('DB_HOST')) define('DB_HOST', 'localhost');
if (!defined('DB_SQLFILE')) define('DB_SQLFILE', 'utils/database.sql');

?>
30 changes: 30 additions & 0 deletions backend/includes/filemanager.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
class FileManager{
function __construct() {
$this->basePath="../catalog/images/";
$this->smallPath=$this->basePath . "small" . "/";
$this->bigPath=$this->basePath . "big" . "/";
$this->maxSize=2000000;
}
function uploadfile($myfile, $destFolder){
$target_file = $destFolder . basename($myfile["name"]);
$uploadOk = 1;
$imageFileType = pathinfo($target_file, PATHINFO_EXTENSION);

// Check if image file is a actual image
if (getimagesize($myfile["tmp_name"]) === false) {
return "File is not an image.";
}

// Check file size
if ($myfile["size"] > $this->maxSize) {
return "Sorry, your file is too large. " . $myfile["size"];
}

if (!move_uploaded_file($myfile["tmp_name"], $target_file)) {
return "Sorry, there was an error uploading your file.";
}
return true;
}
}
?>
Loading

0 comments on commit 1a4a0ba

Please sign in to comment.