Guest User

Untitled

a guest
May 24th, 2021
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. ini_set('display_errors', 0);
  4. $db = new SQLite3('./.db.db');
  5. $res = $db->query("SELECT * FROM dns");
  6. while ($row = $res->fetchArray()) {
  7. $result[] = array(
  8. "id"=>$row["id"],
  9. "server_name"=>$row["server_name"],
  10. "url"=>$row["url"],
  11. "logo"=>$row["logo"],
  12. "login_themes_url"=>$row["login_themes_url"],
  13. "main_themes_url"=>$row["main_themes_url"],
  14. "sbt_icon_background"=>$row["sbt_icon_background"]
  15. );
  16. }
  17. $array = json_encode($result);
  18. ................................................................
  19. .......................................
  20. ...............
RAW Paste Data