smrqdt / om16

#om16 Website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#tapeshop

A lightweight shop system. This is in early development and I would not recommend using it in production right know, since it is not tested and has some known security issues.

##Install To install Tapeshop from the source you need composer.

  1. Download or checkout the sources of Tapeshop

  2. Install composer dependencies and generate autoloader
    composer.phar install
    or run make to generate a clean build

  3. Configure mod rewrite in your .htaccess file. If you get a Error 403 you might need to add Options +FollowSymlinksin the first line.

     RewriteEngine On
     RewriteBase /path/to/tapeshop/
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^ index.php [QSA,L]
    
  4. Change config.php to fit your database credentials and enter the email addresses for user notification and for support inquiries.

     <?php
     /*
      * Database Details
      */
     define( "DB_HOSTNAME", "localhost" );
     define( "DB_USERNAME", "root" );
     define( "DB_PASSWORD", "" );
     define( "DB_NAME", "tapeshop" );
     define( "DB_PROVIDER", "mysql" );
    
     /*
      * Template to use
      */
     define('VIEW', 'basic'); // basic
     
     /*
      * Email
      */
     define( "SHOPADRESS", "shop@example.com");
     define ("SUPPORTADRESS", "support@example.com");
     
     /*
      * FPDF
      */
     define('FPDF_FONTPATH','assets/fonts/');
     
     /*
      * Example Image when no Article Image was passed.
      */
     define('ITEM_PLACEHOLDER','assets/img/placeholder.jpg');
    
     /*
      * Order number prefix
      */
     define('ORDER_PREFIX', 'TS-');
    
     /*
      * Sofortüberweisung config key
      */
    
     define('SOFORT_CONFIG', ''); //your configkey or userid:projektid:apikey
     define('SOFORT_REASON', 'Tapeshop order');
    
     /*
      * Paypal settings
      */
     define('PAYPAL_EMAIL', ''); // your paypal email.
    
  5. Create the directorys upload and templates_c in the Tapeshop directory and grant read, write, and execute permissions.

  6. Run the tapeshop.sqlagainst your databse to load the DB structure.

  7. Point your browser to http://your.domain.tld/path/to/tapeshop/singup and fill out the form to create a user.

  8. Use the database management tool of yout choice and find the users table. It should contain only the user you just created. Update the record and set the admin flag to trueor 1.

About

#om16 Website

License:MIT License


Languages

Language:HTML 37.2%Language:PHP 30.6%Language:Smarty 23.4%Language:JavaScript 4.3%Language:CSS 4.3%Language:Makefile 0.2%