function display()
 {
     // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung
     $model =& $this->getModel();
     // Die Toolbar erstellen, die über der Seite angezeigt wird
     $adminLink = new AdminLink();
     $adminLink->view = "turform";
     $adminLink->more = array('task' => 'edit', 'id' => $model->param['id']);
     $adminLink->makeURL();
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php';
     JToolBarHelper::title('<a href="' . $adminLink->url . '">' . $model->turnier->name . "</a>: " . JText::_('PLAYERS_ADD'), 'clm_turnier.png');
     JToolBarHelper::save();
     JToolBarHelper::apply();
     JToolBarHelper::spacer();
     JToolBarHelper::cancel();
     // das MainMenu abschalten
     JRequest::setVar('hidemainmenu', 1);
     // Daten an Template übergeben
     $this->assignRef('user', $model->user);
     $this->assignRef('playerlist', $model->PlayersList);
     $this->assignRef('form', $model->form);
     $this->assignRef('param', $model->param);
     $this->assignRef('pagination', $model->pagination);
     // zusätzliche Funktionalitäten
     JHTML::_('behavior.tooltip');
     parent::display();
 }
Exemple #2
0
 function cancel()
 {
     $adminLink = new AdminLink();
     $adminLink->view = 'swt';
     $adminLink->makeURL();
     $msg = JText::_('SWT_CANCEL_MSG');
     $this->setRedirect($adminLink->url, $msg);
 }
 function display()
 {
     // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung
     $model =& $this->getModel();
     $adminLink = new AdminLink();
     $adminLink->view = "turform";
     $adminLink->more = array('task' => 'edit', 'id' => $model->param['id']);
     $adminLink->makeURL();
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php';
     JToolBarHelper::title($model->turnier->name . ": " . JText::_('PARTICIPANTS'), 'clm_turnier.png');
     if (CLM_usertype == 'admin' or CLM_usertype == 'tl') {
         // noch Spieler möglich
         if ($model->turnier->teil > count($model->turPlayers)) {
             JToolBarHelper::addNew('add', JText::_('ADD'));
             JToolBarHelper::spacer();
         }
         // noch keine Ergebnisse eingetragen
         if (!$model->turnier->started) {
             if ($model->turnier->typ == 1) {
                 // nur bei CH-System
                 JToolBarHelper::custom('plusTln', 'upload.png', 'upload_f2.png', JText::_('PARTICIPANT_PLUS'), false);
                 JToolBarHelper::spacer();
             }
             JToolBarHelper::custom('sortByTWZ', 'copy.png', 'copy_f2.png', JText::_('SNR_BY_TWZ'), false);
             JToolBarHelper::custom('sortByRandom', 'copy.png', 'copy_f2.png', JText::_('SNR_BY_RANDOM'), false);
             JToolBarHelper::custom('sortByOrdering', 'copy.png', 'copy_f2.png', JText::_('SNR_BY_ORDERING'), false);
             JToolBarHelper::spacer();
             JToolBarHelper::deleteList();
             JToolBarHelper::spacer();
         } else {
             if ($model->turnier->typ != 3) {
                 // nicht bei KO
                 JToolBarHelper::custom('setRanking', 'copy.png', 'copy_f2.png', JText::_('SET_RANKING'), false);
                 JToolBarHelper::spacer();
             }
         }
     }
     JToolBarHelper::cancel();
     if (CLM_usertype == 'admin' or CLM_usertype == 'tl') {
         JToolBarHelper::divider();
         JToolBarHelper::spacer();
         JToolBarHelper::custom('turform', 'config.png', 'config_f2.png', JText::_('TOURNAMENT'), false);
     }
     // Daten an Template übergeben
     $this->assignRef('user', $model->user);
     $this->assignRef('turnier', $model->turnier);
     $this->assignRef('turplayers', $model->turPlayers);
     $this->assignRef('form', $model->form);
     $this->assignRef('param', $model->param);
     $this->assignRef('pagination', $model->pagination);
     // zusätzliche Funktionalitäten
     JHTML::_('behavior.tooltip');
     parent::display();
 }
 function update()
 {
     $model = $this->getModel('swtliga');
     $lid = JRequest::getVar('liga', 0, 'default', 'int');
     $sid = JRequest::getVar('sid', 0, 'default', 'int');
     $swt_file = JRequest::getVar('swt_file', '', 'default', 'string');
     if ($lid == 0) {
         JRequest::setVar('view', 'swt');
         JRequest::setVar('swt_file', $swt_file);
         $adminLink = new AdminLink();
         $adminLink->view = 'swt';
         $adminlink->more = array('swt_file' => $swt_file, 'sid' => $sid);
         $adminLink->makeURL();
         $msg = JText::_('SWT_LEAGUE_OVERWRITE_NOT_GIVEN');
         $this->setRedirect($adminLink->url, $msg);
     } else {
         JRequest::setVar('view', 'swtligainfo');
         JRequest::setVar('update', 1);
         $db = JFactory::getDBO();
         $select_query = '  SELECT * FROM #__clm_liga ' . ' WHERE id = ' . $lid . '; ';
         $db->setQuery($select_query);
         $liga = $db->loadObject();
         //Liga-Parameter aufbereiten
         $paramsStringArray = explode("\n", $liga->params);
         $params = array();
         foreach ($paramsStringArray as $value) {
             $ipos = strpos($value, '=');
             if ($ipos !== false) {
                 $key = substr($value, 0, $ipos);
                 $params[$key] = substr($value, $ipos + 1);
             }
         }
         if (!isset($params['noOrgReference'])) {
             //Standardbelegung
             $params['noOrgReference'] = '0';
         }
         if (!isset($params['noBoardResults'])) {
             //Standardbelegung
             $params['noBoardResults'] = '0';
         }
         JRequest::setVar('noOrgReference', $params['noOrgReference']);
         JRequest::setVar('noBoardResults', $params['noBoardResults']);
         parent::display();
     }
 }
Exemple #5
0
 function import()
 {
     $model = $this->getModel('swt');
     $type = $model->import();
     if ($type == 0) {
         JRequest::setVar('view', 'swtturnier');
         parent::display();
     } elseif ($type == 255) {
         JRequest::setVar('view', 'swtliga');
         parent::display();
     } else {
         $adminLink = new AdminLink();
         $adminLink->view = "swt";
         $adminLink->makeURL();
         $msg = JText::_('SWT_FILE_ERROR');
         $this->setRedirect($adminLink->url, $msg);
     }
 }
Exemple #6
0
 function update()
 {
     $model = $this->getModel('swtliga');
     $lid = JRequest::getVar('liga', 0, 'default', 'int');
     $sid = JRequest::getVar('sid', 0, 'default', 'int');
     $swt_file = JRequest::getVar('swt_file', '', 'default', 'string');
     if ($lid == 0) {
         JRequest::setVar('view', 'swt');
         JRequest::setVar('swt_file', $swt_file);
         $adminLink = new AdminLink();
         $adminLink->view = 'swt';
         $adminlink->more = array('swt_file' => $swt_file, 'sid' => $sid);
         $adminLink->makeURL();
         $msg = JText::_('SWT_LEAGUE_OVERWRITE_NOT_GIVEN');
         $this->setRedirect($adminLink->url, $msg);
     } else {
         JRequest::setVar('view', 'swtligainfo');
         JRequest::setVar('update', 1);
         parent::display();
     }
 }
 public function actionList()
 {
     $criteria = new CDbCriteria();
     $criteria->limit = param('adminLinkCountOfPage');
     $sort = new CSort('Link');
     $sort->defaultOrder = 'orderid asc, id asc';
     $sort->applyOrder($criteria);
     $pages = new CPagination(AdminLink::model()->count($criteria));
     $pages->pageSize = $criteria->limit;
     $pages->applyLimit($criteria);
     $models = AdminLink::model()->findAll($criteria);
     $data = array('models' => $models, 'sort' => $sort, 'pages' => $pages);
     $this->render('list', $data);
 }
Exemple #8
0
 function display($tpl = NULL)
 {
     // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung
     $model = $this->getModel();
     $adminLink = new AdminLink();
     $adminLink->view = "turform";
     $adminLink->more = array('task' => 'edit', 'id' => $model->param['id']);
     $adminLink->makeURL();
     clm_core::$load->load_css("icons_images");
     JToolBarHelper::title($model->turnier->name . ": " . JText::_('PARTICIPANTS'), 'clm_turnier.png');
     $clmAccess = clm_core::$access;
     if ($model->turnier->tl == clm_core::$access->getJid() and $clmAccess->access('BE_tournament_edit_detail') !== false or $clmAccess->access('BE_tournament_edit_detail') === true) {
         // noch Spieler möglich
         if ($model->turnier->teil > $model->playersTotal) {
             JToolBarHelper::addNew('add', JText::_('ADD'));
             JToolBarHelper::spacer();
         }
         // Nachzügler aufnehmen
         if ($model->turnier->teil == $model->playersTotal and $model->turnier->started and $model->turnier->typ == 1) {
             // nur bei CH-System
             JToolBarHelper::addNew('add_nz', JText::_('ADD_NZ'));
             JToolBarHelper::custom('del_player', 'cancel.png', 'copy_f2.png', JText::_('DEL_PLAYER'), false);
             JToolBarHelper::spacer();
         }
         // noch keine Ergebnisse eingetragen
         if (!$model->turnier->started) {
             if ($model->turnier->typ == 1) {
                 // nur bei CH-System
                 JToolBarHelper::custom('plusTln', 'upload.png', 'upload_f2.png', JText::_('PARTICIPANT_PLUS'), false);
                 JToolBarHelper::spacer();
             }
             JToolBarHelper::custom('sortByTWZ', 'copy.png', 'copy_f2.png', JText::_('SNR_BY_TWZ'), false);
             JToolBarHelper::custom('sortByRandom', 'copy.png', 'copy_f2.png', JText::_('SNR_BY_RANDOM'), false);
             JToolBarHelper::custom('sortByOrdering', 'copy.png', 'copy_f2.png', JText::_('SNR_BY_ORDERING'), false);
             JToolBarHelper::spacer();
             JToolBarHelper::deleteList();
             JToolBarHelper::spacer();
         } else {
             if ($model->turnier->typ != 3) {
                 // nicht bei KO
                 JToolBarHelper::custom('setRanking', 'copy.png', 'copy_f2.png', JText::_('SET_RANKING'), false);
                 JToolBarHelper::spacer();
             }
         }
     }
     JToolBarHelper::cancel();
     if ($model->turnier->tl == clm_core::$access->getJid() and $clmAccess->access('BE_tournament_edit_detail') !== false or $clmAccess->access('BE_tournament_edit_detail') === true) {
         JToolBarHelper::divider();
         JToolBarHelper::spacer();
         JToolBarHelper::custom('turform', 'config.png', 'config_f2.png', JText::_('TOURNAMENT'), false);
     }
     // Daten an Template übergeben
     $this->assignRef('user', $model->user);
     $this->assignRef('turnier', $model->turnier);
     $this->assignRef('turplayers', $model->turPlayers);
     $this->assignRef('form', $model->form);
     $this->assignRef('param', $model->param);
     $this->assignRef('pagination', $model->pagination);
     // zusätzliche Funktionalitäten
     JHtml::_('behavior.tooltip');
     parent::display();
 }
 function delete()
 {
     // Check for request forgeries
     //JRequest::checkToken() or die( 'Invalid Token' );
     $option = JRequest::getCmd('option');
     $datei = JRequest::getVar('datei');
     $app = JFactory::getApplication();
     if ($datei) {
         $filesDir = 'components' . DS . $option . DS . 'dewis';
         jimport('joomla.filesystem.file');
         JFile::delete($filesDir . DS . $datei);
         $msg = JText::_('DB_DEL_SUCCESS');
     } else {
         $msg = JText::_('Keine Datei gefunden !');
     }
     $app->enqueueMessage($msg, 'warning');
     $adminLink = new AdminLink();
     $adminLink->view = "auswertung";
     $adminLink->makeURL();
     $app->redirect($adminLink->url);
 }
					<?php 
    if ($row->enddate != 0) {
        echo "&nbsp;-&nbsp;" . JHtml::_('date', $row->enddate, JText::_('DATE_FORMAT_CLM'));
    }
    ?>
				</td>
				<td align="center">
					<?php 
    if ($row->starttime != '00:00:00') {
        echo substr($row->starttime, 0, 5);
    }
    ?>
				</td>
				<td>
					<?php 
    $adminLink = new AdminLink();
    $adminLink->view = "termineform";
    $adminLink->more = array('task' => 'edit', 'id' => $row->id);
    $adminLink->makeURL();
    ?>
						<span class="editlinktip hasTip" title="<?php 
    echo JText::_('EDIT');
    ?>
::<?php 
    echo $row->name;
    ?>
">
							<a href="<?php 
    echo $adminLink->url;
    ?>
">
    function display()
    {
        $db =& JFactory::getDBO();
        $query = " SELECT COUNT(id) as count FROM #__clm_user ";
        $db->setQuery($query);
        $count_id = $db->loadObjectList();
        $count = $count_id[0]->count;
        // Joomla-Version ermitteln
        $version = new JVersion();
        $joomlaVersion = $version->getShortVersion();
        if (substr_count($joomlaVersion, '1.5')) {
            $user =& JFactory::getUser();
            $jid = $user->get('id');
            $type = $user->get('usertype');
            if ($type == 'Super Administrator' or $type == 'Administrator') {
                $admin_access = 'YES';
            } else {
                $admin_access = 'NO';
            }
        } else {
            $user =& JFactory::getUser();
            $jid = $user->get('id');
            $gruppe = $user->get('groups');
            $type = $gruppe['Administrator'];
            if ($gruppe['Administrator'] > 6 or $gruppe['Super Benutzer'] > 6) {
                $admin_access = 'YES';
            } else {
                $admin_access = 'NO';
            }
            //////////////////////////////////////////////////////////////////////////////////
            // Hier kommt der Code zum ermitteln des Joomla Nutzers unter J1.6 und größer hin.
            //////////////////////////////////////////////////////////////////////////////////
        }
        // Menubilder laden
        require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php';
        if (CLM_usertype == "NO" and $count != 0 and $admin_access == 'NO') {
            JError::raiseNotice(6000, JText::_('INFO_NO_CLM'));
        }
        if (CLM_usertype == "NO" and ($count == 0 or $admin_access == 'YES')) {
            if ($admin_access == 'YES') {
                JError::raiseNotice(6000, JText::_('Drücken Sie den \'User erstellen\' Knopf um ihren CLM Admin Zugang zu aktivieren !'));
                JToolBarHelper::title(JText::_('Admin Account anlegen'), 'generic.png');
                JToolBarHelper::custom('admin_user', 'send.png', 'send_f2.png', 'INFO_FIRST_USER', false);
            } else {
                JToolBarHelper::title(JText::_('INFO_FIRST_CLM'), 'generic.png');
                JToolBarHelper::custom('first_user', 'send.png', 'send_f2.png', 'INFO_FIRST_USER', false);
            }
        } else {
            JToolBarHelper::title(JText::_('TITLE_INFO'), 'clm_logo_bg.png');
        }
        JToolBarHelper::help('screen.clm.info');
        // Erster User noch nicht angelegt
        if (CLM_usertype == "NO" and ($count == 0 or $admin_access == 'YES')) {
            ?>
	
		<form action="index.php" method="post" name="adminForm">
	
		<?php 
            if ($count == 0) {
                echo JText::_('INFO_NO_USER');
            }
            ?>
			<input type="hidden" name="section" value="info" />
			<input type="hidden" name="option" value="com_clm" />
			<input type="hidden" name="task" value="" />
			<?php 
            echo JHTML::_('form.token');
            ?>
			</form>
	
	
	<?php 
        } else {
            // User angelegt -> Informationen einblenden
            $option = JRequest::getCmd('option');
            ?>
	
	<fieldset class="adminform">
		<legend>Info</legend>
	
	<div class="col width-70">
	<div id="clm">
	
	<div class="icon-container">
	<div class="icon">
		<a href="index.php?option=com_clm&section=saisons" title="">
		<img src="components/com_clm/images/clm_saison.png" align="middle" border="0" alt="" />
		<span><?php 
            echo JText::_('INFO_BUTTON_SEASON');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=<?php 
            echo $option;
            ?>
&amp;section=saisons&amp;task=add" title=""> <img src="components/com_clm/images/clm_saison_neu.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_SEASON_ADD');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> 
			<?php 
            $adminLink = new AdminLink();
            $adminLink->view = "terminemain";
            $adminLink->more = array();
            $adminLink->makeURL();
            ?>
		<a href="<?php 
            echo $adminLink->url;
            ?>
" title=""> <img src="components/com_clm/images/clm_termine.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_TERMINE');
            ?>
</span></a> 
		</div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> 
			<?php 
            $adminLink = new AdminLink();
            $adminLink->view = "termineform";
            $adminLink->more = array('task' => 'add');
            $adminLink->makeURL();
            ?>
		<a href="<?php 
            echo $adminLink->url;
            ?>
" title=""> <img src="components/com_clm/images/clm_termine_neu.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_TERMINE_ADD');
            ?>
</span></a> 
		</div>
	</div>
    
	<div class="icon-container">
	<div class="icon"> 
			<?php 
            $adminLink = new AdminLink();
            $adminLink->view = "turmain";
            $adminLink->more = array();
            $adminLink->makeURL();
            ?>
		<a href="<?php 
            echo $adminLink->url;
            ?>
" title=""> <img src="components/com_clm/images/clm_turniere.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_TOURNAMENTS');
            ?>
</span></a> 
		</div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> 
			<?php 
            $adminLink = new AdminLink();
            $adminLink->view = "turform";
            $adminLink->more = array('task' => 'add');
            $adminLink->makeURL();
            ?>
		<a href="<?php 
            echo $adminLink->url;
            ?>
" title=""> <img src="components/com_clm/images/clm_turniere_neu.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_TOURNAMENT_ADD');
            ?>
</span></a> 
		</div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=com_clm&section=ligen" title=""> <img src="components/com_clm/images/clm_liga.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_LEAGUE');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=<?php 
            echo $option;
            ?>
&amp;section=ligen&amp;task=add" title=""> <img src="components/com_clm/images/clm_liga_neu.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_LEAGUE_ADD');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=com_clm&section=mturniere" title=""> <img src="components/com_clm/images/clm_mturnier.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_T_TOURNAMENTS');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=<?php 
            echo $option;
            ?>
&amp;section=mturniere&amp;task=add" title=""> <img src="components/com_clm/images/clm_mturnier_neu.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_T_TOURNAMENT_ADD');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=com_clm&section=vereine" title=""> <img src="components/com_clm/images/clm_verein.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_CLUB');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=<?php 
            echo $option;
            ?>
