Revize 6970ac8e
Přidáno uživatelem Ondřej Fibich před asi 5 roky(ů)
application/controllers/links.php | ||
---|---|---|
$link_model = new Link_Model();
|
||
$link_model->name = $form_data['name'];
|
||
$link_model->medium = $form_data['medium'];
|
||
$link_model->bitrate = $form_data['bitrate'] * $form_data['bit_unit'];
|
||
if (is_numeric($form_data['bitrate']) && is_numeric($form_data['bit_unit']))
|
||
{
|
||
$link_model->bitrate = $form_data['bitrate'] * $form_data['bit_unit'];
|
||
}
|
||
$link_model->duplex = $form_data['duplex'];
|
||
$link_model->comment = $form_data['comment'];
|
||
|
application/libraries/Filter_form.php | ||
---|---|---|
}
|
||
|
||
// load data
|
||
if (count($values))
|
||
if (!is_null($values) && count($values))
|
||
{
|
||
$this->tables = $tables;
|
||
|
application/models/config.php | ||
---|---|---|
from config
|
||
where name = ?
|
||
", $name);
|
||
|
||
return (!is_null($result) && count($result)) ? $result[0]->value : '';
|
||
}
|
||
catch (Kohana_Database_Exception $e)
|
||
{
|
||
$result = NULL;
|
||
return '';
|
||
}
|
||
|
||
return (count($result)) ? $result[0]->value : '';
|
||
}
|
||
|
||
/**
|
application/vendors/deb/debianization.sh | ||
---|---|---|
|
||
NAMES=(freenetis freenetis-monitoring freenetis-redirection freenetis-dhcp \
|
||
freenetis-ssh-keys freenetis-qos)
|
||
DEBIANS=(squeeze wheezy jessie stretch)
|
||
DEBIANS=(squeeze wheezy jessie stretch buster)
|
||
VERSION=$1
|
||
|
||
if [ $# -eq 2 ] || [ $# -eq 3 ]; then
|
application/vendors/deb/freenetis/control.buster | ||
---|---|---|
Priority: optional
|
||
Section: web
|
||
Pre-Depends: debconf (>= 0.5) | debconf-2.0
|
||
Depends: coreutils (>= 6.10-6), wget (>= 1.11-4.1), grep (>= 2.5.3), apache2, php, php-curl, libapache2-mod-php, php-mysql, default-mysql-client, php-mbstring, php-gd, php-snmp, php-imap, cron | anacron | cron-daemon, locales
|
||
Suggests: default-mysql-server (>= 1.0)
|
||
Architecture: all
|
||
Maintainer: Ondrej Fibich <ondrej.fibich@gmail.com>
|
||
Homepage: http://www.freenetis.org
|
||
Description: Information system for managing non-profit networks
|
||
FreenetIS is multilingual information system for managing non-profit networks.
|
||
.
|
||
It is capable to manage:
|
||
- users and their groups;
|
||
- double-entry accounting system (payments, double-entry transfers,
|
||
bank transfers, accounts, bank accounts, cash flow);
|
||
- network infrastructure (devices, segments, interfaces, IP addresses,
|
||
subnets, VLANs, VLAN interfaces, bridges, ports);
|
||
- network management (device monitoring, DHCP servers configuration,
|
||
traffic statistics, QoS);
|
||
- notifications of users (traffic redirection, e-mail messages, SMS messages);
|
||
- work reporting of active users and work approval;
|
||
- lists of calls and billing of VoIP;
|
||
- etc.
|
||
Description-cs.UTF-8: Informační systém pro počítačové sítě, provozované neziskovou organizací
|
||
FreenetIS je vícejazyčný informační systém pro počítačové sítě, provozované
|
||
neziskovou organizací.
|
||
.
|
||
Je schopen spravovat:
|
||
- uživatele a jejich skupiny;
|
||
- podvojné účty organizace (platby, podvojné převody, bankovní převody,
|
||
bankovní účty, cash flow);
|
||
- síťová infrastruktura (zařízení, segmenty, rozhraní, IP adresy, podsítě,
|
||
VLANy, VLAN rozhraní, bridge, porty);
|
||
- správa sítě (monitorování zařízení, konfigurace DHCP serverů,
|
||
statistiky provozu, QoS);
|
||
- upozorňování uživatelů (přesměrování provozu, e-mailové zprávy, SMS zprávy);
|
||
- práce aktivních uživatelů a jejich schvalování;
|
||
- výpisy volání a placení VoIP po napojení na ústřednu;
|
||
- atd.
|
application/vendors/deb/freenetis/debianization.sh | ||
---|---|---|
echo "Package: ${NAME}" >> DEBIAN/control
|
||
echo "Version: ${VERSION}-${DEBIAN}" >> DEBIAN/control
|
||
echo "Installed-Size: ${SIZE}" >> DEBIAN/control
|
||
if [ $DEBIAN = "stretch" ]; then
|
||
cat ../../${NAME}/control.stretch >> DEBIAN/control
|
||
if [ -f ../../${NAME}/control.${DEBIAN} ]; then
|
||
cat ../../${NAME}/control.${DEBIAN} >> DEBIAN/control
|
||
else
|
||
cat ../../${NAME}/control >> DEBIAN/control
|
||
fi
|
||
... | ... | |
# scripts ######################################################################
|
||
|
||
cp -a -f ../../${NAME}/preinst DEBIAN/preinst
|
||
if [ $DEBIAN = "jessie" ] || [ $DEBIAN = "stretch" ]; then
|
||
if [ $DEBIAN = "jessie" ] || [ $DEBIAN = "stretch" ] || [ $DEBIAN = "buster" ]; then
|
||
cp -a -f ../../${NAME}/postinst.jessie DEBIAN/postinst
|
||
else
|
||
cp -a -f ../../${NAME}/postinst DEBIAN/postinst
|
||
fi
|
||
cp -a -f ../../${NAME}/prerm DEBIAN/prerm
|
||
if [ $DEBIAN = "jessie" ] || [ $DEBIAN = "stretch" ]; then
|
||
if [ $DEBIAN = "jessie" ] || [ $DEBIAN = "stretch" ] || [ $DEBIAN = "buster" ]; then
|
||
cp -a -f ../../${NAME}/postrm.jessie DEBIAN/postrm
|
||
else
|
||
cp -a -f ../../${NAME}/postrm DEBIAN/postrm
|
system/libraries/Database.php | ||
---|---|---|
*/
|
||
public function __construct($config = array())
|
||
{
|
||
if (!is_array($config) && count($config))
|
||
if (!is_array($config) && is_string($config) && strlen($config))
|
||
{
|
||
// Parse the DSN, creating an array to hold the connection parameters
|
||
$db = array
|
Také k dispozici: Unified diff
Issue #1117: Support for Debian buster