64 $agreement =
"./Customizing/clients/".CLIENT_ID.
"/agreement/".
65 "agreement_".$lng->lang_key.
".html";
68 if (!file_exists($agreement))
70 $agreement =
"./Customizing/clients/".CLIENT_ID.
"/agreement/".
71 "agreement_".$lng->lang_default.
".html";
75 if (!file_exists($agreement))
77 $agreement =
"./Customizing/clients/".CLIENT_ID.
"/agreement/".
82 if (!file_exists($agreement))
84 $agreement =
"./Customizing/global/agreement/".
85 "agreement_".$lng->lang_key.
".html";
89 if (!file_exists($agreement))
91 $agreement =
"./Customizing/global/agreement/".
92 "agreement_".$lng->lang_default.
".html";
96 if (!file_exists($agreement))
98 $ilLog->write(
"view_usr_agreement.php: Agreement file ".
"agreement_".$lng->lang_default.
".html".
" has not been found (system language).");
99 $agreement =
"./Customizing/global/agreement/".
103 if (file_exists($agreement))
105 if ($content = file($agreement))
107 foreach ($content as $key => $val)
109 $text .= trim(nl2br($val));
115 return "<br />".$lng->txt(
"no_agreement_description").
"<br /><br />";