}
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
    exit;
}
?>
    <header>
        <h2><i class="icon-wrench"></i> <?php 
echo $PMF_LANG['ad_menu_instances'];
?>
</h2>
    </header>
<?php 
if ($permission['editinstances']) {
    $instanceId = PMF_Filter::filterInput(INPUT_GET, 'instance_id', FILTER_VALIDATE_INT);
    $instance = new PMF_Instance($faqConfig);
    $instanceData = $instance->getInstanceById($instanceId);
    ?>
    <form class="form-horizontal" action="?action=updateinstance" method="post" accept-charset="utf-8">
        <input type="hidden" name="instance_id" value="<?php 
    echo $instanceData->id;
    ?>
" />
        <div class="control-group">
            <label class="control-label"><?php 
    echo $PMF_LANG["ad_instance_url"];
    ?>
:</label>
            <div class="controls">
                <input type="url" name="url" id="url" required="required" value="<?php 
    echo $instanceData->url;
    ?>
Ejemplo n.º 2
0
</th>
            <th><?php 
    echo $PMF_LANG["ad_instance_path"];
    ?>
</th>
            <th colspan="3"><?php 
    echo $PMF_LANG["ad_instance_name"];
    ?>
</th>
        </tr>
        </thead>
        <tbody>
        <?php 
    foreach ($instance->getAllInstances() as $site) {
        $currentInstance = new PMF_Instance($faqConfig);
        $currentInstance->getInstanceById($site->id);
        $currentInstance->setId($site->id);
        ?>
        <tr id="row-instance-<?php 
        print $site->id;
        ?>
">
            <td><?php 
        print $site->id;
        ?>
</td>
            <td><a href="<?php 
        print $site->url . $site->instance;
        ?>
"><?php 
        print $site->url;