mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Use exists() for some SQL statements; send thank-you email to patron donors who donate again
This commit is contained in:
parent
a4910b8d67
commit
a442f92e28
3 changed files with 41 additions and 19 deletions
|
@ -25,10 +25,11 @@ try{
|
|||
$isUserAgentAllowed = false;
|
||||
if(isset($_SERVER['HTTP_USER_AGENT'])){
|
||||
$isUserAgentAllowed = Db::QueryInt('
|
||||
SELECT count(*)
|
||||
from FeedUserAgents
|
||||
where instr(?, UserAgent)
|
||||
limit 1
|
||||
SELECT exists(
|
||||
select *
|
||||
from FeedUserAgents
|
||||
where instr(?, UserAgent)
|
||||
)
|
||||
', [$_SERVER['HTTP_USER_AGENT']]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue