coins: add link_site field

don't forget to restart memcached service to refresh the db structure
This commit is contained in:
Tanguy Pruvot 2016-03-31 10:59:35 +02:00
parent 3498e311da
commit b43fa9236b
5 changed files with 21 additions and 1 deletions

View file

@ -1,6 +1,8 @@
-- Recent additions to add after db init (.gz)
-- mysql yaamp -p < file.sql
-- don't forget to restart memcached service to refresh the db structure
ALTER TABLE `coins` ADD `rpcssl` TINYINT(1) NOT NULL DEFAULT '0' AFTER `rpcport`;
ALTER TABLE `coins` ADD `rpccurl` TINYINT(1) NOT NULL DEFAULT '0' AFTER `rpcport`;
ALTER TABLE `coins` ADD `rpccert` VARCHAR(255) NULL AFTER `rpcssl`;

View file

@ -527,6 +527,9 @@ function getAdminWalletLinks($coin, $info=NULL, $src='wallet')
if(!empty($coin->link_github))
$html .= CHtml::link('git', $coin->link_github, array('target'=>'_blank')).' ';
if(!empty($coin->link_site))
$html .= CHtml::link('site', $coin->link_site, array('target'=>'_blank')).' ';
$html .= CHtml::link('google', 'http://google.com/search?q='.urlencode($coin->name.' '.$coin->symbol.' bitcointalk'), array('target'=>'_blank'));
return $html;

View file

@ -47,6 +47,12 @@ echo CUFHtml::activeTextField($coin, 'link_github');
echo "<p class='formHint2'></p>";
echo CUFHtml::closeCtrlHolder();
echo CUFHtml::openActiveCtrlHolder($coin, 'link_site');
echo CUFHtml::activeLabelEx($coin, 'link_site');
echo CUFHtml::activeTextField($coin, 'link_site');
echo "<p class='formHint2'></p>";
echo CUFHtml::closeCtrlHolder();
echo CUFHtml::openActiveCtrlHolder($coin, 'link_exchange');
echo CUFHtml::activeLabelEx($coin, 'link_exchange');
echo CUFHtml::activeTextField($coin, 'link_exchange');

View file

@ -69,7 +69,10 @@ foreach($list as $coin)
echo "<td>";
if(!empty($coin->link_bitcointalk))
echo "<a href='$coin->link_bitcointalk' target=_blank>forum</a> ";
echo CHtml::link('forum', $coin->link_bitcointalk, array('target'=>'_blank'));
elseif(!empty($coin->link_site))
echo CHtml::link('site', $coin->link_site, array('target'=>'_blank'));
echo "</td>";
echo "</tr>";

View file

@ -327,6 +327,12 @@ echo CUFHtml::activeTextField($coin, 'link_github');
echo "<p class='formHint2'></p>";
echo CUFHtml::closeCtrlHolder();
echo CUFHtml::openActiveCtrlHolder($coin, 'link_site');
echo CUFHtml::activeLabelEx($coin, 'link_site');
echo CUFHtml::activeTextField($coin, 'link_site');
echo "<p class='formHint2'></p>";
echo CUFHtml::closeCtrlHolder();
echo CUFHtml::openActiveCtrlHolder($coin, 'link_exchange');
echo CUFHtml::activeLabelEx($coin, 'link_exchange');
echo CUFHtml::activeTextField($coin, 'link_exchange');