if registration is disabled, send the site register link to pubsites
This commit is contained in:
parent
400753b6cc
commit
bba188eae3
14
boot.php
14
boot.php
@ -1410,14 +1410,12 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) {
|
|||||||
$reglink = get_config('system','register_link');
|
$reglink = get_config('system','register_link');
|
||||||
if(! strlen($reglink))
|
if(! strlen($reglink))
|
||||||
$reglink = 'register';
|
$reglink = 'register';
|
||||||
|
|
||||||
if ($register) {
|
$reg = array(
|
||||||
$reg = array(
|
'title' => t('Create an account to access services and applications within the Red Matrix'),
|
||||||
'title' => t('Create a New Account'),
|
'desc' => t('Register'),
|
||||||
'desc' => t('Register'),
|
'link' => (($register) ? $reglink : 'pubsites')
|
||||||
'link' => $reglink
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$dest_url = $a->get_baseurl(true) . '/' . $a->query_string;
|
$dest_url = $a->get_baseurl(true) . '/' . $a->query_string;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ function pubsites_content(&$a) {
|
|||||||
$o .= '<h1>' . t('Public Sites') . '</h1>';
|
$o .= '<h1>' . t('Public Sites') . '</h1>';
|
||||||
|
|
||||||
$o .= '<div class="descriptive-text">' .
|
$o .= '<div class="descriptive-text">' .
|
||||||
t('The listed sites allow public registration. Some may require subscription or provide tiered service plans. The provider links may provide additional details.') . '</div>' . EOL;
|
t('The listed sites allow public registration into the Red Matrix. All sites in the matrix are interlinked so membership on any of them conveys membership in the matrix as a whole. Some sites may require subscription or provide tiered service plans. The provider links may provide additional details.') . '</div>' . EOL;
|
||||||
|
|
||||||
$ret = z_fetch_url($url);
|
$ret = z_fetch_url($url);
|
||||||
if($ret['success']) {
|
if($ret['success']) {
|
||||||
|
Reference in New Issue
Block a user