-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add meta tags for twitter cards and update version
- Loading branch information
gsalin
committed
Jan 30, 2024
1 parent
d9f7c9a
commit 738bf1f
Showing
10 changed files
with
194 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php header('Content-Type:text/xml; charset=UTF-8'); | ||
include_once '../key.php'; | ||
|
||
switch (SGBD) { | ||
case 'mysql': | ||
$link = mysql_connect(DB_HOST,DB_USER,DB_PASS); | ||
mysql_select_db(DB_NAME); | ||
mysql_query("SET NAMES utf8mb4"); | ||
|
||
$sql = "SELECT id_priorite, lib_priorite FROM priorite"; | ||
$result = mysql_query($sql); | ||
print '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; | ||
print '<priorities>'; | ||
while ($row = mysql_fetch_array($result)) { | ||
print '<priority nom="'.stripslashes($row['lib_priorite']).'" id="'.$row['id_priorite'].'"></priority>'; | ||
} | ||
print '</priorities>'; | ||
mysql_free_result($result); | ||
mysql_close($link); | ||
break; | ||
case 'postgresql': | ||
// TODO | ||
break; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php header('Content-Type:text/xml; charset=UTF-8'); | ||
include_once '../key.php'; | ||
|
||
switch (SGBD) { | ||
case 'mysql': | ||
$link = mysql_connect(DB_HOST,DB_USER,DB_PASS); | ||
mysql_select_db(DB_NAME); | ||
mysql_query("SET NAMES utf8mb4"); | ||
|
||
print '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; | ||
print '<response>'; | ||
//$buffer = $_POST['buffer']; | ||
if (!isset($_POST['moderatorKey']) || !isset($_POST['moderatorEmail'])) { | ||
print '<coderetour result="-1" />'; | ||
print '</response>'; | ||
} else { | ||
|
||
$sql = "SELECT COUNT(*) | ||
FROM users | ||
WHERE mail_users = '".mysql_real_escape_string($_POST['moderatorEmail'])."' AND moderator_mobile_key = '".mysql_real_escape_string($_POST['moderatorKey'])."'"; | ||
|
||
$result = mysql_query($sql); | ||
$numberMatchingUsers = mysql_result($result, 0); | ||
if (DEBUG){ | ||
error_log(date("Y-m-d H:i:s") . " " .__FUNCTION__ . " - validateUserKey.php pour ".$_POST['moderatorEmail']." \n", 3, LOG_FILE); | ||
error_log(date("Y-m-d H:i:s") . " " .__FUNCTION__ . " - validateUserKey.php retourne $numberMatchingUsers \n", 3, LOG_FILE); | ||
} | ||
print '<coderetour>'.$numberMatchingUsers.'</coderetour>'; | ||
print '</response>'; | ||
mysql_free_result($result); | ||
mysql_close($link); | ||
} | ||
break; | ||
case 'postgresql': | ||
// TODO | ||
break; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.