GithubHelp home page GithubHelp logo

matiasbanega / surveytool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mchiu83/surveytool

0.0 0.0 0.0 4.25 MB

License: GNU General Public License v3.0

JavaScript 19.66% PHP 4.47% CSS 6.38% HTML 47.42% Less 8.08% SCSS 13.99%

surveytool's Introduction

surveytool

Requirements:

  1. Apache (tested)
  2. PHP
  3. MySQL

Installation steps:

  1. chmod /site_photo directory for 755 for directory and 655 for files

  2. modify config.php

    $protocol = "https://";
    $rootpath = "domain name";

    $mysql_server = "<host_address>";
    $mysql_username = "";
    $mysql_password = "<mysql_password>";
    $mysql_db = "<table_name>";

  3. modify authenticate.php

    $DATABASE_HOST = "<host_address>";
    $DATABASE_USER = "<mysql_account>";
    $DATABASE_PASS = "<mysql_password>";
    $DATABASE_NAME = "<table_name>";

  4. Add .htaccess to root directory for URLRewrite

    AddType application/x-httpd-php .html .htm
    RewriteEngine On
    RewriteRule ^site/([^/])/([^/])$ /site.html?id=$1&sort=$2 [L]
    RewriteRule ^phone/([^/])/([^/])$ /phone.html?site=$1&phone=$2 [L]
    RewriteRule ^add/([^/])$ /addcustom.html?id=$1 [L]
    RewriteRule ^report/([^/]
    )/([^/])$ /report.php?id=$1&type=$2 [L]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.
    )$ https://fqdn/$1 [R,L]
    ErrorDocument 404 https://fqdn/404.html

  5. Import the export_template.sql to MySQL as the table template

  6. default username: admin
    default password: password

surveytool's People

Contributors

mchiu83 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.