Commit 7c7bab4e authored by michael lundquist's avatar michael lundquist
Browse files

Trying to fix file paths.

parent 050d5d4c
...@@ -9,31 +9,6 @@ to describe in green geeks: ...@@ -9,31 +9,6 @@ to describe in green geeks:
table> select a table> structure table> select a table> structure
checked tables:
employee
change pw to a 64 byte hash
https://stackoverflow.com/questions/14722305/what-kind-of-datatype-should-one-use-to-store-hashes
use sha2_512 for PW hashes
https://stackoverflow.com/questions/1966154/sha-512-library-for-php
jobs
market
schedule is the same, but add some fields to it
EMP_ID here is the admin
shift
chttp://php.net/manual/en/function.mktime.php
mktime gets a timestamp for a time
to add to schedule:
-delete accounts that never set the password through the email
add a cron job to delete fake user accounts:
https://code.tutsplus.com/tutorials/managing-cron-jobs-with-php--net-19428
this page connects to the SQL server. It includes this page connects to the SQL server. It includes
the username and password, which are private. the username and password, which are private.
...@@ -41,7 +16,7 @@ Hence, it won't be put on the public web server. ...@@ -41,7 +16,7 @@ Hence, it won't be put on the public web server.
http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
*/ */
include_once(dirname(__FILE__)."../configNuts.php"); include_once(dirname(__FILE__)."/configNuts.php");
function SQLlogin(){ function SQLlogin(){
$server = "localhost"; $server = "localhost";
...@@ -51,13 +26,13 @@ function SQLlogin(){ ...@@ -51,13 +26,13 @@ function SQLlogin(){
if(strstr(PHP_ROOT,"nuts") === FALSE){ if(strstr(PHP_ROOT,"nuts") === FALSE){
//greengeeks credentials //greengeeks credentials
$server = "mynutrients123.com"; $server = "mikeroservices.com";
$username = "sellmysh"; $username = "sellmysh";
$password = "j8C4Rrh5f9"; $password = "j8C4Rrh5f9";
} }
$con = new mysqli($server,$username,$password); $con = new mysqli($server,$username,$password);
$con->select_db("sellmysh_nuts");//TRUE on success, FALSE on fail $con->select_db("sellmysh_zip");//TRUE on success, FALSE on fail
return $con; return $con;
} }
......
...@@ -12,7 +12,7 @@ splat operator (...) : ...@@ -12,7 +12,7 @@ splat operator (...) :
call RESULT->FREE() on the result call RESULT->FREE() on the result
*/ */
include_once(dirname(__FILE__)."/SQLlogin.php"); include_once(dirname(__FILE__)."/SQLlogin.php");
include_once(dirname(__FILE__)."../exceptions.php"); include_once(dirname(__FILE__)."/exceptions.php");
function resultQuery($queryString, $paramArr, $paramTypes = NULL){ function resultQuery($queryString, $paramArr, $paramTypes = NULL){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment