Augmenter: hook Augmenters into DataStore and enable augmenting for some Importers
[nonametv.git] / web-admin / export.php
blob0dc18c651a96b46a2423a0dc01ea9097c2f67db9
1 <?php
3 require "config.php";
4 require "common.php";
5 require "mysql.php";
6 require "channels.php";
7 require "programs.php";
9 $debug=false;
11 if( $debug ){
12 dbg( "NonameTV" , $dconf );
16 // connect to main database
18 switch( $dconf['dbtype'] ){
19 case 'mysql':
20 $myc = sql_doconnect();
21 if( ! $myc ) exit;
22 break;
26 <html>
27 <head>
28 <title>Export</title>
29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
30 <link href="css/nonametv.css" rel=stylesheet>
31 </head>
33 <body bgcolor="#FFFFFF" text="#000000">
35 <?php
38 // main
40 if( $_REQUEST['what'] ) $what = $_REQUEST['what'];
41 else {
44 switch( $what ){
45 case "channels":
46 $cmd = $dconf['sudo'] . " -u " . $dconf['nonametvuser'] . " " . $dconf['scriptexportchannels'];
47 break;
48 default:
49 break;
52 print "<h3>Executing: " . $cmd . "</h3>\n";
54 system ( $cmd );
57 // disconnect from main database
59 switch( $dconf['dbtype'] ){
60 case 'mysql':
61 sql_dodisconnect( $myc );
62 break;
67 </body>
68 </html>