$service) { $o = new $service($core); $o->saveSettings(); } $core->blog->triggerBlog(); http::redirect($p_url.'&part=service§ion='.$section.'&msg='.$action); } catch (Exception $e) { $core->error->add($e->getMessage()); } } echo ' kUtRL, '.__('Links shortener').''.$header. dcPage::jsLoad('index.php?pf=kUtRL/js/service.js'). "\n". '

kUtRL'. ' › '.__('Links').''. ' › '.__('Services'). ' - '.__('New link').''. '

'.$msg.'
'; foreach(kutrl::getServices($core) as $service_id => $service) { $o = new $service($core); echo '
'.$o->name.''; if (!empty($msg)) { echo '

'.( $o->testService() ? $img_green.' '.sprintf(__('%s API is well configured and runing.'),$o->name) : $img_red.' '.sprintf(__('Failed to test %s API.'),$o->name) ).'

'; //if ($o->error->flag()) { echo $o->error->toHTML(); //} } if (!empty($o->home)) { echo '

'.sprintf(__('Learn more about %s.'),$o->name).'

'; } $o->settingsForm(); echo '
'; } echo '

'. $core->formNonce(). form::hidden(array('p'),'kUtRL'). form::hidden(array('part'),'service'). form::hidden(array('action'),'saveservice'). form::hidden(array('section'),$section).'

'; dcPage::helpBlock('kUtRL'); echo $footer.''; ?>