Skip to content

Commit

Permalink
Move credentials into more aptly named files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Rowe authored and rfrowe committed Oct 28, 2017
1 parent 0fcd449 commit b317503
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
credentials.php
*.secret.php
.DS_Store
/.idea/workspace.xml
/out/
Expand Down
2 changes: 1 addition & 1 deletion public_html/files/php/send.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
session_start();
require_once($_SERVER['DOCUMENT_ROOT'].'/files/php/credentials.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/files/php/smtp.secret.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/files/php/CSFR.php');
//require_once($_SERVER['DOCUMENT_ROOT'].'/files/php/autoload.php');
require_once($_SERVER['DOCUMENT_ROOT']."/files/php/PHPMailer/PHPMailerAutoload.php");
Expand Down
2 changes: 1 addition & 1 deletion public_html/honors/load.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// Import credentials for db connection
require_once($_SERVER['DOCUMENT_ROOT'].'/files/credentials.php');
require_once($_SERVER['DOCUMENT_ROOT'] . "/files/php/db.secret.php");

// Get values
$dsn = Credentials::getDSN();
Expand Down
2 changes: 1 addition & 1 deletion public_html/honors/post.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// Import credentials for db connection
require_once($_SERVER['DOCUMENT_ROOT'].'/files/credentials.php');
require_once($_SERVER['DOCUMENT_ROOT'] . "/files/php/db.secret.php");
header('Content-type: text/html; charset=UTF-8');

// Get values
Expand Down
2 changes: 1 addition & 1 deletion public_html/work/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
session_start();
// Import credentials for db connection
require_once($_SERVER['DOCUMENT_ROOT'].'/files/credentials.php');
require_once($_SERVER['DOCUMENT_ROOT'] . "/files/php/db.secret.php");

// Get values
$dsn = Credentials::getDSN();
Expand Down
2 changes: 1 addition & 1 deletion public_html/work/omdyac
Submodule omdyac updated 2 files
+1 −1 .gitignore
+1 −1 files/mysql.php

0 comments on commit b317503

Please sign in to comment.