Path: blob/master/web-gui/buildyourownbotnet/data/autosuggest-custom.php
1292 views
<?php123$sample_text = 'By spite about do of do allow blush Additions in conveying or collected objection in Suffer few desire wonder her object hardly nearer Abroad no chatty others my silent an Fat way appear denote who wholly narrow gay settle Companions fat add insensible everything and friendship conviction themselves Theirs months ten had add narrow own Much did had call new drew that kept Limits expect wonder law she Now has you views woman noisy match money rooms To up remark it eldest length oh passed Off because yet mistake feeling has men Consulted disposing to moonlight ye extremity Engage piqued in on coming Started earnest brother believe an exposed so Me he believing daughters if forfeited at furniture Age again and stuff downs spoke Late hour new nay able fat each sell Nor themselves age introduced frequently use unsatiable devonshire get They why quit gay cold rose deal park One same they four did ask busy Reserved opinions fat him nay position Breakfast as zealously incommode do agreeable furniture One too nay led fanny allow plate He moonlight difficult engrossed an it sportsmen Interested has all devonshire difficulty gay assistance joy Unaffected at ye of compliment alteration to Place voice no arise along to Parlors waiting so against me no Wishing calling are warrant settled was luckily Express besides it present if at an opinion visitor Unpleasant astonished an diminution up partiality Noisy an their of meant Death means up civil do an offer wound of Called square an in afraid direct Resolution diminution conviction so mr at unpleasing simplicity no No it as breakfast up conveying earnestly immediate principle Him son disposed produced humoured overcame she bachelor improved Studied however out wishing but inhabit fortune windows';4$sample_text = explode(' ', strtolower($sample_text));56$query = $_GET['q'];78$resp = array(9);1011$resp[] = array(12"value" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 5))),13"img" => "http://lorempixel.com/40/40/?" . mt_rand(1,999),14"desc" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 10))),15"tokens" => array($query, str_shuffle($query))16);171819$resp[] = array(20"value" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 5))),21"img" => "http://lorempixel.com/40/40/?" . mt_rand(1,999),22"desc" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 10))),23"tokens" => array($query, str_shuffle($query))24);252627$resp[] = array(28"value" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 5))),29"img" => "http://lorempixel.com/40/40/?" . mt_rand(1,999),30"desc" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 10))),31"tokens" => array($query, str_shuffle($query))32);333435$resp[] = array(36"value" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 5))),37"img" => "http://lorempixel.com/40/40/?" . mt_rand(1,999),38"desc" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 10))),39"tokens" => array($query, str_shuffle($query))40);414243$resp[] = array(44"value" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 5))),45"img" => "http://lorempixel.com/40/40/?" . mt_rand(1,999),46"desc" => ucfirst(implode(" ", array_slice($sample_text, array_rand($sample_text), 10))),47"tokens" => array($query, str_shuffle($query))48);4950echo json_encode($resp);5152