&amp;section=vereine&amp;task=add" title=""> <img src="components/com_clm/images/clm_verein_neu.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_CLUB_ADD');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=com_clm&section=mannschaften" title=""> <img src="components/com_clm/images/clm_mannschaften.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_TEAM');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=<?php 
            echo $option;
            ?>
&amp;section=mannschaften&amp;task=add" title=""> <img src="components/com_clm/images/clm_mannschaften_neu.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_TEAM_ADD');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=com_clm&section=dwz" title=""> <img src="components/com_clm/images/clm_mitgliederverwaltung.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_MEMBER');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=com_clm&section=users" title=""> <img src="components/com_clm/images/clm_benutzer.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_USER');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=com_clm&section=elobase" title=""> <img src="components/com_clm/images/clm_elo-base.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_ELO');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=com_clm&section=db" title=""> <img src="components/com_clm/images/clm_datenbank.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_DATABASE');
            ?>
</span></a> </div>
	</div>
	
	<div class="icon-container">
	<div class="icon"> <a href="index.php?option=com_clm&section=swt" title=""> <img src="components/com_clm/images/clm_generic.png" align="middle" border="0" alt="" /> <span><?php 
            echo JText::_('INFO_BUTTON_SWT');
            ?>
</span></a> </div>
	</div>
	
	<?php 
            if (CLM_user == 100) {
                ?>
		<div class="icon-container">
		<div class="icon"> <a href="index.php?option=com_clm&view=config" title=""> <img src="components/com_clm/images/clm_einstellungen.png" align="middle" border="0" alt="" /> <span><?php 
                echo JText::_('CONFIG_TITLE');
                ?>
</span></a> </div>
		</div>
	<?php 
            }
            ?>
	
	</div>
	</div>
	
	<?php 
            $Dir = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm';
            $data = JApplicationHelper::parseXMLInstallFile($Dir . DS . 'clm.xml');
            // aktuelle Versionsnummern auslesen !
            if (ini_get('allow_url_fopen') == 0) {
                $clm_version[1] = "<font color='red'>" . JText::_('INFO_HINT_NO_FOPEN') . "</font>";
                $clm_version[3] = "<font color='red'>" . JText::_('INFO_HINT_NO_FOPEN') . "</font>";
            } elseif (!($fp = fopen("http://www.chessleaguemanager.de/download/clm_version.csv", "r"))) {
                $clm_version[1] = "<font color='red'>" . JText::_('INFO_HINT_NO_SERVER') . "</font>";
                $clm_version[3] = "<font color='red'>" . JText::_('INFO_HINT_NO_SERVER') . "</font>";
            } else {
                $clm_version = fgetcsv($fp, 500, "|");
                $upgrade = "00FF00";
                $aktuell = explode("v", $clm_version[1]);
                $install = explode("v", $data['version']);
                if ($install[0] < $aktuell[0]) {
                    $upgrade = "FF0000";
                }
                if ($install[0] == $aktuell[0] and $aktuell[1] > $install[1]) {
                    $upgrade = "FE9A2E";
                }
            }
            ?>
	
	<div id="clm_infobox" class="col width-30">
		<fieldset class="adminform">
		<legend>CLM</legend>
	<img src="components/com_clm/images/clm_logo.png" alt="" />
	<br>
	<h3><?php 
            echo JText::_('INFO_HINT_1');
            ?>
