function jeedomPluginAutoload($classname) { $plugin = null; try { $plugin = plugin::byId($classname); } catch (Exception $e) { if (!is_object($plugin)) { if (strpos($classname, 'Real') !== false) { $plugin = plugin::byId(substr($classname, 0, -4)); } if (!is_object($plugin) && strpos($classname, 'Cmd') !== false) { $classname = str_replace('Cmd', '', $classname); try { $plugin = plugin::byId($classname); } catch (Exception $e) { if (strpos($classname, '_') !== false && strpos($classname, 'com_') === false) { $plugin = plugin::byId(substr($classname, 0, strpos($classname, '_'))); } } } if (!is_object($plugin) && strpos($classname, '_') !== false && strpos($classname, 'com_') === false) { $plugin = plugin::byId(substr($classname, 0, strpos($classname, '_'))); } } } try { if (is_object($plugin)) { if ($plugin->isActive() == 1) { $include = $plugin->getInclude(); include_file('core', $include['file'], $include['type'], $plugin->getId()); } } } catch (Exception $e) { } }
private function load($name) { $file = $this->dir . '/' . strtolower($name) . '.inc.php'; if (!is_file($file)) { trigger_error(__CLASS__ . ": The file '{$file}' does not exist.", E_USER_ERROR); } $this->items[$name] = include_file($file); }
function __autoload($className) { static $subdirs = array('.', 'filters', 'types', 'tree'); $fileName = strtolower($className) . '.inc.php'; foreach ($subdirs as $subdir) { $fileToTry = dirname(__FILE__) . "/{$subdir}/{$fileName}"; if (file_exists($fileToTry)) { include_file($fileToTry); return; } } trigger_error("Autoloader: The class called '{$className}' was not found.", E_USER_ERROR); }
function autoloader($class_name) { $blastpad_module_path = defined("blastpad_module_path") ? blastpad_module_path : ""; // Get just the class name. $class_name = end(explode("\\", $class_name)); // Class directories. $directory = ["blastpad_cms", "common", "calliope_database", "zigzag_routing", "snowflake_authentication"]; // Go through each directory to find the class. foreach ($directory as $dir) { include_file($blastpad_module_path . "/" . $dir . "/class/" . $class_name . "_class.php"); include_file($blastpad_module_path . "/" . $dir . "/model/" . $class_name . ".php"); } }
function &include_class($file, $options = array()) { static $objects = array(); #$file = $class; if (strrpos($file, '.')) { $file = substr($file, 0, strrpos($file, '.')); } if (isset($options['class'])) { $class = $options['class']; } else { $class = $file; } //If theres another prefix, substitue lib_ with it. Otherwise use lib_ if (isset($options['class_prefix'])) { $class = $options['class_prefix'] . $class; } elseif (isset($options['path']) && preg_match("/\\bmodel\\b/i", $options['path'])) { $class = 'model_' . $class; } elseif (isset($options['path']) && preg_match("/\\bpage\\b/i", $options['path'])) { $class = 'page_' . $class; } //Work out the class name and check if it already exists $class = str2class(str_replace('.', '', $class)); $classCheck = check_class_loaded($class, TRUE); if ($classCheck) { return $objects[$class]; } //Load the class if (isset($options['path'])) { include_file($options['path'] . $file . EXT, $options); } else { include_file(BASEDIR . $file . EXT, $options); } //Load the class $objects[$class] = new $class(); //Log the class loading check_class_loaded($class, FALSE); //Return the class value return $objects[$class]; }
<tr> <th style="width: 300px;">{{Nom}}</th> <th style="width: 130px;" class="expertModeVisible">{{Type}}</th> <th class="expertModeVisible">{{Instance ID}}</th> <th class="expertModeVisible">{{Classe}}</th> <th class="expertModeVisible">{{Commande}}</th> <th style="width: 100px;">{{Paramètres}}</th> <th style="width: 100px;">{{Options}}</th> <th></th> </tr> </thead> <tbody> </tbody> </table> <form class="form-horizontal"> <fieldset> <div class="form-actions"> <a class="btn btn-danger eqLogicAction" data-action="remove"><i class="fa fa-minus-circle"></i> {{Supprimer}}</a> <a class="btn btn-success eqLogicAction" data-action="save"><i class="fa fa-check-circle"></i> {{Sauvegarder}}</a> </div> </fieldset> </form> </div> </div> <?php include_file('desktop', 'openzwave', 'js', 'openzwave'); include_file('core', 'plugin.template', 'js');
<div class="alert alert-danger div_alert" style="display: none;" id="div_addEditviewZoneError"></div> <input id="in_addEditviewZoneEmplacement" style="display : none;" /> <form class="form-horizontal" onsubmit="return false;"> <div class="form-group"> <label class="col-sm-2 control-label">{{Nom}}</label> <div class="col-sm-5"> <input id="in_addEditviewZoneName" class="form-control" placeholder="{{Nom}}" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">{{Type}}</label> <div class="col-sm-5"> <select class="form-control" id="sel_addEditviewZoneType"> <option value="widget">{{Widget}}</option> <option value="graph">{{Graphique}}</option> </select> </div> </div> </form> </div> <div class="modal-footer"> <a class="btn btn-danger" data-dismiss="modal">{{Annuler}}</a> <a class="btn btn-success" id="bt_addEditviewZoneSave"><i class="fa fa-save"></i> {{Enregistrer}}</a> </div> </div> </div> </div> <?php include_file('desktop', 'view_edit', 'js');
</tr><tr> <td><b>{{Nombre de messages reçus avec statut de routage occupé :}}</b></td><td> <span class="stats_routedbusy"></span></td> </tr> </table> </div> </div> </div> </div> </div> </div> <?php include_file('desktop', 'network', 'js', 'openzwave'); ?> <script> var path = $('#sel_zwaveNetworkServerId option:selected').attr('data-path')+'/'; $("#sel_zwaveNetworkServerId").on("change",function() { path = $('#sel_zwaveNetworkServerId option:selected').attr('data-path')+'/'; window["app_network"].init(); window["app_network"].show(); window["app_network"].displayRoutingTable(); window["app_network"].load_data(); }); var nodes = {}; if (window["app_network"]!=undefined){ window["app_network"].init(); window["app_network"].show(); }
</div> <div class="col-sm-6" > <legend>{{Apercu}} <a class="btn btn-xs btn-default pull-right" id="bt_applyWidget"><i class="fa fa-fire"></i> {{Appliquer sur des commandes}}</a> <a class="btn btn-xs btn-warning pull-right" id="bt_shareOnMarket"><i class="fa fa-cloud-upload"></i> {{Partager}}</a> <a class="btn btn-xs btn-success pull-right" id="bt_editWidget" style="display:none"><i class="fa fa-cloud-upload"></i> {{Editer}}</a> </legend> <div class="col-sm-6" id='div_widgetResult'></div> </div> </div> <a class="btn btn-default btn-xs" id="bt_insertIcon"><i class="fa fa-flag"></i> Rechercher une icone</a><br/><br/> <textarea class='form-control widgetAttr' data-l1key='content' id='ta_widgetContent' style='height: 500px;'></textarea> <form class="form-horizontal"> <fieldset> <div class="form-actions"> <a class="btn btn-danger widgetAction" data-action="remove"><i class="fa fa-minus-circle"></i> {{Supprimer}}</a> <a class="btn btn-success widgetAction" data-action="save"><i class="fa fa-check-circle"></i> {{Sauvegarder}}</a> </div> </fieldset> </form> </div> </div> <?php include_file('desktop', 'fonts.widget', 'js', 'widget'); include_file('desktop', 'other.widget', 'js', 'widget'); include_file('desktop', 'binary.widget', 'js', 'widget'); include_file('desktop', 'numeric.widget', 'js', 'widget'); include_file('desktop', 'widget', 'js', 'widget');
</div> </fieldset> </form> <legend>{{#plugin_name#}}</legend> <table id="table_cmd" class="table table-bordered table-condensed"> <thead> <tr> <th>{{Nom}}</th><th>{{Type}}</th><th>{{Action}}</th> </tr> </thead> <tbody> </tbody> </table> <form class="form-horizontal"> <fieldset> <div class="form-actions"> <a class="btn btn-danger eqLogicAction" data-action="remove"><i class="fa fa-minus-circle"></i> {{Supprimer}}</a> <a class="btn btn-success eqLogicAction" data-action="save"><i class="fa fa-check-circle"></i> {{Sauvegarder}}</a> </div> </fieldset> </form> </div> </div> <?php include_file('desktop', '#plugin_id#', 'js', '#plugin_id#'); include_file('core', 'plugin.ajax', 'js');
* it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Jeedom is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Jeedom. If not, see <http://www.gnu.org/licenses/>. */ require_once dirname(__FILE__) . '/../../../core/php/core.inc.php'; include_file('core', 'authentification', 'php'); if (!isConnect()) { include_file('desktop', '404', 'php'); die; } $deamonRunningMaster = openzwave::deamonRunning(); $deamonRunningSlave = array(); $deamonSlaveVersion = array(); if (config::byKey('jeeNetwork::mode') == 'master') { foreach (jeeNetwork::byPlugin('openzwave') as $jeeNetwork) { $deamonSlaveVersion[$jeeNetwork->getName()] = array('openzwave' => 0, 'python-openzwave' => 0); $deamonRunningSlave[$jeeNetwork->getName()] = false; try { $deamonRunningSlave[$jeeNetwork->getName()] = $jeeNetwork->sendRawRequest('deamonRunning', array('plugin' => 'openzwave')); $deamonSlaveVersion[$jeeNetwork->getName()]['openzwave'] = $jeeNetwork->sendRawRequest('getVersion', array('plugin' => 'openzwave', 'module' => 'openzwave')); $deamonSlaveVersion[$jeeNetwork->getName()]['compilation'] = $jeeNetwork->sendRawRequest('compilationOk', array('plugin' => 'openzwave')); } catch (Exception $e) { }
* You should have received a copy of the GNU General Public License * along with Jeedom. If not, see <http://www.gnu.org/licenses/>. */ if (!isConnect('admin')) { throw new Exception('{{401 - Accès non autorisé}}'); } if (init('path') == '') { throw new Exception('{{Aucun widget fourni}}'); } $widget = widget::byPath(init('path')); if (!is_object($widget)) { throw new Exception('{{Widget non trouvé}}'); } include_file('3rdparty', 'jquery.tablesorter/theme.bootstrap', 'css'); include_file('3rdparty', 'jquery.tablesorter/jquery.tablesorter.min', 'js'); include_file('3rdparty', 'jquery.tablesorter/jquery.tablesorter.widgets.min', 'js'); ?> <div style="display: none;" id="md_applyWidgetAlert"></div> <div style="position: fixed;height: 50px;background-color: white;margin-top:-6px;padding-top: 6px;" id="div_boutons"> <a class="btn btn-default" id="bt_applyWidgetToogle" data-state="0"><i class="fa fa-check-circle-o"></i> {{Basculer}}</a> <a class="btn btn-success pull-right bt_applyWidgetToCmd" data-path="<?php echo $widget->getPath(); ?> " style="color : white;" data-version=""><i class="fa fa-check"></i> {{Valider}}</a> </div> <br/><br/> <table class="table table-bordered table-condensed tablesorter" id="table_applyWidget"> <thead> <tr>
echo '<option value="' . $planHeader_select->getId() . '">' . $planHeader_select->getName() . '</option>'; } ?> </select> </div> <div class="linkview linkOption" style="display: none;"> <select class="form-control linkId"> <?php foreach (view::all() as $views) { echo '<option value="' . $views->getId() . '">' . $views->getName() . '</option>'; } ?> </select> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">{{Annuler}}</button> <button type="button" class="btn btn-primary validate">{{Valider}}</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal --> <div id="md_addViewData" title="Ajouter widget/graph"></div> <?php } ?> <?php include_file('desktop', 'plan', 'js');
*/ if (!isConnect('admin')) { throw new Exception('{{401 - Accès non autorisé}}'); } if (init('id') == '') { throw new Exception('{{EqLogic ID ne peut être vide}}'); } $eqLogic = eqLogic::byId(init('id')); if (!is_object($eqLogic)) { throw new Exception('{{Equipement non trouvé}}'); } include_file('3rdparty', 'jquery.tablesorter/theme.bootstrap', 'css'); include_file('3rdparty', 'jquery.tablesorter/jquery.tablesorter.min', 'js'); include_file('3rdparty', 'jquery.tablesorter/jquery.tablesorter.widgets.min', 'js'); global $listClassCommand; include_file('core', 'class.command', 'config', 'zwave'); ?> <div id='div_showClassAlert' style="display: none;"></div> <div class="row"> <div class="col-sm-3"> <table id="table_class" class="table table-bordered table-condensed tablesorter"> <thead> <tr> <th>{{Classes}}</th> </tr> </thead> <tbody> <?php foreach ($eqLogic->getAvailableCommandClass() as $commandClasses) { echo '<tr data-commandClass="' . $commandClasses . '" class="cursor">'; echo '<td>';
</div> <div class="form-group"> <label class="col-lg-2 col-md-3 col-sm-4 col-xs-6 control-label">{{Couleur du tag}}</label> <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2"> <input type="color" class="objectAttr form-control" data-l1key="display" data-l2key="tagColor" /> </div> </div> <div class="form-group"> <label class="col-lg-2 col-md-3 col-sm-4 col-xs-6 control-label">{{Couleur du texte du tag}}</label> <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2"> <input type="color" class="objectAttr form-control" data-l1key="display" data-l2key="tagTextColor" /> </div> </div> </fieldset> </form> <hr/> <form class="form-horizontal"> <fieldset> <div class="form-actions"> <a class="btn btn-danger" id="bt_removeObject"><i class="fa fa-minus-circle"></i> {{Supprimer}}</a> <a class="btn btn-success" id="bt_saveObject"><i class="fa fa-check-circle"></i> {{Sauvegarder}}</a> </div> </fieldset> </form> </div> </div> <?php include_file("desktop", "object", "js");
<?php /* This file is part of Jeedom. * * Jeedom is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Jeedom is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Jeedom. If not, see <http://www.gnu.org/licenses/>. */ require_once dirname(__FILE__) . '/../../../../core/php/core.inc.php'; include_file('core', 'sonos3', 'class', 'sonos3'); require_once dirname(__FILE__) . '/../../vendor/autoload.php';
<?php /* This file is part of Jeedom. * * Jeedom is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Jeedom is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Jeedom. If not, see <http://www.gnu.org/licenses/>. */ if (!isConnect('admin')) { throw new Exception('{{401 - Accès non autorisé}}'); } include_file('3rdparty', 'jquery.tablesorter/theme.bootstrap', 'css'); include_file('3rdparty', 'jquery.tablesorter/jquery.tablesorter.min', 'js'); include_file('3rdparty', 'jquery.tablesorter/jquery.tablesorter.widgets.min', 'js'); include_file('core', 'pin', 'config', 'arduidom'); ?>
<?php require_once dirname(__FILE__) . '/core/utils.inc.php'; $ret = include_file('view', 'index', 'php'); if ($ret != 0) { echo "Webapp not available at the moment. We apologize for that issue."; }
public static function brainReply($_query, $_parameters) { global $PROFILE; $PROFILE = ''; if (isset($_parameters['profile'])) { $PROFILE = $_parameters['profile']; } include_file('core', 'bot', 'config'); global $BRAINREPLY; $shortest = 999; foreach ($BRAINREPLY as $word => $response) { $lev = levenshtein(strtolower($_query), strtolower($word)); if ($lev == 0) { $closest = $word; $shortest = 0; break; } if ($lev <= $shortest || $shortest < 0) { $closest = $word; $shortest = $lev; } } if (isset($closest) && is_array($BRAINREPLY[$closest])) { $random = rand(0, count($BRAINREPLY[$closest]) - 1); return $BRAINREPLY[$closest][$random]; } return ''; }
<label class="col-sm-6 control-label">{{Limiter à la catégorie}}</label> <div class="col-sm-4"> <select class='interactAttr form-control' data-l1key='filtres' data-l2key='eqLogic_category'> <option value="all">{{Toutes}}</option> <?php foreach (jeedom::getConfiguration('eqLogic:category') as $key => $value) { echo '<option value="' . $key . '">{{' . $value['name'] . '}}</option>'; } ?> </select> </div> </div> </fieldset> </form> </div> </div> <form class="form-horizontal"> <fieldset> <div class="form-actions"> <a class="btn btn-danger" id="bt_removeInteract"><i class="fa fa-minus-circle"></i> {{Supprimer}}</a> <a class="btn btn-success" id="bt_saveInteract"><i class="fa fa-check-circle"></i> {{Enregistrer}}</a> </div> </fieldset> </form> </div> </div> <?php include_file('desktop', 'interact', 'js');
<?php /* This file is part of Jeedom. * * Jeedom is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Jeedom is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Jeedom. If not, see <http://www.gnu.org/licenses/>. */ require_once dirname(__FILE__) . '/../../../../core/php/core.inc.php'; include_file('core', 'influxdb', 'class', 'influxdb'); require_once dirname(__FILE__) . '/../../vendor/autoload.php';
?> </div> <?php if ($_SESSION['user']->getOptions('displayScenarioByDefault') == 1) { echo '<div class="col-lg-2 col-md-2 col-sm-3" id="div_displayScenario">'; } else { echo '<div class="col-lg-2 col-md-2 col-sm-3" id="div_displayScenario" style="display:none;">'; } ?> <legend><i class="fa fa-history"></i> {{Scénarios}}</legend> <?php if (init('object_id') == '') { foreach (scenario::byObjectId(null, false, true) as $scenario) { echo $scenario->toHtml('dashboard'); } } foreach ($object->getScenario(false, true) as $scenario) { echo $scenario->toHtml('dashboard'); } foreach ($child_object as $child) { foreach ($child->getScenario(false, true) as $scenario) { echo $scenario->toHtml('dashboard'); } } ?> </div> </div> <?php include_file('desktop', 'dashboard', 'js');
* * Jeedom is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Jeedom. If not, see <http://www.gnu.org/licenses/>. */ // 2014-08-22 00:10:14 xpl-trig { hop=1 source=bnz-rfxcomrx.vesta target=* } homeeasy.basic { key=0x94339a device=4 command=on } // 2014-08-22 00:10:20 xpl-trig { hop=1 source=bnz-rfxcomrx.vesta target=* } homeeasy.basic { key=0x94339a device=4 command=off } /* ------------------------------------------------------------ Inclusions */ require_once dirname(__FILE__) . '/../../../../core/php/core.inc.php'; require_once dirname(__FILE__) . '/../class/xpl.core.class.php'; include_file('core', 'xpl', 'class', 'xpl'); include_file('core', 'xpl', 'config', 'xpl'); class remoteBasic { public static function parserMessage($_message) { if ($_message->getIdentifier() == xPLMessage::xplcmnd) { return false; } $source = $_message->source(); $keys = $_message->bodyItem('keys'); $device = $_message->bodyItem('device'); $xPL = xPL::byLogicalId($source, 'xpl'); if (is_object($xPL)) { $list_cmd = $xPL->getCmd(); foreach ($list_cmd as $cmd) { $keys_compare = $cmd->getItem('keys');
overflow-x: hidden; font-size:16px; } .console-out { padding-left:20px; padding-top:20px; } </style> <div id='div_consoleOpenzwaveAlert' style="display: none;"></div> <button type="button" id="startLiveLog" class="btn btn-success pull-left"><i class="fa fa-play"></i> {{Reprendre}}</button> <button type="button" id="stopLiveLog" class="btn btn-warning pull-left"><i class="fa fa-pause"></i> {{Pause}}</button> <pre id="log"><div class="console-out"></div></pre> <?php include_file('desktop', 'console', 'js', 'openzwave'); ?> <script> var path = $('#sel_zwaveNetworkServerId option:selected').attr('data-path')+'/'; $("#sel_zwaveNetworkServerId").on("change",function() { path = $('#sel_zwaveNetworkServerId option:selected').attr('data-path')+'/'; window["app_console"].init(); window["app_console"].show(); }); var nodes = {}; if (window["app_console"]!=undefined){ window["app_console"].init(); window["app_console"].show(); } $('.tab-pane').height($('#md_modal').height() - 100); $('.tab-pane').css('overflow','scroll');
* the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Jeedom is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Jeedom. If not, see <http://www.gnu.org/licenses/>. */ if (!isConnect('admin')) { throw new Exception('{{401 - Accès non autorisé}}'); } if (init('id') == '') { throw new Exception('{{EqLogic ID ne peut être vide}}'); } $eqLogic = eqLogic::byId(init('id')); if (!is_object($eqLogic)) { throw new Exception('{{EqLogic non trouvé}}'); } include_file('3rdparty', 'jsonTree/jsonTree', 'css', 'openzwave'); include_file('3rdparty', 'jsonTree/jsonTree', 'js', 'openzwave'); $json = openzwave::callOpenzwave('/ZWaveAPI/Run/devices[' . $eqLogic->getLogicalId() . ']', $eqLogic->getConfiguration('serverID', 1)); sendVarToJs('zwaveDataTree', $json); ?> <div id="div_zwaveDataTree"></div> <script> $('#div_zwaveDataTree').html(JSONTree.create(zwaveDataTree)); </script>
<td><b>{{Nombre de messages reçus spontanément :}}</b></td><td><span class="stats_rec_uns"></span></td> </tr><tr> <td><b>{{Nombre de tentatives d'envoi :}}</b></td><td><span class="stats_retries"></span></td> </tr><tr> <td><b>{{Nombre de messages envoyés par ce noeud :}}</b></td><td><span class="stats_sen_cnt"></span></td> </tr><tr> <td><b>{{Nombre de messages envoyés en erreur :}}</b></td><td><span class="stats_sen_failed"></span></td> </tr><tr> <td><b>{{Heure du dernier message envoyé :}}</b></td><td><span class="stats_sen_ts"></span></td> </tr> </table> </div> </div> </div> </div> </div> </div> <?php include_file('desktop', 'nodes', 'js', 'openzwave'); ?> <script> var nodes = {}; if (window["app_nodes"]!=undefined){ window["app_nodes"].init(); window["app_nodes"].show(); } $('.tab-pane').height($('#md_modal').height() - 100); $('.tab-pane').css('overflow','scroll'); </script>
<?php get_header(); ?> <!-- Page Content --> <div class="container"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Blog Home Two <small>Subheading</small> </h1> <ol class="breadcrumb"> <li><a href="index.html">Home</a> </li> <li class="active">Blog Home Two</li> </ol> </div> </div> <?php include_file('content'); ?> <?php get_footer();
} if (init('id') != '') { $market = market::byId(init('id')); } if (init('logicalId') != '' && init('type') != '') { $market = market::byLogicalIdAndType(init('logicalId'), init('type')); } if (!isset($market)) { throw new Exception('404 not found'); } include_file('3rdparty', 'bootstrap.rating/bootstrap.rating', 'js'); include_file('3rdparty', 'slick/slick.min', 'js'); include_file('3rdparty', 'slick/slick', 'css'); include_file('3rdparty', 'slick/slick-theme', 'css'); include_file('3rdparty', 'fancybox/jquery.fancybox', 'js'); include_file('3rdparty', 'fancybox/jquery.fancybox', 'css'); $market_array = utils::o2a($market); $market_array['rating'] = $market->getRating(); $update = update::byLogicalId($market->getLogicalId()); sendVarToJS('market_display_info', $market_array); ?> <div class='row' style='background-color: #e7e7e7; padding-top: 10px; padding-bottom: 10px;position: relative; top: -10px;'> <div class='col-sm-3'> <center> <?php $default_image = 'core/img/no_image.gif'; switch ($market->getType()) { case 'widget': $default_image = 'core/img/no-image-widget.png';
* Jeedom is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Jeedom is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Jeedom. If not, see <http://www.gnu.org/licenses/>. */ try { require_once dirname(__FILE__) . '/../../core/php/core.inc.php'; include_file('core', 'authentification', 'php'); if (!isConnect('admin')) { throw new Exception(__('401 - Accès non autorisé', __FILE__), -1234); } if (init('action') == 'remove') { $connection = connection::byId(init('id')); if (!is_object($connection)) { throw new Exception(__('Connexion inconnue. Vérifiez l\'id', __FILE__)); } $connection->remove(); ajax::success(); } if (init('action') == 'ban') { $connection = connection::byId(init('id')); if (!is_object($connection)) { throw new Exception(__('Connexion inconnue. Vérifiez l\'id', __FILE__));
usort($udpates, 'version_compare'); foreach ($udpates as $value) { echo '<option value="' . $value . '">' . $value . '</option>'; } ?> </select> </div> </div> <div class="form-group"> <label class="col-xs-6 control-label">{{Mode forcé}}</label> <div class="col-xs-4"> <input type="checkbox" id="cb_forceReapplyUpdate" checked /> </div> </div> <div class="form-group"> <label class="col-xs-6 control-label">{{Tout depuis cette version}}</label> <div class="col-xs-4"> <input type="checkbox" id="cb_allFromThisUpdate" checked /> </div> </div> </fieldset> </form> <a class="btn btn-success pull-right" style="color:white;" id="bt_reapplySpecifyUpdate"><i class="fa fa-check"></i> {{Valider}}</a> </div> </div> <?php include_file('desktop', 'update', 'js');