public function t_banana() { $local_path = random_pic(BANANA_DIR); PhotoCache::SendPhotoByPath($this->db, $local_path, $this->Message->Chat->id); }
$result = $conn->query($sql); if (mysqli_num_rows($result) > 0) { // output data of each row while ($row = mysqli_fetch_assoc($result)) { if ($row["Rect"] != "") { $n_filled++; } else { $n_empty++; } } } if ($n_empty > 1 || $n_filled > 4) { rename($files[$file], 'verified_images/' . $files[$file]); } else { break; } } return $files[$file]; } $servername = "mysql01.ufpel.hospedagemdesites.ws"; $username = "******"; $password = "******"; $dbname = "ufpel"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo random_pic($conn);
public function main() { Telegram::sendChatSendingPhotoStatus($this->Message->Chat->id); $local_path = random_pic(PHOTO_DIR); PhotoCache::SendPhotoByPath($this->db, $local_path, $this->Message->Chat->id); }
echo Project::ICON; ?> ", "city": "<?php echo City::ICON; ?> " }; var images = []; var mapData = <?php echo json_encode($contextMap); ?> ; var isNotSV = true; var proverbs = <?php echo json_encode(random_pic()); ?> ; var myContacts = <?php echo $myFormContact != null ? json_encode($myFormContact) : "null"; ?> ; var myId = "<?php echo isset(Yii::app()->session['userId']) ? Yii::app()->session['userId'] : ""; ?> "; var lastUrl = null; jQuery(document).ready(function() { //console.dir(proverbs); if($(".tooltips").length) {