Skip to content

Commit

Permalink
Update my_func.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Dec 11, 2024
1 parent f31a327 commit 6739237
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trunk/web/include/my_func.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
require_once(dirname(__FILE__)."/db_info.inc.php");
require_once(dirname(__FILE__)."/curl.php");
require_once(dirname(__FILE__)."/const.inc.php");
if (!function_exists('str_contains')) {
function str_contains (string $haystack, string $needle){
return empty($needle) || strpos($haystack, $needle) !== false;
}
}
function addDays($days) {
// 创建一个 DateTime 对象,表示当前日期
$date = new DateTime();
Expand Down

0 comments on commit 6739237

Please sign in to comment.