This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * FusionPBX Single Domain Migration Tool | |
| * | |
| * Features: | |
| * - Export one domain’s data (extensions, ring groups, IVRs, voicemail, destinations, gateways, etc.) | |
| * - Filter out default dialplans by app_uuid (read from FusionPBX XML templates) | |
| * - Import into a new domain, only changing domain_uuid | |
| * - Keeps all other UUIDs unchanged (extensions, gateways, ivrs, ring groups, dialplans, etc.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * WaybackDownloader | |
| * | |
| * Single-file PHP class that: | |
| * - Accepts a main URL or a Wayback snapshot URL | |
| * - Auto-finds the latest snapshot if you supply a main URL | |
| * - Queries CDX for a deduped list of 200-OK captures (up to maxPages) | |
| * - Downloads HTML + assets, strips Wayback toolbar, rewrites links to local paths | |
| * - Writes a static folder and a site.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:intl/intl.dart'; | |
| import 'package:timezone/data/latest.dart' as tz; | |
| import 'package:timezone/timezone.dart' as tz; | |
| void main() { | |
| tz.initializeTimeZones(); | |
| runApp(const MyApp()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:intl/intl.dart'; | |
| import 'package:timezone/data/latest.dart' as tz; | |
| import 'package:timezone/timezone.dart' as tz; | |
| void main() { | |
| tz.initializeTimeZones(); | |
| runApp(const MyApp()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:provider/provider.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:provider/provider.dart'; | |
| void main() { | |
| runApp( | |
| ChangeNotifierProvider<AppData>( | |
| create: (context) => AppData(), | |
| builder: (context, child) => const MyApp(), | |
| ), | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'dart:convert'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'dart:convert'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); | |
| class AcmeClient | |
| { | |
| private $webDir; | |
| private $domain; | |
| private $accountEmail; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Attachment | |
| { | |
| private $allowedTypes = []; | |
| private $allowedSize; // Size in MB | |
| private $uploadPath; | |
| private $fileName; | |
| private $files; | |
| private $errors = []; |
NewerOlder