@@ -47,8 +47,8 @@ |
||
47 | 47 | //return random picture from the telegram->getUploadPath(); |
48 | 48 | |
49 | 49 | private function ShowRandomImage($dir) { |
50 | - $image_list = scandir($dir); |
|
51 | - return $dir . "/" . $image_list[mt_rand(2, count($image_list) - 1)]; |
|
52 | - } |
|
50 | + $image_list = scandir($dir); |
|
51 | + return $dir . "/" . $image_list[mt_rand(2, count($image_list) - 1)]; |
|
52 | + } |
|
53 | 53 | |
54 | 54 | } |
@@ -21,10 +21,10 @@ |
||
21 | 21 | |
22 | 22 | // Enter your MySQL database credentials |
23 | 23 | $mysql_credentials = [ |
24 | - 'host' => 'localhost', |
|
25 | - 'user' => 'dbuser', |
|
26 | - 'password' => 'dbpass', |
|
27 | - 'database' => 'dbname', |
|
24 | + 'host' => 'localhost', |
|
25 | + 'user' => 'dbuser', |
|
26 | + 'password' => 'dbpass', |
|
27 | + 'database' => 'dbname', |
|
28 | 28 | ]; |
29 | 29 | |
30 | 30 | try { |