<?php
require_once($path['cb'].$cbDirLib.'CB_media.class.php');
$myMedia = new MediaManagement();
$myMedia->setOptionObject($cbOption);
$myMedia->setBranchID($cbOption->getSingleOption("rpBranch"));
$mediaDirectory = $myMedia->getBranchDirectory();
$replacePath = $path['cb'].$myMedia->uploadDir.$mediaDirectory.'/';
if($rpQuery) {
while($rpRow = mysql_fetch_object($rpQuery)) {
if(is_file($replacePath.$rpRow->replacewith)) {
$iconName[] = $rpRow->replacewith;
$iconText[] = $rpRow->replacetext;
}
}
}
$commentIcons = array (
"ICONPATH" => $replacePath,
"ICONTEXT" => $iconText,
"ICONNAME" => $iconName
);
$tpl->assign("COMMENTicons", $commentIcons);
$commentGeneral = array (
"OPENFOLDER" => $openfolder,
"ENTRYID" => $entryID,
"IDLABEL" => $idLabel,
"SUBMITLABEL" => $submitLabel
);
$tpl->assign("COMMENTgeneral", $commentGeneral);
?>