fogproject  1.5.9
About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn’t use any boot disks, or CDs; everything is done via TFTP and PXE.
  Fossies Dox: fogproject-1.5.9.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

clientmanagementpage.class.php
Go to the documentation of this file.
1 <?php
29 {
35  public $node = 'client';
43  public function __construct($name = '')
44  {
45  $this->name = 'Client Management';
46  parent::__construct($this->name);
47  $this->menu = array();
48  }
55  public function index()
56  {
57  $this->title = _('FOG Client Installer');
58  $webArr = array(
59  'name' => array(
60  'FOG_WEB_HOST'
61  )
62  );
63  list($ip) = self::getSubObjectIDs(
64  'Service',
65  $webArr,
66  'value'
67  );
68  $url = sprintf(
69  '%s://%s/fog/client/download.php',
70  self::$httpproto,
71  $ip
72  );
73  $url = filter_var(
74  $url,
75  FILTER_SANITIZE_URL
76  );
77  // Dash boxes row.
78  echo '<div class="row">';
79  // New Client and utilties
80  echo '<div class="col-xs-4">';
81  echo '<div class="panel panel-info">';
82  echo '<div class="panel-heading text-center">';
83  echo '<h4 class="title">';
84  echo _('New Client and Utilities');
85  echo '</h4>';
86  echo '<p class="category">';
87  echo _('The installers for the fog client');
88  echo '<br/>';
89  echo _('Client Version');
90  echo ': ';
91  echo FOG_CLIENT_VERSION;
92  echo '</p>';
93  echo '</div>';
94  echo '<div class="panel-body">';
95  printf(
96  '%s, %s, %s, %s. ',
97  _('Cross platform'),
98  _('more secure'),
99  _('faster'),
100  _('and much easier on the server')
101  );
102  printf(
103  '%s.',
104  _('Especially when your organization has many hosts')
105  );
106  echo '<br/>';
107  echo '<a href="'
108  . $url
109  . '?newclient" data-toggle="tooltip" data-placement="right" ';
110  printf(
111  'title="%s. %s. %s.">',
112  _('Use this for network installs'),
113  _('For example, a GPO policy to push'),
114  _('This file will only work on Windows')
115  );
116  echo '<br/>';
117  echo _('MSI');
118  echo ' -- ';
119  echo _('Network Installer');
120  echo '<br/>';
121  printf(
122  '<a href="%s?%s" data-toggle="tooltip" data-placement="right" '
123  . 'title="%s. %s, %s, %s.">%s (%s)</a>',
124  $url,
125  'smartinstaller',
126  _('This is the recommended installer to use now'),
127  _('It can be used on Windows'),
128  _('Linux'),
129  _('and Mac OS X'),
130  _('Smart Installer'),
131  _('Recommended')
132  );
133  echo '</div>';
134  echo '</div>';
135  echo '</div>';
136  // Help and guide box
137  echo '<div class="col-xs-4">';
138  echo '<div class="panel panel-info">';
139  echo '<div class="panel-heading text-center">';
140  echo '<h4 class="title">';
141  echo _('Help and Guide');
142  echo '</h4>';
143  echo '<p class="category">';
144  echo _('Where to get help');
145  echo '</p>';
146  echo '</div>';
147  echo '<div class="panel-body">';
148  printf(
149  '%s. %s: %s %s.<br/><br/>',
150  _('Use the links below if you need assistance'),
151  _('NOTE'),
152  _('Forums are the most common and fastest method of getting'),
153  _('help with any aspect of FOG')
154  );
155  echo '<br/>';
156  printf(
157  '<a href="'
158  . 'https://wiki.fogproject.org/wiki/index.php?title=FOG_client'
159  . '" data-toggle="tooltip" data-placement="right" '
160  . 'title="%s. %s">%s</a><br/>',
161  _('Detailed documentation'),
162  _('It is primarily geared for the smart installer methodology now'),
163  _('FOG Client Wiki')
164  );
165  printf(
166  '<a href="'
167  . 'https://forums.fogproject.org'
168  . '" data-toggle="tooltip" data-placement="right" '
169  . 'title="%s? %s. %s %s. %s.">%s</a>',
170  _('Need more support'),
171  _('Somebody will be able to help in some form'),
172  _('Use the forums to post issues so others'),
173  _('may see the issue and help and/or use the solutions'),
174  _('Chat is also available on the forums for more realtime help'),
175  _('FOG Forums')
176  );
177  echo '</div>';
178  echo '</div>';
179  echo '</div>';
180  // Help and guide box
181  echo '<div class="col-xs-4">';
182  echo '<div class="panel panel-info">';
183  echo '<div class="panel-heading text-center">';
184  echo '<h4 class="title">';
185  echo _('Legacy Client and Utilities');
186  echo '</h4>';
187  echo '<p class="category">';
188  echo _('The old client and fogcrypt, deprecated');
189  echo '</p>';
190  echo '</div>';
191  echo '<div class="panel-body">';
192  printf(
193  '%s %s. %s %s.<br/>',
194  _('The legacy client and fog crypt utility for those'),
195  _('that are not yet using the new client'),
196  _('We highly recommend you make the switch for more'),
197  _('security and faster client communication and management')
198  );
199  printf(
200  '<a href="'
201  . $url
202  . '?legclient" data-toggle="tooltip" data-placement="right" '
203  . 'title="%s. %s %s. %s %s, %s, %s.">%s</a><br/>',
204  _('This is the file to install the legacy client'),
205  _('It is recommended to not use this file but'),
206  _('you may do as you please'),
207  _('This client is not being developed any further so any issues'),
208  _('you may find'),
209  _('or features you may request'),
210  _('will not be added to this client'),
211  _('Legacy FOG Client')
212  );
213  printf(
214  '<a href="'
215  . $url
216  . '?fogcrypt" data-toggle="tooltip" data-placement="right" '
217  . 'title="%s. %s">%s</a>',
218  _('This file is used to encrypt the AD Password'),
219  _('DO NOT USE THIS IF YOU ARE USING THE NEW CLIENT'),
220  _('FOG Crypt')
221  );
222  echo '</div>';
223  echo '</div>';
224  echo '</div>';
225  echo '</div>';
226  }
227 }
ClientManagementPage\__construct
__construct($name='')
Definition: clientmanagementpage.class.php:43
FOGPage\$name
$name
Definition: fogpage.class.php:31
ClientManagementPage
Definition: clientmanagementpage.class.php:29
FOGPage
Definition: fogpage.class.php:25
ClientManagementPage\$node
$node
Definition: clientmanagementpage.class.php:35
FOGBase\getSubObjectIDs
static getSubObjectIDs( $object='Host', $findWhere=array(), $getField='id', $not=false, $operator='AND', $orderBy='name', $groupBy=false, $filter='array_unique')
Definition: fogbase.class.php:2006
ClientManagementPage\index
index()
Definition: clientmanagementpage.class.php:55
$url
$url
Definition: kernelvers.php:27
$ip
if(!(isset($_POST['ip']) &&is_string($_POST['ip']))) if(!(isset($_POST['file']) &&is_string($_POST['file']))) if(!(isset($_POST['lines']) &&is_numeric($_POST['lines']))) if(!(isset($_POST['reverse']) &&is_numeric($_POST['reverse']))) $ip
Definition: logtoview.php:149