</h3>
	<table border="0">
	<tr>
		<td><?php 
            echo JText::_('INFO_HINT_2');
            ?>
</td>
		<td>&nbsp;</td>
		<td><font color="#<?php 
            echo $upgrade;
            ?>
"><?php 
            echo $data['version'];
            ?>
</font></td>
	</tr>
	<tr>
		<td><?php 
            echo JText::_('INFO_HINT_3');
            ?>
</td>
		<td>&nbsp;</td>
		<td><?php 
            echo $clm_version[1];
            ?>
</td>
	</tr>
	<tr>
		<td><?php 
            echo JText::_('INFO_HINT_4');
            ?>
</td>
		<td>&nbsp;</td>
		<td><?php 
            echo $clm_version[3];
            ?>
</td>
	</tr>
	</table>
	
	<br>
	<a href="http://www.chessleaguemanager.de" target="blank"><?php 
            echo JText::_('INFO_HINT_5');
            ?>
</a>  |  <a href="http://www.chessleaguemanager.de/index.php?option=com_kunena" target="blank"><?php 
            echo JText::_('INFO_HINT_6');
            ?>
</a>
	<br>
	<br>
	<u><?php 
            echo JText::_('INFO_HINT_7');
            ?>
</u>
	<ul type="square">
		<?php 
            for ($h = 8; $h <= 14; $h++) {
                echo '<li>' . JText::_('INFO_HINT_' . $h) . '</li>';
            }
            ?>
	<br>
	</div>
	</fieldset><?php 
        }
    }