Avail feature updated
[ninja.git] / application / config / external_widget.php
blob75aa62e13c748a68bc5354a2aa3c260cbc0e16ac
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
3 /**
4 * Set up a specific user to be authorized for
5 * viewing a ninja widget on an external web.
6 * Please note that this user will ONLY be able to
7 * view the external widget. Set this user by editing the line at
8 * the bottom of this script to
10 * $config['username'] = 'your-user-here';
12 * (yes, the quotes are necessary :))
14 * Setting the 'groups' property to a non-false value configures
15 * the user's rights - the defalt goes by the user's contacts, but having
17 * $config['groups'] = array('op5_readonly');
19 * quickly gives the external user right to see everything.
21 * Specifying the 'widget_name' below is not necessary
22 * but will make it possible to call the external_widget
23 * controller without specifying what widget to use.
25 * A simple iframe on the external page like the following
26 * should work if a valid user is configured:
28 * <iframe
29 * src="http://<SERVER_NAME>/ninja/index.php/external_widget/show_widget/<OPTIONAL WIDGET_NAME>"
30 * height="500px" frameborder=0 width="600px" scrolling='no'></iframe>
32 $config['widget_name'] = 'netw_health';
33 $config['username'] = false;
34 $config['groups'] = false;