Beispiel #1
0
function helpMarkup($content, $module)
{
    $content = str_replace("\r\n\r\n", "<p>", $content);
    $content = preg_replace("/\\[\\[title\\|(.*?)\\]\\]/", "<h2>\\1</h2>", $content);
    $content = preg_replace("/\\[\\[button\\|(.*?)\\]\\]/", "<button>\\1</button>", $content);
    $content = preg_replace("/\\[\\[help\\|(.*?)\\|(.*?)\\]\\]/", '<a href="' . WEBROOT . '/help/view/\\1">\\2</a>', $content);
    $content = replaceImage($content, $module);
    $content = replaceVideo($content, $module);
    return $content;
}
Beispiel #2
0
     doprune($kunena_db, $option);
     break;
 case "douserssync":
     douserssync($kunena_db, $option);
     break;
 case "syncusers":
     syncusers($kunena_db, $option);
     break;
 case "browseImages":
     browseUploaded($kunena_db, $option, 1);
     break;
 case "browseFiles":
     browseUploaded($kunena_db, $option, 0);
     break;
 case "replaceImage":
     replaceImage($kunena_db, $option, JRequest::getVar('img', ''), JRequest::getInt('OxP', 1));
     break;
 case "deleteFile":
     deleteFile($kunena_db, $option, JRequest::getVar('fileName', ''));
     break;
 case "showAdministration":
     showAdministration($option);
     break;
 case 'recount':
     CKunenaTools::reCountBoards();
     // Also reset the name info stored with messages
     CKunenaTools::updateNameInfo();
     $app->redirect(JURI::base() . 'index2.php?option=com_kunena', _KUNENA_RECOUNTFORUMS_DONE);
     break;
 case "showsmilies":
     showsmilies($option);