<?php 
echo config_explanation(__('When using fancy numbering, you can have a line highlighted at a regular interval. Set the default interval to use here, if not otherwise specified'));
?>
        </td>
    </tr>
    <tr>
        <td><label for="notification_poll_interval"><?php 
echo __('Notification poll interval');
?>
</label></td>
        <td>
            <input type="text" name="<?php 
echo \thebuggenie\core\framework\Settings::SETTING_NOTIFICATION_POLL_INTERVAL;
?>
" style="width: 50px;"<?php 
if ($access_level != \thebuggenie\core\framework\Settings::ACCESS_FULL) {
    ?>
 disabled<?php 
}
?>
 id="notification_poll_interval" value="<?php 
echo \thebuggenie\core\framework\Settings::getNotificationPollInterval();
?>
" />
            <?php 
echo config_explanation(__('Polling is used to check for new user notifications. Set the default polling interval in seconds, or 0 to disable polling.'));
?>
        </td>
    </tr>
</table>
Exemple #2
0
"<?php 
    if (($default_group = \thebuggenie\core\framework\Settings::getDefaultGroup()) instanceof \thebuggenie\core\entities\Group && $default_group->getID() == $aGroup->getID()) {
        ?>
 selected<?php 
    }
    ?>
><?php 
    print $aGroup->getName();
    ?>
</option>
                <?php 
}
?>
            </select>
            <?php 
echo config_explanation(__('New users will automatically be added to this group'));
?>
        </td>
    </tr>
    <tr>
        <td><label for="returnfromlogin"><?php 
echo __('Redirect after login');
?>
</label></td>
        <td>
            <select name="<?php 
echo \thebuggenie\core\framework\Settings::SETTING_RETURN_FROM_LOGIN;
?>
" id="returnfromlogin" style="width: 400px;"<?php 
if ($access_level != \thebuggenie\core\framework\Settings::ACCESS_FULL) {
    ?>
?>

            <?php 
echo config_explanation(__('In maintenance mode, access to The Bug Genie will be disabled, except for the Configuration pages. This allows you to perform upgrades and other maintance without interruption. Please remember that if you log out, you will be unable to log back in again whilst maintenace mode is enabled.'));
?>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <br>
            <label for="offline_msg"><?php 
echo __('Maintenance mode message');
?>
</label>
            <?php 
echo config_explanation(__('The message you enter here will be displayed to users whilst in maintenance mode. If you do not enter anything, users will be shown a generic message.'));
?>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <?php 
if ($access_level == \thebuggenie\core\framework\Settings::ACCESS_FULL) {
    ?>
                <?php 
    include_component('main/textarea', array('area_name' => 'offline_msg', 'area_id' => 'offline_msg', 'height' => '75px', 'width' => '100%', 'value' => \thebuggenie\core\framework\Settings::getMaintenanceMessage(), 'hide_hint' => true));
    ?>
            <?php 
} elseif (\thebuggenie\core\framework\Settings::hasMaintenanceMessage()) {
    ?>
                <?php 
><?php 
echo __('Not set');
?>
</option>
                <?php 
foreach ($timezones as $timezone => $description) {
    ?>
                    <option value="<?php 
    echo $timezone;
    ?>
"<?php 
    if (\thebuggenie\core\framework\Settings::getServerTimezoneIdentifier() == $timezone) {
        ?>
 selected<?php 
    }
    ?>
><?php 
    echo $description;
    ?>
</option>
                <?php 
}
?>
            </select>
            <?php 
echo config_explanation(__('The timezone for the server hosting The Bug Genie. Make sure this is the same as the timezone the server is running in - this is not necessarily the same as your own timezone!') . "<br>" . __('The time is now: %time', array('%time' => tbg_formatTime(time(), 1, true))));
?>
        </td>
    </tr>
</table>
            <?php 
echo config_explanation(__('Choose how code samples should be numbered, if not otherwise specified'));
?>
        </td>
    </tr>
    <tr>
        <td><label for="highlight_default_interval"><?php 
echo __('Default line highlight interval');
?>
</label></td>
        <td>
            <input type="text" name="<?php 
echo \thebuggenie\core\framework\Settings::SETTING_SYNTAX_HIGHLIGHT_DEFAULT_INTERVAL;
?>
" style="width: 50px;"<?php 
if ($access_level != \thebuggenie\core\framework\Settings::ACCESS_FULL) {
    ?>
 disabled<?php 
}
?>
 id="highlight_default_interval" value="<?php 
echo \thebuggenie\core\framework\Settings::get('highlight_default_interval');
?>
" />
            <?php 
echo config_explanation(__('When using fancy numbering, you can have a line highlighted at a regular interval. Set the default interval to use here, if not otherwise specified'));
?>
        </td>
    </tr>
</table>