Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael R Lundquist
zipAPI
Commits
93d2c3ee
Commit
93d2c3ee
authored
Nov 14, 2018
by
michael lundquist
Browse files
Changing my from substr to strpos
parent
98fd38d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
SQLlogin.php
View file @
93d2c3ee
...
...
@@ -23,7 +23,7 @@ function SQLlogin(){
$username
=
"root"
;
$password
=
"root"
;
if
(
str
str
(
PHP_ROOT
,
"public_html"
)
=
==
TRU
E
){
if
(
str
pos
(
PHP_ROOT
,
"public_html"
)
!
==
FALS
E
){
//greengeeks credentials
echo
"here"
;
...
...
configNuts.php
View file @
93d2c3ee
...
...
@@ -2,7 +2,7 @@
//configure the database name?
define
(
"PHP_ROOT"
,
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/zipAPI"
);
echo
PHP_ROOT
;
if
(
str
str
(
PHP_ROOT
,
"public_html"
)
=
==
TRU
E
){
if
(
str
pos
(
PHP_ROOT
,
"public_html"
)
!
==
FALS
E
){
//API
define
(
"HTML_ROOT"
,
""
);
define
(
"URL"
,
"https://mikeroservices.com/zipAPI/"
);
//can't be www. this is a different domain (cert won't work)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment