<? require('../include/config.php'); require('../include/class.source.php'); $n = new Source($db); $source = $_POST['source']; $s = $n->getSource($source); if (!isset($s['source_id'])) { $n->Insert(Array( 'source_id' => $source, 'source_name' => $source, 'type' => 'good' )); } else { var_dump($n->setType(Array( 'type' => 'good', 'source_id' => $source ))); } ?>
<?php header('Content-type: application/json'); require_once "source_interface.php"; require_once "source_actions.php"; require_once "plugin_test_source.php"; require_once "source.php"; $source = new Source(); session_start(); $source->setSource(Source::PLUGIN); if (isset($_SESSION[PluginTestSource::TMPSESSIONNAME])) { echo $source->getSource(); }
$n->Edit($_POST); if ($_POST['type'] != 'bad') { Misc::Redirect('sources_list.php'); } else { Misc::Redirect('badsources_list.php'); } } if (isset($_POST['submitdelete'])) { $n->Delete($_POST['source_id']); if ($_POST['type'] != 'bad') { Misc::Redirect('sources_list.php'); } else { Misc::Redirect('badsources_list.php'); } } $s = $n->getSource($_GET['id']); include 'include/top.php'; ?> <form method="post"> <input type="hidden" id="hidden" name="source_id" value="<?php echo $s['source_id']; ?> " /> <p> <label><span>Source ID </span>#<?php echo $s['source_id']; ?> </label> </p> <p>