mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 23:04:57 -04:00
Pretty print SQL
This commit is contained in:
parent
31a8bc2d6c
commit
26a24cdbe2
17 changed files with 316 additions and 82 deletions
|
@ -26,7 +26,12 @@ try{
|
|||
// Certain user agents may bypass login entirely
|
||||
$isUserAgentAllowed = false;
|
||||
if(isset($_SERVER['HTTP_USER_AGENT'])){
|
||||
$isUserAgentAllowed = Db::QueryInt('select count(*) from FeedUserAgents where instr(?, UserAgent) limit 1', [$_SERVER['HTTP_USER_AGENT']]);
|
||||
$isUserAgentAllowed = Db::QueryInt('
|
||||
SELECT count(*)
|
||||
from FeedUserAgents
|
||||
where instr(?, UserAgent)
|
||||
limit 1
|
||||
', [$_SERVER['HTTP_USER_AGENT']]);
|
||||
}
|
||||
|
||||
if(!$isUserAgentAllowed){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue