Compare commits
272 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 498b0ade38 | |||
| 6885225a8e | |||
| 1846d0a2c2 | |||
| f9c6edc8da | |||
| d19db94df3 | |||
| 9330f3e1fa | |||
| 8a30c5bec2 | |||
| e073353ff2 | |||
| b7e6e7a119 | |||
| 13733eb075 | |||
| 99b8fb5541 | |||
| 6ac660f4ac | |||
| 63dcec6662 | |||
| efdcc40927 | |||
| 8a6afdde27 | |||
| 0fece2d628 | |||
| e0734f6277 | |||
| 2e3a3337b1 | |||
| ebf0aeec86 | |||
| e875530645 | |||
| b475fec548 | |||
| 7eb7ca6786 | |||
| ef62ec7c66 | |||
| 06b9f960de | |||
| 1992b70a32 | |||
| 7eb43d9d01 | |||
| f8b6fda2a7 | |||
| 5bb3fdc73d | |||
| 93a4a32e2e | |||
| 7a38e689f2 | |||
| 5ba0a8b71e | |||
| 1e3f87b91e | |||
| b17cc53447 | |||
| cf7f20fc54 | |||
| 365b745202 | |||
| db8d52b560 | |||
| 602572d131 | |||
| 71186e4168 | |||
| 627e2cb6f5 | |||
| 0b75065449 | |||
| 63bcf21fbf | |||
| fc5e568fbf | |||
| 5194a4f938 | |||
| 82e0a886c2 | |||
| e57069e318 | |||
| c26c206276 | |||
| 8a16c85e8c | |||
| bdb0e3e233 | |||
| 97f4bb9fde | |||
| 02d0084a51 | |||
| 5af25dd922 | |||
| 665ba7679d | |||
| 0b32c364a1 | |||
| e041c56184 | |||
| dbc804de90 | |||
| 07715b2c5e | |||
| 04a3e8b1f0 | |||
| ab9cba84ae | |||
| f374ad64d1 | |||
| 435c0a785b | |||
| e5c825ab8a | |||
| c4c28a7468 | |||
| abf7d22073 | |||
| 48f1234896 | |||
| defb0f64f0 | |||
| f2f07143e3 | |||
| 0759221a5e | |||
| 3744e9ef24 | |||
| 0455e362ae | |||
| c5f0168382 | |||
| cc980ff6e5 | |||
| 65dc989055 | |||
| 38d739257d | |||
| 2c16f768ed | |||
| 254dfd1f0f | |||
| d944e872b7 | |||
| 1e1e2438c6 | |||
| 32579e3d1c | |||
| ed16449ba6 | |||
| 0c6b31f211 | |||
| 867ab98575 | |||
| b4de8efe5d | |||
| ea9700180d | |||
| 8e07f16724 | |||
| aa54c77cf7 | |||
| 02875a7622 | |||
| c6c934b578 | |||
| f0e870d0cf | |||
| c54c59e7d8 | |||
| 32af0dbef2 | |||
| 3da1e9c5f4 | |||
| 206c91a1c4 | |||
| 44bba1e66c | |||
| 62d6eb1f83 | |||
| c1dfbdaea4 | |||
| f38b8c88bf | |||
| 6e8e2bb04c | |||
| 988e9b0f64 | |||
| 7d80c9a0fe | |||
| 619c19d863 | |||
| 13eef19b99 | |||
| 50a8e2b90c | |||
| ddf17a0c4e | |||
| d84da076cc | |||
| c8b5ebc8e3 | |||
| d749b452d3 | |||
| ef1720eb6f | |||
| b95a25b7a8 | |||
| ec53ceed49 | |||
| c157c72d4c | |||
| 3835cc29f3 | |||
| aa44e74ce3 | |||
| 9300321849 | |||
| 64511f27aa | |||
| 522e4ab8c3 | |||
| 0ad6f487be | |||
| 255b8281b6 | |||
| d5e89c7964 | |||
| 906faa5a1f | |||
| f038db5c7c | |||
| fff59beb90 | |||
| 6e5dfc1b4b | |||
| d448df5a1c | |||
| 4bfc6cbdfd | |||
| c99f31c86b | |||
| 89eedbe1cb | |||
| 60c540f5a6 | |||
| 345a24669b | |||
| 87806bd4bc | |||
| 0d47dafb08 | |||
| 105eb2d512 | |||
| bd68242fb0 | |||
| bf4dde1e29 | |||
| 2340efe201 | |||
| aa87f6cb14 | |||
| 571709c448 | |||
| bec23ebe9c | |||
| e88e09a1f1 | |||
| 12d3294e0a | |||
| 4ec9d6b07d | |||
| dc5f29bf8c | |||
| 0088d8ce7e | |||
| a90d5b6082 | |||
| c9af47a031 | |||
| f7a197e8fa | |||
| 623e2d59d1 | |||
| e0260731dc | |||
| 1282d92329 | |||
| 1fdfed864f | |||
| 4bf780bf99 | |||
| 240363ac49 | |||
| c68631a272 | |||
| e5b7520dce | |||
| 4b51c3fb2f | |||
| d8bfab810c | |||
| 242f42a49f | |||
| f2d7523e1d | |||
| a1b6cb7da4 | |||
| 1f56978e1a | |||
| 8c4f5bc33f | |||
| 1f72738c04 | |||
| c6d9053948 | |||
| 274a1cc850 | |||
| 9165153bd3 | |||
| a478b383cd | |||
| 4e4955b55e | |||
| fb7e6a9a0d | |||
| 62f0cff4ce | |||
| 4c9c6f0ddb | |||
| 4bea11eae5 | |||
| 740972a826 | |||
| a53b72f516 | |||
| 224ac0b90f | |||
| f6fd87d97b | |||
| 7fa260c83c | |||
| 877f1e2485 | |||
| a17912002b | |||
| a9aaede659 | |||
| d2436bf26b | |||
| 3fa20034ae | |||
| 2e13c2864f | |||
| 15a9e839f2 | |||
| 847bb2fd19 | |||
| 6d139a20d6 | |||
| a262b1c15e | |||
| 302348cb4d | |||
| d183669cc1 | |||
| 6c1f6b016d | |||
| 983927938a | |||
| 7cfae72475 | |||
| 5e195c8235 | |||
| b1fbc8be30 | |||
| f7fa56821d | |||
| 62b4a55e5c | |||
| 8fb75b1d7a | |||
| c5ade93e96 | |||
| dcbdab7312 | |||
| 933b96a3a8 | |||
| 490e14d6cc | |||
| 93f1172f98 | |||
| e19a4892a9 | |||
| 5f75ca701e | |||
| b5655a6578 | |||
| 9a825e9082 | |||
| ecca8c346b | |||
| f057ecd40c | |||
| 418deec57c | |||
| 73254d7861 | |||
| 3f9e92b025 | |||
| 1f3ef341bd | |||
| c607a0ea03 | |||
| a83cdea8e3 | |||
| 6792aa17f6 | |||
| 63620c1d78 | |||
| 218ff7fb75 | |||
| 0680a761f7 | |||
| 43d67c7d22 | |||
| 5b526573d0 | |||
| 8fc7b48708 | |||
| c03ace0bdb | |||
| 9c29e6bfc6 | |||
| 27e053a25a | |||
| 1d64431c90 | |||
| f02cc7bf03 | |||
| 8e3391e166 | |||
| 165d5ca1a3 | |||
| 743fd57f2c | |||
| 7527707dd5 | |||
| 2eedb5babd | |||
| fa31cbab04 | |||
| 9ea6e88ff2 | |||
| a2c075aaac | |||
| 7387acb1e0 | |||
| 8e3cb48829 | |||
| 19161949aa | |||
| 5d3a303539 | |||
| 39a3b2af0f | |||
| 5d23030fc8 | |||
| 94446a8d68 | |||
| a9b2d797dc | |||
| ed7646af01 | |||
| e7dc0e4f15 | |||
| 95151a7493 | |||
| f6b8d22716 | |||
| cc518e4615 | |||
| e8b3db0f95 | |||
| 9d3e59b7ba | |||
| 7f3981ef41 | |||
| 4d16e6f650 | |||
| 6962ab2a64 | |||
| 5fa8b35428 | |||
| 6c831d73d3 | |||
| bfe239f1e6 | |||
| b2c1183316 | |||
| 7b518b7227 | |||
| 66c041bd00 | |||
| 9db58d015f | |||
| 1be35acd87 | |||
| 34e3e0b732 | |||
| cede8c8fa3 | |||
| 0df32c07c7 | |||
| 390b1cf724 | |||
| 4d7928e235 | |||
| 32f87cd80f | |||
| 1cf107ac7d | |||
| c251af9516 | |||
| 8005dfec30 | |||
| c393c9a44c | |||
| c2697aeeb2 | |||
| 0283b62467 | |||
| 17a0ab80ed | |||
| 210a02693d |
+16
-6
@@ -200,6 +200,11 @@
|
||||
<ON_OK message="questioncwqpfsok" />
|
||||
</FEEDBACK>
|
||||
</CUSTOM_CHECK>
|
||||
<CUSTOM_CHECK file="lib/customcheckslib.php" function="php_check_register_globals" level="optional">
|
||||
<FEEDBACK>
|
||||
<ON_CHECK message="globalswarning" />
|
||||
</FEEDBACK>
|
||||
</CUSTOM_CHECK>
|
||||
</CUSTOM_CHECKS>
|
||||
</MOODLE>
|
||||
<MOODLE version="2.0" requires="1.9">
|
||||
@@ -220,8 +225,9 @@
|
||||
<VENDOR name="odbc_mssql" version="9.0" />
|
||||
<VENDOR name="mssql_n" version="9.0" />
|
||||
<VENDOR name="oracle" version="9.0" />
|
||||
<VENDOR name="sqlite" version="2.0" />
|
||||
</DATABASE>
|
||||
<PHP version="5.2.0" level="required">
|
||||
<PHP version="5.2.4" level="required">
|
||||
</PHP>
|
||||
<PHP_EXTENSIONS>
|
||||
<PHP_EXTENSION name="iconv" level="optional">
|
||||
@@ -234,9 +240,9 @@
|
||||
<ON_CHECK message="mbstringrecommended" />
|
||||
</FEEDBACK>
|
||||
</PHP_EXTENSION>
|
||||
<PHP_EXTENSION name="curl" level="optional">
|
||||
<PHP_EXTENSION name="curl" level="required">
|
||||
<FEEDBACK>
|
||||
<ON_CHECK message="curlrecommended" />
|
||||
<ON_CHECK message="curlrequired" />
|
||||
</FEEDBACK>
|
||||
</PHP_EXTENSION>
|
||||
<PHP_EXTENSION name="openssl" level="optional">
|
||||
@@ -259,12 +265,16 @@
|
||||
<ON_ERROR message="ctyperequired" />
|
||||
</FEEDBACK>
|
||||
</PHP_EXTENSION>
|
||||
<PHP_EXTENSION name="zip" level="required">
|
||||
<FEEDBACK>
|
||||
<ON_ERROR message="ziprequired" />
|
||||
</FEEDBACK>
|
||||
</PHP_EXTENSION>
|
||||
</PHP_EXTENSIONS>
|
||||
<CUSTOM_CHECKS>
|
||||
<CUSTOM_CHECK file="question/upgrade.php" function="question_check_no_rqp_questions" level="optional">
|
||||
<CUSTOM_CHECK file="lib/customcheckslib.php" function="php_check_register_globals" level="optional">
|
||||
<FEEDBACK>
|
||||
<ON_CHECK message="qtyperqpwillberemovedanyway" />
|
||||
<ON_OK message="qtyperqpwillberemoved" />
|
||||
<ON_CHECK message="globalswarning" />
|
||||
</FEEDBACK>
|
||||
</CUSTOM_CHECK>
|
||||
</CUSTOM_CHECKS>
|
||||
|
||||
+193
-1
@@ -525,11 +525,203 @@ class problem_000011 extends problem_base {
|
||||
}
|
||||
return 'Error counter was cleared.';
|
||||
} else {
|
||||
return '<p>Session errors can be caused by:<ul><li>unresolved problem in server software (aka random switching of users),</li><li>blocked or modified cookies,</li><li>deleting of active session files.</li></ul></p><p><a href="'.me().'&resetsesserrorcounter=1">Reset counter.</a></p>';
|
||||
return '<p>Session errors can be caused by:</p><ul>' .
|
||||
'<li>unresolved problem in server software (aka random switching of users),</li>' .
|
||||
'<li>blocked or modified cookies,</li>' .
|
||||
'<li>deleting of active session files.</li>' .
|
||||
'</ul><p><a href="'.me().'&resetsesserrorcounter=1">Reset counter</a></p>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class problem_000012 extends problem_base {
|
||||
function title() {
|
||||
return 'Random questions data consistency';
|
||||
}
|
||||
function exists() {
|
||||
return record_exists_select('question', "qtype = 'random' AND parent <> id");
|
||||
}
|
||||
function severity() {
|
||||
return SEVERITY_ANNOYANCE;
|
||||
}
|
||||
function description() {
|
||||
return '<p>For random questions, question.parent should equal question.id. ' .
|
||||
'There are some questions in your database for which this is not true. ' .
|
||||
'One way that this could have happened is for random questions restored from backup before ' .
|
||||
'<a href="http://tracker.moodle.org/browse/MDL-5482">MDL-5482</a> was fixed.</p>';
|
||||
}
|
||||
function solution() {
|
||||
global $CFG;
|
||||
return '<p>Upgrade to Moodle 1.9.1 or later, or manually execute the SQL</p>' .
|
||||
'<pre>UPDATE ' . $CFG->prefix . 'question SET parent = id WHERE qtype = \'random\' and parent <> id;</pre>';
|
||||
}
|
||||
}
|
||||
|
||||
class problem_000013 extends problem_base {
|
||||
function title() {
|
||||
return 'Multi-answer questions data consistency';
|
||||
}
|
||||
function exists() {
|
||||
global $CFG;
|
||||
$positionexpr = sql_position(sql_concat("','", "q.id", "','"),
|
||||
sql_concat("','", "qma.sequence", "','"));
|
||||
return record_exists_sql("
|
||||
SELECT * FROM {$CFG->prefix}question q
|
||||
JOIN {$CFG->prefix}question_multianswer qma ON $positionexpr > 0
|
||||
WHERE qma.question <> q.parent") ||
|
||||
record_exists_sql("
|
||||
SELECT * FROM {$CFG->prefix}question q
|
||||
JOIN {$CFG->prefix}question parent_q ON parent_q.id = q.parent
|
||||
WHERE q.category <> parent_q.category");
|
||||
}
|
||||
function severity() {
|
||||
return SEVERITY_ANNOYANCE;
|
||||
}
|
||||
function description() {
|
||||
return '<p>For each sub-question whose id is listed in ' .
|
||||
'question_multianswer.sequence, its question.parent field should equal ' .
|
||||
'question_multianswer.question; and each sub-question should be in the same ' .
|
||||
'category as its parent. There are questions in your database for ' .
|
||||
'which this is not the case. One way that this could have happened is ' .
|
||||
'for multi-answer questions restored from backup before ' .
|
||||
'<a href="http://tracker.moodle.org/browse/MDL-14750">MDL-14750</a> was fixed.</p>';
|
||||
}
|
||||
function solution() {
|
||||
return '<p>Upgrade to Moodle 1.9.1 or later, or manually execute the ' .
|
||||
'code in question_multianswer_fix_subquestion_parents_and_categories in ' .
|
||||
'<a href="http://cvs.moodle.org/moodle/question/type/multianswer/db/upgrade.php?revision=1.1.10.2&view=markup">/question/type/multianswer/db/upgrade.php' .
|
||||
'from the 1.9 stable branch</a>.</p>';
|
||||
}
|
||||
}
|
||||
|
||||
class problem_000014 extends problem_base {
|
||||
function title() {
|
||||
return 'Only multianswer and random questions should be the parent of another question';
|
||||
}
|
||||
function exists() {
|
||||
global $CFG;
|
||||
return record_exists_sql("
|
||||
SELECT * FROM {$CFG->prefix}question q
|
||||
JOIN {$CFG->prefix}question parent_q ON parent_q.id = q.parent
|
||||
WHERE parent_q.qtype NOT IN ('random', 'multianswer')");
|
||||
}
|
||||
function severity() {
|
||||
return SEVERITY_ANNOYANCE;
|
||||
}
|
||||
function description() {
|
||||
return '<p>You have questions that violate this in your databse. ' .
|
||||
'You will need to investigate to determine how this happened.</p>';
|
||||
}
|
||||
function solution() {
|
||||
return '<p>It is impossible to give a solution without knowing more about ' .
|
||||
' how the problem was caused. You may be able to get help from the ' .
|
||||
'<a href="http://moodle.org/mod/forum/view.php?f=121">Quiz forum</a>.</p>';
|
||||
}
|
||||
}
|
||||
|
||||
class problem_000017 extends problem_base {
|
||||
function title() {
|
||||
return 'Question categories tree structure';
|
||||
}
|
||||
function find_problems() {
|
||||
static $answer = null;
|
||||
|
||||
if (is_null($answer)) {
|
||||
$categories = get_records('question_categories', '', '', 'id');
|
||||
|
||||
// Look for missing parents.
|
||||
$missingparent = array();
|
||||
foreach ($categories as $category) {
|
||||
if ($category->parent != 0 && !array_key_exists($category->parent, $categories)) {
|
||||
$missingparent[$category->id] = $category;
|
||||
}
|
||||
}
|
||||
|
||||
// Look for loops.
|
||||
$loops = array();
|
||||
while (!empty($categories)) {
|
||||
$current = array_pop($categories);
|
||||
$thisloop = array($current->id => $current);
|
||||
while (true) {
|
||||
if (isset($thisloop[$current->parent])) {
|
||||
// Loop detected
|
||||
$loops[$current->id] = $thisloop;
|
||||
break;
|
||||
} else if (!isset($categories[$current->parent])) {
|
||||
// Got to the top level, or a category we already know is OK.
|
||||
break;
|
||||
} else {
|
||||
// Continue following the path.
|
||||
$current = $categories[$current->parent];
|
||||
$thisloop[$current->id] = $current;
|
||||
unset($categories[$current->id]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$answer = array($missingparent, $loops);
|
||||
}
|
||||
|
||||
return $answer;
|
||||
}
|
||||
function exists() {
|
||||
list($missingparent, $loops) = $this->find_problems();
|
||||
return !empty($missingparent) || !empty($loops);
|
||||
}
|
||||
function severity() {
|
||||
return SEVERITY_ANNOYANCE;
|
||||
}
|
||||
function description() {
|
||||
list($missingparent, $loops) = $this->find_problems();
|
||||
|
||||
$description = '<p>The question categories should be arranged into tree ' .
|
||||
' structures by the question_categories.parent field. Sometimes ' .
|
||||
' this tree structure gets messed up.</p>';
|
||||
|
||||
if (!empty($missingparent)) {
|
||||
$description .= '<p>The following categories are missing their parents:</p><ul>';
|
||||
foreach ($missingparent as $cat) {
|
||||
$description .= "<li>Category $cat->id: " . s($cat->name) . "</li>\n";
|
||||
}
|
||||
$description .= "</ul>\n";
|
||||
}
|
||||
|
||||
if (!empty($loops)) {
|
||||
$description .= '<p>The following categories form a loop of parents:</p><ul>';
|
||||
foreach ($loops as $loop) {
|
||||
$description .= "<li><ul>\n";
|
||||
foreach ($loop as $cat) {
|
||||
$description .= "<li>Category $cat->id: " . s($cat->name) . " has parent $cat->parent</li>\n";
|
||||
}
|
||||
$description .= "</ul></li>\n";
|
||||
}
|
||||
$description .= "</ul>\n";
|
||||
}
|
||||
|
||||
return $description;
|
||||
}
|
||||
function solution() {
|
||||
global $CFG;
|
||||
list($missingparent, $loops) = $this->find_problems();
|
||||
|
||||
$solution = '<p>Consider executing the following SQL queries. These fix ' .
|
||||
'the problem by moving some categories to the top level.</p>';
|
||||
|
||||
if (!empty($missingparent)) {
|
||||
$solution .= "<pre>UPDATE " . $CFG->prefix . "question_categories\n" .
|
||||
" SET parent = 0\n" .
|
||||
" WHERE id IN (" . implode(',', array_keys($missingparent)) . ");</pre>\n";
|
||||
}
|
||||
|
||||
if (!empty($loops)) {
|
||||
$solution .= "<pre>UPDATE " . $CFG->prefix . "question_categories\n" .
|
||||
" SET parent = 0\n" .
|
||||
" WHERE id IN (" . implode(',', array_keys($loops)) . ");</pre>\n";
|
||||
}
|
||||
|
||||
return $solution;
|
||||
}
|
||||
}
|
||||
|
||||
class problem_00000x extends problem_base {
|
||||
function title() {
|
||||
|
||||
@@ -96,6 +96,7 @@ if (($form = data_submitted()) && confirm_sesskey()) {
|
||||
|
||||
if (isset($form->deleted) && ($form->deleted == '0' || $form->deleted == '1')) {
|
||||
$mnet_peer->deleted = $form->deleted;
|
||||
$mnet_peer->updateparams->deleted = $form->deleted;
|
||||
}
|
||||
|
||||
if (isset($form->public_key)) {
|
||||
@@ -106,9 +107,10 @@ if (($form = data_submitted()) && confirm_sesskey()) {
|
||||
} else {
|
||||
$oldkey = $mnet_peer->public_key;
|
||||
$mnet_peer->public_key = $form->public_key;
|
||||
$mnet_peer->public_key_expires = $mnet_peer->check_common_name($form->public_key);
|
||||
$mnet_peer->updateparams->public_key = $form->public_key;
|
||||
$mnet_peer->public_key_expires = $mnet_peer->check_common_name($form->public_key);
|
||||
$mnet_peer->updateparams->public_key_expires = $mnet_peer->check_common_name($form->public_key);
|
||||
if ($mnet_peer->public_key_expires == false) {
|
||||
$mnet_peer->public_key == $oldkey;
|
||||
$errmsg = '<br />';
|
||||
foreach ($mnet_peer->error as $err) {
|
||||
$errmsg .= $err['code'] . ': ' . $err['text'].'<br />';
|
||||
|
||||
@@ -35,7 +35,7 @@ $temp->add(new admin_setting_configselect('bloglevel', get_string('bloglevel', '
|
||||
|
||||
$temp->add(new admin_setting_configcheckbox('cronclionly', get_string('cronclionly', 'admin'), get_string('configcronclionly', 'admin'), 0));
|
||||
$temp->add(new admin_setting_configtext('cronremotepassword', get_string('cronremotepassword', 'admin'), get_string('configcronremotepassword', 'admin'), '', PARAM_RAW));
|
||||
$temp->add(new admin_setting_configcheckbox('emailchangeconfirmation', get_string('emailchangeconfirmation', 'admin'), get_string('configemailchangeconfirmation', 'admin'), 0));
|
||||
$temp->add(new admin_setting_configcheckbox('emailchangeconfirmation', get_string('emailchangeconfirmation', 'admin'), get_string('configemailchangeconfirmation', 'admin'), 1));
|
||||
|
||||
$ADMIN->add('security', $temp);
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ $ADMIN->add('server', $temp, 0);
|
||||
|
||||
// "email" settingpage
|
||||
$temp = new admin_settingpage('mail', get_string('mail','admin'));
|
||||
$temp->add(new admin_setting_configtext('smtphosts', get_string('smtphosts', 'admin'), get_string('configsmtphosts', 'admin'), '', PARAM_HOST));
|
||||
$temp->add(new admin_setting_configtext('smtphosts', get_string('smtphosts', 'admin'), get_string('configsmtphosts', 'admin'), '', PARAM_RAW));
|
||||
$temp->add(new admin_setting_configtext('smtpuser', get_string('smtpuser', 'admin'), get_string('configsmtpuser', 'admin'), '', PARAM_NOTAGS));
|
||||
$temp->add(new admin_setting_configtext('smtppass', get_string('smtppass', 'admin'), get_string('configsmtpuser', 'admin'), '', PARAM_RAW));
|
||||
$temp->add(new admin_setting_configtext('noreplyaddress', get_string('noreplyaddress', 'admin'), get_string('confignoreplyaddress', 'admin'), 'noreply@' . $_SERVER['HTTP_HOST'], PARAM_NOTAGS));
|
||||
|
||||
+1
-1
@@ -1123,4 +1123,4 @@ if (!empty($this->config->attrcreators)) {
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -173,6 +173,7 @@ class auth_plugin_db extends auth_plugin_base {
|
||||
if ($rs = $authdb->Execute($sql)) {
|
||||
if ( $rs->RecordCount() == 1 ) {
|
||||
$fields_obj = rs_fetch_record($rs);
|
||||
$fields_obj = (object)array_change_key_case((array)$fields_obj , CASE_LOWER);
|
||||
foreach ($selectfields as $localname=>$externalname) {
|
||||
$result[$localname] = $textlib->convert($fields_obj->{$localname}, $this->config->extencoding, 'utf-8');
|
||||
}
|
||||
@@ -429,6 +430,7 @@ class auth_plugin_db extends auth_plugin_base {
|
||||
print_error('auth_dbcantconnect','auth');
|
||||
} else if ( $rs->RecordCount() ) {
|
||||
while ($rec = rs_fetch_next_record($rs)) {
|
||||
$rec = (object)array_change_key_case((array)$rec , CASE_LOWER);
|
||||
array_push($result, $rec->username);
|
||||
}
|
||||
}
|
||||
|
||||
+39
-14
@@ -45,11 +45,36 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
$this->config->{$key} = $value[$this->config->user_type];
|
||||
}
|
||||
}
|
||||
//hack prefix to objectclass
|
||||
if (empty($this->config->objectclass)) { // Can't send empty filter
|
||||
$this->config->objectclass='objectClass=*';
|
||||
} else if (stripos($this->config->objectclass, 'objectClass=') !== 0) {
|
||||
$this->config->objectclass = 'objectClass='.$this->config->objectclass;
|
||||
|
||||
// Hack prefix to objectclass
|
||||
if (empty($this->config->objectclass)) {
|
||||
// Can't send empty filter
|
||||
$this->config->objectclass='(objectClass=*)';
|
||||
} else if (stripos($this->config->objectclass, 'objectClass=') === 0) {
|
||||
// Value is 'objectClass=some-string-here', so just add ()
|
||||
// around the value (filter _must_ have them).
|
||||
$this->config->objectclass = '('.$this->config->objectclass.')';
|
||||
} else if (stripos($this->config->objectclass, '(') !== 0) {
|
||||
// Value is 'some-string-not-starting-with-left-parentheses',
|
||||
// which is assumed to be the objectClass matching value.
|
||||
// So build a valid filter with it.
|
||||
$this->config->objectclass = '(objectClass='.$this->config->objectclass.')';
|
||||
} else {
|
||||
// There is an additional possible value
|
||||
// '(some-string-here)', that can be used to specify any
|
||||
// valid filter string, to select subsets of users based
|
||||
// on any criteria. For example, we could select the users
|
||||
// whose objectClass is 'user' and have the
|
||||
// 'enabledMoodleUser' attribute, with something like:
|
||||
//
|
||||
// (&(objectClass=user)(enabledMoodleUser=1))
|
||||
//
|
||||
// This is only used in the functions that deal with the
|
||||
// whole potential set of users (currently sync_users()
|
||||
// and get_user_list() only).
|
||||
//
|
||||
// In this particular case we don't need to do anything,
|
||||
// so leave $this->config->objectclass as is.
|
||||
}
|
||||
|
||||
}
|
||||
@@ -303,7 +328,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
$ldapconnection = $this->ldap_connect();
|
||||
$user_dn = $this->ldap_find_userdn($ldapconnection, $extusername);
|
||||
$search_attribs = array($this->config->expireattr);
|
||||
$sr = ldap_read($ldapconnection, $user_dn, 'objectclass=*', $search_attribs);
|
||||
$sr = ldap_read($ldapconnection, $user_dn, '(objectClass=*)', $search_attribs);
|
||||
if ($sr) {
|
||||
$info = $this->ldap_get_entries($ldapconnection, $sr);
|
||||
if (!empty ($info) and !empty($info[0][$this->config->expireattr][0])) {
|
||||
@@ -400,7 +425,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
//// get user's list from ldap to sql in a scalable fashion
|
||||
////
|
||||
// prepare some data we'll need
|
||||
$filter = "(&(".$this->config->user_attribute."=*)(".$this->config->objectclass."))";
|
||||
$filter = '(&('.$this->config->user_attribute.'=*)'.$this->config->objectclass.')';
|
||||
|
||||
$contexts = explode(";",$this->config->contexts);
|
||||
|
||||
@@ -1042,7 +1067,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
}
|
||||
//Update password expiration time, grace logins count
|
||||
$search_attribs = array($this->config->expireattr, 'passwordExpirationInterval','loginGraceLimit' );
|
||||
$sr = ldap_read($ldapconnection, $user_dn, 'objectclass=*', $search_attribs);
|
||||
$sr = ldap_read($ldapconnection, $user_dn, '(objectClass=*)', $search_attribs);
|
||||
if ($sr) {
|
||||
$info=$this->ldap_get_entries($ldapconnection, $sr);
|
||||
$newattrs = array();
|
||||
@@ -1481,7 +1506,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
$ldapconnection = $this->ldap_connect();
|
||||
|
||||
if ($filter=="*") {
|
||||
$filter = "(&(".$this->config->user_attribute."=*)(".$this->config->objectclass."))";
|
||||
$filter = '(&('.$this->config->user_attribute.'=*)'.$this->config->objectclass.')';
|
||||
}
|
||||
|
||||
$contexts = explode(";",$this->config->contexts);
|
||||
@@ -1673,7 +1698,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
if (!isset($config->forcechangepassword))
|
||||
{$config->forcechangepassword = 0; }
|
||||
if (!isset($config->stdchangepassword))
|
||||
{$config->forcechangepassword = 0; }
|
||||
{$config->stdchangepassword = 0; }
|
||||
if (!isset($config->passtype))
|
||||
{$config->passtype = 'plaintext'; }
|
||||
if (!isset($config->changepasswordurl))
|
||||
@@ -1694,7 +1719,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
set_config('bind_dn', $config->bind_dn, 'auth/ldap');
|
||||
set_config('bind_pw', $config->bind_pw, 'auth/ldap');
|
||||
set_config('version', $config->version, 'auth/ldap');
|
||||
set_config('objectclass', $config->objectclass, 'auth/ldap');
|
||||
set_config('objectclass', trim($config->objectclass), 'auth/ldap');
|
||||
set_config('memberattribute', $config->memberattribute, 'auth/ldap');
|
||||
set_config('memberattribute_isdn', $config->memberattribute_isdn, 'auth/ldap');
|
||||
set_config('creators', $config->creators, 'auth/ldap');
|
||||
@@ -1761,7 +1786,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
|
||||
// If UF_DONT_EXPIRE_PASSWD flag is set in user's
|
||||
// userAccountControl attribute, the password doesn't expire.
|
||||
$sr = ldap_read($ldapconn, $user_dn, 'objectclass=*',
|
||||
$sr = ldap_read($ldapconn, $user_dn, '(objectClass=*)',
|
||||
array('userAccountControl'));
|
||||
if (!$sr) {
|
||||
error_log("ldap: error getting userAccountControl for $user_dn");
|
||||
@@ -1807,7 +1832,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
// details below).
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
$sr = ldap_read($ldapconn, ROOTDSE, 'objectclass=*',
|
||||
$sr = ldap_read($ldapconn, ROOTDSE, '(objectClass=*)',
|
||||
array('defaultNamingContext'));
|
||||
if (!$sr) {
|
||||
error_log("ldap: error querying rootDSE for Active Directory");
|
||||
@@ -1817,7 +1842,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
$info = $this->ldap_get_entries($ldapconn, $sr);
|
||||
$domaindn = $info[0]['defaultNamingContext'][0];
|
||||
|
||||
$sr = ldap_read ($ldapconn, $domaindn, 'objectclass=*',
|
||||
$sr = ldap_read ($ldapconn, $domaindn, '(objectClass=*)',
|
||||
array('maxPwdAge'));
|
||||
$info = $this->ldap_get_entries($ldapconn, $sr);
|
||||
$maxpwdage = $info[0]['maxPwdAge'][0];
|
||||
|
||||
+4
-1
@@ -244,7 +244,7 @@ class auth_plugin_mnet extends auth_plugin_base {
|
||||
require_once $CFG->dirroot . '/mnet/xmlrpc/client.php';
|
||||
|
||||
// verify the remote host is configured locally before attempting RPC call
|
||||
if (! $remotehost = get_record('mnet_host', 'wwwroot', $remotewwwroot)) {
|
||||
if (! $remotehost = get_record('mnet_host', 'wwwroot', $remotewwwroot, 'deleted', 0)) {
|
||||
error(get_string('notpermittedtoland', 'mnet'));
|
||||
}
|
||||
|
||||
@@ -1311,9 +1311,12 @@ class auth_plugin_mnet extends auth_plugin_base {
|
||||
svc.apiversion,
|
||||
h2s.id as h2s_id
|
||||
FROM
|
||||
{$CFG->prefix}mnet_host h,
|
||||
{$CFG->prefix}mnet_service svc,
|
||||
{$CFG->prefix}mnet_host2service h2s
|
||||
WHERE
|
||||
h.deleted = '0' AND
|
||||
h.id = h2s.hostid AND
|
||||
h2s.hostid = '$mnethostid' AND
|
||||
h2s.serviceid = svc.id AND
|
||||
svc.name = '$servicename' AND
|
||||
|
||||
@@ -1628,7 +1628,8 @@
|
||||
{$CFG->prefix}backup_ids bi
|
||||
WHERE gm.groupid = $groupid
|
||||
AND bi.backup_code = $preferences->backup_unique_code
|
||||
AND bi.table_name = 'user'");
|
||||
AND bi.table_name = 'user'
|
||||
AND bi.old_id = gm.userid");
|
||||
|
||||
//Pring groups_members header
|
||||
if ($groups_members) {
|
||||
|
||||
@@ -3343,6 +3343,18 @@
|
||||
} else {
|
||||
$status = false;
|
||||
}
|
||||
// MDL-14326 remove empty course modules instance's (credit goes to John T. Macklin from Remote Learner)
|
||||
$course_modules_inst_zero = get_records_sql("SELECT id, course, instance
|
||||
FROM {$CFG->prefix}course_modules
|
||||
WHERE id = '$cm_module->new_id' AND
|
||||
instance = '0'");
|
||||
|
||||
if($course_modules_inst_zero){ // Clean up the invalid instances
|
||||
foreach($course_modules_inst_zero as $course_modules_inst){
|
||||
delete_records('course_modules', 'id',$course_modules_inst->id);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,10 +53,10 @@ class block_course_list extends block_list {
|
||||
if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) || empty($CFG->block_course_list_hideallcourseslink)) {
|
||||
$this->content->footer = "<a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a> ...";
|
||||
}
|
||||
$this->get_remote_courses();
|
||||
if ($this->content->items) { // make sure we don't return an empty list
|
||||
return $this->content;
|
||||
}
|
||||
}
|
||||
$this->get_remote_courses();
|
||||
if ($this->content->items) { // make sure we don't return an empty list
|
||||
return $this->content;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ class block_mnet_hosts extends block_list {
|
||||
WHERE
|
||||
h.id != '{$CFG->mnet_localhost_id}' AND
|
||||
h.id = h2s_IDP.hostid AND
|
||||
h.deleted = 0 AND
|
||||
h2s_IDP.serviceid = s_IDP.id AND
|
||||
s_IDP.name = 'sso_idp' AND
|
||||
h2s_IDP.publish = '1' AND
|
||||
|
||||
+1
-1
@@ -463,7 +463,7 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
|
||||
|
||||
print_paging_bar($totalcount, $page, $perpage, "$url&perpage=$perpage&");
|
||||
|
||||
echo '<table class="logtable genearlbox boxaligncenter" summary="">'."\n";
|
||||
echo '<table class="logtable generalbox boxaligncenter" summary="">'."\n";
|
||||
// echo "<table class=\"logtable\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\">\n";
|
||||
echo "<tr>";
|
||||
if ($course->id == SITEID) {
|
||||
|
||||
@@ -295,7 +295,7 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
|
||||
$responsecode = intval($response[0]);
|
||||
if ($responsecode == AN_APPROVED || $responsecode == AN_REVIEW)
|
||||
{
|
||||
$transid = intval($response[6]);
|
||||
$transid = floatval($response[6]);
|
||||
if ($test || $transid == 0) {
|
||||
return $responsecode; // don't update original transaction in test mode.
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<FIELD NAME="ccname" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="refundinfo" NEXT="courseid"/>
|
||||
<FIELD NAME="courseid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="ccname" NEXT="userid"/>
|
||||
<FIELD NAME="userid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="courseid" NEXT="transid"/>
|
||||
<FIELD NAME="transid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="userid" NEXT="status"/>
|
||||
<FIELD NAME="transid" TYPE="int" LENGTH="20" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="userid" NEXT="status"/>
|
||||
<FIELD NAME="status" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="transid" NEXT="timecreated"/>
|
||||
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="status" NEXT="settletime"/>
|
||||
<FIELD NAME="settletime" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="timecreated" NEXT="amount"/>
|
||||
@@ -35,7 +35,7 @@
|
||||
<FIELD NAME="orderid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="id" NEXT="status"/>
|
||||
<FIELD NAME="status" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="orderid" NEXT="amount"/>
|
||||
<FIELD NAME="amount" TYPE="char" LENGTH="10" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="status" NEXT="transid"/>
|
||||
<FIELD NAME="transid" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="amount" NEXT="settletime"/>
|
||||
<FIELD NAME="transid" TYPE="int" LENGTH="20" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="amount" NEXT="settletime"/>
|
||||
<FIELD NAME="settletime" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="transid"/>
|
||||
</FIELDS>
|
||||
<KEYS>
|
||||
@@ -47,4 +47,4 @@
|
||||
</INDEXES>
|
||||
</TABLE>
|
||||
</TABLES>
|
||||
</XMLDB>
|
||||
</XMLDB>
|
||||
|
||||
@@ -59,6 +59,46 @@ function xmldb_enrol_authorize_upgrade($oldversion=0) {
|
||||
}
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2006112902) {
|
||||
/// enrol_authorize.transid
|
||||
/// Define index transid (not unique) to be dropped form enrol_authorize
|
||||
$table = new XMLDBTable('enrol_authorize');
|
||||
$index = new XMLDBIndex('transid');
|
||||
$index->setAttributes(XMLDB_INDEX_NOTUNIQUE, array('transid'));
|
||||
drop_index($table, $index);
|
||||
|
||||
/// Changing precision of field transid on table enrol_authorize to (20)
|
||||
$table = new XMLDBTable('enrol_authorize');
|
||||
$field = new XMLDBField('transid');
|
||||
$field->setAttributes(XMLDB_TYPE_INTEGER, '20', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, '0', 'userid');
|
||||
change_field_precision($table, $field);
|
||||
|
||||
/// Launch add index transid again
|
||||
$table = new XMLDBTable('enrol_authorize');
|
||||
$index = new XMLDBIndex('transid');
|
||||
$index->setAttributes(XMLDB_INDEX_NOTUNIQUE, array('transid'));
|
||||
add_index($table, $index);
|
||||
|
||||
/// enrol_authorize_refunds.transid
|
||||
/// Define index transid (not unique) to be dropped form enrol_authorize_refunds
|
||||
$table = new XMLDBTable('enrol_authorize_refunds');
|
||||
$index = new XMLDBIndex('transid');
|
||||
$index->setAttributes(XMLDB_INDEX_NOTUNIQUE, array('transid'));
|
||||
drop_index($table, $index);
|
||||
|
||||
/// Changing precision of field transid on table enrol_authorize_refunds to (20)
|
||||
$table = new XMLDBTable('enrol_authorize_refunds');
|
||||
$field = new XMLDBField('transid');
|
||||
$field->setAttributes(XMLDB_TYPE_INTEGER, '20', XMLDB_UNSIGNED, null, null, null, null, '0', 'amount');
|
||||
change_field_precision($table, $field);
|
||||
|
||||
/// Launch add index transid again
|
||||
$table = new XMLDBTable('enrol_authorize_refunds');
|
||||
$index = new XMLDBIndex('transid');
|
||||
$index->setAttributes(XMLDB_INDEX_NOTUNIQUE, array('transid'));
|
||||
add_index($table, $index);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
@@ -561,7 +561,7 @@ function authorize_get_status_action($order)
|
||||
|
||||
$canmanage = has_capability('enrol/authorize:managepayments', get_context_instance(CONTEXT_COURSE, $order->courseid));
|
||||
|
||||
if (intval($order->transid) == 0) { // test transaction or new order
|
||||
if (floatval($order->transid) == 0) { // test transaction or new order
|
||||
if ($order->timecreated < $newordertime) {
|
||||
if ($canmanage) {
|
||||
$ret->actions = array(ORDER_DELETE);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php // $Id$
|
||||
|
||||
$plugin->version = 2006112901;
|
||||
$plugin->version = 2006112902;
|
||||
$plugin->requires = 2006100401;
|
||||
|
||||
?>
|
||||
|
||||
+54
-50
@@ -4,11 +4,11 @@ require_once($CFG->dirroot.'/enrol/enrol.class.php');
|
||||
|
||||
class enrolment_plugin_database {
|
||||
|
||||
var $log;
|
||||
var $log;
|
||||
|
||||
/*
|
||||
* For the given user, let's go out and look in an external database
|
||||
* for an authoritative list of enrolments, and then adjust the
|
||||
* for an authoritative list of enrolments, and then adjust the
|
||||
* local Moodle assignments to match.
|
||||
*/
|
||||
function setup_enrolments(&$user) {
|
||||
@@ -32,7 +32,7 @@ function setup_enrolments(&$user) {
|
||||
//error_log('[ENROL_DB] found ' . count($roles) . ' roles:');
|
||||
|
||||
foreach($roles as $role) {
|
||||
|
||||
|
||||
//error_log('[ENROL_DB] setting up enrolments for '.$role->shortname);
|
||||
|
||||
/// Get the authoritative list of enrolments from the external database table
|
||||
@@ -45,10 +45,10 @@ function setup_enrolments(&$user) {
|
||||
|
||||
/// Check if a particular role has been forced by the plugin site-wide
|
||||
/// (if we aren't doing a role-based select)
|
||||
if (!$have_role && $CFG->enrol_db_defaultcourseroleid) {
|
||||
if (!$have_role && $CFG->enrol_db_defaultcourseroleid) {
|
||||
$role = get_record('role', 'id', $CFG->enrol_db_defaultcourseroleid);
|
||||
}
|
||||
|
||||
|
||||
/// Whether to fetch the default role on a per-course basis (below) or not.
|
||||
$use_default_role = !$role;
|
||||
|
||||
@@ -60,7 +60,7 @@ function setup_enrolments(&$user) {
|
||||
} else {
|
||||
error_log('[ENROL_DB] Using config default for roles: '.$role->shortname);
|
||||
}*/
|
||||
|
||||
|
||||
if ($rs = $enroldb->Execute("SELECT {$CFG->enrol_remotecoursefield} as enrolremotecoursefield
|
||||
FROM {$CFG->enrol_dbtable}
|
||||
WHERE {$CFG->enrol_remoteuserfield} = " . $useridfield .
|
||||
@@ -84,6 +84,7 @@ function setup_enrolments(&$user) {
|
||||
|
||||
$courselist = array();
|
||||
while ($fields_obj = rs_fetch_next_record($rs)) { // Make a nice little array of courses to process
|
||||
$fields_obj = (object)array_change_key_case((array)$fields_obj , CASE_LOWER);
|
||||
$courselist[] = $fields_obj->enrolremotecoursefield;
|
||||
}
|
||||
rs_close($rs);
|
||||
@@ -120,14 +121,14 @@ function setup_enrolments(&$user) {
|
||||
if ($use_default_role) {
|
||||
$role = get_default_course_role($course);
|
||||
}
|
||||
|
||||
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
|
||||
|
||||
// Couldn't get a role or context, skip.
|
||||
if (!$role || !$context) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// Search the role assignments to see if this user
|
||||
// already has this role in this context. If it is, we
|
||||
// skip to the next course.
|
||||
@@ -139,7 +140,7 @@ function setup_enrolments(&$user) {
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//error_log('[ENROL_DB] Enrolling user in course '.$course->idnumber);
|
||||
role_assign($role->id, $user->id, 0, $context->id, 0, 0, 0, 'database');
|
||||
}
|
||||
@@ -156,7 +157,7 @@ function setup_enrolments(&$user) {
|
||||
} else {
|
||||
error_log('[ENROL_DB] Couldn\'t get rows from external db: '.$enroldb->ErrorMsg());
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->enrol_disconnect($enroldb);
|
||||
}
|
||||
|
||||
@@ -173,7 +174,7 @@ function sync_enrolments($role = null) {
|
||||
|
||||
// Connect to the external database
|
||||
$enroldb = $this->enrol_connect();
|
||||
if (!$enroldb) {
|
||||
if (!$enroldb) {
|
||||
notify("enrol/database cannot connect to server");
|
||||
return false;
|
||||
}
|
||||
@@ -183,12 +184,12 @@ function sync_enrolments($role = null) {
|
||||
} else {
|
||||
echo "=== Syncing enrolments for default role ===\n";
|
||||
}
|
||||
|
||||
|
||||
// first, pack the sortorder...
|
||||
fix_course_sortorder();
|
||||
|
||||
list($have_role, $remote_role_name, $remote_role_value) = $this->role_fields($enroldb, $role);
|
||||
|
||||
|
||||
if (!$have_role) {
|
||||
if (!empty($CFG->enrol_db_defaultcourseroleid)
|
||||
and $role = get_record('role', 'id', $CFG->enrol_db_defaultcourseroleid)) {
|
||||
@@ -197,7 +198,7 @@ function sync_enrolments($role = null) {
|
||||
echo "!!! WARNING: Role specified by caller, but no (or invalid) role configuration !!!\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// get enrolments per-course
|
||||
$sql = "SELECT DISTINCT {$CFG->enrol_remotecoursefield} " .
|
||||
" FROM {$CFG->enrol_dbtable} " .
|
||||
@@ -216,10 +217,11 @@ function sync_enrolments($role = null) {
|
||||
begin_sql();
|
||||
$extcourses = array();
|
||||
while ($extcourse_obj = rs_fetch_next_record($rs)) { // there are more course records
|
||||
$extcourse = $extcourse_obj->{$CFG->enrol_remotecoursefield};
|
||||
$extcourse_obj = (object)array_change_key_case((array)$extcourse_obj , CASE_LOWER);
|
||||
$extcourse = $extcourse_obj->{strtolower($CFG->enrol_remotecoursefield)};
|
||||
array_push($extcourses, $extcourse);
|
||||
|
||||
// does the course exist in moodle already?
|
||||
// does the course exist in moodle already?
|
||||
$course = false;
|
||||
$course = get_record( 'course',
|
||||
$CFG->enrol_localcoursefield,
|
||||
@@ -253,7 +255,7 @@ function sync_enrolments($role = null) {
|
||||
if (!$have_role) {
|
||||
$role = get_default_course_role($course);
|
||||
}
|
||||
|
||||
|
||||
// get a list of the student ids the are enrolled
|
||||
// in the external db -- hopefully it'll fit in memory...
|
||||
$extenrolments = array();
|
||||
@@ -261,7 +263,7 @@ function sync_enrolments($role = null) {
|
||||
" FROM {$CFG->enrol_dbtable} " .
|
||||
" WHERE {$CFG->enrol_remotecoursefield} = " . $enroldb->quote($extcourse) .
|
||||
($have_role ? ' AND '.$remote_role_name.' = '.$remote_role_value : '');
|
||||
|
||||
|
||||
$crs = $enroldb->Execute($sql);
|
||||
if (!$crs) {
|
||||
trigger_error($enroldb->ErrorMsg() .' STATEMENT: '. $sql);
|
||||
@@ -273,7 +275,8 @@ function sync_enrolments($role = null) {
|
||||
|
||||
// slurp results into an array
|
||||
while ($crs_obj = rs_fetch_next_record($crs)) {
|
||||
array_push($extenrolments, $crs_obj->{$CFG->enrol_remoteuserfield});
|
||||
$crs_obj = (object)array_change_key_case((array)$crs_obj , CASE_LOWER);
|
||||
array_push($extenrolments, $crs_obj->{strtolower($CFG->enrol_remoteuserfield)});
|
||||
}
|
||||
rs_close($crs); // release the handle
|
||||
|
||||
@@ -298,7 +301,7 @@ function sync_enrolments($role = null) {
|
||||
AND ra.roleid = ". $role->id . ($extenrolments
|
||||
? " AND u.{$CFG->enrol_localuserfield} NOT IN (".join(", ", array_map(array(&$db, 'quote'), $extenrolments)).")"
|
||||
: ''));
|
||||
|
||||
|
||||
if ($to_prune) {
|
||||
foreach ($to_prune as $role_assignment) {
|
||||
if (role_unassign($role->id, $role_assignment->userid, 0, $role_assignment->contextid)){
|
||||
@@ -308,9 +311,9 @@ function sync_enrolments($role = null) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// insert current enrolments
|
||||
// insert current enrolments
|
||||
// bad we can't do INSERT IGNORE with postgres...
|
||||
//
|
||||
foreach ($extenrolments as $member) {
|
||||
@@ -321,7 +324,7 @@ function sync_enrolments($role = null) {
|
||||
LEFT OUTER JOIN {$CFG->prefix}role_assignments ra ON u.id = ra.userid
|
||||
AND ra.roleid = {$role->id}
|
||||
AND ra.contextid = {$context->id}
|
||||
WHERE u.{$CFG->enrol_localuserfield} = ".$db->quote($member) .
|
||||
WHERE u.{$CFG->enrol_localuserfield} = ".$db->quote($member) .
|
||||
" AND (u.deleted IS NULL OR u.deleted=0) ";
|
||||
|
||||
$ers = $db->Execute($sql);
|
||||
@@ -330,7 +333,7 @@ function sync_enrolments($role = null) {
|
||||
return false;
|
||||
}
|
||||
if ( $ers->RecordCount() == 0 ) { // if this returns empty, it means we don't have the student record.
|
||||
// should not happen -- but skip it anyway
|
||||
// should not happen -- but skip it anyway
|
||||
trigger_error('weird! no user record entry?');
|
||||
continue;
|
||||
}
|
||||
@@ -342,7 +345,7 @@ function sync_enrolments($role = null) {
|
||||
if ($enrolmentid) { // already enrolled - skip
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (role_assign($role->id, $userid, 0, $context->id, 0, 0, 0, 'database')){
|
||||
error_log( "Assigned role {$role->shortname} to user {$userid} in course {$course->id} (" . format_string($course->shortname) . ")");
|
||||
} else {
|
||||
@@ -381,8 +384,9 @@ function sync_enrolments($role = null) {
|
||||
trigger_error($db->ErrorMsg() .' STATEMENT: '. $sql);
|
||||
return false;
|
||||
}
|
||||
if ( $ers->RecordCount() > 0 ) {
|
||||
if ( $ers->RecordCount() > 0 ) {
|
||||
while ($user_obj = rs_fetch_next_record($ers)) {
|
||||
$user_obj = (object)array_change_key_case((array)$user_obj , CASE_LOWER);
|
||||
$roleid = $user_obj->roleid;
|
||||
$user = $user_obj->userid;
|
||||
$contextid = $user_obj->contextid;
|
||||
@@ -390,15 +394,15 @@ function sync_enrolments($role = null) {
|
||||
error_log( "Unassigned role {$roleid} from user $user in context $contextid");
|
||||
} else {
|
||||
error_log( "Failed unassign role {$roleid} from user $user in context $contextid");
|
||||
}
|
||||
}
|
||||
}
|
||||
rs_close($ers); // release the handle
|
||||
}
|
||||
commit_sql();
|
||||
|
||||
|
||||
// we are done now, a bit of housekeeping
|
||||
fix_course_sortorder();
|
||||
|
||||
|
||||
$this->enrol_disconnect($enroldb);
|
||||
return true;
|
||||
}
|
||||
@@ -412,11 +416,11 @@ function get_access_icons($course) {
|
||||
function config_form($frm) {
|
||||
global $CFG;
|
||||
|
||||
$vars = array('enrol_dbhost', 'enrol_dbuser', 'enrol_dbpass',
|
||||
'enrol_dbname', 'enrol_dbtable',
|
||||
'enrol_localcoursefield', 'enrol_localuserfield',
|
||||
$vars = array('enrol_dbhost', 'enrol_dbuser', 'enrol_dbpass',
|
||||
'enrol_dbname', 'enrol_dbtable',
|
||||
'enrol_localcoursefield', 'enrol_localuserfield',
|
||||
'enrol_remotecoursefield', 'enrol_remoteuserfield',
|
||||
'enrol_db_autocreate', 'enrol_db_category', 'enrol_db_template',
|
||||
'enrol_db_autocreate', 'enrol_db_category', 'enrol_db_template',
|
||||
'enrol_db_localrolefield', 'enrol_db_remoterolefield',
|
||||
'enrol_remotecoursefield', 'enrol_remoteuserfield',
|
||||
'enrol_db_ignorehiddencourse', 'enrol_db_defaultcourseroleid');
|
||||
@@ -424,7 +428,7 @@ function config_form($frm) {
|
||||
foreach ($vars as $var) {
|
||||
if (!isset($frm->$var)) {
|
||||
$frm->$var = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
include("$CFG->dirroot/enrol/database/config.html");
|
||||
}
|
||||
@@ -486,7 +490,7 @@ function process_config($config) {
|
||||
$config->enrol_db_autocreate = '';
|
||||
}
|
||||
set_config('enrol_db_autocreate', $config->enrol_db_autocreate);
|
||||
|
||||
|
||||
if (!isset($config->enrol_db_category)) {
|
||||
$config->enrol_db_category = '';
|
||||
}
|
||||
@@ -506,7 +510,7 @@ function process_config($config) {
|
||||
$config->enrol_db_localrolefield = '';
|
||||
}
|
||||
set_config('enrol_db_localrolefield', $config->enrol_db_localrolefield);
|
||||
|
||||
|
||||
if (!isset($config->enrol_db_remoterolefield)) {
|
||||
$config->enrol_db_remoterolefield = '';
|
||||
}
|
||||
@@ -522,7 +526,7 @@ function process_config($config) {
|
||||
|
||||
// will create the moodle course from the template
|
||||
// course_ext is an array as obtained from ldap -- flattened somewhat
|
||||
// NOTE: if you pass true for $skip_fix_course_sortorder
|
||||
// NOTE: if you pass true for $skip_fix_course_sortorder
|
||||
// you will want to call fix_course_sortorder() after your are done
|
||||
// with course creation
|
||||
function create_course ($course,$skip_fix_course_sortorder=0){
|
||||
@@ -558,15 +562,15 @@ function create_course ($course,$skip_fix_course_sortorder=0){
|
||||
if (empty($course->$key)) {
|
||||
$course->$key = $template[$key];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$course->category = 1; // the misc 'catch-all' category
|
||||
if (!empty($CFG->enrol_db_category)){ //category = 0 or undef will break moodle
|
||||
$course->category = $CFG->enrol_db_category;
|
||||
}
|
||||
|
||||
// define the sortorder
|
||||
$sort = get_field_sql('SELECT COALESCE(MAX(sortorder)+1, 100) AS max ' .
|
||||
// define the sortorder
|
||||
$sort = get_field_sql('SELECT COALESCE(MAX(sortorder)+1, 100) AS max ' .
|
||||
' FROM ' . $CFG->prefix . 'course ' .
|
||||
' WHERE category=' . $course->category);
|
||||
$course->sortorder = $sort;
|
||||
@@ -575,14 +579,14 @@ function create_course ($course,$skip_fix_course_sortorder=0){
|
||||
$course->startdate = time() + 3600 * 24;
|
||||
$course->timecreated = time();
|
||||
$course->visible = 1;
|
||||
|
||||
|
||||
// clear out id just in case
|
||||
unset($course->id);
|
||||
unset($course->id);
|
||||
|
||||
// truncate a few key fields
|
||||
$course->idnumber = substr($course->idnumber, 0, 100);
|
||||
$course->shortname = substr($course->shortname, 0, 15);
|
||||
|
||||
|
||||
// store it and log
|
||||
if ($newcourseid = insert_record("course", addslashes_object($course))) { // Set up new course
|
||||
$section = NULL;
|
||||
@@ -593,8 +597,8 @@ function create_course ($course,$skip_fix_course_sortorder=0){
|
||||
blocks_repopulate_page($page); // Return value no
|
||||
|
||||
|
||||
if(!$skip_fix_course_sortorder){
|
||||
fix_course_sortorder();
|
||||
if(!$skip_fix_course_sortorder){
|
||||
fix_course_sortorder();
|
||||
}
|
||||
add_to_log($newcourseid, "course", "new", "view.php?id=$newcourseid", "enrol/database auto-creation");
|
||||
} else {
|
||||
@@ -602,7 +606,7 @@ function create_course ($course,$skip_fix_course_sortorder=0){
|
||||
notify("Serious Error! Could not create the new course!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return $newcourseid;
|
||||
}
|
||||
|
||||
@@ -622,7 +626,7 @@ function enrol_connect() {
|
||||
trigger_error("Error connecting to enrolment DB backend with: "
|
||||
. "$CFG->enrol_dbhost,$CFG->enrol_dbuser,$CFG->enrol_dbpass,$CFG->enrol_dbname");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// DB Disconnect
|
||||
@@ -642,7 +646,7 @@ function enrol_disconnect($enroldb) {
|
||||
*/
|
||||
function role_fields($enroldb, $role) {
|
||||
global $CFG;
|
||||
|
||||
|
||||
if ($have_role = !empty($role)
|
||||
&& !empty($CFG->enrol_db_remoterolefield)
|
||||
&& !empty($CFG->enrol_db_localrolefield)
|
||||
|
||||
+14
-3
@@ -69,6 +69,17 @@ function install_group_db() {
|
||||
|
||||
/// 5) Add one UNIQUE index on groups_members (groupid, userid)
|
||||
|
||||
// first remove duplicates
|
||||
$sql = "SELECT cm1.id
|
||||
FROM {$CFG->prefix}groups_members cm1, {$CFG->prefix}groups_members cm2
|
||||
WHERE cm1.groupid = cm2.groupid AND cm1.userid = cm2.userid AND cm1.id <> cm2.id
|
||||
ORDER BY cm1.id DESC";
|
||||
|
||||
while ($duplicates = get_records_sql($sql, 0, 1)) {
|
||||
$first = reset($duplicates);
|
||||
delete_records('groups_members', 'id', $first->id);
|
||||
}
|
||||
|
||||
/// Define index groupid-courseid (unique) to be added to groups_members
|
||||
$table = new XMLDBTable('groups_members');
|
||||
$index = new XMLDBIndex('groupid-courseid');
|
||||
@@ -174,20 +185,20 @@ function install_group_db() {
|
||||
$rec->action = 'view';
|
||||
$rec->mtable = 'groups';
|
||||
$rec->field = 'name';
|
||||
$result = insert_record('log_display', $rec);
|
||||
$result = $result && insert_record('log_display', $rec);
|
||||
}
|
||||
|
||||
/// 11) PERFORM ALL THE NEEDED MOVEMENTS OF DATA
|
||||
|
||||
$db->debug = false; // suppressing because there can be too many
|
||||
/// a) get the current groups, foreach one add an entry in groups_courses_groups
|
||||
if ($oldgroups = get_records('groups')) {
|
||||
if ($result and $oldgroups = get_records('groups')) {
|
||||
foreach ($oldgroups as $oldgroup) {
|
||||
$rec = new Object();
|
||||
$rec->courseid = $oldgroup->courseid;
|
||||
$rec->groupid = $oldgroup->id;
|
||||
$rec->timeadded = $oldgroup->timemodified; // I think this is not needed since the field is gone?
|
||||
insert_record('groups_courses_groups', $rec);
|
||||
$result = $result && insert_record('groups_courses_groups', $rec);
|
||||
}
|
||||
}
|
||||
$db->debug = true;
|
||||
|
||||
+38
-40
@@ -4,14 +4,14 @@
|
||||
*
|
||||
* @copyright © 2006 The Open University
|
||||
* @author N.D.Freear AT open.ac.uk
|
||||
* @author J.White AT open.ac.uk
|
||||
* @author J.White AT open.ac.uk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
* @package groups
|
||||
*/
|
||||
require_once('../config.php');
|
||||
require_once('lib.php');
|
||||
require_once($CFG->libdir.'/moodlelib.php');
|
||||
require_once($CFG->libdir.'/json/JSON.php');
|
||||
require_once('HTML/AJAX/JSON.php');
|
||||
|
||||
require_js('yui_yahoo');
|
||||
require_js('yui_dom');
|
||||
@@ -79,8 +79,7 @@ if ($success) {
|
||||
$groupids = groups_get_groups_in_grouping($groupingid);
|
||||
}
|
||||
$group_names = groups_groupids_to_group_names($groupids);
|
||||
$json = new Services_JSON();
|
||||
echo $json->encode($group_names);
|
||||
echo json_encode($group_names);
|
||||
die; // Client side JavaScript takes it from here.
|
||||
|
||||
case 'ajax_getmembersingroup':
|
||||
@@ -88,8 +87,7 @@ if ($success) {
|
||||
|
||||
if ($memberids = groups_get_members($groupid)) {
|
||||
$member_names = groups_userids_to_user_names($memberids, $courseid);
|
||||
$json = new Services_JSON();
|
||||
echo $json->encode($member_names);
|
||||
echo json_encode($member_names);
|
||||
}
|
||||
die; // Client side JavaScript takes it from here.
|
||||
|
||||
@@ -153,16 +151,16 @@ if ($success) {
|
||||
$strparticipants = get_string('participants');
|
||||
|
||||
print_header("$course->shortname: $strgroups home", //TODO: home
|
||||
$course->fullname,
|
||||
$course->fullname,
|
||||
"<a href=\"$CFG->wwwroot/course/view.php?id=$courseid\">$course->shortname</a> ".
|
||||
"-> <a href=\"$CFG->wwwroot/user/index.php?id=$courseid\">$strparticipants</a> ".
|
||||
"-> $strgroups", '', '', true, '', user_login_string($course, $USER));
|
||||
|
||||
$usehtmleditor = false;
|
||||
//TODO: eventually we'll implement all buttons, meantime hide the ones we haven't finished.
|
||||
$shownotdone = false;
|
||||
$shownotdone = false;
|
||||
$disabled = 'disabled="disabled"';
|
||||
|
||||
|
||||
// Pre-disable buttons based on URL variables
|
||||
if (!empty($groupingid) && $groupingid > -1) {
|
||||
$showeditgroupsettingsform_disabled = '';
|
||||
@@ -172,34 +170,34 @@ if ($success) {
|
||||
$printerfriendly_disabled = '';
|
||||
$showcreategroupform_disabled = '';
|
||||
} else {
|
||||
$showeditgroupsettingsform_disabled = $disabled;
|
||||
$showeditgroupingsettingsform_disabled = $disabled;
|
||||
$showeditgroupsettingsform_disabled = $disabled;
|
||||
$showeditgroupingsettingsform_disabled = $disabled;
|
||||
$deletegroup_disabled = $disabled;
|
||||
$deletegrouping_disabled = $disabled;
|
||||
$printerfriendly_disabled = $disabled;
|
||||
$showcreategroupform_disabled = $disabled;
|
||||
}
|
||||
|
||||
|
||||
if ($groupingid == -1 && groups_count_groups_in_grouping(GROUP_NOT_IN_GROUPING, $courseid) > 0) {
|
||||
$printerfriendly_disabled = '';
|
||||
}
|
||||
|
||||
if (!empty($groupid)) {
|
||||
$showaddmembersform_disabled = '';
|
||||
$showeditgroupsettingsform_disabled = '';
|
||||
$showeditgroupsettingsform_disabled = '';
|
||||
$deletegroup_disabled = '';
|
||||
} else {
|
||||
$deletegroup_disabled = $disabled;
|
||||
$showeditgroupsettingsform_disabled = $disabled;
|
||||
$showaddmembersform_disabled = $disabled;
|
||||
$showeditgroupsettingsform_disabled = $disabled;
|
||||
$showaddmembersform_disabled = $disabled;
|
||||
}
|
||||
|
||||
|
||||
print_heading(format_string($course->shortname) .' '.$strgroups, 'center', 3);
|
||||
echo '<form id="groupeditform" action="index.php" method="post">'."\n";
|
||||
echo '<div>'."\n";
|
||||
echo '<input type="hidden" name="id" value="' . $courseid . '" />'."\n";
|
||||
|
||||
/*
|
||||
/*
|
||||
<input type="hidden" name="groupid" value="<?php p($selectedgroup) ?>" />
|
||||
<input type="hidden" name="sesskey" value="<?php p($sesskey) ?>" />
|
||||
<input type="hidden" name="roleid" value="<?php p($roleid) ?>" />
|
||||
@@ -223,16 +221,16 @@ if (empty($CFG->enablegroupings)) {
|
||||
//NOTE, only show the pseudo-grouping if it has groups.
|
||||
$groupingids[] = GROUP_NOT_IN_GROUPING;
|
||||
}
|
||||
|
||||
|
||||
$sel_groupingid = -1;
|
||||
|
||||
if ($groupingids) {
|
||||
if ($groupingids) {
|
||||
// Put the groupings into a hash and sort them
|
||||
foreach($groupingids as $id) {
|
||||
$listgroupings[$id] = groups_get_grouping_displayname($id, $courseid);
|
||||
}
|
||||
natcasesort($listgroupings);
|
||||
|
||||
|
||||
// Print out the HTML
|
||||
$count = 1;
|
||||
foreach($listgroupings as $id => $name) {
|
||||
@@ -250,29 +248,29 @@ if (empty($CFG->enablegroupings)) {
|
||||
|
||||
echo '</select>'."\n";
|
||||
|
||||
|
||||
|
||||
echo '<p><input type="submit" name="act_updategroups" id="updategroups" value="'
|
||||
. get_string('showgroupsingrouping', 'group') . '" /></p>'."\n";
|
||||
echo '<p><input type="submit" ' . $showeditgroupingsettingsform_disabled . ' name="act_showgroupingsettingsform" id="showeditgroupingsettingsform" value="'
|
||||
. get_string('editgroupingsettings', 'group') . '" /></p>'."\n";
|
||||
|
||||
|
||||
if ($shownotdone) {
|
||||
echo '<p><input type="submit" '.$disabled.' name="act_showgroupingpermsform" '
|
||||
. 'id="showeditgroupingpermissionsform" value="'
|
||||
. get_string('editgroupingpermissions', 'group') . '" /></p>'."\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo '<p><input type="submit" ' . $deletegrouping_disabled . ' name="act_deletegrouping" id="deletegrouping" value="'
|
||||
. get_string('deletegrouping', 'group') . '" /></p>'."\n";
|
||||
echo '<p><input type="submit" name="act_showcreategroupingform" id="showcreategroupingform" value="'
|
||||
. get_string('creategrouping', 'group') . '" /></p>'."\n";
|
||||
|
||||
|
||||
if ($shownotdone) {
|
||||
echo '<p><input type="submit" '.$disabled.' name="act_createautomaticgroupingform" '
|
||||
. 'id="showcreateautomaticgroupingform" value="'
|
||||
. 'id="showcreateautomaticgroupingform" value="'
|
||||
. get_string('createautomaticgrouping', 'group') . '" /></p>'."\n";
|
||||
}
|
||||
|
||||
|
||||
echo '<p><input type="submit" ' . $printerfriendly_disabled . ' name="act_printerfriendly" id="printerfriendly" value="'
|
||||
. get_string('printerfriendly', 'group') . '" /></p>'."\n";
|
||||
echo "</td>\n";
|
||||
@@ -295,7 +293,7 @@ if (empty($CFG->enablegroupings)) {
|
||||
if ($groupids) {
|
||||
// Put the groups into a hash and sort them
|
||||
$group_names = groups_groupids_to_group_names($groupids);
|
||||
|
||||
|
||||
// Print out the HTML
|
||||
$count = 1;
|
||||
foreach ($group_names as $group) {
|
||||
@@ -307,11 +305,11 @@ if (empty($CFG->enablegroupings)) {
|
||||
echo "<option value=\"{$group->id}\"$select title=\"{$group->name}\">{$group->name}</option>\n";
|
||||
$count++;
|
||||
}
|
||||
} else {
|
||||
} else {
|
||||
// Print an empty option to avoid the XHTML error of having an empty select element
|
||||
echo '<option> </option>';
|
||||
}
|
||||
|
||||
|
||||
echo '</select>'."\n";
|
||||
echo '<p><input type="submit" name="act_updatemembers" id="updatemembers" value="'
|
||||
. get_string('showmembersforgroup', 'group') . '" /></p>'."\n";
|
||||
@@ -319,7 +317,7 @@ if (empty($CFG->enablegroupings)) {
|
||||
. get_string('editgroupsettings', 'group') . '" /></p>'."\n";
|
||||
echo '<p><input type="submit" '. $deletegroup_disabled . ' name="act_deletegroup" onclick="onDeleteGroup()" id="deletegroup" value="'
|
||||
. get_string('deleteselectedgroup', 'group') . '" /></p>'."\n";
|
||||
|
||||
|
||||
if ($shownotdone) {
|
||||
echo '<p><input type="submit" '.$disabled.' name="act_removegroup" '
|
||||
. 'id="removegroup" value="' . get_string('removegroupfromselectedgrouping', 'group') . '" /></p>'."\n";
|
||||
@@ -331,13 +329,13 @@ if (empty($CFG->enablegroupings)) {
|
||||
. get_string('creategroup', 'group') . '" /></p>'."\n";
|
||||
echo '<p><input type="submit" name="act_printerfriendly" id="printerfriendly" value="'
|
||||
. get_string('printerfriendly', 'group') . '" /></p>'."\n";
|
||||
} else {
|
||||
} else {
|
||||
echo '<p><input type="submit" ' . $showcreategroupform_disabled . ' name="act_showcreategroupform" id="showcreategroupform" value="'
|
||||
. get_string('creategroupinselectedgrouping', 'group') . '" /></p>'."\n";
|
||||
|
||||
|
||||
echo '<p><input type="submit" name="act_showcreateorphangroupform" id="showcreateorphangroupform" value="'
|
||||
. get_string('createorphangroup', 'group') . '" /></p>'."\n";
|
||||
|
||||
|
||||
if ($shownotdone) {
|
||||
echo '<p><input type="submit" '.$disabled.' name="act_addgroupstogroupingform" '
|
||||
. 'id="showaddgroupstogroupingform" value="' . get_string('addgroupstogrouping', 'group') . '" /></p>'."\n";
|
||||
@@ -350,11 +348,11 @@ if (empty($CFG->enablegroupings)) {
|
||||
//NOTE: the SELECT was, multiple="multiple" name="user[]" - not used and breaks onclick.
|
||||
echo '<select name="user" id="members" size="15" class="select"'."\n";
|
||||
echo ' onclick="window.status=this.options[this.selectedIndex].title;" onmouseout="window.status=\'\';">'."\n";
|
||||
|
||||
|
||||
if (isset($sel_groupid)) {
|
||||
$userids = groups_get_members($sel_groupid);
|
||||
}
|
||||
if (isset($userids)) { //&& is_array($userids)
|
||||
if (isset($userids)) { //&& is_array($userids)
|
||||
// Put the groupings into a hash and sort them
|
||||
$user_names = groups_userids_to_user_names($userids, $courseid);
|
||||
if(empty($user_names)) {
|
||||
@@ -364,18 +362,18 @@ if (empty($CFG->enablegroupings)) {
|
||||
echo "<option value=\"{$user->id}\" title=\"{$user->name}\">{$user->name}</option>\n";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else {
|
||||
// Print an empty option to avoid the XHTML error of having an empty select element
|
||||
echo '<option> </option>';
|
||||
}
|
||||
|
||||
|
||||
echo '</select>'."\n";
|
||||
|
||||
if ($shownotdone) {
|
||||
echo '<p><input type="submit" '.$disabled.' name="act_removemembers" '
|
||||
. 'id="removemembers" value="' . get_string('removeselectedusers', 'group') . '"/></p>'."\n";
|
||||
}
|
||||
|
||||
|
||||
echo '<p><input type="submit" ' . $showaddmembersform_disabled . ' name="act_showaddmembersform" '
|
||||
. 'id="showaddmembersform" value="' . get_string('adduserstogroup', 'group'). '" /></p>'."\n";
|
||||
echo '</td>'."\n";
|
||||
@@ -385,7 +383,7 @@ if (empty($CFG->enablegroupings)) {
|
||||
//<input type="hidden" name="rand" value="om" />
|
||||
echo '</div>'."\n";
|
||||
echo '</form>'."\n";
|
||||
|
||||
|
||||
echo '<script type="text/javascript">'."\n";
|
||||
echo '//<![CDATA['."\n";
|
||||
echo 'var groupsCombo = new UpdatableGroupsCombo("'.$CFG->wwwroot.'", '.$course->id.');'."\n";
|
||||
|
||||
+1
-1
@@ -464,7 +464,7 @@ if ($INSTALL['stage'] == DOWNLOADLANG && $INSTALL['downloadlangpack']) {
|
||||
case ERROR:
|
||||
if ($cd->get_error() == 'remotedownloadnotallowed') {
|
||||
$a = new stdClass();
|
||||
$a->url = 'http://download.moodle.org/lang16/'.$pack.'.zip';
|
||||
$a->url = 'http://download.moodle.org/lang16/'.$INSTALL['language'].'.zip';
|
||||
$a->dest= $CFG->dataroot.'/lang';
|
||||
$downloaderror = get_string($cd->get_error(), 'error', $a);
|
||||
} else {
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/// Please, do not edit this file manually! It's auto generated from
|
||||
/// contents stored in your standard lang pack files:
|
||||
/// (langconfig.php, install.php, moodle.php, admin.php and error.php)
|
||||
///
|
||||
/// If you find some missing string in Moodle installation, please,
|
||||
/// keep us informed using http://moodle.org/bugs Thanks!
|
||||
///
|
||||
/// File generated by cvs://contrib/lang2installer/installer_builder
|
||||
/// using strings defined in stringnames.txt (same dir)
|
||||
|
||||
$string['availablelangs'] = 'যে সমস্ত ভাষা ব্যাবহার করতে পারেন';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thislanguage'] = 'বাংলা';
|
||||
?>
|
||||
@@ -9,7 +9,7 @@
|
||||
/// File generated by cvs://contrib/lang2installer/installer_builder
|
||||
/// using strings defined in stringnames.txt (same dir)
|
||||
|
||||
$string['aborting'] = 'S\'està interrompent la instal·lació'; // ORPHANED
|
||||
$string['aborting'] = 'S\'està interrompent la instal·lació';
|
||||
$string['admindirerror'] = 'El directori d\'administració especificat és incorrecte';
|
||||
$string['admindirname'] = 'Directori d\'administració';
|
||||
$string['admindirsetting'] = 'Alguns servidors web utilitzen un URL especial /admin per accedir a un tauler de control o quelcom semblant. Malauradament aquesta és també la ubicació estàndard de les pàgines d\'administració de Moodle. Podeu arreglar aquest problema canviant el nom del directori d\'administració de Moodle en la vostra instal·lació i posant el nou nom aquí. Per exemple:<br /> <br /><b>moodleadmin</b><br /> <br />
|
||||
@@ -17,17 +17,17 @@ Això modificarà els enllaços d\'administració de Moodle.';
|
||||
$string['admindirsettinghead'] = 'S\'està configurant el directori d\'administració...';
|
||||
$string['admindirsettingsub'] = 'Alguns proveïdors d\'espai web utilitzen /admin com una adreça URL especial per accedir a un tauler de control o quelcom semblant. Malauradament això interfereix amb la ubicació estàndard de les pàgines d\'administració de Moodle. Podeu solucionar aquest problema canviant el nom del directori admin en la vostra instal·lació i introduint aquí el nou nom. Per exemple: <br /> <br /><b>moodleadmin</b><br /> <br />
|
||||
Això repararà tots els enllaços d\'administració de Moodle.';
|
||||
$string['adminemail'] = 'Correu electrònic:'; // ORPHANED
|
||||
$string['adminfirstname'] = 'Nom:'; // ORPHANED
|
||||
$string['admininfo'] = 'Dades de l\'administrador'; // ORPHANED
|
||||
$string['adminlastname'] = 'Cognoms:'; // ORPHANED
|
||||
$string['adminpassword'] = 'Contrasenya:'; // ORPHANED
|
||||
$string['adminusername'] = 'Nom d\'usuari/ària'; // ORPHANED
|
||||
$string['askcontinue'] = 'Continua (sí/no)'; // ORPHANED
|
||||
$string['availabledbtypes'] = 'Tipus de base de dades disponibles'; // ORPHANED
|
||||
$string['availablelangs'] = 'Llista d\'idiomes disponibles'; // ORPHANED
|
||||
$string['adminemail'] = 'Correu electrònic:';
|
||||
$string['adminfirstname'] = 'Nom:';
|
||||
$string['admininfo'] = 'Dades de l\'administrador';
|
||||
$string['adminlastname'] = 'Cognoms:';
|
||||
$string['adminpassword'] = 'Contrasenya:';
|
||||
$string['adminusername'] = 'Nom d\'usuari/ària';
|
||||
$string['askcontinue'] = 'Continua (sí/no)';
|
||||
$string['availabledbtypes'] = 'Tipus de base de dades disponibles';
|
||||
$string['availablelangs'] = 'Llista d\'idiomes disponibles';
|
||||
$string['bypassed'] = 'S\'ha deixat de banda';
|
||||
$string['cannotconnecttodb'] = 'No es pot obrir la connexió amb la base de dades'; // ORPHANED
|
||||
$string['cannotconnecttodb'] = 'No es pot obrir la connexió amb la base de dades';
|
||||
$string['cannotcreatelangdir'] = 'No s\'ha pogut crear el directori d\'idiomes.';
|
||||
$string['cannotcreatetempdir'] = 'No s\'ha pogut crear el directori temporal';
|
||||
$string['cannotdownloadcomponents'] = 'No s\'han pogut baixar components';
|
||||
@@ -38,7 +38,7 @@ $string['cannotsavezipfile'] = 'No s\'ha pogut desar el fitxer zip';
|
||||
$string['cannotunzipfile'] = 'No s\'ha pogut descomprimir el fitxer';
|
||||
$string['caution'] = 'Alerta';
|
||||
$string['check'] = 'Reviseu';
|
||||
$string['checkingphpsettings'] = 'S\'estan comprovant els paràmetres del PHP'; // ORPHANED
|
||||
$string['checkingphpsettings'] = 'S\'estan comprovant els paràmetres del PHP';
|
||||
$string['chooselanguage'] = 'Trieu un idioma';
|
||||
$string['chooselanguagehead'] = 'Trieu un idioma';
|
||||
$string['chooselanguagesub'] = 'Trieu un idioma NOMÉS per a la instal·lació. En una pantalla posterior podreu triar idiomes per al lloc i per als usuaris.';
|
||||
@@ -47,19 +47,20 @@ $string['compatibilitysettings'] = 'S\'estan comprovant els paràmetres del PHP.
|
||||
$string['compatibilitysettingshead'] = 'S\'estan comprovant els paràmetres del PHP...';
|
||||
$string['compatibilitysettingssub'] = 'El vostre servidor hauria de passar totes aquestes proves per tal que Moodle funcioni correctament.';
|
||||
$string['componentisuptodate'] = 'El component està al dia';
|
||||
$string['configfilecreated'] = 'El fitxer de configuració s\'ha creat correctament'; // ORPHANED
|
||||
$string['configfiledoesnotexist'] = 'El fitxer de configuració no existeix'; // ORPHANED
|
||||
$string['configfilecreated'] = 'El fitxer de configuració s\'ha creat correctament';
|
||||
$string['configfiledoesnotexist'] = 'El fitxer de configuració no existeix';
|
||||
$string['configfilenotwritten'] = 'La seqüència d\'instal·lació no ha estat capaç de crear automàticament un fitxer config.php que contingui els paràmetres que heu triat, probablement perquè no pugui escriure al directori de Moodle. Podeu copiar a mà el codi següent en un fitxer anomenat config.php dins del directori arrel de Moodle.';
|
||||
$string['configfilewritten'] = 'S\'ha creat correctament el fitxer config.php';
|
||||
$string['configurationcomplete'] = 'S\'ha completat la configuració';
|
||||
$string['configurationcompletehead'] = 'S\'ha completat la configuració';
|
||||
$string['configurationcompletesub'] = 'Moodle ha intentat desar la configuració en un fitxer en l\'arrel de la vostra instal·lació de Moodle.';
|
||||
$string['configurationfileexist'] = 'Ja existeix un fitxer de configuració'; // ORPHANED
|
||||
$string['configurationfileexist'] = 'Ja existeix un fitxer de configuració';
|
||||
$string['continue'] = 'Continua';
|
||||
$string['creatingconfigfile'] = 'S\'està creant el fitxer de configuració...'; // ORPHANED
|
||||
$string['creatingconfigfile'] = 'S\'està creant el fitxer de configuració...';
|
||||
$string['ctyperecommended'] = 'Es recomana instal·lar l\'extensió de PHP ctype a fi de millorar el rendiment del lloc, especialment si teniu usuaris que treballen amb idiomes no occidentals.';
|
||||
$string['ctyperequired'] = 'A hores d\'ara Moodle requereix l\'extensió de PHP ctype, a fi de millorar el rendiment del lloc i oferir compatibilitat amb diferents idiomes.';
|
||||
$string['curlrecommended'] = 'Es recomana instal·lar la biblioteca opcional Curl a fi d\'habilitar la funcionalitat de Moodle en Xarxa.';
|
||||
$string['curlrequired'] = 'L\'extensió de PHP cURL és ara necessària per a comunicar-se amb repositoris Moodle.';
|
||||
$string['customcheck'] = 'Altres comprovacions';
|
||||
$string['database'] = 'Base de dades';
|
||||
$string['databasecreationsettings'] = 'Ara cal configurar els paràmetres de la base de dades on s\'emmagatzemara la majoria de dades de Moodle. L\'instal·lador Moodle4Windows crearà automàticament aquesta base de dades amb els paràmetres que especifiqueu aquí.<br /><br /><br />
|
||||
@@ -76,9 +77,9 @@ $string['databasecreationsettingssub'] = '<b>Tipus:</b> fixat a \"mysql\" per l\
|
||||
<b>Usuari:</b> fixat a \"root\" per l\'instal·lador<br />
|
||||
<b>Contrasenya:</b> la contrasenya de l\'usuari \"root\" de la base de dades<br />
|
||||
<b>Prefix de les taules:</b> prefix opcional per utilitzar en els noms de totes les taules';
|
||||
$string['databasehost'] = 'Servidor de base de dades:'; // ORPHANED
|
||||
$string['databasename'] = 'Nom de la base de dades:'; // ORPHANED
|
||||
$string['databasepass'] = 'Contrasenya de la base de dades:'; // ORPHANED
|
||||
$string['databasehost'] = 'Servidor de base de dades:';
|
||||
$string['databasename'] = 'Nom de la base de dades:';
|
||||
$string['databasepass'] = 'Contrasenya de la base de dades:';
|
||||
$string['databasesettings'] = 'Ara cal configurar la base de dades on s\'emmagatzemaran la majoria de dades de Moodle. Aquesta base de dades s\'ha d\'haver creat abans i cal tenir un nom d\'usuari i una contrasenya per accedir-hi.<br />
|
||||
<br /> <br />
|
||||
<b>Tipus:</b> mysql o postgres7<br />
|
||||
@@ -87,7 +88,7 @@ $string['databasesettings'] = 'Ara cal configurar la base de dades on s\'emmagat
|
||||
<b>Usuari:</b> nom de l\'usuari de la base de dades<br />
|
||||
<b>Contrasenya:</b> contrasenya de l\'usuari de la base de dades<br />
|
||||
<b>Prefix de les taules:</b> prefix opcional per utilitzar en els noms de totes les taules';
|
||||
$string['databasesettingsformoodle'] = 'Paràmetres de la base de dades de Moodle'; // ORPHANED
|
||||
$string['databasesettingsformoodle'] = 'Paràmetres de la base de dades de Moodle';
|
||||
$string['databasesettingshead'] = 'Ara cal configurar la base de dades on s\'emmagatzemaran la majoria de dades de Moodle. Aquesta base de dades s\'ha d\'haver creat abans i cal tenir un nom d\'usuari i una contrasenya per accedir-hi.';
|
||||
$string['databasesettingssub'] = '<b>Tipus:</b> mysql o postgres7<br />
|
||||
<b>Servidor:</b> p. ex. localhost o db.isp.com<br />
|
||||
@@ -137,9 +138,16 @@ $string['databasesettingssub_postgres7'] = '<b>Tipus:</b> PostgreSQL<br />
|
||||
<b>Usuari:</b> el vostre nom d\'usuari de la base de dades<br />
|
||||
<b>Contrasenya:</b> la vostra contrasenya de la base de dades<br />
|
||||
<b>Prefix de les taules:</b> prefix que cal anteposar als noms de totes les taules (obligatori)';
|
||||
$string['databasesettingssub_sqlite3_pdo'] = '<b>Tipus:</b> SQLite 3 (PDO) <b><strong class=\"errormsg\">Experimental! (no l\'utilitzeu en producció)</strong></b><br />
|
||||
<b>Servidor:</b> camí (complet) del directori on es desarà el fitxer de la base de dades; en blanc o localhost per utilitzar el directori de dades de Moodle<br />
|
||||
<b>Nom:</b> nom de la base de dades, p. ex. moodle (opcional)<br />
|
||||
<b>Usuari:</b> el vostre nom d\'usuari de la base de dades (opcional)<br />
|
||||
<b>Contrasenya:</b> la vostra contrasenya de la base de dades (opcional)<br />
|
||||
<b>Prefix de les taules:</b> prefix que cal anteposar als noms de totes les taules (obligatori)<br />
|
||||
El nom del fitxer de la base de dades es determinarà mitjançant el nom d\'usuari, el nom de la base de dades i la contrasenya que definiu més amunt.';
|
||||
$string['databasesettingswillbecreated'] = '<strong>Nota</strong >: l\'instal·lador intentarà crear automàticament la base de dades si no existeix.';
|
||||
$string['databasetype'] = 'Tipus de base de dades:'; // ORPHANED
|
||||
$string['databaseuser'] = 'Usuari de la base de dades:'; // ORPHANED
|
||||
$string['databasetype'] = 'Tipus de base de dades:';
|
||||
$string['databaseuser'] = 'Usuari de la base de dades:';
|
||||
$string['dataroot'] = 'Directori de dades';
|
||||
$string['datarooterror'] = 'No s\'ha pogut trobar o crear el directori de dades que heu especificat. Corregiu el camí o creeu el directori a mà.';
|
||||
$string['dbconnectionerror'] = 'No es pot obrir la connexió amb la base de dades que heu especificat. Comproveu els paràmetres de la base de dades.';
|
||||
@@ -173,16 +181,16 @@ Especifiqueu el camí complet del directori d\'aquesta instal·lació. Assegureu
|
||||
Necessiteu un lloc on Moodle pugui desar els fitxers que es pengin. L\'usuari del servidor web (generalment \'nobody\' o \'apache\') ha de tenir permisos de lectura i d\'ESCRIPTURA en aquest directori, però no hauria de ser accessible directament via web.</p>';
|
||||
$string['dirroot'] = 'Directori de Moodle';
|
||||
$string['dirrooterror'] = 'El paràmetre \'Directori de Moodle\' sembla incorrecte: no s\'hi ha pogut trobat cap instal·lació de Moodle. S\'ha reiniciat el valor del paràmetre.';
|
||||
$string['disagreelicense'] = 'No es pot continuar l\'actualització sense acceptar la GPL.'; // ORPHANED
|
||||
$string['disagreelicense'] = 'No es pot continuar l\'actualització sense acceptar la GPL.';
|
||||
$string['download'] = 'Baixa';
|
||||
$string['downloadedfilecheckfailed'] = 'Ha fallat la comprovació del fitxer baixat.';
|
||||
$string['downloadlanguagebutton'] = 'Baixa el paquet d\'idioma \"$a\"';
|
||||
$string['downloadlanguagehead'] = 'Baixa paquet d\'idioma';
|
||||
$string['downloadlanguagenotneeded'] = 'Podeu continuar el procés d\'instal·lació amb el paquet d\'idioma per defecte \"$a\".';
|
||||
$string['downloadlanguagepack'] = 'Voleu baixar ara el paquet d\'idioma (sí/no)?'; // ORPHANED
|
||||
$string['downloadlanguagepack'] = 'Voleu baixar ara el paquet d\'idioma (sí/no)?';
|
||||
$string['downloadlanguagesub'] = 'Ara teniu l\'opció de baixar un paquet d\'idioma i continuar el procés d\'instal·lació en aquest idioma.<br /><br />Si no podeu baixar el paquet, el procés d\'instal·lació prosseguirà en anglès. (Després que s\'hagi completat la instal·lació, tindreu l\'oportunitat de baixar i instal·lar paquets d\'idioma addicionals.)';
|
||||
$string['downloadsuccess'] = 'El paquet d\'idioma s\'ha baixat correctament'; // ORPHANED
|
||||
$string['doyouagree'] = 'Esteu d\'acord (sí/no)?'; // ORPHANED
|
||||
$string['downloadsuccess'] = 'El paquet d\'idioma s\'ha baixat correctament';
|
||||
$string['doyouagree'] = 'Esteu d\'acord (sí/no)?';
|
||||
$string['environmenterrortodo'] = 'Abans d\'instal·lar aquesta versió de Moodle heu de resoldre tots els problemes d\'entorn (errors) que s\'han trobat.';
|
||||
$string['environmenthead'] = 'S\'està comprovant el vostre entorn';
|
||||
$string['environmentrecommendcustomcheck'] = 'si aquesta prova falla, això indica un problema en potència';
|
||||
@@ -194,7 +202,7 @@ $string['environmentrequireversion'] = 'esteu executant la versió $a->current i
|
||||
$string['environmentsub'] = 'S\'està comprovant si els diferents components del vostre sistema satisfan els requeriments';
|
||||
$string['environmentxmlerror'] = 'S\'ha produït un error en llegir les dades de l\'entorn ($a->error_code)';
|
||||
$string['error'] = 'Error';
|
||||
$string['errorsinenvironment'] = 'Hi ha errors en l\'entorn.'; // ORPHANED
|
||||
$string['errorsinenvironment'] = 'Hi ha errors en l\'entorn.';
|
||||
$string['fail'] = 'Error';
|
||||
$string['fileuploads'] = 'Càrrega de fitxers';
|
||||
$string['fileuploadserror'] = 'Hauria d\'estar habilitada';
|
||||
@@ -226,29 +234,29 @@ $string['globalswarning'] = '<p><strong>Avís de seguretat</strong>: per a opera
|
||||
$string['help'] = 'Ajuda';
|
||||
$string['iconvrecommended'] = 'És sumament recomanable instal·lar la biblioteca opcional ICONV a fi de millorar el rendiment del lloc, especialment si el vostre lloc utilitza llengües no romàniques.';
|
||||
$string['info'] = 'Informació';
|
||||
$string['inputdatadirectory'] = 'Directori de dades:'; // ORPHANED
|
||||
$string['inputwebadress'] = 'Adreça web:'; // ORPHANED
|
||||
$string['inputwebdirectory'] = 'Directori de Moodle'; // ORPHANED
|
||||
$string['inputdatadirectory'] = 'Directori de dades:';
|
||||
$string['inputwebadress'] = 'Adreça web:';
|
||||
$string['inputwebdirectory'] = 'Directori de Moodle';
|
||||
$string['installation'] = 'Instal·lació';
|
||||
$string['installationiscomplete'] = 'S\'ha completat la instal·lació'; // ORPHANED
|
||||
$string['installationiscomplete'] = 'S\'ha completat la instal·lació';
|
||||
$string['invalidargumenthelp'] = 'Error: els arguments no són vàlids.
|
||||
Ús: $php cliupgrade.php OPCIONS
|
||||
Utilitzeu l\'opció --help per a més informació'; // ORPHANED
|
||||
$string['invalidemail'] = 'L\'adreça de correu no és vàlida'; // ORPHANED
|
||||
$string['invalidhost'] = 'El servidor no és vàlid'; // ORPHANED
|
||||
$string['invalidint'] = 'Error: el valor no és un enter'; // ORPHANED
|
||||
$string['invalidintrange'] = 'Error: el valor és fora dels límits'; // ORPHANED
|
||||
Utilitzeu l\'opció --help per a més informació';
|
||||
$string['invalidemail'] = 'L\'adreça de correu no és vàlida';
|
||||
$string['invalidhost'] = 'El servidor no és vàlid';
|
||||
$string['invalidint'] = 'Error: el valor no és un enter';
|
||||
$string['invalidintrange'] = 'Error: el valor és fora dels límits';
|
||||
$string['invalidmd5'] = 'El md5 no és vàlid';
|
||||
$string['invalidpath'] = 'El camí no és vàlid'; // ORPHANED
|
||||
$string['invalidsetelement'] = 'Error: el valor que heu proporcionat no coincideix amb cap de les opcions permeses'; // ORPHANED
|
||||
$string['invalidtextvalue'] = 'El text no és vàlid'; // ORPHANED
|
||||
$string['invalidurl'] = 'L\'URL no és vàlid'; // ORPHANED
|
||||
$string['invalidvalueforlanguage'] = 'El valor no és vàlid per a l\'opció --lang. Utilitzeu --help per a més informació'; // ORPHANED
|
||||
$string['invalidyesno'] = 'Error: el valor no és un argument vàlid sí/no.'; // ORPHANED
|
||||
$string['invalidpath'] = 'El camí no és vàlid';
|
||||
$string['invalidsetelement'] = 'Error: el valor que heu proporcionat no coincideix amb cap de les opcions permeses';
|
||||
$string['invalidtextvalue'] = 'El text no és vàlid';
|
||||
$string['invalidurl'] = 'L\'URL no és vàlid';
|
||||
$string['invalidvalueforlanguage'] = 'El valor no és vàlid per a l\'opció --lang. Utilitzeu --help per a més informació';
|
||||
$string['invalidyesno'] = 'Error: el valor no és un argument vàlid sí/no.';
|
||||
$string['langdownloaderror'] = 'Dissortadament l\'idioma \"$a\" no està instal·lat. La instal·lació prosseguirà en anglès.';
|
||||
$string['langdownloadok'] = 'L\'dioma \"$a\" s\'ha instal·lat amb èxit. La instal·lació prosseguirà en aquest idioma.';
|
||||
$string['language'] = 'Idioma';
|
||||
$string['locationanddirectories'] = 'Ubicació i directoris'; // ORPHANED
|
||||
$string['locationanddirectories'] = 'Ubicació i directoris';
|
||||
$string['magicquotesruntime'] = 'Magic Quotes Run Time';
|
||||
$string['magicquotesruntimeerror'] = 'Hauria d\'estar desactivat';
|
||||
$string['magicquotesruntimehelp'] = '<p>Aquest paràmetre hauria d\'estar desactivat per tal que Moodle funcioni correctament.</p>
|
||||
@@ -296,8 +304,12 @@ $string['pass'] = 'Correcte';
|
||||
$string['password'] = 'Contrasenya';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'El PHP no s\'ha configurat correctament amb l\'extensió PGSQL de manera que pugui comunicar-se amb PostgreSQL. Reviseu el fitxer php.ini o recompileu el PHP.';
|
||||
$string['php50restricted'] = 'PHP 5.0 té alguns problemes coneguts. Actualitzeu-vos si us plau a 5.1.x o torneu a 4.3.x o 4.4.x';
|
||||
$string['php52versionerror'] = 'La versió de PHP ha de ser 5.2.0 o superior';
|
||||
$string['php52versionhelp'] = '<p>Moodle requereix una versió de PHP 5.2.0 o superior.</p>
|
||||
<p>A hores d\'ara esteu utilitzant la versió $a.</p>
|
||||
<p>Heu d\'actualitzar el PHP o canviar de servidor.</p>';
|
||||
$string['phpversion'] = 'Versió PHP';
|
||||
$string['phpversionerror'] = 'La versió del PHP ha de ser com a mínim la 4.1.0';
|
||||
$string['phpversionerror'] = 'La versió del PHP ha de ser com a mínim la 4.1.0'; // ORPHANED
|
||||
$string['phpversionhelp'] = '<p>Moodle necessita la versió de PHP 4.1.0 o posterior.</p>
|
||||
<p>A hores d\'ara esteu utilitzant la versió $a.</p>
|
||||
<p>Us caldrà actualitzar el PHP o traslladar Moodle a un ordinador amb una versió de PHP més recent.</p>';
|
||||
@@ -305,7 +317,7 @@ $string['postgres7'] = 'PostgreSQL (postgres7)';
|
||||
$string['previous'] = 'Anterior';
|
||||
$string['qtyperqpwillberemoved'] = 'Durant l\'actualització, el tipus de pregunta RPQ se suprimirà. No estàveu utilitzant aquest tipus de pregunta, de manera que no hauríeu d\'experimentar cap problema.';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'Durant l\'actualització, el tipus de pregunta RPQ se suprimirà. Teniu algunes preguntes RQP en la base de dades que deixaran de funcionar si no reinstal·leu el codi de http://moodle.org/mod/data/view.php?d=13&rid=797 abans de prosseguir l\'actualització.';
|
||||
$string['releasenoteslink'] = 'Per a més informació sobre aquesta versió de Moodle, consulteu les Notes de llançament en $a'; // ORPHANED
|
||||
$string['releasenoteslink'] = 'Per a més informació sobre aquesta versió de Moodle, consulteu les Notes de llançament en $a';
|
||||
$string['remotedownloaderror'] = 'No s\'ha pogut baixar el component al vostre servidor. Verifiqueu els paràmetres de servidor intermediari. Es recomana l\'extensió cURL.<br /><br />Haureu de baixar manualment el fitxer <a href=\"$a->url\">$a->url</a>, copiar-lo a la ubicació \"$a->dest\" del vostre servidor i descomprimir-lo allí.';
|
||||
$string['remotedownloadnotallowed'] = 'El vostre servidor no permet baixar components ((allow_url_fopen inhabilitat).<br /><br />Baixeu manualment el fitxer <a href=\"$a->url\">$a->url</a>, copieu en la ubicació \"$a->dest\" del vostre servidor i descomprimiu-lo allí.';
|
||||
$string['report'] = 'Informe';
|
||||
@@ -317,40 +329,42 @@ $string['safemodehelp'] = '<p>Moodle pot tenir diversos problemes amb el mode se
|
||||
<p>Normalment el mode segur només està habilitat en servidors webs públics una mica paranoics, de manera que és probable que hàgiu de buscar un altre servei d\'allotjament per al vostre Moodle.</p>
|
||||
|
||||
<p>Podeu continuar la instal·lació si voleu, però trobareu problemes de funcionament més endavant.</p>';
|
||||
$string['selectlanguage'] = 'Selecció d\'idioma per a la instal·lació'; // ORPHANED
|
||||
$string['selectlanguage'] = 'Selecció d\'idioma per a la instal·lació';
|
||||
$string['serverchecks'] = 'Proves del servidor';
|
||||
$string['sessionautostart'] = 'Autoinici de sessió';
|
||||
$string['sessionautostarterror'] = 'Hauria d\'estar desactivat';
|
||||
$string['sessionautostarthelp'] = '<p>Moodle necessita suport per a sessions i no funcionarà sense.</p>
|
||||
|
||||
<p>Les sessions es poden habilitar en el fitxer php.ini. Comproveu el paràmetre session.auto_start.</p>';
|
||||
$string['sitefullname'] = 'Nom complet del lloc'; // ORPHANED
|
||||
$string['siteinfo'] = 'Detalls del lloc'; // ORPHANED
|
||||
$string['sitenewsitems'] = 'Titulars de notícies:'; // ORPHANED
|
||||
$string['siteshortname'] = 'Nom curt del lloc:'; // ORPHANED
|
||||
$string['sitesummary'] = 'Resum del lloc:'; // ORPHANED
|
||||
$string['sitefullname'] = 'Nom complet del lloc';
|
||||
$string['siteinfo'] = 'Detalls del lloc';
|
||||
$string['sitenewsitems'] = 'Titulars de notícies:';
|
||||
$string['siteshortname'] = 'Nom curt del lloc:';
|
||||
$string['sitesummary'] = 'Resum del lloc:';
|
||||
$string['skipdbencodingtest'] = 'Omet la prova de codificació de la base de dades';
|
||||
$string['sqlite3_pdo'] = 'SQLite 3 (PDO) <b><strong class=\"errormsg\">Experimental! (no l\'utilitzeu en producció)</strong></b>';
|
||||
$string['sqliteextensionisnotpresentinphp'] = 'El PHP no ha estat configurat correctament amb l\'extensió SQLite. Reviseu el fitxer php.ini o torneu a compilar el PHP.';
|
||||
$string['status'] = 'Estat';
|
||||
$string['tableprefix'] = 'Prefix de taules:'; // ORPHANED
|
||||
$string['tableprefix'] = 'Prefix de taules:';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thislanguage'] = 'Català';
|
||||
$string['unicoderecommended'] = 'Es recomana emmagatzemar totes les dades en Unicode (UTF-8). Les noves instal·lacions s\'haurien de realitzar en bases de dades que tinguin definit com a Unicode el conjunt de caràcters per defecte. Si esteu fent una actualització, hauríeu de passar el procés de migració a UTF-8 (vg. la pàgina d\'Administració).';
|
||||
$string['unicoderequired'] = 'Es requereix emmagatzemar totes les dades en format Unicode (UTF-8). Les noves instal·lacions s\'han de realitzar en bases de dades que tinguin definit com a Unicode el conjunt de caràcters per defecte. Si esteu fent una actualització, hauríeu de passar el procés de migració a UTF-8 (vg. la pàgina d\'Administració).';
|
||||
$string['upgradingactivitymodule'] = 'S\'està actualitzant el mòdul d\'activitat'; // ORPHANED
|
||||
$string['upgradingbackupdb'] = 'S\'està actualitzant la base de dades de còpies de seguretat'; // ORPHANED
|
||||
$string['upgradingblocksdb'] = 'S\'està actualitzant la base de dades de blocs'; // ORPHANED
|
||||
$string['upgradingblocksplugin'] = 'S\'està actualitzant el connector de blocs'; // ORPHANED
|
||||
$string['upgradingcompleted'] = 'S\'ha completat l\'actualització...'; // ORPHANED
|
||||
$string['upgradingcourseformatplugin'] = 'S\'està actualitzant el connector de format de curs'; // ORPHANED
|
||||
$string['upgradingenrolplugin'] = 'S\'està actualitzant el connector d\'inscripcions'; // ORPHANED
|
||||
$string['upgradinggradeexportplugin'] = 'S\'està actualitzant el connector d\'exportació de qualificacions'; // ORPHANED
|
||||
$string['upgradinggradeimportplugin'] = 'S\'està actualitzant el connector d\'importació de qualificacions'; // ORPHANED
|
||||
$string['upgradinggradereportplugin'] = 'S\'està actualitzant el connector d\'informes de qualificacions'; // ORPHANED
|
||||
$string['upgradinglocaldb'] = 'S\'està actualitzant la base de dades local'; // ORPHANED
|
||||
$string['upgradingmessageoutputpluggin'] = 'S\'està actualitzant el connector de sortida de missatges'; // ORPHANED
|
||||
$string['upgradingqtypeplugin'] = 'S\'està actualitzant el connector de tipus de preguntes'; // ORPHANED
|
||||
$string['upgradingrpcfunctions'] = 'S\'estan actualitzant les funcions RPC'; // ORPHANED
|
||||
$string['upgradingactivitymodule'] = 'S\'està actualitzant el mòdul d\'activitat';
|
||||
$string['upgradingbackupdb'] = 'S\'està actualitzant la base de dades de còpies de seguretat';
|
||||
$string['upgradingblocksdb'] = 'S\'està actualitzant la base de dades de blocs';
|
||||
$string['upgradingblocksplugin'] = 'S\'està actualitzant el connector de blocs';
|
||||
$string['upgradingcompleted'] = 'S\'ha completat l\'actualització...';
|
||||
$string['upgradingcourseformatplugin'] = 'S\'està actualitzant el connector de format de curs';
|
||||
$string['upgradingenrolplugin'] = 'S\'està actualitzant el connector d\'inscripcions';
|
||||
$string['upgradinggradeexportplugin'] = 'S\'està actualitzant el connector d\'exportació de qualificacions';
|
||||
$string['upgradinggradeimportplugin'] = 'S\'està actualitzant el connector d\'importació de qualificacions';
|
||||
$string['upgradinggradereportplugin'] = 'S\'està actualitzant el connector d\'informes de qualificacions';
|
||||
$string['upgradinglocaldb'] = 'S\'està actualitzant la base de dades local';
|
||||
$string['upgradingmessageoutputpluggin'] = 'S\'està actualitzant el connector de sortida de missatges';
|
||||
$string['upgradingqtypeplugin'] = 'S\'està actualitzant el connector de tipus de preguntes';
|
||||
$string['upgradingrpcfunctions'] = 'S\'estan actualitzant les funcions RPC';
|
||||
$string['usagehelp'] = 'Sinopsi:
|
||||
$php cliupgrade.php OPCIONS
|
||||
|
||||
@@ -380,9 +394,9 @@ OPCIONS
|
||||
--help mostra aquesta ajuda
|
||||
|
||||
Ús:
|
||||
$php cliupgrade.php --lang=en --webaddr=http://www.example.com --moodledir=/var/www/html/moodle --datadir=/var/moodledata --dbtype=mysql --dbhost=localhost --dbname=moodle --dbuser=root --prefix=mdl --agreelicense=yes --confirmrelease=yes --sitefullname=\"Lloc Moodle de mostra\" --siteshortname=moodle --sitesummary=siteforme --adminfirstname=Admin --adminlastname=User --adminusername=admin --adminpassword=admin --adminemail=admin@example.com --verbose=1 --interactivelevel=2'; // ORPHANED
|
||||
$php cliupgrade.php --lang=en --webaddr=http://www.example.com --moodledir=/var/www/html/moodle --datadir=/var/moodledata --dbtype=mysql --dbhost=localhost --dbname=moodle --dbuser=root --prefix=mdl --agreelicense=yes --confirmrelease=yes --sitefullname=\"Lloc Moodle de mostra\" --siteshortname=moodle --sitesummary=siteforme --adminfirstname=Admin --adminlastname=User --adminusername=admin --adminpassword=admin --adminemail=admin@example.com --verbose=1 --interactivelevel=2';
|
||||
$string['user'] = 'Usuari';
|
||||
$string['versionerror'] = 'L\'usuari ha interromput per un error de versió'; // ORPHANED
|
||||
$string['versionerror'] = 'L\'usuari ha interromput per un error de versió';
|
||||
$string['welcomep10'] = '$a->installername ($a->installerversion)';
|
||||
$string['welcomep20'] = 'Esteu veient aquesta pàgina perquè heu instal·lat amb èxit i heu executat el paquet <strong>$a->packname $a->packversion</strong>. Felicitacions!';
|
||||
$string['welcomep30'] = 'Aquesta versió de <strong>$a->installername</strong> inclou les aplicacions necessàries per crear un entorn en el qual funcioni <strong>Moodle</strong>:';
|
||||
@@ -392,13 +406,13 @@ $string['welcomep50'] = 'L\'ús de totes les aplicacions d\'aquest paquet és go
|
||||
sota llicència <a href=\"http://www.gnu.org/copyleft/gpl.html\">GPL</a>.';
|
||||
$string['welcomep60'] = 'Les pàgines següents us guiaran per una sèrie de passos fàcils de seguir per configurar <strong>Moodle</strong> en el vostre ordinador. Podeu acceptar els paràmetres per defecte o, opcionalment, modificar-los perquè s\'ajustin a les vostres necessitats.';
|
||||
$string['welcomep70'] = 'Feu clic en el botó \"Següent\" per continuar la configuració de <strong>Moodle</strong>.';
|
||||
$string['welcometext'] = '--- Benvinguts a l\'instal·lador de línia d\'ordres de Moodle ---'; // ORPHANED
|
||||
$string['writetoconfigfilefaild'] = 'Error: no s\'ha pogut escriure el fitxer de configuració'; // ORPHANED
|
||||
$string['welcometext'] = '--- Benvinguts a l\'instal·lador de línia d\'ordres de Moodle ---';
|
||||
$string['writetoconfigfilefaild'] = 'Error: no s\'ha pogut escriure el fitxer de configuració';
|
||||
$string['wrongdestpath'] = 'El camí de destinació és erroni';
|
||||
$string['wrongsourcebase'] = 'L\'adreça (URL) base de la font és errònia';
|
||||
$string['wrongzipfilename'] = 'El nom del fitxer ZIP és erroni';
|
||||
$string['wwwroot'] = 'Adreça web';
|
||||
$string['wwwrooterror'] = 'L\'adreça web no sembla vàlida. La instal·lació de Moodle no sembla que sigui en aquesta ubicació,';
|
||||
$string['xmlrpcrecommended'] = 'Instal·lar l\'extensió opcional xmlrpc és útil per a la funcionalitat de Moodle en Xarxa.';
|
||||
$string['yourchoice'] = 'La vostra elecció:'; // ORPHANED
|
||||
$string['yourchoice'] = 'La vostra elecció:';
|
||||
?>
|
||||
|
||||
@@ -18,11 +18,11 @@ $string['admindirsettingsub'] = 'Na některých serverech je URL adresa /admin v
|
||||
Všechny generované odkazy na stránky správy Moodlu budou používat tento nový název.';
|
||||
$string['availablelangs'] = 'Dostupné jazykové balíčky';
|
||||
$string['bypassed'] = 'Přeskočeno';
|
||||
$string['cannotcreatelangdir'] = 'Nelze vytvořit adresář pro jazykové soubory.';
|
||||
$string['cannotcreatelangdir'] = 'Nelze vytvořit adresář pro jazykové soubory';
|
||||
$string['cannotcreatetempdir'] = 'Nelze vytvořit dočasný adresář.';
|
||||
$string['cannotdownloadcomponents'] = 'Nelze stáhnout komponenty.';
|
||||
$string['cannotdownloadzipfile'] = 'Nelze stáhnout soubor ZIP.';
|
||||
$string['cannotfindcomponent'] = 'Komponenta nenalezena.';
|
||||
$string['cannotdownloadcomponents'] = 'Nelze stáhnout komponenty';
|
||||
$string['cannotdownloadzipfile'] = 'Nelze stáhnout soubor ZIP';
|
||||
$string['cannotfindcomponent'] = 'Komponenta nenalezena';
|
||||
$string['cannotsavemd5file'] = 'Nelze uložit soubor MD5.';
|
||||
$string['cannotsavezipfile'] = 'Nelze uložit soubor ZIP.';
|
||||
$string['cannotunzipfile'] = 'Nelze dekomprimovat soubor.';
|
||||
@@ -42,6 +42,8 @@ $string['configurationcomplete'] = 'Konfigurace dokončena';
|
||||
$string['configurationcompletehead'] = 'Konfigurace dokončena';
|
||||
$string['configurationcompletesub'] = 'Moodle se pokusil uložit soubor s konfigurací do kořenového adresáře instalace Moodlu.';
|
||||
$string['continue'] = 'Pokračovat';
|
||||
$string['ctyperecommended'] = 'Rozšíření PHP ctype je velmi doporučováno z důvodů výkonu vašich stránek, obzvláště když pracujete s jazyky, které nepoužívají latinku.';
|
||||
$string['ctyperequired'] = 'Rozšíření PHP ctype je Moodlem vyžadováno z důvodů výkonu a vícejazyčné podpory.';
|
||||
$string['curlrecommended'] = 'Pro běh síťových funkcionalit (\"Moodle Networking\") je potřeba nainstalovat volitelnou knihovnu Curl.';
|
||||
$string['customcheck'] = 'Další kontroly';
|
||||
$string['database'] = 'Databáze';
|
||||
@@ -93,6 +95,12 @@ $string['databasesettingssub_mysql'] = '<b>Typ:</b> MySQL<br />
|
||||
<b>Uživatel (User):</b> uživatel oprávněný pro práci s databází<br />
|
||||
<b>Heslo (Password):</b> heslo pro uživatele<br />
|
||||
<b>Předpona (Tables Prefix):</b> jednotná předpona názvů všech tabulek, např. mdl_ (volitelné)';
|
||||
$string['databasesettingssub_mysqli'] = '<b>Typ:</b> vylepšené MySQL<br />
|
||||
<b>Hostitel:</b> např. localhost nebo db.naseskola.cz<br />
|
||||
<b>Název:</b> název databáze, např. moodle<br />
|
||||
<b>Uživatel:</b> uživatel dané databáze<br />
|
||||
<b>Heslo:</b> heslo uživatele k databázi<br />
|
||||
<b>Předpona:</b> jednotná předpona názvů všech tabulek (volitelné)';
|
||||
$string['databasesettingssub_oci8po'] = '<b>Typ:</b> Oracle<br />
|
||||
<b>Hostitel (Host):</b> nepoužito, musí být prázdné<br />
|
||||
<b>Název (Name):</b> daný název připojení tnsnames.ora<br />
|
||||
@@ -111,8 +119,10 @@ $string['databasesettingssub_postgres7'] = '<b>Typ:</b> PostgreSQL<br />
|
||||
<b>Uživatel (User):</b> uživatel oprávněný pro práci s databází<br />
|
||||
<b>Heslo (Password):</b> heslo pro uživatele<br />
|
||||
<b>Předpona (Tables Prefix):</b> jednotná předpona názvů všech tabulek, např. mdl_ (povinné)';
|
||||
$string['databasesettingswillbecreated'] = '<b>Poznámka:</b> instalátor se pokusí vytvořit databázi automaticky, pokud ještě neexistuje';
|
||||
$string['dataroot'] = 'Datový adresář';
|
||||
$string['datarooterror'] = 'Zadaný datový adresář se nepodařilo nalézt nebo vytvořit. Buď opravte zadanou cestu, nebo vytvořte adresář ručně.';
|
||||
$string['datarootpublicerror'] = 'Zadaný datový adresář (dataroot) je přímo dostupný přes WWW. Zvolte jiné umístění.';
|
||||
$string['dbconnectionerror'] = 'Nepodařilo se připojit k databázi, kterou jste zadali. Zkontrolujte prosím nastavení databáze.';
|
||||
$string['dbcreationerror'] = 'Chyba při vytváření databáze. Nelze vytvořit databázi zadaného jména a nastavení.';
|
||||
$string['dbhost'] = 'Hostitelský server';
|
||||
@@ -199,6 +209,7 @@ $string['info'] = 'Informace';
|
||||
$string['installation'] = 'Instalace';
|
||||
$string['invalidemail'] = 'Neplatná e-mailová adresa';
|
||||
$string['invalidmd5'] = 'Neplatný MD5 hash';
|
||||
$string['invalidurl'] = 'Neplatná URL';
|
||||
$string['langdownloaderror'] = 'Bohužel, jazyk \"$a\" se nepodařilo nainstalovat. Instalace bude pokračovat v angličtine.';
|
||||
$string['langdownloadok'] = 'Podařilo se úspěšně nainstalovat jazykový balíček \"$a\". Instalace bude pokračovat v tomto jazyce.';
|
||||
$string['language'] = 'Jazyk';
|
||||
@@ -237,6 +248,8 @@ $string['mysql'] = 'MySQL (mysql)';
|
||||
$string['mysql416bypassed'] = 'Pokud ovšem ve vaší instalaci Moodlu používáte POUZE jazyky založené na latince (iso-8859-1), můžete nadále používat momentálně nainstalovanou verzi MySQL 4.1.12 (nebo vyšší).';
|
||||
$string['mysql416required'] = 'Minimální verzí požadovanou pro Moodle 1.6 -- a pro pozdější bezpečný převod všech dat do UTF-8 -- je MySQL 4.1.16.';
|
||||
$string['mysqlextensionisnotpresentinphp'] = 'PHP nebylo korektně nakonfigurováno pro komunikaci s MySQL. Zkontrolujte váš php.ini nebo překompilujte PHP.';
|
||||
$string['mysqli'] = 'Vylepšené MySQL (mysqli)';
|
||||
$string['mysqliextensionisnotpresentinphp'] = 'PHP není korektně nakonfigurováno, aby mohlo s MySQL serverem komunikovat s podporou rozšíření MySQLi. Zkontrolujte nastavení v souboru php.ini nebo překompilujte PHP. Rozšíření MySQLi není k dispozici ve verzi PHP 4.';
|
||||
$string['name'] = 'Název';
|
||||
$string['next'] = 'Další';
|
||||
$string['oci8po'] = 'Oracle (oci8po)';
|
||||
@@ -261,6 +274,7 @@ $string['previous'] = 'Předchozí';
|
||||
$string['qtyperqpwillberemoved'] = 'Během upgrade bude odstraněn typ testové úlohy RQP. Tento typ jste nepoužívali, takže byste neměli zaznamenta žádné problémy.';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'Během upgrade bude odstraněn typ testové úlohy RQP. Ve vaší databázi existuje několik takových úloh a ty nebudou fungovat, dokud nepřeinstalujete kód z http://moodle.org/mod/data/view.php?d=13&rid=797 před pokračováním upgrade.';
|
||||
$string['releasenoteslink'] = 'Informace o této verzi Moodlu najdete v <a target=\"_new\" href=\"$a\">Poznámkách k verzi</a>';
|
||||
$string['remotedownloaderror'] = 'Stahování komponenty na váš server selhalo. Prověřte nastavení proxy. Vřele doporučujeme PHP rozšíření cURL.<br /><br />Nyní musíte stáhnout soubor <a href=\"$a->url\">$a->url</a> ručně, překopírovat jej do \"$a->dest\" na vašem serveru a tam jej rozbalit.';
|
||||
$string['remotedownloadnotallowed'] = 'Stahování komponent na server není povoleno (direktiva allow_url_fopen je ve stavu \'vypnuto\').<br /><br />Musíte soubor stáhnout <a href=\"$a->url\">$a->url</a> ručně, zkopírovat jej na serveru do umístění \"$a->dest\" a tam jej dekomprimovat.';
|
||||
$string['report'] = 'Sestava';
|
||||
$string['restricted'] = 'Nedostupné';
|
||||
@@ -298,4 +312,5 @@ $string['wrongzipfilename'] = 'Chybné jméno souboru ZIP';
|
||||
$string['wwwroot'] = 'Webová adresa';
|
||||
$string['wwwrooterror'] = 'Parametr \'Webová adresa\' je zřejmě nastaven nesprávně -- v zadaném umístění se nepodařilo najít instalaci Moodlu. Ve formuláři níže byla automaticky nastavena výchozí hodnota.';
|
||||
$string['xmlrpcrecommended'] = 'Instalace rozšíření pro podporu XML-RPC je velmi užitečná pro síťové funkce Moodlu.';
|
||||
$string['ziprequired'] = 'PHP rozšíření ZIP je povinné. Nelze již používat binárky info-ZIP nebo knihovnu PclZip.';
|
||||
?>
|
||||
|
||||
@@ -47,7 +47,7 @@ $string['closewindow'] = 'Dieses Fenster schließen';
|
||||
$string['compatibilitysettings'] = 'Prüfung Ihrer PHP-Einstellungen ...';
|
||||
$string['compatibilitysettingshead'] = 'Prüfung Ihrer PHP-Einstellungen ...';
|
||||
$string['compatibilitysettingssub'] = 'Alle Tests sollten vom Server bestätigt werden, damit Moodle später reibungslos laufen kann.';
|
||||
$string['componentisuptodate'] = 'Die Komponente ist nicht aktuell.';
|
||||
$string['componentisuptodate'] = 'Die Komponente ist aktuell.';
|
||||
$string['configfilecreated'] = 'Konfiguartionsdatei wurde erfolgreich erstellt';
|
||||
$string['configfiledoesnotexist'] = 'Keine Konfiguarationsdatei gefunden!!!';
|
||||
$string['configfilenotwritten'] = 'Das Installationsscript kann die Datei config.php, welche die gewählten Einstellungen enthält, nicht automatisch erstellen. Der web-user hat keine Schreibrechte für das Moodle-Verzeichnis. Sie können den folgenden Code manuell in der Datei config.php speichern und diese dann ins Hauptverzeichnis Ihrer Moodle-Installation kopieren.';
|
||||
@@ -61,6 +61,7 @@ $string['creatingconfigfile'] = 'Konfiguarationsdatei wird erstellt ...';
|
||||
$string['ctyperecommended'] = 'Die Installation der optionalen Bibliothek ctype wird empfohlen, um die Geschwindigkeit der Website zu steigern. Dies ist besonders wichtig, wenn Sie Sprachen mit anderen als lateinischen Zeichensätzen verwenden.';
|
||||
$string['ctyperequired'] = 'Die PHP-Erweiterung ctype wird von Moodle benötigt, um die Geschwindigkeit der Website zu steigern und die Mehrsprachkompatibilität zu ermöglichen.';
|
||||
$string['curlrecommended'] = 'Die Installation der optionalen Bibliothek cURL wird empfohlen, um die Netzwerk-Funktionalität von Moodle einzuschalten.';
|
||||
$string['curlrequired'] = 'Die PHP-Erweiterung cURL wird von Moodle benötigt, um mit den Moodle Repositories zu kommunizieren';
|
||||
$string['customcheck'] = 'Weitere Überprüfungen';
|
||||
$string['database'] = 'Datenbank';
|
||||
$string['databasecreationsettings'] = 'Sie müssen die Datenbankeinstellungen für die Speicherung der Moodle-Daten konfigurieren. Die Datenbank wird automatisch vom Moodle4Windows-Installationsprozess mit den unten festgelegten Einstellungen angelegt:
|
||||
@@ -95,10 +96,10 @@ $string['databasesettingshead'] = 'Sie müssen nun die Einstellungen für die Da
|
||||
$string['databasesettingssub'] = '<b>Typ:</b> mysql oder postgres7<br />
|
||||
<b>Host:</b> z.B. localhost oder db.isp.com<br />
|
||||
<b>Name:</b> Datenbankname, z.B. moodle<br />
|
||||
<b>Nutzer:</b> Ihr Anmeldename für die Datenbank<br />
|
||||
<b>Passwort:</b> Ihr Passwort für die Datenbank<br />
|
||||
<b>User:</b> Ihr Anmeldename für die Datenbank<br />
|
||||
<b>Password:</b> Ihr Passwort für die Datenbank<br />
|
||||
<b>Tabellen-Prefix:</b> optionaler Prefix für alle Tabellen';
|
||||
$string['databasesettingssub_mssql'] = '<b>Typ:</b> SQL*Server (ohne UTF-8)<br />
|
||||
$string['databasesettingssub_mssql'] = '<b>Typ:</b> SQL*Server (ohne UTF-8)<b><strong class=\"errormsg\">Experimentell! (nicht für Produktivumgebungen)</strong></b><br /><br />
|
||||
<b>Host:</b> z.B. localhost oder db.isp.com<br />
|
||||
<b>Name:</b> Datenbankname, z.B. moodle<br />
|
||||
<b>User:</b> Ihr Anmeldename für die Datenbank<br />
|
||||
@@ -140,11 +141,19 @@ $string['databasesettingssub_postgres7'] = '<b>Typ:</b> PostgreSQL<br />
|
||||
<b>User:</b> Ihr Anmeldename für die Datenbank<br />
|
||||
<b>Password:</b> Ihr Passwort für die Datenbank<br />
|
||||
<b>Tabellen-Prefix:</b> Prefix für alle Tabellen (notwendig)';
|
||||
$string['databasesettingssub_sqlite3_pdo'] = '<b>Typ:</b> SQLite 3 (PDO) <b><strong class=\"errormsg\">Experimentell! (nicht für produktive Server benutzen!!)</strong></b><br />
|
||||
<b>Host:</b> Pfad zum Verzeichnis, in dem die Datenbankdatei gespeichert werden soll (vollständiger Pfad); mit localhost oder einem leeren Feld wird dasdas Moodle Datenverzeichnis verwendet<br />
|
||||
<b>Name:</b> Datenbankname, z.B. moodle (optional)<br />
|
||||
<b>User:</b> Ihr Anmeldename für die Datenbank (optional)<br />
|
||||
<b>Password:</b> Ihr Passwort für die Datenbank (optional)<br />
|
||||
<b>Tabellen-Prefix:</b> optionaler Prefix für alle Tabellen<br />
|
||||
Der Name der Datenbankdatei wird über den Nutzernamen erkannt, der Datenbankname und das Passwort sind oben angegeben.';
|
||||
$string['databasesettingswillbecreated'] = '<b>Hinweis: </b> Das Installationsprogramm wird versuchen, automatisch eine Datenbank anzulegen, sofern diese noch nicht besteht.';
|
||||
$string['databasetype'] = 'Datenbank-Typ :';
|
||||
$string['databaseuser'] = 'Datenbank-Nutzer :';
|
||||
$string['dataroot'] = 'Daten-Verzeichnis';
|
||||
$string['datarooterror'] = 'Das angegebene Datenverzeichnis ist nicht vorhanden und kann nicht angelegt werden. Korrigieren Sie die Pfad-Eingabe oder legen Sie das Verzeichnis manuell an.';
|
||||
$string['datarootpublicerror'] = 'Das von Ihnen angegebene Verzeichnis dataroot ist direkt aus dem Internet zugänglich. Sie müssen das Verzeichnis ändern!';
|
||||
$string['dbconnectionerror'] = 'Eine Verbindung zur angegebenen Datenbank konnte nicht hergestellt werden. Bitte überprüfen Sie Ihre Eingaben.';
|
||||
$string['dbcreationerror'] = 'Fehler beim Anlegen der Datenbank. Die Datenbank konnte mit diesen Einstellungen nicht erstellt werden.';
|
||||
$string['dbhost'] = 'Server';
|
||||
@@ -198,7 +207,7 @@ $string['environmentrequirecustomcheck'] = 'Dieser Test muss erfolgreich verlauf
|
||||
$string['environmentrequireinstall'] = 'muss installiert und aktiviert sein.';
|
||||
$string['environmentrequireversion'] = 'Version $a->needed ist erforderlich - aktuell ist $a->current installiert.';
|
||||
$string['environmentsub'] = 'Es wird geprüft, ob die verschiedenen Komponenten Ihres Systems die Installationsanforderungen erfüllen.';
|
||||
$string['environmentxmlerror'] = 'Beim Auslesen der Server-Konfiguration ist ein Fehler aufgetreten ($a->error_code)';
|
||||
$string['environmentxmlerror'] = 'Fehler beim Auslesen der Server-Konfiguration ($a->error_code)';
|
||||
$string['error'] = 'Fehler';
|
||||
$string['errorsinenvironment'] = 'Fehler bei den Anforderungen!';
|
||||
$string['fail'] = 'Fehlgeschlagen';
|
||||
@@ -218,8 +227,8 @@ $string['globalsquoteshelp'] = '<p>Die Kombination von deaktivierten Magic Quote
|
||||
<p>Die empfohlene Einstellung ist <b>magic_quotes_gpc = On</b> und <b>register_globals = Off</b> in Ihrer php.ini-Datei</p>
|
||||
|
||||
<p>Wenn Sie keinen Zugriff auf die Datei php.ini haben, können Sie die folgende Zeile in der Datei .htaccess im Moodle Verzeichnis einfügen:
|
||||
<blockquote>php_value magic_quotes_gpc On</blockquote>
|
||||
<blockquote>php_value register_globals Off</blockquote>
|
||||
<blockquote><div>php_value magic_quotes_gpc On</div></blockquote>
|
||||
<blockquote><div>php_value register_globals Off</div></blockquote>
|
||||
</p>';
|
||||
$string['globalswarning'] = '<p><strong>Sicherheitshinweis</strong>: Um ordnungsgemäß funktionieren zu können, benötigt <br />Moodle mehrere Änderungen in Ihren aktuellen PHP-Einstellungen.<p/> <p>Sie <em>müssen</em> den Parameter <code>register_globals=off</code> setzen.<p>Diese Einstellung können Sie vornehmen, in dem Sie die Datei <code>php.ini</code>, die Apache/IIS <br />Konfiguration oder die Datei <code>.htaccess</code> bearbeiten.</p>';
|
||||
$string['help'] = 'Hilfe';
|
||||
@@ -252,7 +261,7 @@ $string['magicquotesruntime'] = 'Magic Quotes Run Time';
|
||||
$string['magicquotesruntimeerror'] = 'Dies sollte ausgeschaltet sein (\'off\')';
|
||||
$string['magicquotesruntimehelp'] = '<p>Magic Quotes Runtime sollte abgeschaltet \'off\' sein, damit Moodle richtig läuft. </p>
|
||||
<p>Normalerweise ist dies der Fall. Prüfen Sie die Einstellung <b>magic_quotes_runtime</b> in der Datei php.ini. </p>
|
||||
<p>Wenn Sie keinen Zugriff zur Datei php.ini haben sollten Sie die folgende Zeile in eine Datei .htacess in Ihrem Moodle-Verzeichnis einfügen: <blockquote>php_value magic_quotes_runtime Off</blockquote></p>';
|
||||
<p>Wenn Sie keinen Zugriff zur Datei php.ini haben sollten Sie die folgende Zeile in eine Datei .htacess in Ihrem Moodle-Verzeichnis einfügen: <blockquote><div>php_value magic_quotes_runtime Off</div></blockquote></p>';
|
||||
$string['mbstringrecommended'] = 'Die Installation der Bibliothek MBSTRING wird zur Leistungsverbesserung dringend empfohlen. Dies ist besonders wichtig, wenn Sie Sprachen mit anderen als lateinischen Zeichensätzen verwenden.';
|
||||
$string['memorylimit'] = 'Memory Limit';
|
||||
$string['memorylimiterror'] = 'Die PHP-Speichereinstellung memory_limit ist zu niedrig. Dies könnte später zu Problemen führen.';
|
||||
@@ -262,7 +271,7 @@ $string['memorylimithelp'] = '<p>Die PHP-Einstellung memory_limit für Ihren Ser
|
||||
<ol>
|
||||
<li>Wenn Sie PHP neu kompilieren können, nehmen Sie die Einstellung <i>--enable-memory-limit</i>. Dann kann Moodle die Einstellung selber vornehmen.
|
||||
<li>Wenn Sie Zugriff auf die Datei php.ini haben, können Sie die Einstellung <b>memory_limit</b> selber auf z.B. 40M anpassen. Wenn Sie selber keinen Zugriff haben, fragen Sie den Server-Admin, dies für Sie zu tun.
|
||||
<li>Auf einigen PHP-Servern können Sie eine .htaccess-Datei im Moodle-Verzeichnis einrichten. Tragen Sie darin die folgende Zeile ein: <p><blockquote>php_value memory_limit 40M</blockquote></p>
|
||||
<li>Auf einigen PHP-Servern können Sie eine .htaccess-Datei im Moodle-Verzeichnis einrichten. Tragen Sie darin die folgende Zeile ein: <p><blockquote><div>php_value memory_limit 40M</div></blockquote></p>
|
||||
<p>Achtung: auf einigen Servern hindert diese Einstellung <b>alle</b> PHP-Seiten und Sie erhalten Fehlermeldungen. Entfernen Sie dann den Eintrag in der .htaccess-Datei wieder.</p></li>
|
||||
</ol>';
|
||||
$string['missingrequiredfield'] = 'Einige erforderliche Felder sind nicht ausgefüllt.';
|
||||
@@ -289,8 +298,8 @@ $string['pass'] = 'Durchgang';
|
||||
$string['password'] = 'Kennwort';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'PHP wurde nicht richtig konfiguriert, um über die PGSQL-Erweiterung mit PostgreSQL zu kommunizieren. Bitte prüfen Sie die Datei php.ini oder kompilieren Sie PHP neu.';
|
||||
$string['php50restricted'] = 'PHP 5.0.x hat eine Reihe bekannter Fehler! Sie sollten die Versionen 5.1.x bzw. 4.3.x/4.4.x benutzen.';
|
||||
$string['php52versionerror'] = 'PHP-Version muss mindestens 5.2.0 sein.';
|
||||
$string['php52versionhelp'] = '<p>Moodle benötigt mindestens PHP Version 2.0</p>
|
||||
$string['php52versionerror'] = 'PHP-Version muss mindestens 5.2.4 sein.';
|
||||
$string['php52versionhelp'] = '<p>Moodle benötigt mindestens PHP Version 5.2.4</p>
|
||||
<p>Sie nutzen zur Zeit Version $a.</p>
|
||||
<p>Ihre PHP-Version muss aktualisiert oder ein anderer Host genutzt werden.</p>';
|
||||
$string['phpversion'] = 'PHP-Version';
|
||||
@@ -329,6 +338,8 @@ $string['sitenewsitems'] = 'Anzahl neuer Nachrichten :';
|
||||
$string['siteshortname'] = 'Kurzname der Website :';
|
||||
$string['sitesummary'] = 'Beschreibung der Website :';
|
||||
$string['skipdbencodingtest'] = 'Prüfung der Datenbank-Verschlüsselung überspringen';
|
||||
$string['sqlite3_pdo'] = 'SQLite 3 (PDO) <b><strong class=\"errormsg\">Experimentell! (nicht für produktive Server benutzen!!)</strong></b>';
|
||||
$string['sqliteextensionisnotpresentinphp'] = 'PHP ist für die Erweiterung SQLite nicht richtig konfiguriert. Bitte prüfen Sie Ihre php.ini oder übersetzen Sie PHP neu.';
|
||||
$string['status'] = 'Status';
|
||||
$string['tableprefix'] = 'Tabellen-Prefix :';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
@@ -399,4 +410,5 @@ $string['wwwroot'] = 'Web-Adresse';
|
||||
$string['wwwrooterror'] = 'Diese Web-Adresse scheint nicht gültig zu sein. Moodle ist nicht unter dieser Adresse installiert.';
|
||||
$string['xmlrpcrecommended'] = 'Die Installation der optionalen xmlrpc Erweiterung ist für die Moodle-Network Funktionen nützlich.';
|
||||
$string['yourchoice'] = 'Ihre Wahl :';
|
||||
$string['ziprequired'] = 'Die PHP-Erweiterung zip wird ab sofort von Moodle gefordert. Die Pakete info-ZIP oder PclZip werden nicht weiter eingesetzt.';
|
||||
?>
|
||||
|
||||
@@ -320,4 +320,6 @@ $string['wrongsourcebase'] = 'Base de fuente de URL errónea.';
|
||||
$string['wrongzipfilename'] = 'Nombre de archivo ZIP erróneo.';
|
||||
$string['wwwroot'] = 'Dirección Web';
|
||||
$string['wwwrooterror'] = 'La \'Dirección Web\' parece incorrecta. No se pudo encontrar una instalación de Moodle. El valor ha sido cambiado por el original.';
|
||||
$string['xmlrpcrecommended'] = 'Instalar la extensión xmlrpc opcional es útil para la funcionalidad de la Red Moodle.';
|
||||
$string['ziprequired'] = 'Moodle requiere ahora la extensión Zip PHP. Ya no se usan ni las binarias info-ZIP ni la librería PclZip.';
|
||||
?>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
$string['admindirerror']='Valitud administreerimiskataloog on vale';
|
||||
$string['admindirname']='Administreerimiskataloog';
|
||||
$string['admindirsetting']='Mõned vähesed veebihostid kasutavad spetsiaalset URL-i, et anda ligipääs juhtpaneelile. Kahjuks läheb see konflikti Moodle administreerimislehe standardse asukohaga. Sa saad seda viga parandada, kui nimetad oma administreerimiskataloogi ümber. Näiteks: <br /> <br /><b>moodleadmin</b><br /> <br /> See teeb administreerimislingid Moodle\'is korda.';
|
||||
$string['admindirsettinghead']='Kataloogi admin seadistamine ...';
|
||||
$string['availablelangs']='Saadaval keelepaketid';
|
||||
$string['cannotcreatelangdir']='Ei saa luua lang kataloogi';
|
||||
$string['cannotcreatetempdir']='Ei saa luua temp kataloogi';
|
||||
@@ -34,6 +35,7 @@ $string['configfilenotwritten']='Installeerimisskript ei suutnud automaatselt te
|
||||
$string['configfilewritten']='config.php on edukalt loodud';
|
||||
$string['configurationcomplete']='Seadistamine lõpetatud';
|
||||
$string['configurationcompletehead']='Konfigureerimine lõpetatud';
|
||||
$string['configurationcompletesub']='Moodle tegi katse salvestada Sinu seadistuse Moodle juurkataloogis asuvasse faili.';
|
||||
$string['continue']='Jätka';
|
||||
$string['curlrecommended']='Fakultatiivse Curl teegi installeerimine on väga soovitatav, millega võimaldatakse Moodle võrgunduse funktsionaalsus.';
|
||||
$string['customcheck']='Muud kontrollid';
|
||||
@@ -134,10 +136,12 @@ $string['environmenterrortodo']='Sa pead lahendama kõik keskkonna probleemid (v
|
||||
$string['environmenthead']='Keskkonna kontrollimine...';
|
||||
$string['environmentrecommendcustomcheck']='kui see test ebaõnnestub, siis see võib saada potentsiaalseks probleemiks';
|
||||
$string['environmentrecommendinstall']='on soovitatav, et oleks installeeritud ja võimaldatud';
|
||||
$string['environmentrecommendversion']='versioon $a->needed on soovitatav ja Sinul töötab $a->current';
|
||||
$string['environmentrequirecustomcheck']='see test peab olema edukalt läbitud';
|
||||
$string['environmentrequireinstall']='on nõutud, et oleks installeeritud ja võimaldatud';
|
||||
$string['environmentrequireversion']='versioon $a->needed on nõutud, Sinul on jooksmas versioon $a->current';
|
||||
$string['environmentsub']='Me kontrollime, kas mitmesugused süsteemi komponendid vastavad nõudmistele.';
|
||||
$string['environmentxmlerror']='Viga lugedes keskkonna andmeid ($a->error_code)';
|
||||
$string['error']='Viga';
|
||||
$string['fail']='Fail';
|
||||
$string['fileuploads']='Failide üleslaadimine';
|
||||
@@ -170,6 +174,7 @@ $string['magicquotesruntimehelp']='<p>Magic quotes talitlusaeg peaks olema välj
|
||||
<p>Kui sul ei ole ligipääsu oma php.ini failile, siis peaksid lisama järgmise koodi .htaccess nimelisse faili, mis asub sinu Moodle kataloogis:
|
||||
<blockquote>php_value magic_quotes_runtime Off</blockquote>
|
||||
</p>';
|
||||
$string['mbstringrecommended']='Fakultatiivse MBSTRING teegi installeerimine on tugevast soovitatav, et parandada õpikeskkonna jõudlust, eriti kui Su õpikeskkond toetab ka mitteladina tähestikuga keeli (eesti keel ei kasuta ainult ladina tähestikku, seega soovitatav eesti keele toetuse jaoks)';
|
||||
$string['memorylimit']='Mälu limiit';
|
||||
$string['memorylimiterror']='PHP mälu limiit on seatud päris madalale...sul võib hiljem sellega seoses probleeme tekkida.';
|
||||
$string['memorylimithelp']='<p>PHP mälu limiit sinu serveri jaoks on hetkel $a.</p>
|
||||
@@ -189,6 +194,8 @@ $string['mssql']='SQL*Server (mssql)';
|
||||
$string['mssql_n']='SQL*Server UTF-8 toetusega (mssql_n)';
|
||||
$string['mssqlextensionisnotpresentinphp']='PHP laiendus MSSQL ei ole korralikult seadistatud, mistõttu ei saa ühenduda SQL*Server\'iga. Palun kontrolli oma php.ini faili või kompileeri PHP uuesti.';
|
||||
$string['mysql']='MySQL (mysql)';
|
||||
$string['mysql416bypassed']='Kuid, kui Sinu õpikeskkond kasutab AINULT iso-8859-1 (latin) tähestikuga keelt, Sa võid jätkata praegu installeeritud MySQL versiooniga 4.1.12 (või uuem).';
|
||||
$string['mysql416required']='MySQL 4.1.16 on minimaalne versioon, mis on nõutud Moodle 1.6 poolt, et tagada kõik andmed saaksid konverteeritud UTF-8 kodeeringusse.';
|
||||
$string['mysqlextensionisnotpresentinphp']='PHP ei ole MySQL laiendiga õigesti konfigureeritud, seega ei saa ta MySQL\'ga suhelda. Palun kontrolli oma php.ini faili või kompileeri PHP uuesti.';
|
||||
$string['name']='Nimi';
|
||||
$string['next']='Järgmine';
|
||||
@@ -229,6 +236,7 @@ $string['thischarset']='UTF-8';
|
||||
$string['thisdirection']='ltr';
|
||||
$string['thislanguage']='Eesti';
|
||||
$string['unicoderecommended']='Soovitatav on kõikide andmete salvestamine UTF-8\'s (unicode). Uued paigaldamised peaksid olema tehtud andmebaasi, mille vaikimisi kodeering on Unicode. Kui uuendada, siis peaksid teostama UTF-8\'sse üleviimise protsessi (vaata Admin lehte).';
|
||||
$string['unicoderequired']='On nõutav, et Sa hoiaksid kõiki andmeid Unicode (UTF-8) kodeeringus. Uued installeerimised peavad olema tehtud andmebaasi, mille vaikekodeering (character set) on Unicode. Kui oled Moodle uuendamisel, siis peaksid teostama UTF-8 migreerimisprotsessi (vaata admin lehte).';
|
||||
$string['user']='Kasutaja';
|
||||
$string['welcomep10']='$a->installername ($a->installerversion)';
|
||||
$string['welcomep20']='Sa näed seda lehte, sest oled edukalt installeerinud ja käivitanud <strong>$a->packname $a->packversion</strong> paketi Sinu arvutis. Õnnitleme!';
|
||||
|
||||
@@ -55,9 +55,10 @@ $string['configurationcompletesub'] = 'Moodle a tenté d\'enregistrer votre conf
|
||||
$string['configurationfileexist'] = 'Le fichier de configuration existe déjà !';
|
||||
$string['continue'] = 'Continuer';
|
||||
$string['creatingconfigfile'] = 'Création du fichier de configuration...';
|
||||
$string['ctyperecommended'] = 'L\'installation de l\'extension PHP optionnelle ctype est vivement recommandée afin d\'améliorer les performances du site, en particulier si votre site utilise des caractères non-latins.';
|
||||
$string['ctyperequired'] = 'L\'extension PHP ctype est maintenant requise par Moodle, afin d\'améliorer les performances du site et d\'offrir compatibilité multilingue.';
|
||||
$string['curlrecommended'] = 'L\'installation de la bibliothèque optionnelle cURL est vivement recommandée, afin de pouvoir utiliser la fonctionnalité Réseau Moodle.';
|
||||
$string['ctyperecommended'] = 'L\'installation de l\'extension optionnelle ctype de PHP est vivement recommandée afin d\'améliorer les performances du site, en particulier si votre site utilise des caractères non-latins.';
|
||||
$string['ctyperequired'] = 'L\'installation de l\'extension ctype de PHP est maintenant requise par Moodle, afin d\'améliorer les performances du site et d\'offrir compatibilité multilingue.';
|
||||
$string['curlrecommended'] = 'L\'installation de l\'extension optionnelle cURL de PHP est vivement recommandée afin de pouvoir utiliser la fonctionnalité Réseau Moodle.';
|
||||
$string['curlrequired'] = 'L\'installation de l\'extension cURL de PHP est maintenant requise par Moodle, afin de pouvoir communiquer avec les dépôts de documents de Moodle.';
|
||||
$string['customcheck'] = 'Autres contrôles';
|
||||
$string['database'] = 'Base de données';
|
||||
$string['databasecreationsettings'] = 'La base de données dans laquelle sont enregistrées la plupart des données utilisées par Moodle doit maintenant être configurée. Cette base de données sera créée automatiquement par l\'installeur Moodle4Windows avec les options spécifiées ci-dessous.<br /><br /><br />
|
||||
@@ -146,6 +147,7 @@ $string['databasetype'] = 'Type de base de données :';
|
||||
$string['databaseuser'] = 'Utilisateur de la base de données :';
|
||||
$string['dataroot'] = 'Dossier de données';
|
||||
$string['datarooterror'] = 'Le dossier de données indiqué n\'a pas pu être trouvé ou créé. Veuillez corriger le paramètre ou créer manuellement le dossier.';
|
||||
$string['datarootpublicerror'] = 'Le dossier de données que vous avez indiqué est directement accessible depuis le web. Vous devez utiliser un autre dossier.';
|
||||
$string['dbconnectionerror'] = 'Moodle n\'a pas pu se connecter à la base de données indiquée. Veuillez vérifier les paramètres de votre base de données';
|
||||
$string['dbcreationerror'] = 'Erreur lors de la création de la base de données. Impossible de créer la base de données avec les paramètres fournis';
|
||||
$string['dbhost'] = 'Serveur hôte';
|
||||
@@ -163,7 +165,7 @@ $string['directorysettings'] = '<p>Veuillez confirmer les emplacements de cette
|
||||
$string['directorysettingshead'] = 'Veuillez confirmer les emplacements de cette installation de Moodle.';
|
||||
$string['directorysettingssub'] = '<b>Adresse web :</b> veuillez indiquer l\'adresse web complète par laquelle on accédera à Moodle. Si votre site web est accessible par plusieurs URL, choisissez celle qui est la plus naturelle ou la plus évidente. Ne placez pas de barre oblique à la fin de l\'adresse.<br /><br />
|
||||
<b>Dossier Moodle :</b> veuillez spécifier le chemin complet de cette installation de Moodle (« OS path »). Assurez-vous que la casse des caractères (majuscules/minuscules) est correcte.<br /><br />
|
||||
<b>Dossier de données :</b> Moodle a besoin d\'un emplacement où enregistrer les fichiers déposés sur le site. Le serveur web (utilisateur dénommé habituellement « www », « apache » ou « nobody ») doit avoir accès à ce dossier en lecture et EN ÉCRITURE. Toutefois ce dossier ne devrait pas être accessible directement depuis le web.';
|
||||
<b>Dossier de données :</b> Moodle a besoin d\'un emplacement où enregistrer les fichiers déposés sur le site. Le serveur web (utilisateur dénommé habituellement « www », « apache » ou « nobody ») doit avoir accès à ce dossier en lecture et EN ÉCRITURE. Toutefois ce dossier ne doit pas être accessible directement depuis le web.';
|
||||
$string['dirroot'] = 'Dossier Moodle';
|
||||
$string['dirrooterror'] = 'Le dossier Moodle semble incorrect : aucune installation de Moodle ne se trouve dans ce dossier. Le dossier Moodle indiqué ci-dessous est vraisemblablement correct.';
|
||||
$string['disagreelicense'] = 'La mise à jour ne peut pas continuer, puisque vous n\'êtes pas d\'accord avec la GPL !';
|
||||
@@ -193,12 +195,12 @@ $string['fileuploads'] = 'Téléchargement des fichiers';
|
||||
$string['fileuploadserror'] = 'Le téléchargement des fichiers sur le serveur doit être activé';
|
||||
$string['fileuploadshelp'] = '<p>Le téléchargement des fichiers semble désactivé sur votre serveur.</p><p>Moodle peut être installé malgré tout, mais personne ne pourra déposer aucun fichier de cours, ni aucune image dans les profils utilisateurs.</p><p>Pour activer le téléchargement des fichiers sur votre serveur, vous (ou l\'administrateur du serveur) devez modifier le fichier « php.ini » du système en donnant au paramètre <b>file_uploads</b> la valeur 1.</p>';
|
||||
$string['gdversion'] = 'Version de GD';
|
||||
$string['gdversionerror'] = 'La librairie GD doit être activée pour traiter et créer les images';
|
||||
$string['gdversionhelp'] = '<p>Il semble que la librairie GD n\'est pas installée sur votre serveur.</p><p>GD est une librairie requise par PHP pour permettre à Moodle de traiter les images (comme les photos des profils) et de créer des graphiques (par exemple ceux des historiques). Moodle fonctionnera sans GD, mais ces fonctionnalités ne seront pas disponibles pour vous.</p><p>Sur Unix ou Mac OS X, pour ajouter GD à PHP, vous pouvez compiler PHP avec l\'option <em>--with-gd</em>.</p><p>Sous Windows, on peut normalement modifier le fichier « php.ini » en enlevant le commentaire de la ligne référençant la librairie php_gd2.dll.</p>';
|
||||
$string['gdversionerror'] = 'La bibliothèque GD doit être activée pour traiter et créer les images';
|
||||
$string['gdversionhelp'] = '<p>Il semble que la bibliothèque GD n\'est pas installée sur votre serveur.</p><p>GD est une bibliothèque requise par PHP pour permettre à Moodle de traiter les images (comme les photos des profils) et de créer des graphiques (par exemple ceux des historiques). Moodle fonctionnera sans GD, mais ces fonctionnalités ne seront pas disponibles pour vous.</p><p>Sur Unix ou Mac OS X, pour ajouter GD à PHP, vous pouvez compiler PHP avec l\'option <em>--with-gd</em>.</p><p>Sous Windows, on peut normalement modifier le fichier « php.ini » en enlevant le commentaire de la ligne référençant la bibliothèque php_gd2.dll.</p>';
|
||||
$string['globalsquotes'] = 'Traitement non sûr des variables globales';
|
||||
$string['globalsquoteserror'] = 'Veuillez corriger vos réglages PHP : désactivez « register_globals » et/ou activez « magic_quotes_gpc »';
|
||||
$string['globalsquoteshelp'] = '<p>Pour des raisons de sécurité, la combinaison de la désactivation de l\'option « Magic Quotes GPC » et de l\'activation de l\'option « Register Globals » n\'est pas recommandée.</p> <p>Le réglage recommandé est <b>magic_quotes_gpc = On</b> et <b>register_globals = Off</b> dans votre fichier « php.ini ».</p> <p>Si vous n\'avez pas accès au fichier « php.ini », il vous est peut-être possible de placer les deux lignes suivantes dans un fichier dénommé « .htaccess » placé dans votre dossier Moodle.</p> <blockquote><div>php_value magic_quotes_gpc On</div></blockquote> <blockquote><div>php_value register_globals Off</div></blockquote>';
|
||||
$string['globalswarning'] = '<p><strong>Notification de sécurité</strong> : pour fonctionner correctement, Moodle nécessite <br />certaines modifications de vos réglages PHP actuels.<p/><p>Vous <em>devez</em> effectuer le réglage <code>register_globals=off</code>.<p>Ce réglage s\'effectue en modifiant le fichier <code>php.ini</code>, la configuration <br />de Apache/IIS ou le fichier <code>.htaccess</code>.</p>';
|
||||
$string['globalswarning'] = '<p><strong>NOTIFICATION DE SÉCURITÉ !</strong></p><p>Pour fonctionner correctement, Moodle nécessite <br />certaines modifications de vos réglages PHP actuels.<p/><p>Vous <em>devez</em> spécifier le réglage <code>register_globals=off</code>.<p>Ce réglage s\'effectue en modifiant le fichier <code>php.ini</code>, la configuration <br />de Apache/IIS ou le fichier <code>.htaccess</code>.</p>';
|
||||
$string['help'] = 'Aide';
|
||||
$string['iconvrecommended'] = 'Bien que la bibliothèque ICONV soit facultative, il est vivement recommandé de l\'installer sur le serveur pour de meilleures performance, notamment si votre site supporte des caractères non latins.';
|
||||
$string['info'] = 'Information';
|
||||
@@ -262,8 +264,8 @@ $string['pass'] = 'Réussi';
|
||||
$string['password'] = 'Mot de passe';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'La configuration de l\'extension PGSQL de PHP n\'a pas été effectuée correctement. De ce fait, PHP ne peut communiquer avec PostgreSQL. Veuillez contrôler votre fichier « php.ini » ou recompiler PHP.';
|
||||
$string['php50restricted'] = 'Les versions 5.0.x de PHP ont plusieurs problèmes connus. Veuillez mettre à jour PHP à la version 5.1.x ou revenir à une version 4.3.x ou 4.4.x';
|
||||
$string['php52versionerror'] = 'La version de PHP doit être au moins 5.2.0.';
|
||||
$string['php52versionhelp'] = '<p>Moodle requiert une version de PHP 5.2.0 ou postérieure.</p><p>Votre serveur utilise actuellement la version $a</p><p>Pour que Moodle fonctionne, vous devez mettre à jour PHP ou aller chez un hébergeur ayant une version récente de PHP.</p>';
|
||||
$string['php52versionerror'] = 'La version de PHP doit être au moins 5.2.4.';
|
||||
$string['php52versionhelp'] = '<p>Moodle requiert une version de PHP 5.2.4 ou postérieure.</p><p>Votre serveur utilise actuellement la version $a</p><p>Pour que Moodle fonctionne, vous devez mettre à jour PHP ou aller chez un hébergeur ayant une version récente de PHP.</p>';
|
||||
$string['phpversion'] = 'Version de PHP';
|
||||
$string['phpversionerror'] = 'La version du programme PHP doit être au moins 4.3.0 ou 5.1.0 (5.0.x a bon nombre de problèmes).';
|
||||
$string['phpversionhelp'] = '<p>Moodle nécessite au minimum la version 4.3.0 ou 5.1.0 (5.0.x a bon nombre de problèmes).</p><p>Vous utilisez actuellement la version $a.</p><p>Pour que Moodle fonctionne, vous devez mettre à jour PHP ou aller chez un hébergeur ayant une version récente de PHP.<br />(Si vous avez une version 5.0.x, vous pouvez aussi re-passer à la version 4.4.x)</p>'; // ORPHANED
|
||||
@@ -360,6 +362,7 @@ $string['wrongsourcebase'] = 'Adresse URL de base de la source incorrect';
|
||||
$string['wrongzipfilename'] = 'Nom de fichier ZIP incorrect';
|
||||
$string['wwwroot'] = 'Adresse web';
|
||||
$string['wwwrooterror'] = 'L\'adresse web indiquée semble incorrecte : aucune installation de Moodle ne se trouve à cette adresse.';
|
||||
$string['xmlrpcrecommended'] = 'L\'installation de l\'extension xmlrpc optionnelle est requise pour l\'utilisation du Réseau Moodle.';
|
||||
$string['xmlrpcrecommended'] = 'L\'installation de l\'extension xmlrpc optionnelle de PHP est requise pour l\'utilisation du Réseau Moodle.';
|
||||
$string['yourchoice'] = 'Votre choix :';
|
||||
$string['ziprequired'] = 'L\'extension Zip de PHP est maintenant requise par Moodle. Les exécutables info-ZIP et la bibliothèque PclZip ne sont plus utilisés.';
|
||||
?>
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
$string['aborting'] = 'Telepítés abbahagyása';
|
||||
$string['admindirerror'] = 'A megadott rendszergazdakönyvtár hibás';
|
||||
$string['admindirname'] = 'Rendszergazdakönyvtár';
|
||||
$string['admindirsetting'] = 'Nagyon kevés kiszolgálónál használatos az /admin mint a vezérlőpanel vagy egyéb elérésére szolgáló külön URL. Sajnos ez ütközik a Moodle rendszergazdai oldalainak szokásos helyével. Ha telepítésében átnevezi a könyvtárat és az új nevet ide helyezi, a hiba megoldódik. Például: <br /> <br /><b>moodleadmin</b>.<br /> <br /> Ezzel a rendszergazdai ugrópontok a Moodle-ban rendbe tehetők.';
|
||||
$string['admindirsetting'] = 'Nagyon kevés kiszolgálónál használatos az /admin mint a vezérlőpanel vagy egyéb elérésére szolgáló külön URL. Ez ütközik a Moodle rendszergazda-oldalainak szokásos helyével. Ha telepítésében átnevezi a könyvtárat és az új nevet ide helyezi, a hiba megoldódik. Például: <br /> <br /><b>moodleadmin</b>.<br /> <br /> Ezzel a Moodle-ban rendbe tehetők a rendszergazda-ugrópontok.';
|
||||
$string['admindirsettinghead'] = 'A rendszergazdakönyvtár beállítása...';
|
||||
$string['admindirsettingsub'] = 'Nagyon kevés kiszolgálónál használatos az /admin mint a vezérlőpanel vagy egyéb elérésére szolgáló külön URL. Sajnos ez ütközik a Moodle rendszergazdai oldalainak szokásos helyével. Ha telepítésében átnevezi a könyvtárat és az új nevet ide helyezi, a hiba megoldódik. Például: <br /> <br /><b>moodleadmin</b>.<br /> <br /> Ezzel a rendszergazdai ugrópontok a Moodle-ban rendbe tehetők.';
|
||||
$string['admindirsettingsub'] = 'Nagyon kevés kiszolgálónál használatos az /admin mint a vezérlőpanel vagy egyéb elérésére szolgáló külön URL. Ez ütközik a Moodle rendszergazda-oldalainak szokásos helyével. Ha telepítésében átnevezi a könyvtárat és az új nevet ide helyezi, a hiba megoldódik. Például: <br /> <br /><b>moodleadmin</b>.<br /> <br /> Ezzel a Moodle-ban rendbe tehetők a rendszergazda-ugrópontok.';
|
||||
$string['adminemail'] = 'E-mail:';
|
||||
$string['adminfirstname'] = 'Keresztnév:';
|
||||
$string['admininfo'] = 'Rendszergazda adatai';
|
||||
@@ -55,8 +55,11 @@ $string['configurationcompletesub'] = 'A Moodle megpróbálta beállításait a
|
||||
$string['configurationfileexist'] = 'A konfigurációs állomány már létezik';
|
||||
$string['continue'] = 'Folytatás';
|
||||
$string['creatingconfigfile'] = 'A konfigurációs állomány létrehozása...';
|
||||
$string['curlrecommended'] = 'Ajánlatos a választható Curl-könyvtár telepítése a Moodle Networking bekapcsolásához.';
|
||||
$string['customcheck'] = 'Egyéb ellenőrzések';
|
||||
$string['ctyperecommended'] = 'Ajánlatos telepíteni az opcionális ctype PHP-bővítést a portál teljesítményének növelése érdekében, különösen abban az esetben, ha a portál támogatja nem latin nyelvek használatát.';
|
||||
$string['ctyperequired'] = 'A ctype PHP-bővítést a Moodle előírja a portál teljesítményének növelése és a több nyelvű kompatibilitás érdekében.';
|
||||
$string['curlrecommended'] = 'Ajánlatos a választható Curl-könyvtár telepítése a Moodle Networking bekapcsolásához.';
|
||||
$string['curlrequired'] = 'A Moodle most már előírja a cURL PHP-bővítést a Moodle-adattárakkal való kommunikációhoz.';
|
||||
$string['customcheck'] = 'Egyéb ellenőrzések';
|
||||
$string['database'] = 'Adatbázis';
|
||||
$string['databasecreationsettings'] = 'Most a Moodle adatait tároló adatbázis beállításait kell elvégeznie. Ezt az adatbázist a telepítő automatikusan beállítja az alábbiak szerint. <br /><br /><br /><b>Típus: </b>a telepítő \"mysql\"-re állítja be<br /><b>Gazdagép</b>: a telepítő \"localhost\"-ra állítja<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó</b>: a telepítő \"root\"-ra állítja<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: opcionális előtag az összes táblázatnévhez';
|
||||
$string['databasecreationsettingshead'] = 'Most a Moodle adatait tároló adatbázis beállításait kell elvégeznie. Ezt az adatbázist a telepítő automatikusan beállítja az alábbiak szerint.';
|
||||
@@ -68,18 +71,20 @@ $string['databasesettings'] = 'Most be kell állítania azt az adatbázist, ahol
|
||||
$string['databasesettingsformoodle'] = 'Az adatbázis beállításai a Moodle-hoz';
|
||||
$string['databasesettingshead'] = 'Most be kell állítania azt az adatbázist, ahol Moodle-adatainak többségét tárolni fogja. Az adatbázisnak már léteznie kell, a hozzá tartozó azonosítóval és jelszóval együtt.';
|
||||
$string['databasesettingssub'] = '<b>Típus: </b> MySQL<br /><b>Gazdagép</b>: pl. localhost vagy db.isp.com<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó</b>: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (kötelező)';
|
||||
$string['databasesettingssub_mssql'] = 'Típus: SQL*Server (nem UTF-8) <font color=\"red\">Kísérleti! (élesben nem használandó)</font><br /><b>Gazdagép</b>: pl. localhost vagy db.isp.com<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó</b>: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (kötelező)';
|
||||
$string['databasesettingssub_mssql'] = 'Típus: SQL*Server (nem UTF-8) <b><strong class=\"errormsg\">Kísérleti! (élesben nem használandó)</strong></b><br /><b>Gazdagép</b>: pl. localhost vagy db.isp.com<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (kötelező)';
|
||||
$string['databasesettingssub_mssql_n'] = '<b>Típus: </b> SQL*Server (UTF-8 bekapcsolva)<br /><b>Gazdagép</b>: pl. localhost vagy db.isp.com<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó</b>: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (kötelező)';
|
||||
$string['databasesettingssub_mysql'] = '<b>Típus: </b> MySQL<br /><b>Gazdagép</b>: pl. localhost vagy db.isp.com<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó</b>: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (választható)';
|
||||
$string['databasesettingssub_mysqli'] = '<b>Típus: </b> Javított MySQL<br /><b>Gazdagép</b>: pl. localhost vagy db.isp.com<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó</b>: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (választható)';
|
||||
$string['databasesettingssub_oci8po'] = '<b>Típus:</b> Oracle<br /><b>Gazdagép</b>: nem használatos, üresen marad<br /><b>Név</b>: a tnsnames.ora kapcsolat neve<br /><b>Felhasználó</b>: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (kötelező, max. 2cc.)';
|
||||
$string['databasesettingssub_odbc_mssql'] = '<b>Típus:</b> SQL* szerver (ODBC-vel) <b><font color=\"red\">Kísérleti! (élesben nem használandó)</font></b><br /><b>Gazdagép:</b> a DSN ODBC-vezérlőpulton megadott neve<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó</b>: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (kötelező)';
|
||||
$string['databasesettingssub_odbc_mssql'] = '<b>Típus:</b> SQL* szerver (ODBC-vel) <b><strong class=\"errormsg\">Kísérleti! (élesben nem használandó)</strong></b><br /><b>Gazdagép:</b> a DSN ODBC-vezérlőpulton megadott neve<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (kötelező)';
|
||||
$string['databasesettingssub_postgres7'] = '<b>Típus: </b> PostgreSQL<br /><b>Gazdagép</b>: pl. localhost vagy db.isp.com<br /><b>Név</b>: az adatbázis neve, pl. moodle<br /><b>Felhasználó</b>: az Ön adatbázishoz használt azonosítója<br /><b>Jelszó</b>: az Ön jelszava az adatbázishoz<br /><b>Táblázat előtagja</b>: minden táblázatnévhez használandó előtag (kötelező)';
|
||||
$string['databasesettingssub_sqlite3_pdo'] = '<b>Típus:</b> SQLite 3 (PDO) <b><strong class=\"errormsg\">Kísérleti! (élesben nem használandó)</strong></b><br /> <b>Gazdagép:</b> útvonal ahhoz a könyvtárhoz, ahová az adatbázis-állomány kerül (teljes útvonalat használjon); adja meg a localhostot vagy a Moodle adatkönyvtárának használatához hagyja üresen<br /> <b>Név:</b> >: az adatbázis neve, pl. moodle (választható)<br /> <b>Felhasználó:</b> az Ön adatbázishoz használt azonosítója (választható)<br /> <b>Jelszó:</b> az Ön jelszava az adatbázishoz (választható)<br /> <b>Táblázat előtagja:</b> minden táblázatnévhez választhatóan használatos előtag<br /> Az adatbázis-állomány nevét a fent megadott felhasználónév, adatbázisnév és jelszó szabja meg.';
|
||||
$string['databasesettingswillbecreated'] = '<b>Megjegyzés:</b> A telepítő megpróbálja automatikusan létrehozni az adatbázist, ha az nem létezik.';
|
||||
$string['databasetype'] = 'Az adatbázis típusa:';
|
||||
$string['databaseuser'] = 'Az adatbázis felhasználója';
|
||||
$string['dataroot'] = 'Adatkönyvtár';
|
||||
$string['datarooterror'] = 'A megadott \'Adatkönyvtár\' nem létezik, vagy nem sikerült létrehozni. Módosítsa az útvonalat vagy hozza létre a könyvtárat.';
|
||||
$string['datarootpublicerror'] = 'A megadott adatkönyvtár a netről közvetlenül elérhető, adjon meg egy másik könyvtárat.';
|
||||
$string['dbconnectionerror'] = 'Nem sikerült a megadott adatbázishoz csatlakozni. Ellenőrizze adatbázisának beállításait.';
|
||||
$string['dbcreationerror'] = 'Hiba az adatbázis létrehozása közben. A megadott beállításokkal nem lehetett létrehozni az adatbázis nevét.';
|
||||
$string['dbhost'] = 'Gazdagép szervere';
|
||||
@@ -105,16 +110,16 @@ $string['downloadlanguagepack'] = 'Most akarja letölteni a nyelvi csomagot (ige
|
||||
$string['downloadlanguagesub'] = 'Letölthet most egy nyelvi csomagot és azon a nyelven folytathatja a telepítést.<br /><br />Ha nem tudja letölteni, folytathatja a telepítést angol nyelven. (A telepítés végén lehetősége lesz további nyelvi csomagok letöltésére és telepítésére.)';
|
||||
$string['downloadsuccess'] = 'A nyelvi csomag letöltése sikerült';
|
||||
$string['doyouagree'] = 'Egyetért? (igen/nem):';
|
||||
$string['environmenterrortodo'] = 'A fentiekben fellelt összes környezeti problémát (hibát) el kell hárítania, mielőtt folytatja a Moodle ezen változatának a telepítését!';
|
||||
$string['environmenterrortodo'] = 'A fentiekben fellelt összes környezeti problémát (hibát) el kell hárítania, mielőtt folytatja a Moodle ezen változatának a telepítését!';
|
||||
$string['environmenthead'] = 'Környezetének ellenőrzése ...';
|
||||
$string['environmentrecommendcustomcheck'] = 'ha ez az ellenőrzés sikertelen, az potenciális gondot jelez';
|
||||
$string['environmentrecommendinstall'] = 'a megfelelő teljesítmény érdekében telepítse és kapcsolja be';
|
||||
$string['environmentrecommendversion'] = 'a $a->needed változatot ajánlott a mostani $a->current helyett használni';
|
||||
$string['environmentrequirecustomcheck'] = 'ennek az ellenőrzésnek sikerülnie kell';
|
||||
$string['environmentrequireinstall'] = 'telepíteni kell és be kell kapcsolni';
|
||||
$string['environmentrequireversion'] = 'a $a->needed változatot kell a mostani $a->current helyett használni';
|
||||
$string['environmentrecommendcustomcheck'] = 'ha ez az ellenőrzés sikertelen, az potenciális gondot jelez';
|
||||
$string['environmentrecommendinstall'] = 'a megfelelő teljesítmény érdekében telepítse és kapcsolja be';
|
||||
$string['environmentrecommendversion'] = 'a $a->needed változatot ajánlott a mostani $a->current helyett használni';
|
||||
$string['environmentrequirecustomcheck'] = 'ennek az ellenőrzésnek sikerülnie kell';
|
||||
$string['environmentrequireinstall'] = 'telepíteni kell és be kell kapcsolni';
|
||||
$string['environmentrequireversion'] = 'a $a->needed változatot kell a mostani $a->current helyett használni';
|
||||
$string['environmentsub'] = 'Ellenőrizzük, hogy rendszerének különféle összetevői megfelelnek-e a rendszerkövetelményeknek';
|
||||
$string['environmentxmlerror'] = 'Hiba a környezeti adatok ($a->error_code) beolvasása közben';
|
||||
$string['environmentxmlerror'] = 'Hiba a környezeti adatok ($a->error_code) beolvasása közben';
|
||||
$string['error'] = 'Hiba';
|
||||
$string['errorsinenvironment'] = 'Hibák vannak a környezetben!';
|
||||
$string['fail'] = 'Hiba';
|
||||
@@ -126,10 +131,11 @@ $string['gdversionerror'] = 'Képek feldolgozásához és készítéséhez szük
|
||||
$string['gdversionhelp'] = '<p>Feltehetőleg szerverén nincs telepítve a GD.</p><p>A GD a PHP számára szükséges könyvtár, mellyel a Moodle képeket (például felhasználói ikonokat) tud feldolgozni és újakat tud készíteni (például naplódiagramokat). A Moodle működik GD nélkül is - csak ezek a lehetőség nem lesznek az Ön számára elérhetők.</p><p>A GD Unix alatti PHP-hez való hozzáadásához a PHP-t fordítsa a --with-gd paraméterrel.</p><p>Windows alatt szerkesztheti a php.ini-t: el kell távolítani a megjegyzésjelet a php_gd2.dll-re hivatkozó sor elejéről.</p>';
|
||||
$string['globalsquotes'] = 'Globális változók nem biztonságos kezelése';
|
||||
$string['globalsquoteserror'] = 'Javítsa ki a PHP beállításait: kapcsolja ki a disable register_globals-t és/vagy kapcsolja be a magic_quotes_gpc-t';
|
||||
$string['globalsquoteshelp'] = '<p>Nem ajánlott egyszerre kikapcsolt Magic Quotes GPC-t bekapcsolt Register Globals mellett használni.</p><p>A javasolt beállítás: <b>magic_quotes_gpc = On</b> és <b>register_globals = Off</b> a php.ini állományban. </p><p>Ha nem elérhető php.ini állománya, próbálja meg az alábbi sort beszúrni a Moodle-könyvtárában lévő .htaccess állományba: <blockquote>php_value magic_quotes_gpc On</blockquote> <blockquote>php_value register_globals Off</blockquote> </p>';
|
||||
$string['globalswarning'] = '<p><strong>Biztonsági figyelmezetés</strong>: a megfelelő működéshez a Moodle <br />bizonyos módosításokat ír elő az adott PHP-beállításokban.<p/><p>A <em>beállítandó</em> érték: <code>register_globals=off</code>. <p>Ezek a beállítások a <code>php.ini</code>, az Apache/IIS <br />beállításával vagy a <code>.htaccess</code>-állomány szerkesztésével módosíthatók.</p>';
|
||||
$string['globalsquoteshelp'] = '<p>Nem ajánlott egyszerre kikapcsolt Magic Quotes GPC-t bekapcsolt Register Globals mellett használni.</p><p>A javasolt beállítás: <b>magic_quotes_gpc = On</b> és <b>register_globals = Off</b> a php.ini állományban. </p><p>Ha nem érhető el a php.ini állománya, próbálja meg az alábbi sort beszúrni a Moodle-könyvtárában lévő .htaccess állományba: <blockquote>><div>php_value magic_quotes_gpc On></div></blockquote> <blockquote>><div>php_value register_globals Off></div></blockquote> </p>';
|
||||
$string['globalswarning'] = '<p><strong>Biztonsági figyelmezetés</strong>: a megfelelő működéshez a Moodle <br />bizonyos módosításokat ír elő az adott PHP-beállításokban.<p/><p>A <em>beállítandó</em> érték: <code>register_globals=off</code>. <p>Ezek a beállítások a <code>php.ini</code>, az Apache/IIS <br />beállításával vagy a <code>.htaccess</code>-állomány szerkesztésével módosíthatók.</p>';
|
||||
$string['help'] = 'Súgó';
|
||||
$string['iconvrecommended'] = 'A portál teljesítményének növelése érdekében ajánlatos telepíteni az opcionális ICONV-könyvtárat, különösen akkor, ha a portál támogatja nemlatin nyelvek használatát.';
|
||||
$string['iconvrecommended'] = 'Ajánlatos telepíteni az opcionális ctype PHP-bővítést a portál teljesítményének növelése érdekében, különösen abban az esetben, ha a portál támogatja nem latin nyelvek használatát.';
|
||||
$string['iconvrecommended'] = 'A portál teljesítményének növelése érdekében ajánlatos telepíteni az opcionális ICONV-könyvtárat, különösen akkor, ha a portál támogatja nemlatin nyelvek használatát.';
|
||||
$string['info'] = 'Információ';
|
||||
$string['inputdatadirectory'] = 'Adatkönyvtár:';
|
||||
$string['inputwebadress'] = 'Webcím:';
|
||||
@@ -142,6 +148,7 @@ $string['invalidhost'] = 'Érvénytelen gazdagép';
|
||||
$string['invalidint'] = 'Hiba: az érték nem egész szám';
|
||||
$string['invalidintrange'] = 'Hiba: az érték az érvényes tartományon kívül esik';
|
||||
$string['invalidmd5'] = 'Érvénytelen md5.';
|
||||
$string['invalidmd5'] = 'Az ellenőrző változó hibás volt – próbálkozzék ismét';
|
||||
$string['invalidpath'] = 'Érvénytelen útvonal';
|
||||
$string['invalidsetelement'] = 'Hiba: a megadott érték nem szerepel a lehetőségek között';
|
||||
$string['invalidtextvalue'] = 'Érvénytelen szöveges érték';
|
||||
@@ -154,19 +161,19 @@ $string['language'] = 'Nyelv';
|
||||
$string['locationanddirectories'] = 'Hely és könyvtárak';
|
||||
$string['magicquotesruntime'] = 'Futásidejű Magic Quotes';
|
||||
$string['magicquotesruntimeerror'] = 'Ki kell kapcsolni';
|
||||
$string['magicquotesruntimehelp'] = '<p>A futásidejű Magic Quotes kódot a Moodle megfelelő működéséhez ki kell kapcsolni.</p> <p>Alapesetben ez így is van ... lásd a <b>magic_quotes_runtime</b> beállítást a php.ini állományban.</p> <p>Ha nem elérhető php.ini állománya, próbálja meg az alábbi sort beszúrni a Moodle-könyvtárában lévő .htaccess állományba: <blockquote>php_value magic_quotes_runtime Off</blockquote> </p>';
|
||||
$string['mbstringrecommended'] = 'A portál teljesítményének javítása érdekében ajánlatos telepíteni az opcionális MBSTRING-könyvtárat, különösen, ha a portál támogatja nemlatin nyelvek használatát.';
|
||||
$string['magicquotesruntimehelp'] = '<p>A futásidejű Magic Quotes kódot a Moodle megfelelő működéséhez ki kell kapcsolni.</p> <p>Alapesetben ez így is van ... lásd a <b>magic_quotes_runtime</b> beállítást a php.ini állományban.</p> <p>Ha nem elérhető a php.ini állománya, próbálja meg az alábbi sort beszúrni a Moodle-könyvtárában lévő .htaccess állományba:</p> <blockquote><div>php_value magic_quotes_runtime Off</div></blockquote> ';
|
||||
$string['mbstringrecommended'] = 'A portál teljesítményének javítása érdekében ajánlatos telepíteni az opcionális MBSTRING-könyvtárat, különösen, ha a portál támogatja nemlatin nyelvek használatát.';
|
||||
$string['memorylimit'] = 'Memóriakorlát';
|
||||
$string['memorylimiterror'] = 'A PHP-memóriakorlát túl alacsonyra van állítva... ez a későbbiekben gondot okozhat.';
|
||||
$string['memorylimithelp'] = 'Szerverén a PHP memóriakorlátja jelenleg $a. Ez a Moodle számára a későbbiekben gondot okozhat, különösen akkor, ha sok modulja és/vagy sok felhasználója van bekapcsolva. Ha lehet, állítsa be a PHP-t magasabb korláttal, pl. 40 Mb-tal. Többféleképpen próbálkozhat: ha lehet, fordítsa újra a PHP-t --enable-memory-limit-tel. Így a Moodle maga állíthatja be a memóriakorlátot. Ha elérhető a php.ini állomány, módosítsa a memory_limit beállítást pl. 40 Mb-ra. Ha nem éri el az állományt, kérje meg a rendszergazdát a módosítás elvégzésére. Egyes PHP-szervereken létrehozhat egy .htaccess állományt a Moodle-könyvtárban az alábbi sorral: php_value memory_limit 40M. Vannak szerverek, ahol ez az összes PHP-oldal működését megakadályozza (az oldalak hibát jeleznek), ezért el kell távolítania a .htaccess állományt.';
|
||||
$string['memorylimithelp'] = '<p>Szerverén a PHP memóriakorlátja jelenleg $a. </p><p>Ez a Moodle számára a későbbiekben gondot okozhat, különösen akkor, ha sok modulja és/vagy sok felhasználója van bekapcsolva.</p><p> Ha lehet, állítsa be a PHP-t magasabb korláttal, pl. 40M-tal. Többféleképpen próbálkozhat:</p><ol><li> Ha lehet, fordítsa újra a PHP-t <i>--enable-memory-limit</i>-tel. Így a Moodle maga állíthatja be a memóriakorlátot.</li><li>Ha elérhető a php.ini állomány, módosítsa a <b>memory_limit</b> beállítását pl. 40M-ra. Ha nem éri el az állományt, kérje meg a rendszergazdát a módosítás elvégzésére.</li><li>Egyes PHP-szervereken létrehozhat egy .htaccess állományt a Moodle-könyvtárban az alábbi sorral: <blockquote><div>php_value memory_limit 40M.</div></blockquote> <p> Vannak szerverek, ahol ez az összes PHP-oldal működését megakadályozza (az oldalak hibát jeleznek), ezért el kell távolítania a .htaccess állományt.</p></li></ol>';
|
||||
$string['missingrequiredfield'] = 'Egy szükséges mező hiányzik.';
|
||||
$string['moodledocslink'] = 'Az oldalhoz tartozó Moodle-dokumentumok';
|
||||
$string['mssql'] = 'SQL*Server (mssql)';
|
||||
$string['mssql_n'] = 'SQL*Server UTF-8 támogatással (mssql_n)';
|
||||
$string['mssqlextensionisnotpresentinphp'] = 'A PHP nincs megfelelően beállítva az MSSQL-bővítéshez, így nem tud kommunikálni az SQL*Serverrel. Ellenőrizze a php.ini állományt, vagy fordítsa le újra a PHP-t.';
|
||||
$string['mysql'] = 'MySQL (mysql)';
|
||||
$string['mysql416bypassed'] = 'Ha viszont a portálja CSAK iso-8859-1 (latin) nyelveket használ, továbbra is használhatja a pillanatnyilag telepített MySQL 4.1.12 (vagy magasabb) verziót.';
|
||||
$string['mysql416required'] = 'A Moodle 1.6 esetén a MySQL minimális verziószáma a 4.1.16 azért, hogy a későbbiekben minden adatot UTF-8 formában lehessen tárolni.';
|
||||
$string['mysql416bypassed'] = 'Ha viszont a portálja CSAK iso-8859-1 (latin) nyelveket használ, továbbra is használhatja a pillanatnyilag telepített MySQL 4.1.12 (vagy magasabb) verziót.';
|
||||
$string['mysql416required'] = 'A Moodle 1.6 esetén a MySQL minimális verziószáma a 4.1.16 azért, hogy a későbbiekben minden adatot UTF-8 formában lehessen tárolni.';
|
||||
$string['mysqlextensionisnotpresentinphp'] = 'A PHP nincs jól beállítva a MySQL kiterjesztéshez, így nem tud vele kommunikálni. Ellenőrizze a php.ini fájlt, vagy fordítsa újra a PHP-t.';
|
||||
$string['mysqli'] = 'Javított MySQL (mysqli)';
|
||||
$string['mysqliextensionisnotpresentinphp'] = 'A PHP nincs jól beállítva a MySQL-kiterjesztéshez, így nem tud vele kommunikálni. Ellenőrizze a php.ini fájlt, vagy fordítsa újra a PHP-t. A MySQLi-kiterjesztés PHP 4 esetén nem használható.';
|
||||
@@ -177,29 +184,33 @@ $string['ociextensionisnotpresentinphp'] = 'A PHP nincs megfelelően beállítva
|
||||
$string['odbc_mssql'] = 'SQL*Server over ODBC (odbc_mssql)';
|
||||
$string['odbcextensionisnotpresentinphp'] = 'A PHP nincs megfelelően beállítva az ODBC-bővítéshez, így nem tud kommunikálni az SQL*Serverrel. Ellenőrizze a php.ini állományt, vagy fordítsa le újra a PHP-t.';
|
||||
$string['ok'] = 'Rendben';
|
||||
$string['opensslrecommended'] = 'Határozottan ajánlott az OpenSSL-könyvtár telepítése - ezzel kapcsolható be a hálózati Moodle.';
|
||||
$string['opensslrecommended'] = 'Határozottan ajánlott az OpenSSL-könyvtár telepítése - ezzel kapcsolható be a hálózati Moodle.';
|
||||
$string['parentlanguage'] = '<< A FORDÍTÓNAK: ha a nyelvéhez tartozik egy, a Moodle által a hiányzó szövegek feltöltésére használandó felettes nyelv, adja meg annak kódját itt. Ha ezt üresen hagyja, a helyén az angol fog szerepelni. Példa: nl >>';
|
||||
$string['pass'] = 'Sikerült';
|
||||
$string['password'] = 'Jelszó';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'A PHP nincs megfelelően beállítva a PGSQL-bővítéshez, így nem tud kommunikálni a PostgreSQL-lel. Ellenőrizze a php.ini állományt, vagy fordítsa le újra a PHP-t.';
|
||||
$string['php50restricted'] = 'A PHP 5.0.x számos ismert problémával rendelkezik, frissítsen 5.1.x-re vagy térjen vissza a 4.3.x vagy a 4.4.x változathoz';
|
||||
$string['php50restricted'] = 'A PHP 5.0.x számos ismert problémával rendelkezik, frissítsen 5.1.x-re vagy térjen vissza a 4.3.x vagy a 4.4.x változathoz';
|
||||
$string['php52versionerror'] = 'A PHP verziója legyen legalább 5.2.0.';
|
||||
$string['php52versionhelp'] = '<p>A Moodle futtatásához a PHP-nek legalább az 5.2.0 verziója szükséges.</p><p>Jelenlegi verziója: $a</p><p>Frissítse a PHP-t vagy térjen át egy olyan gazdagépre, amelyen a PHP újabb változata fut!</p>';
|
||||
$string['phpversion'] = 'PHP-verzió';
|
||||
$string['phpversionerror'] = 'A PHP-verzió legalább 4.3.0 vagy 5.1.0 legyen (az 5.0.x több ismert gond miatt nem ajánlott).';
|
||||
$string['phpversionhelp'] = 'A Moodle használatához legalább a PHP 4.3.0 vagy 5.1.0 verziója szükséges (az 5.0.x több ismert gond miatt nem ajánlott). Az Ön által használt verzió $a. Frissítse a PHP-verziót, vagy térjen át újabb PHP-verziót működtető gazdagépre! (5.0.x esetén visszatérhet a 4.4.x verziójoz is)';
|
||||
$string['postgres7'] = 'PostgreSQL (postgres7)';
|
||||
$string['prefixcannotbeempty'] = '<p>Hiba: az adatbázis táblázatának előtagja nem lehet üres ($a)</p> <p>A portál rendszergazdájának el kell hárítania ezt a problémát.</p>';
|
||||
$string['prefixtoolong'] = '<p>Hiba: az adatbázis táblázatának előtagja túl hosszú ($a->dbfamily)</p> <p>A portál rendszergazdájának el kell hárítania ezt a problémát. A táblázatának előtagjának maximális hossza $a->dbfamily esetén $a->maxlength karakter.</p>';
|
||||
$string['previous'] = 'Előző';
|
||||
$string['qtyperqpwillberemoved'] = 'Frissítés közben az RQP-kérdéstípus törlődik. Ön nem használta ezt a kérdéstípust, ezért nem lesz gondja ezzel kapcsolatban.';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'Frissítés során törlődik az RQP kérdéstípus. Mivel adatbázisában szerepelnek RQP-kérdések, ezek használhatatlanok lesznek, ha nem telepíti újra a kódot a http://moodle.org/mod/data/view.php?d=13&rid=797 weboldalról, mielőtt folytatja a frissítést.';
|
||||
$string['qtyperqpwillberemoved'] = 'Frissítés közben az RQP-kérdéstípus törlődik. Ön nem használta ezt a kérdéstípust, ezért nem lesz gondja ezzel kapcsolatban.';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'Frissítés során törlődik az RQP kérdéstípus. Mivel adatbázisában szerepelnek RQP-kérdések, ezek használhatatlanok lesznek, ha nem telepíti újra a kódot a http://moodle.org/mod/data/view.php?d=13&rid=797 weboldalról, mielőtt folytatja a frissítést.';
|
||||
$string['releasenoteslink'] = 'A Moodle ezen verziójának adataival kapcsolatosan olvassa el a(z) $a címen a Változatra vonatkozó megjegyzéseket';
|
||||
$string['remotedownloaderror'] = 'Az összetevőt nem lehet szerverére letölteni, ellenőrizze a proxy beállításait. Ajánlatos a PHP cURL-kiterjesztés használata. A(z) <a href=\"$a->url\">$a->url</a> állományt töltse le kézzel, másolja át szerverén a(z) \"$a->dest\" célkönyvtárba, és csomagolja ki ott.';
|
||||
$string['remotedownloadnotallowed'] = 'Az összetevőket nem lehet szerverére letölteni (az allow_url_fopen ki van kapcsolva). A(z) <a href=\"$a->url\">$a->url</a> állományt töltse le kézzel, másolja át szerverén a(z) \"$a->dest\" célkönyvtárba, és csomagolja ki ott.';
|
||||
$string['remotedownloaderror'] = 'Az összetevőt nem lehet szerverére letölteni, ellenőrizze a proxy beállításait. Ajánlatos a PHP cURL-kiterjesztés használata. A(z) <a href=\"$a->url\">$a->url</a> állományt töltse le kézzel, másolja át szerverén a(z) \"$a->dest\" célkönyvtárba, és csomagolja ki ott.';
|
||||
$string['remotedownloadnotallowed'] = 'Az összetevőket nem lehet szerverére letölteni(az allow_url_fopen ki van kapcsolva). A(z) <a href=\"$a->url\">$a->url</a> állományt töltse le kézzel, másolja át szerverén a(z) \"$a->dest\" célkönyvtárba, és csomagolja ki ott.';
|
||||
$string['report'] = 'Jelentés';
|
||||
$string['restricted'] = 'Korlátozott';
|
||||
$string['safemode'] = 'Biztonságos mód';
|
||||
$string['safemodeerror'] = 'A Moodle bekapcsolt biztonságos mód esetén gondokba ütközhet';
|
||||
$string['safemodehelp'] = 'A Moodle bekapcsolt biztonságos mód esetén egy sor problémába ütközhet, mindenekelőtt feltehetőleg nem tud majd új állományokat létrehozni. A biztonságos módot általában túlzottan pánikoló webes rendszergazdák kapcsolják be, így valószínűleg egy másik gazdagépet kell keresnie a Moodle számára. Ha kívánja, folytathatja a telepítést, de számítson a későbbiekben néhány hibára.';
|
||||
$string['selectlanguage'] = 'Nyelvi csomag kiválasztása a telepítéshez';
|
||||
$string['serverchecks'] = 'Szerverellenőrzések';
|
||||
$string['serverchecks'] = 'Szerverellenőrzések';
|
||||
$string['sessionautostart'] = 'Automatikus folyamatkezdés';
|
||||
$string['sessionautostarterror'] = 'Ezt ki kell kapcsolni';
|
||||
$string['sessionautostarthelp'] = 'A Moodle-nak folyamattámogatásra van szüksége, nélküle nem működik. A folyamatok a php.ini állományban kapcsolhatók be, lásd a session.auto_start paramétert.';
|
||||
@@ -209,13 +220,15 @@ $string['sitenewsitems'] = 'Hírek:';
|
||||
$string['siteshortname'] = 'A portál rövid neve:';
|
||||
$string['sitesummary'] = 'A portálról szóló összegzés:';
|
||||
$string['skipdbencodingtest'] = 'Az adatbázis-kódolás ellenőrzésének kihagyása';
|
||||
$string['sqlite3_pdo'] = 'SQLite 3 (PDO) <b><strong class=\"errormsg\">Kísérleti! (élesben nem használandó)</strong></b>';
|
||||
$string['sqliteextensionisnotpresentinphp'] = 'A PHP nincs megfelelően beállítva az SQLite-bővítéshez. Ellenőrizze a php.ini állományt vagy fordítsa le újra a PHP-t.';
|
||||
$string['status'] = 'Állapot';
|
||||
$string['tableprefix'] = 'Táblázat előtagja:';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thislanguage'] = 'Magyar';
|
||||
$string['unicoderecommended'] = 'Ajánlott minden adatot unikódban (UTF-8) tárolni. Az új telepítéseket unikód alapkészletű adatbázisokba kell telepíteni. Ha újabb változatra vált, végre kell hajtania az UTF-8-ra való áttérést (lásd a Portáladminisztráció oldalát).';
|
||||
$string['unicoderequired'] = 'Minden adatot unikódban (UTF-8) kell tárolni. Az új telepítéseket unikód alapkészletű adatbázisokba kell telepíteni. Ha újabb változatra vált, végre kell hajtania az UTF-8-ra való áttérést (lásd a Portáladminisztráció oldalát).';
|
||||
$string['unicoderecommended'] = 'Ajánlott minden adatot unikódban (UTF-8) tárolni. Az új telepítéseket unikód alapkészletű adatbázisokba kell telepíteni. Ha újabb változatra vált, végre kell hajtania az UTF-8-ra való áttérést (lásd a Portáladminisztráció oldalát).';
|
||||
$string['unicoderequired'] = 'Minden adatot unikódban (UTF-8) kell tárolni. Az új telepítéseket unikód alapkészletű adatbázisokba kell telepíteni. Ha újabb változatra vált, végre kell hajtania az UTF-8-ra való áttérést (lásd a Portáladminisztráció oldalát).';
|
||||
$string['upgradingactivitymodule'] = 'Tevékenységmodul frissítése';
|
||||
$string['upgradingbackupdb'] = 'Biztonsági adatbázis frissítése';
|
||||
$string['upgradingblocksdb'] = 'Blokkok adatbázisának frissítése';
|
||||
@@ -264,9 +277,10 @@ $string['welcometext'] = '---Üdvözli Önt a Moodle parancssori telepítője---
|
||||
$string['writetoconfigfilefaild'] = 'Hiba: nem sikerült a konfigurációs állomány írása';
|
||||
$string['wrongdestpath'] = 'Hibás célútvonal.';
|
||||
$string['wrongsourcebase'] = 'Hibás URL-forrás.';
|
||||
$string['wrongzipfilename'] = 'Hibás tömörített állománynév.';
|
||||
$string['wrongzipfilename'] = 'Hibás a tömörített állomány neve.';
|
||||
$string['wwwroot'] = 'Webcím';
|
||||
$string['wwwrooterror'] = 'A webcím nem érvényes - a Moodle mostani telepítése nincs a megadott címen. Az alábbi értéket visszaállítottuk.';
|
||||
$string['xmlrpcrecommended'] = 'A külön elérhető xmlrpc-bővítés telepítése kifejezetten ajánlott a hálózati Moodle használatához.';
|
||||
$string['xmlrpcrecommended'] = 'A külön elérhető xmlrpc-bővítés telepítése kifejezetten ajánlott a hálózati Moodle használatához.';
|
||||
$string['yourchoice'] = 'Választása:';
|
||||
$string['ziprequired'] = 'A Moodle a Zip PHP bővítést igényli, az info-ZIP bináris állományokra vagy a PclZip könyvtárra már nincs szükség.';
|
||||
?>
|
||||
|
||||
@@ -111,7 +111,7 @@ $string['gdversionhelp'] = '<p>Sul vostro server sembra non essere installato il
|
||||
<p>Su Windows normalmente è possibile modificare il file php.ini e togliere il commento dalla linea che contiene php_gd2.dll.</p>';
|
||||
$string['globalsquotes'] = 'Gestione insicura dei Globals';
|
||||
$string['globalsquoteserror'] = 'Correggere le impostazioni PHP: disabilitare register_globals e/o abilitare magic_quotes_gpc';
|
||||
$string['globalswarning'] = '<p><strong>Avvertimento per la sicurezza</strong>: per funzionare correttamente, Moodle richiede <br />alcune modifiche alle attuali impostazioni del PHP.<p/><p><em>Bisogna</em> impostare <code>register_globals=off</code>.<p>Questa impostazione può essere modificata editando il vostro <code>php.ini</code>, la configurazione Apache/IIS <br />o il file <code>.htaccess</code>.</p>';
|
||||
$string['globalswarning'] = '<p><strong>Avviso per la sicurezza</strong>: per funzionare correttamente, Moodle richiede <br />alcune modifiche alle attuali impostazioni del PHP.<p/><p><em>Bisogna</em> impostare <code>register_globals=off</code>.<p>Questa impostazione può essere modificata editando il vostro <code>php.ini</code>, la configurazione Apache/IIS <br />o il file <code>.htaccess</code>.</p>';
|
||||
$string['help'] = 'Aiuto';
|
||||
$string['iconvrecommended'] = 'Installare la libreria opzionale ICONV è caldamente consigliato per migliorare le prestazioni del sito, in particolare se il vostro sito supporta lingue non latine.';
|
||||
$string['info'] = 'Informazioni';
|
||||
@@ -190,4 +190,5 @@ $string['wrongzipfilename'] = 'Il nome del file ZIP è sbagliato.';
|
||||
$string['wwwroot'] = 'Indirizzo web';
|
||||
$string['wwwrooterror'] = 'L\'indirizzo web sembra non essere valido - questa installazione di Moodle non sembra essere li. Il valore è stato reimpostato';
|
||||
$string['xmlrpcrecommended'] = 'L\'installazione della estensione opzionale xmlrpc è utile per le funzionalità del Moodle Networking.';
|
||||
$string['ziprequired'] = 'Ora Moodle richiede l\'estensione Zip PHP. Gli esguibili info-ZIP o la libreria PclZip non è più usata.';
|
||||
?>
|
||||
|
||||
@@ -60,6 +60,7 @@ $string['creatingconfigfile'] = 'config.phpファイルを作成しています
|
||||
$string['ctyperecommended'] = 'あなたのサイトが非ラテン言語をサポートしている場合、サイトパフォーマンスを改善するため、PHP ctype拡張モジュールのインストールを強くお勧めします。';
|
||||
$string['ctyperequired'] = 'サイトパフォーマンスの改善および多言語サポートを提供するため、MoodleではPHP ctype拡張モジュールが必須です。';
|
||||
$string['curlrecommended'] = 'Moodleネットワーキング機能を有効にするため、cURLライブラリのインストールを強くお勧めします。';
|
||||
$string['curlrequired'] = 'Moodleリポジトリと通信するため、MoodleではPHP cURL拡張モジュールが必須です。';
|
||||
$string['customcheck'] = 'その他のチェック';
|
||||
$string['database'] = 'データベース';
|
||||
$string['databasecreationsettings'] = 'ほとんどのMoodleデータが保存されるデータベース設定を行ってください。このデータベースはインストーラーにより、下記の設定が指定された形で自動的に作成されます。<br />
|
||||
@@ -149,6 +150,7 @@ $string['databasetype'] = 'データベースタイプ :';
|
||||
$string['databaseuser'] = 'データベースユーザ :';
|
||||
$string['dataroot'] = 'データディレクトリ';
|
||||
$string['datarooterror'] = 'あなたが指定した「データディレクトリ」が見つからないか、作成されませんでした。パスを訂正するか、ディレクトリを手動で作成してください。';
|
||||
$string['datarootpublicerror'] = 'あなたが指定した「データディレクトリ」は、ウェブ経由でアクセスすることができます。異なるディレクトリを使用してください。';
|
||||
$string['dbconnectionerror'] = 'あなたが指定したデータベースに接続できませんでした。データベース設定を確認してください。';
|
||||
$string['dbcreationerror'] = 'データベース作成エラー。設定で指定された名称のデータベースを作成できませんでした。';
|
||||
$string['dbhost'] = 'ホストサーバ';
|
||||
@@ -199,17 +201,17 @@ $string['environmentrecommendinstall'] = '最適な動作のため、インス
|
||||
$string['environmentrecommendversion'] = 'バージョン $a->needed 以上を推奨します。あなたは現在 $a->current を使用しています。';
|
||||
$string['environmentrequirecustomcheck'] = 'このテストはパスする必要があります。';
|
||||
$string['environmentrequireinstall'] = '必ずインストールおよび有効化してください。';
|
||||
$string['environmentrequireversion'] = 'バージョン $a->needed以上が必須です。あなたは現在 $a->current を使用しています。';
|
||||
$string['environmentrequireversion'] = 'バージョン $a->needed 以上が必須です。あなたは現在 $a->current を使用しています。';
|
||||
$string['environmentsub'] = 'あなたのシステムに関する様々な要素が、システム要件に合致するか確認しています。';
|
||||
$string['environmentxmlerror'] = '環境データ ($a->error_code) の読み込み中にエラーが発生しました。';
|
||||
$string['error'] = 'エラー';
|
||||
$string['errorsinenvironment'] = '環境エラー';
|
||||
$string['errorsinenvironment'] = '環境エラー!';
|
||||
$string['fail'] = '失敗';
|
||||
$string['fileuploads'] = 'ファイルアップロード';
|
||||
$string['fileuploadserror'] = 'これは有効にしてください。';
|
||||
$string['fileuploadshelp'] = '<p>あなたのサーバでは、ファイルのアップロードができないようです。</p>
|
||||
<p>Moodleのインストールは可能ですが、ファイルのアップロードができない場合は、コースファイルやユーザプロファイルのイメージをアップロードすることができません。</p>
|
||||
<p>ファイルアップロードを可能にするには、あなた (またはシステム管理者) があなたのシステムのメインphp.iniファイルを編集して、<b>file_uploads</b> を \'1\'にする必要があります。</p>';
|
||||
<p>ファイルアップロードを可能にするには、あなた (またはシステム管理者) があなたのシステムのメインphp.iniファイルを編集して、<b>file_uploads</b> を「1」にする必要があります。</p>';
|
||||
$string['gdversion'] = 'GDバージョン';
|
||||
$string['gdversionerror'] = 'イメージの処理および作成を行うにはGDライブラリが必要です。';
|
||||
$string['gdversionhelp'] = '<p>あなたのサーバには、GDがインストールされていないようです。</p>
|
||||
@@ -300,12 +302,12 @@ $string['pass'] = 'パス';
|
||||
$string['password'] = 'パスワード';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'PHPのPGSQL拡張モジュールが適切に設定されていないため、PostgreSQLと通信できません。あなたのphp.iniファイルをチェックするか、PHPを再コンパイルしてください。';
|
||||
$string['php50restricted'] = 'PHP 5.0.x には数多くの既知の問題があります。5.1.x にアップグレードするか、4.3.x または 4.4.x にダウングレードしてください。';
|
||||
$string['php52versionerror'] = '少なくとも5.2.0以上のPHPバージョンを使用してください。';
|
||||
$string['php52versionhelp'] = '<p>Moodleでは、少なくとも5.2.0以上のPHPバージョンを必要とします。</p>
|
||||
$string['php52versionerror'] = '少なくとも5.2.4以上のPHPバージョンを使用してください。';
|
||||
$string['php52versionhelp'] = '<p>Moodleでは、少なくとも5.2.4以上のPHPバージョンを必要とします。</p>
|
||||
<p>現在、あなたはPHPバージョン $a を使用しています。</p>
|
||||
<p>あなたは、PHPをアップグレードするか、新しいバージョンのPHPを使用しているホストに移動する必要があります!</p>';
|
||||
$string['phpversion'] = 'PHPバージョン';
|
||||
$string['phpversionerror'] = 'PHPバージョンは少なくとも 4.3.0 または 5.1.0 をお使いください (5.0.x には既知の多数の問題があります)。'; // TBD
|
||||
$string['phpversionerror'] = 'PHPバージョンは少なくとも 4.3.0 または 5.1.0 をお使いください (5.0.x には既知の多数の問題があります)。'; //TBD
|
||||
$string['phpversionhelp'] = '<p>Moodleには、少なくとも 4.3.0 または 5.1.0 のPHPバージョンが必要です (5.0.x には既知の多数の問題があります)。</p>
|
||||
<p>現在、バージョン $a が動作しています。</p>
|
||||
<p>PHPをアップグレードするか、新しいバージョンがインストールされているホストに移動してください!<br/>
|
||||
@@ -337,7 +339,7 @@ $string['sessionautostarthelp'] = '<p>Moodleはセッションサポートを必
|
||||
$string['sitefullname'] = '長いサイト名 :';
|
||||
$string['siteinfo'] = 'サイト詳細';
|
||||
$string['sitenewsitems'] = 'ニュースアイテムの表示件数 :';
|
||||
$string['siteshortname'] = '短いサイト名 :';
|
||||
$string['siteshortname'] = 'サイト省略名 :';
|
||||
$string['sitesummary'] = 'フロントページの説明 :';
|
||||
$string['skipdbencodingtest'] = 'DBエンコーディングテストをスキップ';
|
||||
$string['sqlite3_pdo'] = 'SQLite 3 (PDO) <b><strong class=\"errormsg\">実験用! (実稼動サイトには使用しないでください。)</strong></b>';
|
||||
@@ -381,7 +383,7 @@ $php cliupgrade.php オプション
|
||||
--agreelicense Yes(デフォルト) または No
|
||||
--confirmrelease Yes(デフォルト) または No
|
||||
--sitefullname 長いサイト名です。デフォルトは : Moodle Site (サイト名を変更してください!!)
|
||||
--siteshortname 短いサイト名です。デフォルトは: moodle
|
||||
--siteshortname サイト省略名です。デフォルトは: moodle
|
||||
--sitesummary フロントページの説明です。デフォルトは、空白です。
|
||||
--adminfirstname 管理者の名です。デフォルトは「Admin」です。
|
||||
--adminlastname 管理者の姓です。デフォルトは「User」です。
|
||||
@@ -409,4 +411,5 @@ $string['wwwroot'] = 'ウェブアドレス';
|
||||
$string['wwwrooterror'] = '「ウェブアドレス」が正しくありません - インストール済みMoodleはそこに表示されません。下記の値はリセットされました。';
|
||||
$string['xmlrpcrecommended'] = '任意のxmlrpc拡張モジュールのインストールは、Moodleネットワーキング機能に有用です。';
|
||||
$string['yourchoice'] = 'あなたの選択 :';
|
||||
$string['ziprequired'] = 'MoodleではPHP Zip拡張モジュールが必須です。info-ZIPバイナリまたはPclZipライブラリは、今後使用されません。';
|
||||
?>
|
||||
|
||||
@@ -95,6 +95,12 @@ $string['databasesettingssub_mysql'] = '<b>ប្រភេទ ៖</b> MySQL<br /
|
||||
<b>អ្នកប្រើ ៖</b> ឈ្មោះអ្នកប្រើមូលដ្ឋានទិន្នន័យរបស់អ្នក<br />
|
||||
<b>ពាក្យសម្ងាត់ ៖</b> ពាក្យសម្ងាត់មូលដ្ឋានទិន្នន័យរបស់អ្នក<br />
|
||||
<b>បុព្វបទតារាង ៖</b> បុព្វបទ ដែលត្រូវប្រើសម្រាប់ឈ្មោះតារាងទាំងអស់ (ស្រេចចិត្ត)';
|
||||
$string['databasesettingssub_mysqli'] = '<b>ប្រភេទ ៖</b> ធ្វើឲ្យ MySQL ប្រសើរ<br />
|
||||
<b>ម៉ាស៊ីន ៖</b> ឧទាហរណ៍ ម៉ាស៊ីនមូលដ្ឋាន ឬ db.isp.com<br />
|
||||
<b>ឈ្មោះ ៖</b> ឈ្មោះមូលដ្ឋានទិន្នន័យ ឧទាហរណ៍ moodle<br />
|
||||
<b>អ្នកប្រើ ៖</b> ឈ្មោះអ្នកប្រើមូលដ្ឋានទិន្នន័យរបស់អ្នក<br />
|
||||
<b>ពាក្យសម្ងាត់ ៖</b> ពាក្យសម្ងាត់មូលដ្ឋានទិន្នន័យរបស់អ្នក<br />
|
||||
<b>បុព្វបទតារាង ៖</b> បុព្វបទដើម្បីប្រើសម្រាប់ឈ្មោះតារាងទាំងអស់ (ស្រេចចិត្ត)';
|
||||
$string['databasesettingssub_oci8po'] = '<b>ប្រភេទ ៖</b> Oracle<br />
|
||||
<b>ម៉ាស៊ីន ៖</b> មិនបានប្រើ ត្រូវតែទុកនៅទទេ<br />
|
||||
<b>ឈ្មោះ ៖</b> ឈ្មោះដែលផ្ដល់នៃការតភ្ជាប់ tnsnames.org<br />
|
||||
@@ -113,6 +119,7 @@ $string['databasesettingssub_postgres7'] = '<b>ប្រភេទ ៖</b> Postgr
|
||||
<b>អ្នកប្រើ ៖</b> ឈ្មោះអ្នកប្រើមូលដ្ឋានទិន្នន័យរបស់អ្នក<br />
|
||||
<b>ពាក្យសម្ងាត់ ៖</b> ពាក្យសម្ងាត់មូលដ្ឋានទិន្នន័យរបស់អ្នក<br />
|
||||
<b>បុព្វបទតារាង ៖</b> បុព្វបទ ដែលត្រូវប្រើសម្រាប់ឈ្មោះតារាងទាំងអស់ (ត្រូវតែបញ្ចូល)';
|
||||
$string['databasesettingswillbecreated'] = '<b>ចំណាំ ៖</b> កម្មវិធីដំឡើងនឹងសាកល្បងបង្កើតមូលដ្ឋានទិន្នន័យដោយស្វ័យប្រវត្តិ បើសិនជាមិនមាន ។';
|
||||
$string['dataroot'] = 'ថតទិន្នន័យ';
|
||||
$string['datarooterror'] = 'មិនអាចរកឃើញ ឬបង្កើត \'ថតទិន្នន័យ\' ដែលអ្នកបានបញ្ជាក់បានទេ ។ សូមកែប្រែផ្លូវ ឬបង្កើតថតនោះដោយដៃ ។';
|
||||
$string['dbconnectionerror'] = 'យើងមិនអាចតភ្ជាប់ទៅមូលដ្ឋានទិន្នន័យ ដែលអ្នកបានបញ្ជាក់ឡើយ ។ សូមពិនិត្យការកំណត់មូលដ្ឋានទិន្នន័យរបស់អ្នក ។';
|
||||
@@ -156,7 +163,7 @@ $string['dirroot'] = 'ថត Moodle';
|
||||
$string['dirrooterror'] = 'ការកំណត់ \'ថត Moodle\' ដូចជាមិនត្រឹមត្រូវ ព្រោះយើងមិនអាចរកការដំឡើង Moodle នៅទីនោះបានទេ ។ តម្លៃខាងក្រោម ត្រូវបានកំណត់ឡើងវិញ ។';
|
||||
$string['download'] = 'ទាញយក';
|
||||
$string['downloadedfilecheckfailed'] = 'បានបរាជ័យក្នុងការពិនិត្យឯកសារដែលបានទាញយក ។';
|
||||
$string['downloadlanguagebutton'] = 'ទាញយកកញ្ចប់ភាសា "$a"';
|
||||
$string['downloadlanguagebutton'] = 'ទាញយកកញ្ចប់ភាសា "';
|
||||
$string['downloadlanguagehead'] = 'ទាញយកកញ្ចប់ភាសា';
|
||||
$string['downloadlanguagenotneeded'] = 'អ្នកអាចបន្តធ្វើការដំឡើង ដោយប្រើកញ្ចប់ភាសាលំនាំដើម \"$a\" ។';
|
||||
$string['downloadlanguagesub'] = 'ឥឡូវនេះ អ្នកមានជម្រើសក្នុងការទាញយកកញ្ចប់ភាសា និងបន្តធ្វើការដំឡើងជាភាសានេះ ។<br /><br />ប្រសិនបើអ្នកមិនអាចទាញយកកញ្ចប់ភាសាបាន នោះវានឹងបន្តដំឡើងជាភាសាអង់គ្លេស ។ (ពេលបញ្ចប់ដំណើរការដំឡើង អ្នកអាចមានឱកាសទាញយក និងដំឡើងកញ្ចប់ភាសាបន្ថែមបាន ។)';
|
||||
@@ -207,7 +214,7 @@ $string['installation'] = 'ការដំឡើង';
|
||||
$string['invalidemail'] = 'អាសយដ្ឋានអ៊ីមែលមិនត្រឹមត្រូវ';
|
||||
$string['invalidmd5'] = 'md5 មិនត្រឹមត្រូវ';
|
||||
$string['invalidurl'] = 'url មិនត្រឹមត្រូវ';
|
||||
$string['langdownloaderror'] = 'ភាសា \"$a\" មិនត្រូវបានដំឡើងឡើយ ។ វានឹងបន្តដំឡើងជាភាសាអង់គ្លេស ។';
|
||||
$string['langdownloaderror'] = 'ជាអកុសល់ភាសា \"$a\" មិនត្រូវបានដំឡើងឡើយ ។ វានឹងបន្តដំឡើងជាភាសាអង់គ្លេស ។';
|
||||
$string['langdownloadok'] = 'ភាសា \"$a\" ត្រូវបានដំឡើងដោយជោគជ័យ ។ វានឹងបន្តដំឡើងជាភាសានេះ ។';
|
||||
$string['language'] = 'ភាសា';
|
||||
$string['magicquotesruntime'] = 'Magic Quotes Run Time';
|
||||
@@ -246,6 +253,8 @@ $string['mysql'] = 'MySQL (mysql)';
|
||||
$string['mysql416bypassed'] = 'ទោះយ៉ាងណា បើតំបន់បណ្ដាញរបស់អ្នកកំពុងប្រើតែភាសា iso-8859-1 (ឡាតាំង) នោះអ្នកអាចបន្តប្រើ MySQL 4.1.12 (ឬខ្ពស់ជាង) បច្ចុប្បន្នរបស់អ្នក ។';
|
||||
$string['mysql416required'] = 'Moodle 1.6 ត្រូវការ MySQL កំណែយ៉ាងហោចណាស់ 4.1.16 ដើម្បីធានាថាទិន្នន័យទាំងអស់ អាចត្រូវបានបម្លែងទៅជា UTF-8 នៅពេលខាងមុខ ។';
|
||||
$string['mysqlextensionisnotpresentinphp'] = 'PHP មិនត្រូវបានកំណត់រចនាសម្ព័ន្ធឲ្យបានត្រឹមត្រូវ ដោយប្រើផ្នែកបន្ថែម MySQL នោះទេ ដូច្នេះ វាអាចធ្វើទំនាក់ទំនងជាមួយ MySQL ។ សូមពិនិត្យឯកសារ php.ini របស់អ្នក ឬចងក្រង PHP ឡើងវិញ ។';
|
||||
$string['mysqli'] = 'ធ្វើឲ្យ MySQL ប្រសើរ (mysqli)';
|
||||
$string['mysqliextensionisnotpresentinphp'] = 'PHP មិនទាន់ត្រូវបានកំណត់រចនាសម្ព័ន្ធត្រឹមត្រូវជាមួយផ្នែកបន្ថែម MySQLi ដូច្នេះវាមិនអាចទាក់ទងជាមួយ MySQL បាន។ សូមពិនិត្យឯកសារ php.ini របស់អ្នក ឬចងក្រង PHP ឡើងវិញ ។ ផ្នែកបន្ថែម MySQLi មិនអាចរកបានសម្រាប់ PHP 4 ។';
|
||||
$string['name'] = 'ឈ្មោះ';
|
||||
$string['next'] = 'បន្ទាប់';
|
||||
$string['oci8po'] = 'Oracle (oci8po)';
|
||||
@@ -268,6 +277,7 @@ $string['previous'] = 'មុន';
|
||||
$string['qtyperqpwillberemoved'] = 'កំឡុងពេលធ្វើឲ្យប្រសើរ ប្រភេទសំណួរ RQP នឹងត្រូវបានយកចេញ ។ អ្នកមិនប្រើប្រភេទសំណួរនេះទៀតទេ ដូច្នេះអ្នកគួរតែមិនជួបបញ្ហាទេ ។';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'កំឡុងពេលធ្វើឲ្យប្រសើរ ប្រភេទសំណួរ RQP នឹងត្រូវបានយកចេញ ។ អ្នកមានប្រភេទសំណួរ RQP មួយចំនួននៅក្នុងមូលដ្ឋានទិន្នន័យរបស់អ្នក ហើយសំណួរទាំងនេះនឹងឈប់ដំណើរការ រហូតទាល់តែអ្នកដំឡើងកូដពី http://moodle.org/mod/data/view.php?d=13&rid=797 មុនពេលបន្តធ្វើឲ្យប្រសើរ ។';
|
||||
$string['releasenoteslink'] = 'ចំពោះព័ត៌មានអំពីកំណែ Moodle នេះ សូមមើល <a target=\"_new\" href=\"$a\">ឯកសារចេញផ្សាយ</a>';
|
||||
$string['remotedownloaderror'] = 'បានបរាជ័យយក្នុងការទាញយកសមាភាពទៅម៉ាស៊ីនបម្រើអ្នកអ្នក សូមផ្ទៀងផ្ទាត់ការកំណត់ប្រូកស៊ីផ្នែកបន្ថែម PHP cURL ត្រូវបានផ្ដល់អនុសាសន៍យ៉ាងខ្លាំង ។<br /><br />អ្នកត្រូវតែទាញយក <a href=\"$a->url\">$a->url</a> ឯកសារដោយដៃ ចម្លងវាទៅក្នុង \"$a->dest\" នៅក្នុងម៉ាស៊ីនបម្រើរបស់អ្នក និងពន្លាវានៅទីនោះ ។';
|
||||
$string['remotedownloadnotallowed'] = 'ការទាញយកសមាសភាគទៅម៉ាស៊ីនបម្រើរបស់អ្នកគឺមិនត្រូវបានអនុញ្ញាតឡើយ (បានបិទ allow_url_fopen) ។<br /><br />អ្នកត្រូវតែទាញយកឯកសារ <a href=\"$a->url\">$a->url</a> ដោយដៃ ហើយចម្លងវាទៅ \"$a->dest\" នៅក្នុងម៉ាស៊ីនបម្រើរបស់អ្នក ហើយពន្លាវានៅទីនេះ ។';
|
||||
$string['report'] = 'របាយការណ៍';
|
||||
$string['restricted'] = 'បានដាក់កម្រិត';
|
||||
@@ -288,7 +298,7 @@ $string['skipdbencodingtest'] = 'រំលងការសាកល្ប
|
||||
$string['status'] = 'ស្ថានភាព';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thislanguage'] = 'ខ្មែរ';
|
||||
$string['thislanguage'] = 'អង់គ្លេស';
|
||||
$string['unicoderecommended'] = 'អ្នកត្រូវបានផ្ដល់អនុសាសន៍ឲ្យទុកទិន្នន័យរបស់អ្នកទាំងអស់ជាយូនីកូដ (UTF-8) ។ ការដំឡើងថ្មីគួរតែត្រូវបានប្រព្រឹត្តទៅក្នុងមូលដ្ឋានទិន្នន័យដែលមានសំណុំតួអក្សររបស់លំនាំដើមជាយូនីកូដ ។ ប្រសិនបើអ្នកកំពុងតែធ្វើឲ្យប្រសើរ អ្នកគួរតែអនុវត្តដំណើរការប្ដូរ UTF-8 (សូមមើលទំព័រអ្នកគ្រប់គ្រង) ។';
|
||||
$string['unicoderequired'] = 'វាត្រូវបានទាមទារឲ្យអ្នកទុកទិន្នន័យរបស់អ្នកទាំងអស់ជាទ្រង់ទ្រាយយូនីកូដ (UTF-8) ។ ការដំឡើងថ្មីត្រូវតែបានប្រព្រឹត្តទៅក្នុងមូលដ្ឋានទិន្នន័យដែលមានសំណុំតួអក្សរលំនាំដើមជាយូនីកូដ ។ ប្រសិនបើអ្នកកំពុងធ្វើឲ្យប្រសើរ អ្នកគួរតែអនុវត្តដំណើរការប្ដូរ UTF-8 (សូមមើលទំព័រអ្នកគ្រប់គ្រង) ។';
|
||||
$string['user'] = 'អ្នកប្រើ';
|
||||
|
||||
@@ -10,13 +10,11 @@
|
||||
/// using strings defined in stringnames.txt (same dir)
|
||||
|
||||
$string['aborting'] = '설치 취소';
|
||||
$string['admindirerror'] = '지정한 관리 디렉토리가 적절치 않습니다';
|
||||
$string['admindirerror'] = '지정한 관리 디렉토리가 적절치 않음';
|
||||
$string['admindirname'] = '관리 디렉토리';
|
||||
$string['admindirsetting'] = '간혹 웹호스트 업체는 당신이 관리 구획에 접근할 수 있도록하기 위해 특별한 URL을 사용하거나 관리합니다. 어떤 경우 이 위치가 무들 관리페이지와 충돌할 수도 있습니다. 이 경우 이것을 바꿔서 지정할 수 있는데, 설치과정에서 적어넣었던 관리 디렉토리를 새로 바꿔 적어 넣으면 됩니다.
|
||||
예를 들어 <br /> <br /><b>moodleadmin</b><br /> <br />
|
||||
그러면 무들에 있는 관리 링크가 고쳐질 것입니다.';
|
||||
$string['admindirsetting'] = '간혹 어떤 웹호스트 업체는 제어판 등을 제공하는 특별한 URL으로서 /admin을 사용합니다. 불행하게도 이것은 무들 관리페이지를 위한 표준 위치와 충돌을 일으킵니다. 설치과정에서 관리 디렉토리의 이름을 바꿈으로서 이 문제를 고칠수 있는 데, 다음의 예와 같이 새이름을 여기에 넣으면 됩니다. 예: <br /> <br /><b>moodleadmin</b><br /> <br /> 이렇게 하면 무들에서 관리자 링크문제가 해결됩니다.';
|
||||
$string['admindirsettinghead'] = '관리자 디렉토리 설정 ...';
|
||||
$string['admindirsettingsub'] = '몇 개의 웹사이트만이 제어판 등을 제공하는 특별한 URL으로서 /admin을 사용합니다. 불행하게도 이것은 무들 관리페이지를 위한 표준 위치와 충돌을 일으킵니다. 설치과정에서 관리 디렉토리의 이름을 바꿈으로서 이 문제를 고칠수 있는 데, 다음의 예와 같이 새이름을 여기에 넣으면 됩니다. 예: <br /> <br /><b>moodleadmin</b><br /> <br /> 이렇게 하면 무들에서 관리자 링크문제가 해결됩니다.';
|
||||
$string['admindirsettingsub'] = '간혹 어떤 웹호스트 업체는 제어판 등을 제공하는 특별한 URL으로서 /admin을 사용합니다. 불행하게도 이것은 무들 관리페이지를 위한 표준 위치와 충돌을 일으킵니다. 설치과정에서 관리 디렉토리의 이름을 바꿈으로서 이 문제를 고칠수 있는 데, 다음의 예와 같이 새이름을 여기에 넣으면 됩니다. 예: <br /> <br /><b>moodleadmin</b><br /> <br /> 이렇게 하면 무들에서 관리자 링크문제가 해결됩니다.';
|
||||
$string['adminemail'] = '이메일 :';
|
||||
$string['adminfirstname'] = '이름 :';
|
||||
$string['admininfo'] = '관리자 정보';
|
||||
@@ -24,21 +22,21 @@ $string['adminlastname'] = '성 :';
|
||||
$string['adminpassword'] = '비밀번호 :';
|
||||
$string['adminusername'] = '사용자 ID';
|
||||
$string['askcontinue'] = '계속할까요 (yes/no) :';
|
||||
$string['availabledbtypes'] = '/n 사용가능한 디비 유형 /n';
|
||||
$string['availablelangs'] = '가능한 언어 목록 /n';
|
||||
$string['availabledbtypes'] = '사용가능한 디비 유형';
|
||||
$string['availablelangs'] = '가능한 언어 목록';
|
||||
$string['bypassed'] = '건너뜀';
|
||||
$string['cannotconnecttodb'] = '디비에 연결할 수 없음 /n';
|
||||
$string['cannotcreatelangdir'] = '언어팩 디렉토리를 만들 수 없습니다.';
|
||||
$string['cannotconnecttodb'] = '디비에 연결할 수 없음';
|
||||
$string['cannotcreatelangdir'] = '언어팩 경로를 생성할 수 없음';
|
||||
$string['cannotcreatetempdir'] = 'temp 디렉토리를 만들 수 없습니다.';
|
||||
$string['cannotdownloadcomponents'] = '구성요소를 내려받을 수 없습니다.';
|
||||
$string['cannotdownloadzipfile'] = 'ZIP파일을 내려받을 수 없습니다.';
|
||||
$string['cannotfindcomponent'] = '구성요소를 찾을 수 없습니다.';
|
||||
$string['cannotsavemd5file'] = 'md5 파일을 저장할 수 없습니다.';
|
||||
$string['cannotsavezipfile'] = 'ZIP 파일을 저장할 수 없습니다.';
|
||||
$string['cannotunzipfile'] = '압축된 파일을 풀 수 없습니다.';
|
||||
$string['cannotdownloadcomponents'] = '구성요소를 내려받을 수 없음';
|
||||
$string['cannotdownloadzipfile'] = 'ZIP파일을 내려받을 수 없음';
|
||||
$string['cannotfindcomponent'] = '구성요소를 찾을 수 없음';
|
||||
$string['cannotsavemd5file'] = 'md5 파일을 저장할 수 없음';
|
||||
$string['cannotsavezipfile'] = 'ZIP 파일을 저장할 수 없음';
|
||||
$string['cannotunzipfile'] = '압축된 파일을 풀 수 없음';
|
||||
$string['caution'] = '주의';
|
||||
$string['check'] = '점검';
|
||||
$string['checkingphpsettings'] = '/n/n PHP설정 점검 /n/n';
|
||||
$string['checkingphpsettings'] = 'PHP설정 점검';
|
||||
$string['chooselanguage'] = '언어를 선택하시오';
|
||||
$string['chooselanguagehead'] = '언어를 선택하시오';
|
||||
$string['chooselanguagesub'] = '설치할 때 쓸 언어를 선택하십시오. 이 후 화면에서는 사이트와 사용자들을 위한 여타의 언어팩들을 선택할 수 있습니다.';
|
||||
@@ -46,20 +44,21 @@ $string['closewindow'] = '창 닫기';
|
||||
$string['compatibilitysettings'] = 'PHP 설정을 검사하는 중 ..';
|
||||
$string['compatibilitysettingshead'] = 'PHP 설정을 검사하는 중 ..';
|
||||
$string['compatibilitysettingssub'] = '당신의 서버는 무들이 잘 작동되기 위한 필요한 모든 테스트를 통과해야 합니다.';
|
||||
$string['componentisuptodate'] = '구성 요소가 최신의 것입니다.';
|
||||
$string['configfilecreated'] = '설정파일 생성 완료 /n';
|
||||
$string['componentisuptodate'] = '구성 요소가 갱신됨';
|
||||
$string['configfilecreated'] = '설정파일 생성 완료';
|
||||
$string['configfiledoesnotexist'] = '설정파일이 존재하지 않습니다!';
|
||||
$string['configfilenotwritten'] = '설치 스크립트는 당신이 선택한 설정으로 config.php파일을 자동적으로 생성할 수 없습니다. 아마도 무들 경로가 쓰기 허용이 되어 있지 않은 모양입니다. 당신은 수동으로 다음의 코드를 무들의 루트디렉토리안에 config.php파일로 복사해 넣을 수 있습니다.';
|
||||
$string['configfilewritten'] = '성공적으로 contig.php가 생성되었음.';
|
||||
$string['configfilewritten'] = '성공적으로 contig.php가 생성되었음';
|
||||
$string['configurationcomplete'] = '초기 설정 완료';
|
||||
$string['configurationcompletehead'] = '초기 설정 완료';
|
||||
$string['configurationcompletesub'] = '무들이 설치 루트디렉토리에 있는 파일에 당신의 설정을 저장하도록 시도하였습니다.';
|
||||
$string['configurationfileexist'] = '기존 설정파일이 존재합니다! /n';
|
||||
$string['configurationfileexist'] = '기존 설정파일이 존재합니다!';
|
||||
$string['continue'] = '계속';
|
||||
$string['creatingconfigfile'] = '설정파일 작성 중.. /n';
|
||||
$string['creatingconfigfile'] = '설정파일 작성 중..';
|
||||
$string['ctyperecommended'] = '사이트가 비 라틴계열의 언어를 사용한다면 사이트의 성능 향상을 위해 추가적인 ctype PHP 확장자 설치를 강력히 권고합니다.';
|
||||
$string['ctyperequired'] = '다국어 호환 기능 및 사이트의 성능 향상을 위해 이제부터 무들은 ctype의 PHP 확장자를 요구합니다.';
|
||||
$string['curlrecommended'] = '무들 네트웍 기능을 활성화하기 위해서는 추가적인 cURL 라이브러리를 설치할 것을 강력히 권고한다.';
|
||||
$string['curlrequired'] = '무들 저장소와 교신하기 위해서는 cURL 확장이 필요합니다.';
|
||||
$string['customcheck'] = '다른 점검들';
|
||||
$string['database'] = '데이타 베이스';
|
||||
$string['databasecreationsettings'] = '지금 당신은 모든 무들 데이터가 저장될 데이터베이스를 설정할 필요가 있습니다. 이 데이터베이스는 아래에 있는 특별한 설정의 윈도우 설치 프로그램으로써 무들 프로그램에 의해 자동설치 될 것입니다.<br />
|
||||
@@ -88,7 +87,7 @@ $string['databasesettings'] = '지금 대부분의 무들 정보가 저장될
|
||||
<b>사용자:</b> 데이터베이스 사용자명<br />
|
||||
<b>암호:</b> 데이터베이스 암호<br />
|
||||
<b>테이블 접두어:</b> 모든 테이블에 사용할 선택적 접두어';
|
||||
$string['databasesettingsformoodle'] = '/n/n 무들을 위한 데이터베이스 설정 /n/n';
|
||||
$string['databasesettingsformoodle'] = '무들을 위한 데이터베이스 설정';
|
||||
$string['databasesettingshead'] = '모든 무들데이터가 저장되는 데이터베이스를 설정할 필요가 있습니다. 이 데이터베이스는 이미 만들어졌으며 이에 접근할 수 있는 사용자명과 암호가 등록되어 있어야만 합니다.';
|
||||
$string['databasesettingssub'] = '<b>종류:</b> mysql 또는 postgres7<br />
|
||||
<b>호스트:</b>예: localhost 또는 db.isp.com <br />
|
||||
@@ -144,13 +143,14 @@ $string['databasesettingssub_sqlite3_pdo'] = '<b>종류:</b> SQLite 3 (PDO) <b>
|
||||
<b>사용자:</b> 데이터베이스 사용자명 (선택사항)<br />
|
||||
<b>암호:</b> 데이터베이스 암호 (선택사항)<br />
|
||||
<b>테이블 접두어:</b> 모든 테이블에 사용할 접두어<br />데이터베이스 파일의 명칭은 앞에서 입력한 사용자명, 데이터베이스명 및 암호에 의해 결정될 것임.';
|
||||
$string['databasesettingswillbecreated'] = '<b>노트:</b>만일 데이터베이스가 존재하지 않으면 인스톨러가 데이터베이스를 자동으로 생성할 것입니다.';
|
||||
$string['databasesettingswillbecreated'] = '<b>알림:</b>만일 데이터베이스가 없다면 인스톨러가 데이터베이스를 만들려고 할 것입니다.';
|
||||
$string['databasetype'] = '데이터베이스 유형 :';
|
||||
$string['databaseuser'] = '데이터베이스 사용자명 :';
|
||||
$string['dataroot'] = '데이타디렉토리 경로';
|
||||
$string['dataroot'] = '데이타 경로';
|
||||
$string['datarooterror'] = '당신이 지정한 \'데이타 경로\'가 없거나 생성되지 않았습니다. 정확한 경로를 적거나 수동으로 그 디렉토리를 생성해 놓으시오.';
|
||||
$string['datarootpublicerror'] = '지정한 \'데이타 경로\'는 직접 웹으로 접근할 수 있기 때문에, 다른 경로를 지정해야만 합니다.';
|
||||
$string['dbconnectionerror'] = '지정한 데이터베이스에 연결할 수 없습니다. 데이타베이스의 설정을 점검하시오.';
|
||||
$string['dbcreationerror'] = '데이터베이스 생성 오류. 주어진 사용자명 및 암호로 데이터베이스 이름을 생성할 수 없습니다.';
|
||||
$string['dbcreationerror'] = '데이터베이스 생성 오류. 주어진 사용자명 및 암호로 사용할 데이터베이스를 생성할 수 없습니다.';
|
||||
$string['dbhost'] = '호스트 서버';
|
||||
$string['dbpass'] = '비밀번호';
|
||||
$string['dbprefix'] = '접두어';
|
||||
@@ -184,7 +184,7 @@ $string['dirroot'] = '무들 디렉토리';
|
||||
$string['dirrooterror'] = '무들의 경로가 바르지 않은 것 같습니다 - 무들의 설치 프로그램을 찾을 수 없습니다. 아래의 값들은 초기화 되었습니다.';
|
||||
$string['disagreelicense'] = 'GPL 규약에 동의하지 않았으므로 갱신을 중단합니다!';
|
||||
$string['download'] = '내려 받음';
|
||||
$string['downloadedfilecheckfailed'] = '내려받은 파일 점검에 실패하였습니다.';
|
||||
$string['downloadedfilecheckfailed'] = '내려받은 파일 점검 실패';
|
||||
$string['downloadlanguagebutton'] = '\"$a\" 언어팩 내려받기';
|
||||
$string['downloadlanguagehead'] = '언어팩 다운로드';
|
||||
$string['downloadlanguagenotneeded'] = '기본 언어팩인 \"$a\"을 사용하여 설치과정을 계속할 수 있습니다.';
|
||||
@@ -203,7 +203,7 @@ $string['environmentrequireversion'] = '$a->needed 버전이 요구되는 데,
|
||||
$string['environmentsub'] = '기존 운영체제가 무들의 여러 구성 요소들을 구동하는데 적합한지 점검합니다.';
|
||||
$string['environmentxmlerror'] = '환경 설정 데이터 불러들이기 오류 ($a->error_code)';
|
||||
$string['error'] = '오류';
|
||||
$string['errorsinenvironment'] = '환경설정에 오류가 있습니다! /n';
|
||||
$string['errorsinenvironment'] = '환경설정에 오류가 있습니다!';
|
||||
$string['fail'] = '실패';
|
||||
$string['fileuploads'] = '파일 올리기';
|
||||
$string['fileuploadserror'] = '이것은 켜져야 합니다.';
|
||||
@@ -235,23 +235,23 @@ $string['inputdatadirectory'] = '데이터 경로 :';
|
||||
$string['inputwebadress'] = '웹 주소 :';
|
||||
$string['inputwebdirectory'] = '무들 경로 :';
|
||||
$string['installation'] = '설치';
|
||||
$string['installationiscomplete'] = '설치 완료! /n';
|
||||
$string['installationiscomplete'] = '설치 완료!';
|
||||
$string['invalidargumenthelp'] = '오류 : 잘못된 인수< /br> 사용예 : $php cliupgrade.php OPTIONS< /br> 좀 더 자세한 내용을 알고 싶으면 --help 옵션을 사용하세요.';
|
||||
$string['invalidemail'] = '잘못된 이메일주소';
|
||||
$string['invalidhost'] = '잘못된 호스트';
|
||||
$string['invalidint'] = '오류 : 정수값이 아닙니다 /n';
|
||||
$string['invalidintrange'] = '오류 : 범위를 벗어난 값입니다 /n';
|
||||
$string['invalidint'] = '오류 : 정수값이 아님';
|
||||
$string['invalidintrange'] = '오류 : 범위를 벗어난 값';
|
||||
$string['invalidmd5'] = '잘못된 md5';
|
||||
$string['invalidpath'] = '잘못된 경로';
|
||||
$string['invalidsetelement'] = '오류 : 주어진 옵션에 적절한 값이 아닙니다 /n';
|
||||
$string['invalidsetelement'] = '오류 : 주어진 옵션에 적절한 값이 아님';
|
||||
$string['invalidtextvalue'] = '잘못된 문자값';
|
||||
$string['invalidurl'] = '잘못된 웹주소';
|
||||
$string['invalidvalueforlanguage'] = '--lang 옵션에 맞지 않는 값. --help 를 쳐서 알아보세요. /n';
|
||||
$string['invalidyesno'] = '오류 : yes/no에 적절하지 않은 인수 /n';
|
||||
$string['invalidvalueforlanguage'] = '--lang 옵션에 맞지 않는 값. --help 를 쳐서 알아보세요.';
|
||||
$string['invalidyesno'] = '오류 : yes/no에 적절하지 않은 인수';
|
||||
$string['langdownloaderror'] = '안타깝게도 \"$a\" 언어팩이 설치되지 않았습니다. 대신 영어를 이용하여 설치될 것입니다.';
|
||||
$string['langdownloadok'] = '\"$a\" 언어팩이 성공적으로 설치되었습니다. 해당 언어를 이용하여 설치가 진행될 것입니다.';
|
||||
$string['language'] = '언어';
|
||||
$string['locationanddirectories'] = '/n/n 지역 및 경로 /n/n';
|
||||
$string['locationanddirectories'] = '위치 및 경로';
|
||||
$string['magicquotesruntime'] = 'Magic Quotes 실행 시간';
|
||||
$string['magicquotesruntimeerror'] = '이것은 꺼져야 합니다.';
|
||||
$string['magicquotesruntimehelp'] = '<p>Magic quotes runtime은 무들이 제대로 작동하기 위해 꺼져야(Off) 합니다.</p>
|
||||
@@ -300,8 +300,8 @@ $string['pass'] = '통과';
|
||||
$string['password'] = '비밀번호';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'PGSQL 익스텐션으로 PHP가 PostgreSQL 서버와 통신하도록 적절히 설정되지 않았습니다. php.ini 파일을 점검하거나 PHP를 다시 컴파일 하십시오.';
|
||||
$string['php50restricted'] = 'PHP 5.0.x 는 약간의 버그가 보고되었습니다. 5.1.x로 판올림 하던가, 아니면 4.3.x 혹은 4.4.x로 바꿔주기 바랍니다.';
|
||||
$string['php52versionerror'] = 'PHP는 최소한 5.2.0 이상이어야 합니다.';
|
||||
$string['php52versionhelp'] = '<p>무들은 최소한 PHP 5.2.0 이상을 요구합니다..</p>
|
||||
$string['php52versionerror'] = 'PHP는 최소한 5.2.4 이상이어야 합니다.';
|
||||
$string['php52versionhelp'] = '<p>무들은 최소한 PHP 5.2.4 이상을 요구합니다..</p>
|
||||
<p>현재 구동되고 있는 판은 $a 입니다.</p>
|
||||
<p>PHP를 판올림하던가 새 판을 지원하는 호스트로 이전해야 합니다!</p>';
|
||||
$string['phpversion'] = 'php버젼';
|
||||
@@ -327,7 +327,7 @@ $string['safemodeerror'] = '아마 안전모드(Safe Mode)가 작동되어서
|
||||
$string['safemodehelp'] = '<p>무들은 safe mode on 상태에서는 작동이 원활하지 않을 텐데, 아마 그 중 하나가 새로운 파일을 못 만들게 하는 문제일 것입니다.</p>
|
||||
<p>Safe mode는 일단의 보안 편집증적인 웹호스트에서 이를 켜 놓을 것인데, 무들 사이트를 원활히 운용하기 위해서는 새로운 웹호스트를 찾아보시는 편이 나을 겁니다.</p>
|
||||
<p>원한다면 설치는 계속할 수는 있는데, 나중에 문제에 봉착할 것이라는 점을 염두에 두기 바랍니다.</p>';
|
||||
$string['selectlanguage'] = '/n/n 설치를 위한 언어 선택 /n/n';
|
||||
$string['selectlanguage'] = '설치를 위한 언어 선택';
|
||||
$string['serverchecks'] = '서버 점검';
|
||||
$string['sessionautostart'] = '세션 자동 시작';
|
||||
$string['sessionautostarterror'] = '이것은 꺼져 있어야(Off) 합니다.';
|
||||
@@ -352,7 +352,7 @@ $string['upgradingactivitymodule'] = '활동 모듈 갱신';
|
||||
$string['upgradingbackupdb'] = '백업 데이터베이스 갱신';
|
||||
$string['upgradingblocksdb'] = '블럭 데이터베이스 갱신';
|
||||
$string['upgradingblocksplugin'] = '블럭 플러그인 갱신';
|
||||
$string['upgradingcompleted'] = '갱신 완료 /n';
|
||||
$string['upgradingcompleted'] = '갱신 완료 ...';
|
||||
$string['upgradingcourseformatplugin'] = '강좌 포맷 플러그인 갱신';
|
||||
$string['upgradingenrolplugin'] = '출석 플러그인 갱신';
|
||||
$string['upgradinggradeexportplugin'] = '성적 내보내기 플러그인 갱신';
|
||||
@@ -398,9 +398,9 @@ $string['welcomep30'] = '<strong>$a->installername</strong> 의 이 릴리스는
|
||||
$string['welcomep40'] = '이 패키지는 <strong>무들 $a->moodlerelease ($a->moodleversion)</strong> 을 포함하고 있습니다.';
|
||||
$string['welcomep50'] = '이 패키지에 있는 모든 어플리케이션을 사용하는 것은 각각의 라이센스에의해 지배받습니다. 완전한<strong>$a->installername</strong> 패키지는
|
||||
<a href=\"http://www.opensource.org/docs/definition_plain.html\">공개 소스이며 </a> <a href=\"http://www.gnu.org/copyleft/gpl.html\">GPL</a> 라이선스에 의해 배포됩니다.';
|
||||
$string['welcomep60'] = '다음 페이지들은 당신의 컴퓨터에 <strong>무들</strong>을 설정하고 설치하는데 따라하기 쉬운 방법으로 당신을 안내할 것입니다. 당신은 기본 설정을 선택하거나 당신의 목적에 맞게 선택적으로 수정할 수 있습니다.';
|
||||
$string['welcomep60'] = '다음 페이지들은 당신의 컴퓨터에 <strong>무들</strong>을 설정하고 설치하는 길라잡이 역할을 할 것입니다. 기본 설정을 선택하거나 목적에 맞게 선택적으로 수정할 수 있습니다.';
|
||||
$string['welcomep70'] = '<strong>무들</strong> 설정을 계속하기 위해서는 \"다음\" 버튼을 클릭하세요.';
|
||||
$string['welcometext'] = '/n/n --무들 설치를 위한 명령입력 모드입니다-- /n/n';
|
||||
$string['welcometext'] = '--무들 설치를 위한 명령입력 모드입니다--';
|
||||
$string['writetoconfigfilefaild'] = '오류 : 설정 파일 쓰기 실패';
|
||||
$string['wrongdestpath'] = '잘못된 목적 경로';
|
||||
$string['wrongsourcebase'] = '잘못된 소스 URL 베이스';
|
||||
@@ -408,5 +408,6 @@ $string['wrongzipfilename'] = '잘못된 ZIP 파일명';
|
||||
$string['wwwroot'] = '웹 주소';
|
||||
$string['wwwrooterror'] = '이 웹 주소는 유효한 것 같지 않습니다 - 무들 설치 프로그램이 거기에 없습니다.';
|
||||
$string['xmlrpcrecommended'] = '추가적인 xmlrpc 확장 설치는 무들 네트웍이 제대로 작동하는 데 쓸모가 있습니다.';
|
||||
$string['yourchoice'] = '/n 선택 :';
|
||||
$string['yourchoice'] = '선택 :';
|
||||
$string['ziprequired'] = '더 이상 info-ZIP 이나 PclZip 라이브러리가 사용되지 않으므로 Zip PHP확장자가 필요합니다.';
|
||||
?>
|
||||
|
||||
@@ -271,7 +271,7 @@ $string['memorylimithelp'] = '<p>Pašlaik iestatītais PHP atmiņas apjoma ierob
|
||||
(atverot šīs lapas, tiks parādīti kļūdas ziņojumi), un fails .htaccess būs jānoņem.</p></li>
|
||||
</ol>';
|
||||
$string['missingrequiredfield'] = 'Trūkst kāda nepieciešamā lauka';
|
||||
$string['moodledocslink'] = 'Šai lapai paredzētie Moodle dokumenti';
|
||||
$string['moodledocslink'] = 'Šīs lapas Moodle dokumenti';
|
||||
$string['mssql'] = 'SQL*Server (mssql)';
|
||||
$string['mssql_n'] = 'SQL*Server ar UTF-8 atbalstu (mssql_n)';
|
||||
$string['mssqlextensionisnotpresentinphp'] = 'PHP ar paplašinājumu MSSQL nav pareizi konfigurēta un nevar sazināties ar SQL*Server. Lūdzu, pārbaudiet php.ini failu vai atkārtoti kompilējiet PHP.';
|
||||
|
||||
@@ -58,6 +58,7 @@ $string['creatingconfigfile'] = 'Aanmaken configuratiebestand ...';
|
||||
$string['ctyperecommended'] = 'Het installeren van de optionele ctype PHP extentie is aanbevolen om de performantie van de site te verhogen, vooral als op je site niet-latijnse talen gebruikt worden.';
|
||||
$string['ctyperequired'] = 'De ctype PHP-extentie is nu vereist in Moodle om de performantie te verhogen en om multi-talencompatibiliteit mogelijk te maken.';
|
||||
$string['curlrecommended'] = 'Het installeren van de optionele Curl bibliotheek wordt ten zeerste aangeraden om de netwerkmogelijkheden van Moodle in te schakelen';
|
||||
$string['curlrequired'] = 'De cURL PHP-extentie is nu vereist in Moodle om te kunnen communiceren met Moodle bewaarplaats';
|
||||
$string['customcheck'] = 'Andere controles';
|
||||
$string['database'] = 'Databank';
|
||||
$string['databasecreationsettings'] = 'Nu moet je de databank configureren waar de meeste gegevens van Moodle bewaard zullen worden. Deze databank zal automatisch gecreëerd worden door de Moodle4Windows installatietechnologie met de onderstaande instellingen.<br />
|
||||
@@ -296,8 +297,8 @@ $string['pass'] = 'OK';
|
||||
$string['password'] = 'Wachtwoord';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'PHP is niet juist geïnstalleerd met de PGSQL-extentie en kan niet communiceren met PostgreSQL. Controleer je php.ini-bestand of hercompileer PHP.';
|
||||
$string['php50restricted'] = 'PHP 5.0.x heeft een heel aantal bekende problemen. Upgrade naar 5.1.x of downgrade naar 4.3.x of 4.4.x';
|
||||
$string['php52versionerror'] = 'PHP versie moet minstens 5.2.0 zijn';
|
||||
$string['php52versionhelp'] = '<p>Moodle vereist minstens PHP versie 5.2.0.</p>
|
||||
$string['php52versionerror'] = 'PHP versie moet minstens 5.2.4 zijn';
|
||||
$string['php52versionhelp'] = '<p>Moodle vereist minstens PHP versie 5.2.4.</p>
|
||||
<p>Op dit moment heb je versie $a geïnstalleerd</p>
|
||||
<p>Je moet PHP upgraden of verhuizen naar een host met een nieuwere PHP-versie!</p>';
|
||||
$string['phpversion'] = 'PHP-versie';
|
||||
@@ -407,4 +408,5 @@ $string['wwwroot'] = 'Web adres';
|
||||
$string['wwwrooterror'] = 'Het webadres lijkt niet geldig te zijn - deze Moodle-installatie is blijkbaar niet op die plaats.';
|
||||
$string['xmlrpcrecommended'] = 'Het installeren van de optionele XMLRPC-extentie is nuttig voor de werking van Moodle Netwerk';
|
||||
$string['yourchoice'] = 'Jouw keuze:';
|
||||
$string['ziprequired'] = 'De ZIP-PHP-extentie is nu vereist voor Moodle. Info-ZIP en PclZip worden niet meer gebruikt.';
|
||||
?>
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
$string['admindirerror'] = 'O diretório admin indicado não é correto';
|
||||
$string['admindirname'] = 'Diretório Admin';
|
||||
$string['admindirsetting'] = 'Alguns provedores usam /admin como uma URL especial para o acesso ao painel de administração do site. Infelizmente isto entra em conflito com o percurso de acesso predefinido para as páginas de administração do Moodle. Você pode superar este problema mudando o nome do diretório de administração da sua instalação e inserindo este nome aqui. Por exemplo:
|
||||
<br/> <br /><b>moodleadmin</b><br /> <br />
|
||||
Isto resolve os problemas dos links da página de administração de Moodle ';
|
||||
<br/> <br /><b>moodleadmin</b><br /> <br />Isto resolve os problemas dos links da página de administração de Moodle';
|
||||
$string['admindirsettinghead'] = 'Criando o diretório admin ...';
|
||||
$string['admindirsettingsub'] = 'Alguns serviços de hospedagem de sites web usam /admin como URL especial para acessar o painel de controle. Isto cria conflitos com os diretórios das páginas de administração de Moodle. para resolver este problema é necessário mudar o nome do diretório admin da sua instalação, e indicar este nome aqui. Por exemplo: <br /> <br /><b>moodleadmin</b><br /> <br />
|
||||
Isto resolve os eventuais problemas com links do painel de administração de Moodle.';
|
||||
@@ -43,6 +42,10 @@ $string['configurationcomplete'] = 'Configuração completada';
|
||||
$string['configurationcompletehead'] = 'Configuração completada';
|
||||
$string['configurationcompletesub'] = 'Moodle tentou salvar a sua configuração em um arquivo na área principal (root) da sua instalação do Moodle';
|
||||
$string['continue'] = 'Continuar';
|
||||
$string['ctyperecommended'] = 'Instalar a extensão ctype opcional do PHP para melhorar a performance do site, especialmente se são utilizados idiomas não latinos';
|
||||
$string['ctyperequired'] = 'A extensão ctype do PHP ´necessária para melhorar a performance e a compatibilidade com funcionalidades multi-lingua.';
|
||||
$string['curlrecommended'] = 'Instalar a biblioteca opcional cURL é altamente recomendável para permitir a ativação de Redes Moodle';
|
||||
$string['customcheck'] = 'Outros controles';
|
||||
$string['database'] = 'Base de dados';
|
||||
$string['databasecreationsettings'] = 'Agora é necessário configurar a base de dados que vai arquivar os dados do Moodle. Esta base de dados vai ser criada automaticamente pelo instalador Moodle4Windows com as opções definidas abaixo.<br />
|
||||
<br /> <br />
|
||||
@@ -74,8 +77,52 @@ $string['databasesettingssub'] = '<b>Tipo:</b> mysql ou postgres7<br />
|
||||
<b>Usuário:</b> nome de usuário da base de dados<br />
|
||||
<b>Senha:</b> senha da base de dados<br />
|
||||
<b>Prefixo das tabelas:</b> prefixo opcional a ser utilizado no nome das tabelas';
|
||||
$string['databasesettingssub_mssql'] = '<b>Tipo:</b> Servidor SQL (não UTF-8) <b><font color=\"red\">Experimental! (não deve ser usado em produção)</font></b><br />
|
||||
<b>Host:</b> ex. localhost ou db.isp.com<br />
|
||||
<b>Nome:</b> nome da base de dados, ex. moodle<br />
|
||||
<b>Usuário:</b> nome de usuário da base de dados<br />
|
||||
<b>Senha:</b> senha da base de dados<br />
|
||||
<b>Prefixo das tabelas:</b> prefixo a ser utilizado no nome das tabelas (obrigatório)';
|
||||
$string['databasesettingssub_mssql_n'] = '<b>Tipo:</b> Servidor SQL (UTF-8 habilitado)<br />
|
||||
<b>Host:</b> ex. localhost ou db.isp.com<br />
|
||||
<b>Nome:</b> nome da base de dados, ex. moodle<br />
|
||||
<b>Usuário:</b> nome de usuário da base de dados<br />
|
||||
<b>Senha:</b> senha da base de dados<br />
|
||||
<b>Prefixo das tabelas:</b> prefixo a ser utilizado no nome das tabelas (obrigatório)';
|
||||
$string['databasesettingssub_mysql'] = '<b>Tipo:</b> MySQL <br />
|
||||
<b>Host:</b> ex. localhost ou db.isp.com<br />
|
||||
<b>Nome:</b> nome da base de dados, ex. moodle<br />
|
||||
<b>Usuário:</b> nome de usuário da base de dados<br />
|
||||
<b>Senha:</b> senha da base de dados<br />
|
||||
<b>Prefixo das tabelas:</b> prefixo a ser utilizado no nome das tabelas (opcional)';
|
||||
$string['databasesettingssub_mysqli'] = '<b>Tipo:</b> MySQL aperfeiçoado <br />
|
||||
<b>Host:</b> ex. localhost ou db.isp.com<br />
|
||||
<b>Nome:</b> nome da base de dados, ex. moodle<br />
|
||||
<b>Usuário:</b> nome de usuário da base de dados<br />
|
||||
<b>Senha:</b> senha da base de dados<br />
|
||||
<b>Prefixo das tabelas:</b> prefixo a ser utilizado no nome das tabelas (opcional)';
|
||||
$string['databasesettingssub_oci8po'] = '<b>Tipo:</b> Oracle<br />
|
||||
<b>Host:</b> não é utilizado, deve ser deixado em branco<br />
|
||||
<b>Nome:</b> nome da conexão tnsnames.ora<br />
|
||||
<b>Usuário:</b> nome de usuário da base de dados<br />
|
||||
<b>Senha:</b> senha da base de dados<br />
|
||||
<b>Prefixo das tabelas:</b> prefixo a ser utilizado no nome das tabelas (opcional)';
|
||||
$string['databasesettingssub_odbc_mssql'] = '<b>Tipo:</b> Servidor SQL (em ODBC) <b><font color=\"red\">Experimental! (não use em produção)</font></b><br/>
|
||||
<b>Host:</b> nome do DSN no painel de controle do ODBC<br/>
|
||||
<b>Nome:</b> nome da base de dados, ex. moodle<br />
|
||||
<b>Usuário:</b> nome de usuário da base de dados<br />
|
||||
<b>Senha:</b> senha da base de dados<br />
|
||||
<b>Prefixo das tabelas:</b> prefixo a ser utilizado no nome das tabelas (obrigatório)';
|
||||
$string['databasesettingssub_postgres7'] = '<b>Tipo:</b> PostgreSQL <br />
|
||||
<b>Host:</b> ex. localhost ou db.isp.com<br />
|
||||
<b>Nome:</b> nome da base de dados, ex. moodle<br />
|
||||
<b>Usuário:</b> nome de usuário da base de dados<br />
|
||||
<b>Senha:</b> senha da base de dados<br />
|
||||
<b>Prefixo das tabelas:</b> prefixo a ser utilizado no nome das tabelas (obrigatório)';
|
||||
$string['databasesettingswillbecreated'] = '<b>Nota:</b> O instalador tentará criar o banco de dados automaticamente se não existir.';
|
||||
$string['dataroot'] = 'Diretório Data';
|
||||
$string['datarooterror'] = 'O \'Diretório Data\' indicado não foi encontrado e não foi possível criar um novo diretório. Corrija a indicação do percurso ou crie o diretório manualmente.';
|
||||
$string['datarootpublicerror'] = 'O diretório de dados que você indicou é acessível no web, è melhor escolher um outro diretório.';
|
||||
$string['dbconnectionerror'] = 'Não foi possível fazer a conexão com a base de dados indicada. Controle as configurações da base de dados.';
|
||||
$string['dbcreationerror'] = 'Erro de ciação de base de dados. Não foi possível criar o nome da base de dados indicado com os parâmetros fornecidos.';
|
||||
$string['dbhost'] = 'Servidor hospedeiro';
|
||||
@@ -83,6 +130,9 @@ $string['dbpass'] = 'Senha';
|
||||
$string['dbprefix'] = 'Prefixo das tabelas';
|
||||
$string['dbtype'] = 'Tipo';
|
||||
$string['dbwrongencoding'] = 'A base de dados selecionada usa uma codificação que não é recomendável($a). É melhor usar uma codificação Unicode (UTF-8). Você pode saltar este teste clicando \"Saltar teste de codificação da base de dados\", mas é possível que se apresentem problemas no futuro.';
|
||||
$string['dbwronghostserver'] = 'Você deve seguir regras de host como explicado acima.';
|
||||
$string['dbwrongnlslang'] = 'A variável de ambiente NLS_LANG em seu servidor web deve usar o conjunto de caracteres AL32UTF8. Veja a documentação do PHP sobre como configurar OCI8.';
|
||||
$string['dbwrongprefix'] = 'Você deve seguir regras de prefixos de tabela como explicado acima.';
|
||||
$string['directorysettings'] = '<p>Por favor confirme os endereços desta instalação.</p>
|
||||
|
||||
<p><b>Endereço Web:</b>
|
||||
@@ -103,7 +153,7 @@ Especifique o percurso completo de acesso ao diretório de instalação. Atenç
|
||||
<br />
|
||||
<br />
|
||||
<b>Diretório de dados:</b>
|
||||
Especifique um diretório para que o Moodle possa salvar arquivos carregados no servidor. Este diretório deve ter permissões de leitura e escritura pelo usuário do servidor web (normalmente \'nobody\' ou \'apache\'), mas não deve ter acesso livre via web.';
|
||||
Especifique um diretório para que o Moodle possa salvar arquivos carregados no servidor. Este diretório deve ter permissões de leitura e escrita pelo usuário do servidor web (normalmente \'nobody\' ou \'apache\'), mas não deve ter acesso livre via web.';
|
||||
$string['dirroot'] = 'Diretório Moodle';
|
||||
$string['dirrooterror'] = 'A configuração do percurso de acesso ao Diretório Moodle parece errada - não foi possível encontrar uma instalação de Moodle neste endereço. O valor abaixo foi reconfigurado.';
|
||||
$string['download'] = 'Download';
|
||||
@@ -115,8 +165,10 @@ $string['downloadlanguagesub'] = 'Você pode indicar um idioma a ser instalado p
|
||||
$string['doyouagree'] = 'Você leu e entendeu estas cláusulas?';
|
||||
$string['environmenterrortodo'] = 'Você deve resolver os problemas indicados acima antes de instalar esta versão de Moodle.';
|
||||
$string['environmenthead'] = 'Verificando o ambiente ...';
|
||||
$string['environmentrecommendinstall'] = 'é recomendado como instalado/habilitado';
|
||||
$string['environmentrecommendcustomcheck'] = 'Se esse teste falhar, será indício de um possível problema';
|
||||
$string['environmentrecommendinstall'] = 'recomendado como instalado/habilitado';
|
||||
$string['environmentrecommendversion'] = 'a versão $a->needed é recomendada e você está usando a versão $a->current';
|
||||
$string['environmentrequirecustomcheck'] = 'Este teste deve funcionar';
|
||||
$string['environmentrequireinstall'] = 'deve ser instalado/habilitado';
|
||||
$string['environmentrequireversion'] = 'a versão $a->needed é necessária e você está usando a versão $a->current';
|
||||
$string['environmentsub'] = 'Verificando se componentes do seu sistema são compatíveis com os requisitos de sistema';
|
||||
@@ -132,7 +184,7 @@ $string['fileuploadshelp'] = '<p>Parece que o envio de documentos a este servido
|
||||
$string['gdversion'] = 'Versão do gd';
|
||||
$string['gdversionerror'] = 'A library GD';
|
||||
$string['gdversionhelp'] = '<p>Parece que o seu servidor não tem o GD instalado.</p>
|
||||
<p>GD é uma library de PHP necessária à elaboração de imagens como os fotos do perfil do usuário e os gráficos de estatísticas. O Moodle funciona sem o GD mas a elaboração de imagens não será possível.</p>
|
||||
<p>GD é uma biblioteca de PHP necessária à elaboração de imagens como as fotos do perfil do usuário e os gráficos de estatísticas. O Moodle funciona sem o GD mas a elaboração de imagens não será possível.</p>
|
||||
<p>Para adicionar o GD ao PHP em Unix, compile o PHP usando o parâmetro --with-gd .</p>
|
||||
<p>Em Windows edite php.ini and cancele o comentário à linha que se refere a php_gd2.dll.</p>';
|
||||
$string['globalsquotes'] = 'Tratamento de Globais sem Segurança';
|
||||
@@ -146,13 +198,15 @@ $string['globalsquoteshelp'] = '<p>Não é aconselhável habilitar Register Glob
|
||||
<p>Se você não tem acesso ao seu php.ini, adicione a seguinte linha de código no arquivo .htaccess do diretório principal do seu Moodle:
|
||||
<blockquote>php_value magic_quotes_gpc On</blockquote>
|
||||
<blockquote>php_value register_globals Off</blockquote>
|
||||
</p> ';
|
||||
</p>';
|
||||
$string['globalswarning'] = '<p><strong>Aviso de segurança</strong>: para operar propriamente, Moodle requer <br /> que você faça certas mudanças nas configurações atuais do seu PHP.<p/><p>Você <em>deve</em> ajustar<code>register_globals=off</code>.<p>Essa configuração é controlada editando a configuração de <code>php.ini</code>, Apache/IIS <br /> ou <code>.htaccess</code> file.</p>';
|
||||
$string['help'] = 'Ajuda';
|
||||
$string['iconvrecommended'] = 'Instalar ICONV library é altamente recomendável para aumentar a performance do site, especialmente quando o site suporta o uso de idiomas não-latinos';
|
||||
$string['info'] = 'Informação';
|
||||
$string['installation'] = 'Instalação';
|
||||
$string['invalidemail'] = 'Endereço de email inválido';
|
||||
$string['invalidmd5'] = 'md5 inválido';
|
||||
$string['invalidurl'] = 'Url inválida';
|
||||
$string['langdownloaderror'] = 'Infelizmente o idioma \"$a\" não foi instalado. A instalação vai continuar em Inglês.';
|
||||
$string['langdownloadok'] = 'Idioma \"$a\" instalado com sucesso. O processo de instalação vai continuar neste idioma.';
|
||||
$string['language'] = 'Idioma';
|
||||
@@ -160,11 +214,11 @@ $string['magicquotesruntime'] = 'Magic Quotes Run Time';
|
||||
$string['magicquotesruntimeerror'] = 'Isto deveria estar desativado';
|
||||
$string['magicquotesruntimehelp'] = '<p> A runtime Magic Quotes deve ser desativada para que Moodle funcione corretamente.</p>
|
||||
|
||||
<p>Normalmente esta runtime já é desativada ... controle o parâmetro <b>magic_quotes_runtime</b> no seu arquivo php.ini .</p>
|
||||
<p>Normalmente esta runtime já é desativada... controle o parâmetro <b>magic_quotes_runtime</b> no seu arquivo php.ini .</p>
|
||||
|
||||
<p>Se você não tem acesso ao arquivo php.ini , adicione a seguinte linha no código de um arquivo chamado .htaccess no diretório Moodle:
|
||||
<blockquote>php_value magic_quotes_runtime Off</blockquote>
|
||||
</p> ';
|
||||
</p>';
|
||||
$string['mbstringrecommended'] = 'A instalação da MBSTRING library é altamente recomendável para melhorar a performanse do site, especialmente se o seu site suporta idiomas não-latinos.';
|
||||
$string['memorylimit'] = 'Limite de Memória';
|
||||
$string['memorylimiterror'] = 'A configuração do limite da memória do PHP está muito baixa ... isto pode causar problemas no futuro.';
|
||||
@@ -180,25 +234,41 @@ Com esta operação Moodle será capaz de configurar o limite de memória sózin
|
||||
<li>Em alguns servidores é possível fazer esta mudança criando um arquivo .htaccess no diretório Moodle. O arquivo deve conter a seguinte expressão:
|
||||
<p><blockquote>php_value memory_limit 40M</blockquote></p>
|
||||
<p>Alguns servidores não aceitam este procedimento e <b>todas</b> as páginas PHP do servidor ficam bloqueadas ou imprimem mensagens de erro. Neste caso será necessário cancelar o arquivo .htaccess .</p>
|
||||
</li></ol> ';
|
||||
</li></ol>';
|
||||
$string['missingrequiredfield'] = 'Faltam informações obrigatórias';
|
||||
$string['moodledocslink'] = 'Documentação de Moodle relativa a esta página';
|
||||
$string['mssql'] = 'Servidor SQL (mssql)';
|
||||
$string['mssql_n'] = 'Servidor SQL com suporte a UTF-8 (mssql_n)';
|
||||
$string['mssqlextensionisnotpresentinphp'] = 'O PHP não foi configurado corretamente com a extensão MSSQL para que possa se comunicar com o servidor SQL. Por favor, verifique o seu arquivo php.ini ou faça a recompilação do PHP.';
|
||||
$string['mysql'] = 'MySQL (mysql)';
|
||||
$string['mysql416bypassed'] = 'Entretanto, se o seu site usa apenas idiomas iso-8859-1 (latin), você pode continuar a usar a sua base de dados atual MySQL 4.1.12 (ou superior).';
|
||||
$string['mysql416required'] = 'MySQL 4.1.16 é a versão mínima necessária para ainstalação de Moodle 1.6 em modo que os daados possam ser convertidos para UTF-8.';
|
||||
$string['mysqlextensionisnotpresentinphp'] = 'O PHP não foi configurado corretamente com a extensão MySQL e não pode comunicar com a base de dados. Controle o seu php.ini ou faça a recompilação do PHP.';
|
||||
$string['mysql416required'] = 'MySQL 4.1.16 é a versão mínima necessária para ainstalação de Moodle 1.6 em modo que os dados possam ser convertidos para UTF-8.';
|
||||
$string['mysqlextensionisnotpresentinphp'] = 'O PHP não foi configurado corretamente com a extensão MySQL para que possa se comunicar com MySQL. Por favor, verifique o seu arquivo php.ini ou faça a recompilação do PHP.';
|
||||
$string['mysqli'] = 'MySQL aperfeiçoado (mysqli)';
|
||||
$string['mysqliextensionisnotpresentinphp'] = 'O PHP não foi configurado corretamente com a extensão MySQLi para que possa se comunicar com MySQL. Por favor, verifique o seu arquivo php.ini ou faça a recompilação do PHP. A extensão MySQL não está disponível para PHP 4.';
|
||||
$string['name'] = 'Nome';
|
||||
$string['next'] = 'Próximo';
|
||||
$string['oci8po'] = 'Oracle (oci8po)';
|
||||
$string['ociextensionisnotpresentinphp'] = 'O PHP não foi configurado corretamente com a extensão OCI8 para que possa se comunicar com Oracle. Por favor, verifique o seu arquivo php.ini ou faça a recompilação do PHP.';
|
||||
$string['odbc_mssql'] = 'Servidor SQL em ODBC (odbc_mssql)';
|
||||
$string['odbcextensionisnotpresentinphp'] = 'O PHP não foi configurado corretamente com a extensão ODBC para que possa se comunicar com o servidor SQL. Por favor, verifique o seu arquivo php.ini ou faça a recompilação do PHP.';
|
||||
$string['ok'] = 'OK';
|
||||
$string['opensslrecommended'] = 'É altamente recomendável a instalação da biblioteca OpenSSL, que é opcional, isto permite a funcionalidade Moodle em Rede.';
|
||||
$string['pass'] = 'OK';
|
||||
$string['password'] = 'Senha';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'O PHP não foi configurado corretamente com a extensão PGSQL para que possa se comunicar com PstgreSQL. Por favor, verifique o seu arquivo php.ini ou faça a recompilação do PHP.';
|
||||
$string['php50restricted'] = 'O PHP 5.0.x apresenta muitos problemas conhecidos, faça o upgrade para a versão 5.1.x ou faça o downgrade para a versão 4.3.x ou 4.4.x';
|
||||
$string['phpversion'] = 'Versão do PHP';
|
||||
$string['phpversionerror'] = 'A versão do PHP não deve ser inferior a 4.1.0';
|
||||
$string['phpversionhelp'] = '<p>Moodle requer a versão 4.1.0 de PHP ou posterior.</p>
|
||||
<p>A sua versão é $a</p>
|
||||
<p>Atualize a versão do PHP!</p>';
|
||||
$string['postgres7'] = '<p>Moodle requer a versão 4.1.0 de PHP ou posterior.</p> <p>A sua versão é $a</p> <p>Atualize a versão do PHP!</p> PostgreSQL (postgres7)';
|
||||
$string['previous'] = 'Anterior';
|
||||
$string['qtyperqpwillberemoved'] = 'Durante a migração, o tipo de questão RQP será removido. Como você não estava usando este tipo de questão então não terá problemas.';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'Durante a migração, as questões do tipo RQP serão removidas. Você tem algumas questões RQP no seu banco de dados e elas não funcionarão a menos que você reinstale o código de http://moodle.org/mod/data/view.php?d=13&rid=797 antes de continuar a migração.';
|
||||
$string['releasenoteslink'] = 'Para obter informações sobre esta versão de Moodle, por favor visite a página <a target=\"_new\" href=\"$a\">Release Notes</a>';
|
||||
$string['remotedownloaderror'] = 'O download do componente falhou, por favor verifique as configurações do proxy. A extensão cURL do PHP é altamente recomendada.<br /><br />Você precisar baixar o <a href=\"$a->url\">arquivo</a> manualmente, copiar para \"$a->dest\" e descompactar lá.';
|
||||
$string['remotedownloadnotallowed'] = 'Não é permitido baixar componentes no seu servidor (allow_url_fopen está desabilitado).).<br /><br />Você deve baixar o arquivo <a href=\"$a->url\">$a->url</a> manualmente, copiar em \"$a->dest\" no seu servidor e descomprimir o arquivo nesta posição.';
|
||||
$string['report'] = 'Relatório';
|
||||
$string['restricted'] = 'Restringido';
|
||||
@@ -207,22 +277,24 @@ $string['safemodeerror'] = 'Moodle pode ter problemas se a modalidade segura est
|
||||
$string['safemodehelp'] = '<p>Moodle pode ter alguns problemas quando o safe mode está ativado. Provavelmente não será possível criar novos arquivos.</p>
|
||||
<p>O safe mode normalmente é ativado apenas por serviços de web hosting públicos paranóicos por segurança, é possível que você tenha que escolher um outro serviço de webhosting para o seu site.</p>
|
||||
<p>Você pode continuar a instalação mas provavelmente outros problemas surgirão.</p>';
|
||||
$string['serverchecks'] = 'Verificações do servidor';
|
||||
$string['sessionautostart'] = 'Início da sessão automático';
|
||||
$string['sessionautostarterror'] = 'Isto deve estar ativado';
|
||||
$string['sessionautostarthelp'] = '<p>Moodle requer o suporte a sessões e não funciona sem isto.</p>
|
||||
|
||||
<p>As sessões podem se habilitadas no arquivo php.ini ... controle o parâmetro session.auto_start .</p>';
|
||||
$string['skipdbencodingtest'] = 'Saltar Teste de Codificação da Base de Dados';
|
||||
$string['status'] = 'Status';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thislanguage'] = 'Português - Brasil';
|
||||
$string['unicoderecommended'] = 'É recomendado que todos os dados sejam armazenados em Unicode (UTF-8). Instalações novas devem ser construídas em banco de dados que tenham o seu conjunto de caracteres padrão em Unicode. Se você está migrando, você deverá executar o processo de migração para o UTF-8. (veja a página do Admin)';
|
||||
$string['unicoderequired'] = 'É obrigatório que você guarde todos os seus dados no formato Unicode (UTF-8). Instalações novas devem ser construidas em banco de dados que tenham o seu conjunto de caracteres padrão em Unicode. Se você está migrando, você deverá executar o processo de migração para o UTF-8. (veja a página do Admin)';
|
||||
$string['user'] = 'Usuário';
|
||||
$string['welcomep10'] = '$a->installername ($a->installerversion)';
|
||||
$string['welcomep20'] = 'Se você chegou nesta página, o pacote <strong>$a->packname $a->packversion</strong> foi instalado. Parabéns!';
|
||||
$string['welcomep30'] = 'Esta versão do <strong>$a->installername</strong> inclui as aplicações para a criação de um ambiente em que <strong>Moodle</strong> possa operar:';
|
||||
$string['welcomep40'] = 'O pacote inclui também o <strong>Moodle $a->moodlerelease ($a->moodleversion)</strong>.';
|
||||
$string['welcomep50'] = 'O uso das aplicações incluídas neste pacote é regulamentado pelas respectivas licenças. O instaldor completo <strong>$a->installername</strong> é <a href=\"http://www.opensource.org/docs/definition_plain.html\">open source</a> e é distribuído com uma licença <a href=\"http://www.gnu.org/copyleft/gpl.html\">GPL</a>.';
|
||||
$string['welcomep50'] = 'O uso das aplicações incluídas neste pacote é regulamentado pelas respectivas licenças. O instalador completo <strong>$a->installername</strong> é <a href=\"http://www.opensource.org/docs/definition_plain.html\">open source</a> e é distribuído com uma licença <a href=\"http://www.gnu.org/copyleft/gpl.html\">GPL</a>.';
|
||||
$string['welcomep60'] = 'As seguinte páginas guiam passo a passo a configuração de <strong>Moodle</strong> no seu computador. Você pode usar a configuração padrão ou alterá-las de acordo com as suas necessidades.';
|
||||
$string['welcomep70'] = 'Clicar o botão \"Próxima\" abaixo para continuar a configuração de <strong>Moodle</strong>.';
|
||||
$string['wrongdestpath'] = 'Percurso do destino errado';
|
||||
@@ -230,4 +302,6 @@ $string['wrongsourcebase'] = 'URL do recurso errado';
|
||||
$string['wrongzipfilename'] = 'Nome do arquivo ZIP errado';
|
||||
$string['wwwroot'] = 'Endereço web';
|
||||
$string['wwwrooterror'] = 'Este endereço web não está correto - a instalação do Moodle não foi encontrada.';
|
||||
$string['xmlrpcrecommended'] = 'Instalar a extensão opcional xmlrpc é útil para a funcionalidade Moodle Networking.';
|
||||
$string['ziprequired'] = 'A extensão Zip do PHP é necessária. Binários infoZIP ou PclZip não são mais utilizados.';
|
||||
?>
|
||||
|
||||
@@ -43,6 +43,8 @@ $string['configurationcomplete'] = 'Konfigurácia ukončená';
|
||||
$string['configurationcompletehead'] = 'Konfigurácia ukončená';
|
||||
$string['configurationcompletesub'] = 'Moodle sa pokúsil uložiť súbor s konfiguráciou do koreňového adresára inštalácie Moodle.';
|
||||
$string['continue'] = 'Pokračovať';
|
||||
$string['ctyperecommended'] = 'Pre zlepšenie výkonu na portáli (najmä pre nie latinkové jazyky) je doporučené nainštalovať voliteľnú knižnicu ctype.';
|
||||
$string['ctyperequired'] = 'Voliteľná knižnica ctype je vyžadovaná v Moodle na zlepšenie výkonu na portáli a podporu kompatibility viacerých jazykov.';
|
||||
$string['curlrecommended'] = 'Pre beh sieťových funkcionalít (\"Moodle Networking\") je treba nainštalovať voliteľnú knižnicu Curl.';
|
||||
$string['customcheck'] = 'Ostatné kontroly';
|
||||
$string['database'] = 'Databáza';
|
||||
@@ -93,6 +95,12 @@ $string['databasesettingssub_mysql'] = '<b>Typ:</b> MySQL<br />
|
||||
<b>Používateľ (User):</b> používateľ oprávnený pre prácu s databázou<br />
|
||||
<b>Heslo (Password):</b> heslo pre používateľa<br />
|
||||
<b>Predpona (Tables Prefix):</b> jednotná predpona názvov všetkých tabuliek, napr. mdl_ (povinné)';
|
||||
$string['databasesettingssub_mysqli'] = '<b>Typ:</b> Vylepšené MySQL<br />
|
||||
<b>Hostiteľ (Host):</b> eg localhost alebo db.isp.com<br />
|
||||
<b>Názov (Name):</b> názov databázy, napr. moodle<br />
|
||||
<b>Používateľ (User):</b> používateľ oprávnený pre prácu s databázou<br />
|
||||
<b>Heslo (Password):</b> heslo pre používateľa<br />
|
||||
<b>Predpona (Tables Prefix):</b> jednotná predpona názvov všetkých tabuliek, napr. mdl_ (voliteľné)';
|
||||
$string['databasesettingssub_oci8po'] = '<b>Typ:</b> Oracle<br />
|
||||
<b>Hostitel (Host):</b> nepoužité, musí být prázdne<br />
|
||||
<b>Názov (Name):</b> daný názov pripojenia tnsnames.ora<br />
|
||||
@@ -111,8 +119,10 @@ $string['databasesettingssub_postgres7'] = '<b>Typ:</b> PostgreSQL<br />
|
||||
<b>Používateľ (User):</b> používateľ oprávnený pre prácu s databázou<br />
|
||||
<b>Heslo (Password):</b> heslo pre používateľa<br />
|
||||
<b>Predpona (Tables Prefix):</b> jednotná predpona názvov všetkých tabuliek, napr. mdl_ (povinné)';
|
||||
$string['databasesettingswillbecreated'] = '<b>Poznámka:</b> inštalátor sa pokúsi vytvoriť databázu automaticky, ak neexistuje.';
|
||||
$string['dataroot'] = 'Adresár pre údaje';
|
||||
$string['datarooterror'] = '\'Adresár pre údaje\', ktorý ste zadali, nemôže byť nájdený alebo vytvorený. Upravte buď cestu alebo vytvorte ten adresár ručne.';
|
||||
$string['datarootpublicerror'] = 'Adresár \'data\', ktorý ste zvolili, je priamo dostupný z webu. Musíte zvoliť iný adresár.';
|
||||
$string['dbconnectionerror'] = 'Nemohli sme sa pripojiť k vami zadanej databáze. Prosím skontrolujte nastavenia Vašej databázy.';
|
||||
$string['dbcreationerror'] = 'Chyba pri vytváraní databázy. Ale bolo možné vytvoriť databázu so zadaným menom a jej nastaveniami';
|
||||
$string['dbhost'] = 'Hosťovský server';
|
||||
@@ -195,6 +205,7 @@ $string['info'] = 'Informácie';
|
||||
$string['installation'] = 'Inštalácia';
|
||||
$string['invalidemail'] = 'Neplatná emailová adresa';
|
||||
$string['invalidmd5'] = 'Neplatný MD5 hash';
|
||||
$string['invalidurl'] = 'Neplatný parameter URL.';
|
||||
$string['langdownloaderror'] = 'Bohužiaľ, jazyk \"$a\" sa nepodarilo nainštalovať. Inštalácia bude pokračovať v angličtine.';
|
||||
$string['langdownloadok'] = 'Podarilo so úspešne nainštalovať jazykový balíček \"$a\". Inštalácia bude pokračovať v tomto jazyku.';
|
||||
$string['language'] = 'Jazyk';
|
||||
@@ -230,6 +241,8 @@ $string['mysql'] = 'MySQL (mysql)';
|
||||
$string['mysql416bypassed'] = 'Ak ale vo vašej inštalácii Moodle používate IBA jazyky založené na latinke (iso-8859-1), môžete aj ďalej používať súčasne nainštalovanú verziu MySQL 4.1.12 (alebo vyšší).';
|
||||
$string['mysql416required'] = 'Minimálnou verziou potrebnou pre Moodle 1.6 -- a pre neskorší bezpečný prevod všetkých údajov do UTF-8 -- je MySQL 4.1.16.';
|
||||
$string['mysqlextensionisnotpresentinphp'] = 'PHP nebolo správne nakonfigurované s MySQL rozšírením, a tak nemôže komunikovať s MySQL. Prosím, skontrolujte si Váš php.ini súbor alebo znovu vytvorte PHP.';
|
||||
$string['mysqli'] = 'Vylepšené MySQL (mysqli)';
|
||||
$string['mysqliextensionisnotpresentinphp'] = 'PHP nebolo správne nakonfigurované s rozšírením MySQLi, aby mohlo komunikovať s MySQL. Skontrolujte svoj súbor php.ini alebo prekompilujte PHP. Rozšírenie MySQLi nie je dostupné pre PHP 4.';
|
||||
$string['name'] = 'Meno';
|
||||
$string['next'] = 'Ďalší';
|
||||
$string['oci8po'] = 'Oracle (oci8po)';
|
||||
@@ -250,7 +263,10 @@ $string['phpversionhelp'] = '<p>Moodle si vyžaduje verziu PHP aspoň 4.1.0.</p
|
||||
<p>Musíte obnoviť PHP alebo presunúť na hostiteľský počítač s novou verziou PHP!</p>';
|
||||
$string['postgres7'] = 'PostgreSQL (postgres7)';
|
||||
$string['previous'] = 'Predchádzajúci';
|
||||
$string['qtyperqpwillberemoved'] = 'Počas aktualizácie budú odobrané otázky typu RQP. Nemali ste žiadne také, takže by ste nemali zbadať žiadne problémy.';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'Počas aktualizácie budú odobrané otázky typu RQP. Vo vašej databáze sa otázky takéhoto typu nachádzajú a nebudú fungovať ak nepreinštalujete program z http://moodle.org/mod/data/view.php?d=13&rid=797 predtým, ako budete pokračovať v aktualizácii.';
|
||||
$string['releasenoteslink'] = 'Informácie o tejto verzii Moodle nájdete v <a target=\"_new\" href=\"$a\">Poznámkach k verzii</a>';
|
||||
$string['remotedownloaderror'] = 'Stiahnutie komponentu na server zlyhalo, skontrolujte nastavenia proxy, doporučené je PHP rozšírenie cURL. <br /><br />Musíte stiahnuť súbor <a href=\"$a->url\">$a->url</a> manuálne, skopírovať ho do \"$a->dest\" na serveri a rozzipovať ho tam.';
|
||||
$string['remotedownloadnotallowed'] = 'Nahrávanie komponentov na server nie je povolené (direktíva allow_url_fopen je v stave \'vypnuté\').<br /><br />Musíte súbor stiahnuť <a href=\"$a->url\">$a->url</a> ručne, skopírovať ho na serveri do umiestnenia \"$a->dest\" a tam ho dekomprimovať.';
|
||||
$string['report'] = 'Záznamy';
|
||||
$string['restricted'] = 'Obmedzený';
|
||||
@@ -284,4 +300,5 @@ $string['wrongzipfilename'] = 'Chybné meno súboru ZIP';
|
||||
$string['wwwroot'] = 'Web adresa';
|
||||
$string['wwwrooterror'] = 'Táto web adresa pravdepodobne nie je platná - táto inštalácia Moodle tu pravdepodobne nie je.';
|
||||
$string['xmlrpcrecommended'] = 'Pre beh sieťových funkcionalít (\"Moodle Networking\") je treba nainštalovať voliteľnú knižnicu xlmrpc.';
|
||||
$string['ziprequired'] = 'Moodle v súčasnosti vyžaduje PHP zásuvný modul ZIP. Knižnice info-ZIP alebo PclZip už nie sú používané.';
|
||||
?>
|
||||
|
||||
@@ -25,18 +25,31 @@ $string['admindirsettingsub'] = ' Le redka spletna mesta uporabljajo /admin k
|
||||
novega imena tu. Na primer: <br /> <br /><b>moodleadmin</b><br /> <br />
|
||||
To bo popravilo skrbniške povezave za Moodle.';
|
||||
$string['availablelangs'] = 'Razpoložljivi jezikovni paketi';
|
||||
$string['bypassed'] = 'Preskočeno';
|
||||
$string['cannotcreatelangdir'] = 'Imenika jezika ni možno ustvariti.';
|
||||
$string['cannotcreatetempdir'] = 'Začasnega imenika ni možno ustvariti.';
|
||||
$string['cannotdownloadcomponents'] = 'Komponent ni možno prenesti.';
|
||||
$string['cannotdownloadzipfile'] = 'Datoteke ZIP ni možno prenesti.';
|
||||
$string['cannotfindcomponent'] = 'Komponente ni možno najti.';
|
||||
$string['cannotsavemd5file'] = 'Datoteke MD5 ni možno shraniti.';
|
||||
$string['cannotsavezipfile'] = 'Datoteke ZIP ni možno shraniti.';
|
||||
$string['cannotunzipfile'] = 'Datoteke ni možno razširiti (unzip).';
|
||||
$string['caution'] = 'Pozor';
|
||||
$string['check'] = 'Potrditev';
|
||||
$string['chooselanguage'] = 'Izberite jezik';
|
||||
$string['chooselanguagehead'] = 'Izberite jezik';
|
||||
$string['chooselanguagesub'] = 'Izberite jezika SAMO za namestitev. Pozneje boste lahko izbrali tudi jezike strani in uporabniške jezike.';
|
||||
$string['closewindow'] = 'Zapri to okno';
|
||||
$string['compatibilitysettings'] = 'Preverjanje vaših PHP nastavitev ...';
|
||||
$string['compatibilitysettingshead'] = 'Preverjanje vaših PHP nastavitev ...';
|
||||
$string['compatibilitysettingssub'] = 'Da bi Moodle pravilno deloval, mora vaš strežnik opraviti vse naslednje preizkuse';
|
||||
$string['componentisuptodate'] = 'Komponenta je posodobljena.';
|
||||
$string['configfilenotwritten'] = 'Skripta nameščanja ni mogla samodejno ustvariti datoteke config.php, ki bi vsebovala vaše izbrane nastavitve. Verjetno v Moodle imenik ni možno zapisovanje. Ročno lahko prekopirate sledečo kodo v datoteko z imenom config.php v korenskem imeniku Moodle.';
|
||||
$string['configfilewritten'] = 'datoteka config.php je bila uspešno ustvarjena';
|
||||
$string['configurationcomplete'] = 'Konfiguracija je dokončana';
|
||||
$string['configurationcompletehead'] = 'Konfiguracija je dokončana';
|
||||
$string['configurationcompletesub'] = 'Moodle je poskušal shraniti vašo konfiguracijo v datoteko v korenu vaše namestitve Moodle.';
|
||||
$string['continue'] = 'Nadaljuj';
|
||||
$string['curlrecommended'] = 'Namestitev dodatne cURL knižnice je priporočljivo za omogočanje Moodlovih mrežnih zmogljivosti.';
|
||||
$string['customcheck'] = 'Ostala preverjanja';
|
||||
$string['database'] = 'Podatkovna zbirka';
|
||||
@@ -78,15 +91,51 @@ $string['databasesettingssub'] = '<b>Vrsta:</b> mysql ali postgres7<br />
|
||||
<b>Uporabnik:</b> vaše uporabniško ime podatkovne zbirke<br />
|
||||
<b>Geslo:</b> vaše geslo podatkovne zbirke<br />
|
||||
<b>Predpona tabel:</b> dodatna predpona za vsa imena tabel';
|
||||
$string['databasesettingssub_mssql'] = '<b>Tip:</b> SQL*Server (ne UTF-8) <b><font color=\"red\">Testno! (ni za uporabo na produkcijskem strežniku)</font></b><br />
|
||||
<b>Strežnik:</b> denimo localhost ali db.isp.com<br />
|
||||
<b>Ime:</b> Ime podatkovne zbirke, denimo moodle<br />
|
||||
<b>Uporabnik:</b> Uporabniško ime na podatkovni zbirki<br />
|
||||
<b>Geslo:</b> Geslo za dostop do podatkovne zbirke<br />
|
||||
<b>Predpona imen tabel:</b> Predpona, ki naj jo imajo vse tabele (nujno)';
|
||||
$string['databasesettingssub_mssql_n'] = '<b>Tip:</b> SQL*Server (UTF-8)<br />
|
||||
<b>Strežnik:</b> denimo localhost ali db.isp.com<br />
|
||||
<b>Ime:</b> Ime podatkovne zbirke, denimo moodle<br />
|
||||
<b>Uporabnik:</b> Uporabniško ime na podatkovni zbirki<br />
|
||||
<b>Geslo:</b> Geslo za dostop do podatkovne zbirke<br />
|
||||
<b>Predpona imen tabel:</b> Predpona, ki naj jo imajo vse tabele (nujno)';
|
||||
$string['databasesettingssub_mysql'] = '<b>Tip:</b> MySQL<br />
|
||||
<b>Strežnik:</b> denimo localhost ali db.isp.com<br />
|
||||
<b>Ime:</b> Ime podatkovne zbirke, denimo moodle<br />
|
||||
<b>Uporabnik:</b> Uporabniško ime na podatkovni zbirki<br />
|
||||
<b>Geslo:</b> Geslo za dostop do podatkovne zbirke<br />
|
||||
<b>Predpona imen tabel:</b> Predpona, ki naj jo imajo vse tabele (opcijsko)';
|
||||
$string['databasesettingssub_oci8po'] = '<b>Tip:</b> Oracle<br />
|
||||
<b>Strežnik:</b> ni v uporabi, mora biti prazno<br />
|
||||
<b>Ime:</b> ime povezave tsanems.ora<br />
|
||||
<b>Uporabnik:</b> Uporabniško ime na podatkovni zbirki<br />
|
||||
<b>Geslo:</b> Geslo za dostop do podatkovne zbirke<br />
|
||||
<b>Predpona imen tabel:</b> Predpona, ki naj jo imajo vse tabele (nujno, največ dva znaka)';
|
||||
$string['databasesettingssub_odbc_mssql'] = '<b>Tip:</b> SQL*Server (prek ODBC) <b><font color=\"red\">Testno! (ni za uporabo na produkcijskem strežniku)</font></b><br />
|
||||
<b>Strežnik:</b> ime strežnika, nastavljeno v nadzorni plošči ODBC<br />
|
||||
<b>Ime:</b> Ime podatkovne zbirke, denimo moodle<br />
|
||||
<b>Uporabnik:</b> Uporabniško ime na podatkovni zbirki<br />
|
||||
<b>Geslo:</b> Geslo za dostop do podatkovne zbirke<br />
|
||||
<b>Predpona imen tabel:</b> Predpona, ki naj jo imajo vse tabele (nujno)';
|
||||
$string['databasesettingssub_postgres7'] = '<b>Tip:</b> PostgreSQL<br />
|
||||
<b>Strežnik:</b> denimo localhost ali db.isp.com<br />
|
||||
<b>Ime:</b> Ime podatkovne zbirke, denimo moodle<br />
|
||||
<b>Uporabnik:</b> Uporabniško ime na podatkovni zbirki<br />
|
||||
<b>Geslo:</b> Geslo za dostop do podatkovne zbirke<br />
|
||||
<b>Predpona imen tabel:</b> Predpona, ki naj jo imajo vse tabele (nujno)';
|
||||
$string['dataroot'] = 'Imenik za podatke';
|
||||
$string['datarooterror'] = '\'Imenika za podatke\', ki ste ga navedli ni možno najti ali ustvariti. Bodisi popravite pot ali ustvarite imenik ročno.';
|
||||
$string['datarooterror'] = ''Imenika za podatke', ki ste ga navedli ni možno najti ali ustvariti. Bodisi popravite pot ali ustvarite imenik ročno.';
|
||||
$string['dbconnectionerror'] = 'Povezave ni mogoče vzpostaviti s podatkovno zbirko, ki ste jo navedli. Prosimo, preverite vaše nastavitve podatkovne zbirke.';
|
||||
$string['dbcreationerror'] = 'Napaka ustvarjanja podatkovne zbirke. S podanimi nastavitvami ni možno ustvariti podatkovne zbirke z navedenim imenom';
|
||||
$string['dbhost'] = 'Gostiteljski strežnik';
|
||||
$string['dbpass'] = 'Geslo';
|
||||
$string['dbprefix'] = 'Predpona tabel';
|
||||
$string['dbtype'] = 'Vrsta';
|
||||
$string['dbwrongencoding'] = 'Izbrana podatkovna zbirka uporablja kodno tabelo, ki ni priporočena ($a). Bolje bi bilo namesto nje uporabiti podatkovno zbirko, ki bi uporabljala Unicode (UTF-8). Kljub temu lahko preskočite ta preizkus z izborom \"Preskoči preizkus kodne tabele podatkovne zbirke\" spodaj, vendar lahko naletite na težave v prihodnje.';
|
||||
$string['dbwronghostserver'] = 'Slediti morate pravilom nastavitve strežnika, kot so razložena zgoraj.';
|
||||
$string['dbwrongnlslang'] = 'Okoljska spremenljivka NLS_LANG na vašem spletnem strežniku mora uporabljati kodni nabor AL32UTF8. Za navodila za pravilno nastavitev OCI8 si poglejte dokumentacijo PHP.';
|
||||
$string['dbwrongprefix'] = 'Slediti morate pravilom za nastavitev predpone tabel, kot so razložena zgoraj.';
|
||||
$string['directorysettings'] = '<p>Prosimo, potrdite lokacije te namestitve Moodle.</p>
|
||||
|
||||
<p><b>Spletni naslov:</b>
|
||||
@@ -102,7 +151,7 @@ Pazite, da bodo pravilne velike in male črke.</p>
|
||||
<p><b>Imenik za podatke:</b>
|
||||
Potrebujete prostor kamor lahko Moodle shranjuje naložene datoteke. Ta
|
||||
imenik mora omogočati branje IN PISANJE za uporabniško ime spletnega strežnika
|
||||
(običajno \'nobody\' ali \'apache\'), a ne sme biti dostopen
|
||||
(običajno 'nobody' ali 'apache'), a ne sme biti dostopen
|
||||
neposredno prek spleta.</p>';
|
||||
$string['directorysettingshead'] = 'Potrdite lokacije te namestitve Moodle';
|
||||
$string['directorysettingssub'] = '<b>Spletni naslov:</b>
|
||||
@@ -120,22 +169,28 @@ Pazite, da bodo pravilne velike in male črke.
|
||||
<b>Podatkovni imenik:</b>
|
||||
Potrebujete prostor kamor lahko Moodle shranjuje naložene datoteke. Ta
|
||||
imenik mora omogočati branje IN PISANJE za uporabniško ime spletnega strežnika
|
||||
(običajno \'nobody\' ali \'apache\'), a ne sme biti dostopen
|
||||
(običajno 'nobody' ali 'apache'), a ne sme biti dostopen
|
||||
neposredno prek spleta.';
|
||||
$string['dirroot'] = 'Imenik Moodle';
|
||||
$string['dirrooterror'] = 'Nastavitev \'Imenik Moodle\' je kot kaže napačna - tam ni najti namestitve Moodle. Spodnja vrednost je bila ponovno nastavljena.';
|
||||
$string['dirrooterror'] = 'Nastavitev 'Imenik Moodle' je kot kaže napačna - tam ni najti namestitve Moodle. Spodnja vrednost je bila ponovno nastavljena.';
|
||||
$string['download'] = 'Prenos';
|
||||
$string['downloadedfilecheckfailed'] = 'Preverjanje prenešene datoteke ni uspelo.';
|
||||
$string['downloadlanguagebutton'] = 'Prenesite jezikovni paket "$a"';
|
||||
$string['downloadlanguagehead'] = 'Prenos jezikovnega paketa';
|
||||
$string['downloadlanguagenotneeded'] = 'Nadaljujete lahko postopek namestitve z uporabo privzetega jezikovnega paketa, \"$a\".';
|
||||
$string['downloadlanguagesub'] = 'Zdaj imate možnost prenosa jezikovnega paketa in nadaljevanja s postopkom namestitve v tem jeziku.<br /><br />Če ne morete prenesti jezikovnega paketa, se bo namestitveni postopek nadaljeval v angleščini. (Ko bo namestitveni postopek zaključen, boste imeli možnost prenosa in namestitve dodatnih jezikovnih paketov.)';
|
||||
$string['doyouagree'] = 'Ste prebrali te pogoje in jih razumeli?';
|
||||
$string['environmenterrortodo'] = 'Pred nadaljevanjem namestitve te različice Moodle morate razrešiti zgoraj odkrite težave okolja (napake).';
|
||||
$string['environmenthead'] = 'Preverjanje vašega okolja ...';
|
||||
$string['environmentrecommendcustomcheck'] = 'Neopravljen test kaže na možne težave.';
|
||||
$string['environmentrecommendinstall'] = 'za najboljši rezultat je priporočena, da je nameščeno in omogočeno';
|
||||
$string['environmentrecommendversion'] = 'različica $a->needed je priporočena, vi uporabljate $a->current';
|
||||
$string['environmentrequirecustomcheck'] = 'ta test mora biti opravljen';
|
||||
$string['environmentrequireinstall'] = 'mora biti nameščeno in omogočeno';
|
||||
$string['environmentrequireversion'] = 'različica $a->needed je zahtevana, vi uporabljate $a->current';
|
||||
$string['environmentsub'] = 'Preverjamo, če razne komponente vašega sistema ustrezajo sistemskim zahtevam';
|
||||
$string['environmentxmlerror'] = 'Napaka pri branju podatkov okolja ($a->error_code)';
|
||||
$string['error'] = 'Napaka';
|
||||
$string['fail'] = 'Neuspeh';
|
||||
$string['fileuploads'] = 'Nalaganje datotek';
|
||||
$string['fileuploadserror'] = 'To bi moralo biti vključeno';
|
||||
@@ -146,8 +201,8 @@ $string['fileuploadshelp'] = '<p>Nalaganje datotek je kot kaže onemogočeno na
|
||||
|
||||
<š>Za omogočanje nalaganja datotek boste (ali vaš skrbnik sistema) morali
|
||||
urediti glavno datoteko php.ini na vašem sistemu in spremeniti nastavitev za
|
||||
<b>file_uploads</b> na \'1\'.</p>';
|
||||
$string['gdversion'] = 'Različica GD';
|
||||
<b>file_uploads</b> na '1'.</p>';
|
||||
$string['gdversion'] = 'GD različica';
|
||||
$string['gdversionerror'] = 'Knjižnica GD mora biti prisotno za obdelavo in ustvarjanje slik';
|
||||
$string['gdversionhelp'] = '<p>Na vašem strežniku kot kaže ni nameščen GD.</p>
|
||||
|
||||
@@ -172,10 +227,16 @@ $string['globalsquoteshelp'] = '<p>Kombinacija hkrati onemogočenega Magic Quote
|
||||
</p>
|
||||
';
|
||||
$string['globalswarning'] = '<p><strong>Varnostno opozorilo</strong>: za pravilno delovanje moodle zahteva spremembo nastavitev PHP. Nastavite set register_globals=off v php.ini, konfiguracijski datoteki za Apache/IIS ali v .htaccess';
|
||||
$string['help'] = 'Pomoč';
|
||||
$string['iconvrecommended'] = 'Namestitev dodatne knjižnice ICONV je zelo priporočljiva za izboljšanje zmogljivosti strani, še posebej, če stran uporablja dodatne jezike.';
|
||||
$string['info'] = 'Informacije';
|
||||
$string['installation'] = 'Namestitev';
|
||||
$string['invalidemail'] = 'Neveljaven e-poštni naslov';
|
||||
$string['invalidmd5'] = 'Neveljaven MD5';
|
||||
$string['invalidurl'] = 'URL ne obstaja';
|
||||
$string['langdownloaderror'] = 'Žal jezik \"$a\" ni bil nameščen. Postopek namestitve se bo nadaljeval v angleščini.';
|
||||
$string['langdownloadok'] = 'Jezik \"$a\" je bil uspešno nameščen. Postopek namestitve se bo nadaljeval v tem jeziku.';
|
||||
$string['language'] = 'Jezik';
|
||||
$string['magicquotesruntime'] = 'Magic Quotes Run Time';
|
||||
$string['magicquotesruntimeerror'] = 'To bi moralo biti izključeno';
|
||||
$string['magicquotesruntimehelp'] = '<p>Možnost Magic quotes runtime bi morala biti izključena za pravilno delovanje Moodle.</p>
|
||||
@@ -187,6 +248,7 @@ $string['magicquotesruntimehelp'] = '<p>Možnost Magic quotes runtime bi morala
|
||||
<blockquote>php_value magic_quotes_runtime Off</blockquote>
|
||||
</p>
|
||||
';
|
||||
$string['mbstringrecommended'] = 'Namestitev dodatne knjižnice MBSTRING je zelo priporočljiva za izboljšanje zmogljivosti strani, še posebej, če stran uporablja dodatne jezike.';
|
||||
$string['memorylimit'] = 'Omejitev pomnilnika';
|
||||
$string['memorylimiterror'] = 'Omejitev pomnilnika PHP je nastavljena precej nizko ... pozneje lahko pride do težav.';
|
||||
$string['memorylimithelp'] = '<p>Omejitev pomnilnika PHP je trenutno na vašem strežniku nastavljena na $a.</p>
|
||||
@@ -208,19 +270,42 @@ $string['memorylimithelp'] = '<p>Omejitev pomnilnika PHP je trenutno na vašem s
|
||||
<p>Vendar lahko to prepreči delovanje <b>vseh</b> PHP strani
|
||||
(ob prikazu strani boste videli napake) in boste morali odstraniti datoteko .htaccess.</p></li>
|
||||
</ol>';
|
||||
$string['missingrequiredfield'] = 'Eno izmed zahtevanih polj manjka';
|
||||
$string['moodledocslink'] = 'Moodle dokumentacija za to stran';
|
||||
$string['mssql'] = 'MS SQL (mssql)';
|
||||
$string['mssql_n'] = 'Strežnik SQL s podporo UTF-8 (mssql_n)';
|
||||
$string['mssqlextensionisnotpresentinphp'] = 'Nastavitev MSSQL v PHP je napačna, zato ne more komunicirati z MSSQL strežnikom. Prosimo, preverite datoteko php.ini ali ponovno prevedite PHP.';
|
||||
$string['mysql'] = 'MySQL (mysql)';
|
||||
$string['mysql416bypassed'] = 'Če vaša stran uporablja SAMO jezike v kodni tabeli ISO-8859-1, lahko nadaljujete z uporabo trenutno nameščene različice MySQL 4.1.12 (ali višje).';
|
||||
$string['mysql416required'] = 'MySQL 4.1.16 je najnižja zahtevana različica za Moodle 1.6 z jamstvom, da bodo lahko vsi podatki pretvorjeni v UTF-8 v prihodnje.';
|
||||
$string['mysqlextensionisnotpresentinphp'] = 'PHP ni bil pravilno konfiguriran z razširitvijo MySQL in zato ne more komunicirati z MySQL. Prosimo, preverite vašo datoteko php.ini ali ponovno prevedite PHP.';
|
||||
$string['name'] = 'Ime';
|
||||
$string['next'] = 'Naslednje';
|
||||
$string['oci8po'] = 'Oracle (oci8po)';
|
||||
$string['ociextensionisnotpresentinphp'] = 'Nastavitev OCI8 v PHP je napačna, zato ne more komunicirati s strežnikom Oracle. Prosimo, preverite datoteko php.ini ali ponovno prevedite PHP.';
|
||||
$string['odbc_mssql'] = 'MS SQL prek ODBC (odbc_mssql)';
|
||||
$string['odbcextensionisnotpresentinphp'] = 'Nastavitev ODBC v PHP je napačna, zato ne more komunicirati z MS SQL strežnikom prek ODBC. Prosimo, preverite datoteko php.ini ali ponovno prevedite PHP.';
|
||||
$string['ok'] = 'V redu';
|
||||
$string['opensslrecommended'] = 'Inštaliranje opcijske OpenSSl knjižnjice je zelo priporočljivo --to omogoča Moodle mrežne zmogljivosti.';
|
||||
$string['parentlanguage'] = '<< PREVAJALCI: Če ima vaš jezik sorodni jezik, za katerega želite da ga Moodle uporabi ko manjkajo znaki iz vašega jezika, potem izberite kodo za sorodni jezik tukaj. Če pustite prazno potem bo uporabljen angleški jezik. Primer: nl >>';
|
||||
$string['pass'] = 'Uspešno';
|
||||
$string['password'] = 'Geslo';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'Nastavitev PGSQL v PHP je napačna, zato ne more komunicirati s strežnikom PostgreSQL. Prosimo, preverite datoteko php.ini ali ponovno prevedite PHP.';
|
||||
$string['php50restricted'] = 'PHP 5.0.x ima vrsto znanih težav, posodobite na 5.1.x ali namestite starejšo različico 4.3.x ali 4.4.x';
|
||||
$string['phpversion'] = 'Različica PHP';
|
||||
$string['phpversionerror'] = 'Različica PHP mora biti vsaj 4.3.0 ali 5.1.0 (5.0.x ima vrsto znanih težav).';
|
||||
$string['phpversionhelp'] = '<p>Moodle zahteva različico PHP vsaj 4.3.0 ali 5.1.0 (5.0.x ima vrsto znanih težav).</p>
|
||||
<p>Vaša trenutna različica je $a</p>
|
||||
<p>Posodobiti in nadgraditi morate PHP ali premakniti program na strežnik s novejšo različico PHP!<br />
|
||||
(V primeru različice 5.0.x lahko namestite tudi različico 4.4.x)</p>';
|
||||
$string['postgres7'] = 'PostgreSQL (postgres7)';
|
||||
$string['previous'] = 'Prejšnje';
|
||||
$string['qtyperqpwillberemoved'] = 'Med nadgradnjo bo RQP tip vprašanja odstranjen. Tega tipa vprašanja niste uporabljali, tako da ne bi smelo priti do težav.';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'Med nadgradnjo bo RQP tip vprašanja odstranjen. V bazi podatkov imate nekaj vprašanj tega tipa. Le-ta bodo nehala delovati, razen če pred nadaljevanjem nadgradnje ponovno naložite kodo iz http://moodle.org/mod/data/view.php?d=13&rid=797';
|
||||
$string['releasenoteslink'] = 'Za informacije o tej različici Moodle si oglejte spletne <a target=\"_new\" href=\"$a\">Opombe o različici</a>';
|
||||
$string['remotedownloaderror'] = 'Prenos komponent na vaš strežnik ni uspel, prosim preverite proxy nastavitve. PHP cURL končnice so zelo priporočljive. <br /><br /> Datoteke <a href=\"$a->url\">$a->url</a> morate prenesti ročno in jih kopirati v \"$a->dest\" na vašem strežniku, tam pa estrahirati ZIP datoteke.';
|
||||
$string['remotedownloadnotallowed'] = 'Nalaganje komponent na vaš strežnik ni dovoljeno (allow_url_fopen je onemogočen).<br /><br />Ročno morate prenesti datoteko <a href=\"$a->url\">$a->url</a>, jo kopirati v imenik \"$a->dest\" na vašem strežniku in jo tam razširiti (unzip).';
|
||||
$string['report'] = 'Poročilo';
|
||||
$string['restricted'] = 'Omejeno';
|
||||
$string['safemode'] = 'Varni način';
|
||||
$string['safemodeerror'] = 'Moodle lahko ima težave z vključenim varnim načinom';
|
||||
$string['safemodehelp'] = '<p>Moodle ima lahko razne težave z vključenim varnim načinom. Ne samo, da
|
||||
@@ -237,11 +322,13 @@ $string['sessionautostarthelp'] = '<p>Moodle zahteva podporo za seje in ne bo de
|
||||
|
||||
<p>Seje lahko omogočite v datoteki php.ini ... poiščite parameter session.auto_start.</p>';
|
||||
$string['skipdbencodingtest'] = 'Preskoči preizkus kodne tabele podatkovne zbirke';
|
||||
$string['status'] = 'Status';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thislanguage'] = 'Slovenščina';
|
||||
$string['unicoderecommended'] = 'Priporočeno je shranjevanje vaših podatkov v Unicode (UTF-8). Baze podatkov, v katere nameščamo nove namestitev, morajo imeti svoj privzet nabor znakov nastavljen na Unicode. Če nadgrajujete je priporočljivo izvesti UTF-8 migracijski proces (glej Skrbnikove stani).';
|
||||
$string['unicoderequired'] = 'Podatke je potrebno shranjevati v Unicode obliki (UTF-8). Baze podatkov, v katere nameščamo nove namestitev, morajo imeti svoj privzet nabor znakov nastavljen na Unicode. Če nadgrajujete je priporočljivo izvesti UTF-8 migracijski proces (glej Skrbnikove stani).';
|
||||
$string['user'] = 'Uporabnik';
|
||||
$string['welcomep10'] = '$a->installername ($a->installerversion)';
|
||||
$string['welcomep20'] = 'To stran vidite, ker ste uspešno namestili in
|
||||
zagnali paket <strong>$a->packname $a->packversion</strong> na vašem računalniku. Čestitamo!';
|
||||
@@ -256,6 +343,9 @@ $string['welcomep60'] = 'Naslednje strani vas bodo popeljale skozi nekaj enostav
|
||||
konfiguracijo in nastavitev <strong>Moodle</strong> na vašem računalniku. Sprejmete lahko privzete
|
||||
nastavitve ali jih, če tako želite, spremenite, da bodo ustrezale vašim potrebam.';
|
||||
$string['welcomep70'] = 'Kliknite spodnji gumb \"Naprej\" za nadaljevanje nastavitve <strong>Moodle</strong>.';
|
||||
$string['wrongdestpath'] = 'Napačna ciljna pot.';
|
||||
$string['wrongsourcebase'] = 'Napačna osnova URL vira.';
|
||||
$string['wrongzipfilename'] = 'Napačno ime datoteke ZIP.';
|
||||
$string['wwwroot'] = 'Spletni naslov';
|
||||
$string['wwwrooterror'] = 'Spletni naslov kot kaže ni veljaven - te namestitve Moodle, kot kaže, ni tam. Spodnja vrednost je bila ponovno nastavljena.';
|
||||
$string['xmlrpcrecommended'] = 'Namestitev dodatnega xmlrpc podaljška je koristna za mrežne funkcije Moodla.';
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
$string['admindirerror'] = 'Khaanadda Maammulka ee meesha la dhigey waa khalad';
|
||||
$string['admindirname'] = 'Khaanad Maamul';
|
||||
$string['availablelangs'] = 'Boqshadaha luqadaha la heli karo';
|
||||
$string['caution'] = 'Taxaddar';
|
||||
$string['chooselanguage'] = 'Xolo luqad';
|
||||
$string['closewindow'] = 'Daaqaddan xidh';
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
/// File generated by cvs://contrib/lang2installer/installer_builder
|
||||
/// using strings defined in stringnames.txt (same dir)
|
||||
|
||||
$string['aborting'] = 'Одустајање од инсталације';
|
||||
$string['admindirerror'] = 'Специфицирани администраторски директоријум је нетачан';
|
||||
$string['admindirname'] = 'Администраторски директоријум';
|
||||
$string['admindirsetting'] = 'Понеки веб сервери користе /admin као специјални URL за приступ разним подешавањима или нечем другом. Нажалост то је у конфликту са стандардном Moodle локацијом за администраторске странице. Можете решити проблем преименовањем администраторског директоријума у Вашој инсталацији, и навођењем тог новог назива овде. На пример: <br /> <br /><b>moodleadmin</b><br /> <br />
|
||||
@@ -16,8 +17,17 @@ $string['admindirsetting'] = 'Понеки веб сервери користе
|
||||
$string['admindirsettinghead'] = 'Подешавање администраторског директоријума';
|
||||
$string['admindirsettingsub'] = 'Понеки веб сервери користе /admin као специјални URL за приступ разним подешавањима или нечем другом. Нажалост то је у конфликту са стандардном Moodle локацијом за администраторске странице. Можете решити проблем преименовањем администраторског директоријума у Вашој инсталацији, и навођењем тог новог назива овде. На пример: <br /> <br /><b>moodleadmin</b><br /> <br />
|
||||
Ово подешавање ће преправити администраторске линкове у Moodle систему.';
|
||||
$string['availablelangs'] = 'Доступни језички пакети';
|
||||
$string['adminemail'] = 'Адреса е-поште :';
|
||||
$string['adminfirstname'] = 'Име :';
|
||||
$string['admininfo'] = 'Подаци о администратору';
|
||||
$string['adminlastname'] = 'Презиме :';
|
||||
$string['adminpassword'] = 'Лозинка :';
|
||||
$string['adminusername'] = 'Корисничко име :';
|
||||
$string['askcontinue'] = 'Настави (да/не) :';
|
||||
$string['availabledbtypes'] = 'Доступне базе података';
|
||||
$string['availablelangs'] = 'Списак доступних језика';
|
||||
$string['bypassed'] = 'Избегнуто';
|
||||
$string['cannotconnecttodb'] = 'Није могуће успоставити везу са базом података';
|
||||
$string['cannotcreatelangdir'] = 'Није могуће креирање директоријума језика';
|
||||
$string['cannotcreatetempdir'] = 'Није могуће креирање привременог директоријума.';
|
||||
$string['cannotdownloadcomponents'] = 'Није могуће преузимање компоненти.';
|
||||
@@ -28,7 +38,8 @@ $string['cannotsavezipfile'] = 'Није могуће чување архиве.
|
||||
$string['cannotunzipfile'] = 'Није могуће распакивање датотеке.';
|
||||
$string['caution'] = 'Опрез';
|
||||
$string['check'] = 'Провери';
|
||||
$string['chooselanguage'] = 'Изаберите језик';
|
||||
$string['checkingphpsettings'] = 'Провера PHP подешавања';
|
||||
$string['chooselanguage'] = 'Изабери језик';
|
||||
$string['chooselanguagehead'] = 'Изаберите језик';
|
||||
$string['chooselanguagesub'] = 'Молимо изаберите језик који ће се користити само током инсталације. Касније ћете моћи да изаберете језичка подешавања на нивоу сајта и корисника.';
|
||||
$string['closewindow'] = 'Затворите овај прозор';
|
||||
@@ -36,13 +47,20 @@ $string['compatibilitysettings'] = 'Провера Ваших PHP подешав
|
||||
$string['compatibilitysettingshead'] = 'Провера Ваших PHP подешавања...';
|
||||
$string['compatibilitysettingssub'] = 'Ваш сервер би требао проћи све ове тестове да би Moodle на њему успешно функционисао';
|
||||
$string['componentisuptodate'] = 'Компонента је доступна у својој најновијој верзији.';
|
||||
$string['configfilecreated'] = 'Конфигурациона дадотека је успешно креирана';
|
||||
$string['configfiledoesnotexist'] = 'Конфигурациона дадотека не постоји!!!';
|
||||
$string['configfilenotwritten'] = 'Инсталациони скрипт није био у могућности да аутоматски креира датотеку config.php која би садржавала Ваша одабрана подешавања, веројатно због тога што нема права на писање (мењање садржаја) у Вашем Moodle директоријуму. Ако то желите, можете ручно копирати код у датотеку config.php у основном директоријуму Ваше Moodle инсталације.';
|
||||
$string['configfilewritten'] = 'config.php је успешно креиран';
|
||||
$string['configurationcomplete'] = 'Конфигурација је завршена';
|
||||
$string['configurationcompletehead'] = 'Конфигурација је завршена';
|
||||
$string['configurationcompletesub'] = 'Moodle је покушао да сачува Вашу конфигурацију у датотеци смештеној у коренском директоријуму Moodle инсталације.';
|
||||
$string['configurationfileexist'] = 'Конфигурациона датотека већ постоји';
|
||||
$string['continue'] = 'Наставак';
|
||||
$string['creatingconfigfile'] = 'Креирање конфигурационе датотеке';
|
||||
$string['ctyperecommended'] = 'Инсталирање опционе PHP екстензије ctype се строго препоручује да би се унапредило функционисање сајта, поготово ако Ваш сајт подржава не-латиничне језике.';
|
||||
$string['ctyperequired'] = 'PHP екстензије ctype је сада обавезна за Moodle, да би се унапредило функционисање сајта и да би се нудила вишејезична компатибилност.';
|
||||
$string['curlrecommended'] = 'Инсталирање опционе Curl библиотеке је врло препоручљиво, јер је она неопходна за успешно коришћење функција за умрежавање.';
|
||||
$string['curlrequired'] = 'PHP екстензију cURL сада је обавезна за Moodle да би се комуницирало са Moodle репозиторијумима';
|
||||
$string['customcheck'] = 'Друге провере';
|
||||
$string['database'] = 'База података';
|
||||
$string['databasecreationsettings'] = 'Сада је потребно конфигурисати подешавања базе података у којој ће се чувати највећи део Moodle података. Та база података ће бити креирана аутоматски приликом инсталације, са подешавањима специфицираним испод. <br />
|
||||
@@ -60,6 +78,9 @@ $string['databasecreationsettingssub'] = '<b>Тип:</b> постављено н
|
||||
<b>Корисник:</b> постављено на \"root\" приликом инсталације<br />
|
||||
<b>Лозинка:</b> Ваша лозинка за базу података<br />
|
||||
<b>Префикс табела:</b> опциони префикс који ће се користити у називима свих табела';
|
||||
$string['databasehost'] = 'Сервер базе података :';
|
||||
$string['databasename'] = 'Има базе података :';
|
||||
$string['databasepass'] = 'Лозинка за приступ бази података :';
|
||||
$string['databasesettings'] = 'Сада је потребно конфигурисати базу података у којој ће се чувати већи део Moodle података. Та база података мора већ бити креирана, као и корисничко име и лозинка за приступ истој.<br/>
|
||||
<br /> <br />
|
||||
<b>Тип:</b> mysql или postgres7<br />
|
||||
@@ -68,6 +89,7 @@ $string['databasesettings'] = 'Сада је потребно конфигури
|
||||
<b>Корисник:</b> корисничко име за приступ бази података<br />
|
||||
<b>Лозинка:</b> лозинка за приступ бази података<br />
|
||||
<b>Префикс табела:</b>опциони префикс који ће се користити у називима свих табела';
|
||||
$string['databasesettingsformoodle'] = 'Подешавања базе података за Moodle';
|
||||
$string['databasesettingshead'] = 'Сада је потребно конфигурисати базу података у којој ће се чувати већи део Moodle података. Та база података мора већ бити креирана, као и корисничко име и лозинка за приступ истој.';
|
||||
$string['databasesettingssub'] = '<b>Тип:</b> mysql или postgres7<br />
|
||||
<b>Сервер:</b> нпр. localhost или db.isp.com<br />
|
||||
@@ -117,6 +139,16 @@ $string['databasesettingssub_postgres7'] = '<b>Тип:</b> PostgreSQL<br />
|
||||
<b>Корисник:</b> Ваше корисничко име за приступ бази података<br />
|
||||
<b>Лозинка:</b> Ваша лозинка за приступ бази података<br />
|
||||
<b>Префикси табела:</b> префикс који ће се користити у називима свих табела (обавезно)';
|
||||
$string['databasesettingssub_sqlite3_pdo'] = '<b>Тип:</b> SQLite 3 (PDO) <b><strong class=\"errormsg\">Експериментално! (није за званично коришћење)</strong></b><br />
|
||||
<b>Хост:</b> путања до директоријума где ће бити сачуване датотеке базе података (користити потпуну путању); користити localhost или оставити празно да би био коришћен директоријум Moodle data <br />
|
||||
<b>Име:</b> име базе података, нпр. moodle (опционо)<br />
|
||||
<b>Корисник:</b> корисничко име Ваше базе података (опционо)<br />
|
||||
<b>Лозинка:</b> лозинка за приступ Вашој бази података (опционо)<br />
|
||||
<b>Префикс имена табела:</b> опциони префикс који се користи код имена табела <br />
|
||||
Име датотеке базе података биће одређено према корисничком имену, имену базе података и према лозинки коју сте унели изнад.';
|
||||
$string['databasesettingswillbecreated'] = '<b>Напомена:</b> Програм ѕа инсталацију ће аутоматски покушати да креира базу података уколико она не постоји.';
|
||||
$string['databasetype'] = 'Врста базе података :';
|
||||
$string['databaseuser'] = 'Корисничко име за приступ бази података :';
|
||||
$string['dataroot'] = 'Директоријум података';
|
||||
$string['datarooterror'] = '\'Директоријум података\' који сте навели не може бити пронађен или креиран. Унесите тачну путању или направите тај директоријум ручно.';
|
||||
$string['dbconnectionerror'] = 'Немогуће је успоставити везу са базом података коју сте навели. Молимо проверите подешавања базе података.';
|
||||
@@ -156,13 +188,16 @@ $string['directorysettingssub'] = '<b>Веб адреса:</b>
|
||||
Морате одредити место на ком ће Moodle чувати постављене датотеке. Корисник web сервера (обично \'нико\' или \'apache\') би морао имати могућност да чита податке из тог директоријума, али и да их у њега уписује, али они не би требали бити доступни директно преко web-a.';
|
||||
$string['dirroot'] = 'Moodle директоријум';
|
||||
$string['dirrooterror'] = 'Подешавање \'Moodle директоријума\' је чини се нетачно - не може се тамо наћи Moodle инсталацијa. Нижа вредност ће бити поново доведена на почетни положај.';
|
||||
$string['disagreelicense'] = 'Надоградња се не може наставти због неслагања са GPL лиценцом!';
|
||||
$string['download'] = 'Преузети';
|
||||
$string['downloadedfilecheckfailed'] = 'Није успела провера преузете датотеке.';
|
||||
$string['downloadlanguagebutton'] = 'Преузми \"$a\" језички пакет';
|
||||
$string['downloadlanguagehead'] = 'Преузми језички пакет';
|
||||
$string['downloadlanguagenotneeded'] = 'Можете наставити процес инсталације коришћењем подразумеваног језичког пакета, \"$a\".';
|
||||
$string['downloadlanguagepack'] = 'Да ли желите да сада преузмете језички пакет (да/не) :';
|
||||
$string['downloadlanguagesub'] = 'Сада имате могућност преузимања жељеног језичког пакета и наставка инсталационог процеса на том језику.<br /><br />Ако нисте у могућности да преузмете језички пакет, инсталациони процес ће се наставити на енглеском језику. (Када се инсталација заврши, имаћете могућност да преузмете и инсталирате додатне језичке пакете.)';
|
||||
$string['doyouagree'] = 'Јесте ли прочитали наведене услове и разумели их у потпуности?';
|
||||
$string['downloadsuccess'] = 'Језички пакет је успешно преузет';
|
||||
$string['doyouagree'] = 'Да ли се слажете? (да/не)';
|
||||
$string['environmenterrortodo'] = 'Морате решити све проблеме окружења (грешке) наведене изнад пре наставка инсталације ове Moodle верзије!';
|
||||
$string['environmenthead'] = 'Проверавање Вашег окружења...';
|
||||
$string['environmentrecommendcustomcheck'] = 'уколико овај тест не прође, постоји могућност појављивања потенцијалног проблема.';
|
||||
@@ -174,6 +209,7 @@ $string['environmentrequireversion'] = 'неопходна верзија је $
|
||||
$string['environmentsub'] = 'Проверава се да ли разне компоненте Вашег система задовољавају системске захтеве';
|
||||
$string['environmentxmlerror'] = 'Грешка у читању података окружења ($a->error_code)';
|
||||
$string['error'] = 'Грешка';
|
||||
$string['errorsinenvironment'] = 'Грешке у окружењу';
|
||||
$string['fail'] = 'Није прошло';
|
||||
$string['fileuploads'] = 'Постављање датотека';
|
||||
$string['fileuploadserror'] = 'Ова опција би требала бити укључена';
|
||||
@@ -201,16 +237,33 @@ $string['globalsquoteshelp'] = '<p>Комбинација истовремено
|
||||
<blockquote>php_value magic_quotes_gpc On</blockquote>
|
||||
<blockquote>php_value register_globals Off</blockquote>
|
||||
</p>';
|
||||
$string['globalswarning'] = 'p><strong>Безбедносно упозерење</strong>: да би функционисао исправно, Moodle захтева <br />да направите неке измене у вашим PHP подешавањима.<p/><p><em>Морате</em> да поставите <code>register_globals=off</code>.<p>Ово подешавање је под контролом ваше <code>php.ini</code>, Apache/IIS <br />конфигурације или <code>.htaccess</code> датотеке.</p>';
|
||||
$string['help'] = 'Помоћ';
|
||||
$string['iconvrecommended'] = 'Инсталирање опционе ICONV библиотеке је врло препоручљиво у циљу унапређивања перформанси сајта, поготово ако Ваш сајт подржава језике који не користе латинично писмо.';
|
||||
$string['info'] = 'Информација';
|
||||
$string['inputdatadirectory'] = 'Директоријум податка';
|
||||
$string['inputwebadress'] = 'Веб адреса :';
|
||||
$string['inputwebdirectory'] = 'Директоријум Moodlea';
|
||||
$string['installation'] = 'Инсталација';
|
||||
$string['invalidemail'] = 'Неважећа адреса електронске поште';
|
||||
$string['invalidmd5'] = 'Невалидна md5 датотека';
|
||||
$string['invalidurl'] = 'Невалидни урл';
|
||||
$string['langdownloaderror'] = 'Нажалост језик \"$a\" није инсталиран. Инсталациони процес ће бити настављен на енглеском језику.';
|
||||
$string['installationiscomplete'] = 'Инсталација је завршена';
|
||||
$string['invalidargumenthelp'] = 'Грешка: Неисправни аргумент(и)
|
||||
Употреба: $php cliupgrade.php OPTIONS
|
||||
Искористи опцију --help за додатну помоћ';
|
||||
$string['invalidemail'] = 'Неисправна адреса е-поште';
|
||||
$string['invalidhost'] = 'Неисправан хост';
|
||||
$string['invalidint'] = 'Грешка: вредност није цео број';
|
||||
$string['invalidintrange'] = 'Грешка: вредност је изван исправног опсега';
|
||||
$string['invalidmd5'] = 'Неисправна md5 датотека';
|
||||
$string['invalidpath'] = 'Неисправна путања';
|
||||
$string['invalidsetelement'] = 'Грешка: Задата вредност се не налази међу понуђеним опцијама';
|
||||
$string['invalidtextvalue'] = 'Неисправна текстална вредност';
|
||||
$string['invalidurl'] = 'Неисправна URL адреса';
|
||||
$string['invalidvalueforlanguage'] = 'Неисправна вредност за опцију --lang. Куцајте --help за помоћ';
|
||||
$string['invalidyesno'] = 'Гешка: вредност није исправан да/не адргумент';
|
||||
$string['langdownloaderror'] = 'Нажалост језик \"$a\" није инсталиран. Процес инсталације биће настављен на енглеском језику.';
|
||||
$string['langdownloadok'] = 'Језик \"$a\" је успешно инсталиран. Инсталациони процес ће бити настављен на овом језику.';
|
||||
$string['language'] = 'Језик';
|
||||
$string['locationanddirectories'] = 'Локације и директоријуми';
|
||||
$string['magicquotesruntime'] = 'Magic Quotes време извршавања';
|
||||
$string['magicquotesruntimeerror'] = 'Ова опција би требала бити искључена';
|
||||
$string['magicquotesruntimehelp'] = '<p>Magic Quotes време извршавања би требало искључити да Moodle прописно функционише.</p>
|
||||
@@ -256,9 +309,13 @@ $string['parentlanguage'] = '<< ПРЕВОДИОЦИ: Ако Ваш језик
|
||||
$string['pass'] = 'Прошло';
|
||||
$string['password'] = 'Лозинка';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'PHP није био прописно конфигурисан са PGSQL екстензијом тако да може комуницирати са PostgreSQLом. Молимо Вас да проверите своју php.ini датотеку или опет компајлирате PHP.';
|
||||
$string['php50restricted'] = 'PHP 5.0.x има више познатих проблема, молимо унапредите га до верзије 5.1.x или снизите до 4.3.x или 4.4.x';
|
||||
$string['php50restricted'] = 'PHP 5.0.x има више познатих проблема, молимо унапредите PHP на верзије 5.1.x или инсталирајте верзију 4.3.x односно 4.4.x';
|
||||
$string['php52versionerror'] = 'Верзија PHP мора бити најмање 5.2.0.';
|
||||
$string['php52versionhelp'] = '<p>Moodle захтева верзију PHP најмање 5.2.0.</p>
|
||||
<p>Тренутно Вам ради верзија $a</p>
|
||||
<p>Морате унапредити верзију PHP или преселити сајт на сервер домаћин који има новију верзију PHP!</p>';
|
||||
$string['phpversion'] = 'PHP верзија';
|
||||
$string['phpversionerror'] = 'PHP верзија мора бити бар 4.3.0 или 5.1.0 (5.0.x функционише уз бројне уочене проблеме)';
|
||||
$string['phpversionerror'] = 'PHP верзија мора бити бар 4.3.0 или 5.1.0 (5.0.x функционише уз бројне уочене проблеме)'; // ORPHANED
|
||||
$string['phpversionhelp'] = '<p>Moodle захтева најмање PHP верзију 4.3.0 или 5.1.0 (5.0.x функционише уз бројне уочене проблеме).</p>
|
||||
<p>Тренутно имате верзију $a</p>
|
||||
<p>Морате надоградити PHP или преместити Moodle инсталацију на web сервер са новијом верзијом PHP-a!</br>
|
||||
@@ -267,7 +324,8 @@ $string['postgres7'] = 'PostgreSQL (postgres7)';
|
||||
$string['previous'] = 'Претходни';
|
||||
$string['qtyperqpwillberemoved'] = 'Током надоградње, RQP типови питања биће уклоњени. Нећете користити овај тип питања, тако да не очекујте проблеме у вези с тим.';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'Током надоградње биће уклоњен RQP тип питања. Како имате нека RQP питања у својој бази, препоручује се да поново инсталирате додатак са http://moodle.org/mod/data/view.php?d=13&rid=797 пре наставка надоградње да би она могла и даље несметано да се користе.';
|
||||
$string['releasenoteslink'] = 'За информације о овој Moodle верзији, молимо погледајте online <a target=\"_new\" href=\"$a\">Белешке о издању</a>';
|
||||
$string['releasenoteslink'] = 'За више информацији о овој верзији Moodlea, погледајте <em>Release Notes</em> на $a';
|
||||
$string['remotedownloaderror'] = 'Преузимање компоненте на Ваш сервер није успело. Проверите подешавања прокси серевера. PHP cURL екстензија се препоручује.<br /><br />Морате да преузмете <a href=\"$a->url\">$a->url</a> датотеку ручно, копирате је у директоријум \"$a->dest\" на свом сереверу тамо је распакујете.';
|
||||
$string['remotedownloadnotallowed'] = 'Није дозвољено преузимање компоненти на Ваш сервер (опција allow_url_fopen је онемогућена).<br /><br />Морате ручно преузети датотеку <a href=\"$a->url\">$a->url</a>, копирати је у \"$a->dest\" на свом серверу и тамо је распаковати.';
|
||||
$string['report'] = 'Извештај';
|
||||
$string['restricted'] = 'Ограничено';
|
||||
@@ -278,20 +336,74 @@ $string['safemodehelp'] = '<p>Moodle може имати различите пр
|
||||
<p>Безбедни мод рада је обично једино дозвољен на параноичним јавним веб серверима, тако да можете просто наћи web сервер код неке друге куће за Ваш Moodle сајт.</p>
|
||||
|
||||
<p>Можете покушати наставити са инсталацијом ако желите, али очекујте неколико проблема касније.</p>';
|
||||
$string['selectlanguage'] = 'Избор језика за инсталацију';
|
||||
$string['serverchecks'] = 'Провере сервера';
|
||||
$string['sessionautostart'] = 'Аутоматски почетак акције';
|
||||
$string['sessionautostart'] = 'Аутоматски почетак сесије';
|
||||
$string['sessionautostarterror'] = 'Ова опција би требала бити искључена';
|
||||
$string['sessionautostarthelp'] = '<p>Moodle захтева подршку за сесије и неће фунционисати без ње.</p>
|
||||
|
||||
<p>Рад са сесијама се може омогућити у php.ini датотеци... потражите session.auto_start параметар.</p>';
|
||||
$string['sitefullname'] = 'Пун назив сајта :';
|
||||
$string['siteinfo'] = 'Детаљи о сајту';
|
||||
$string['sitenewsitems'] = 'Вести :';
|
||||
$string['siteshortname'] = 'Кратак назив сајта :';
|
||||
$string['sitesummary'] = 'Кратак преглед сајта :';
|
||||
$string['skipdbencodingtest'] = 'Прескочити тест кодног распореда базе података';
|
||||
$string['sqlite3_pdo'] = 'SQLite 3 (PDO) <b><strong class=\"errormsg\">Експериментално! (није за званично коришћење)</strong></b>';
|
||||
$string['sqliteextensionisnotpresentinphp'] = 'PHP није правилно подешен са екстензијом SQLite. Молимо проверите Вашу датотеку php.ini или поново компајлирајте PHP.';
|
||||
$string['status'] = 'Статус';
|
||||
$string['tableprefix'] = 'Префикс табеле :';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thislanguage'] = 'Српски';
|
||||
$string['unicoderecommended'] = 'Препоручљиво је смештање ваших података у Уникод (UTF-8) стандард. Нове инсталације биће извршене над базама који као подразумеван карактер-сет имају подешен Уникод. Уколико вршите надоградњу, потребно је покренути UTF-8 процес миграције (погледати Админ страну).';
|
||||
$string['unicoderequired'] = 'Потребно је да све ваше податке смештате у Уникод формату (UTF-8).Нове инсталације морају бити примењене у базама података које имају основни карактерни сет намештен на Уникод. Уколико вршите надоградњу, потребно је покренути UTF-8 процес миграције (погледати Админ страну).';
|
||||
$string['upgradingactivitymodule'] = 'Надоградња модула Активност';
|
||||
$string['upgradingbackupdb'] = 'Надоградња резервне копије базе података';
|
||||
$string['upgradingblocksdb'] = 'Надоградња блокова базе податка';
|
||||
$string['upgradingblocksplugin'] = 'Надоградња додатка за блокове';
|
||||
$string['upgradingcompleted'] = 'Надоградња је завршено...';
|
||||
$string['upgradingcourseformatplugin'] = 'Надоградња додатка за формат курса';
|
||||
$string['upgradingenrolplugin'] = 'Надоградња додатка за упис';
|
||||
$string['upgradinggradeexportplugin'] = 'Надоградња додатка за извоз оцена';
|
||||
$string['upgradinggradeimportplugin'] = 'Надоградња додатка за увоз оцена';
|
||||
$string['upgradinggradereportplugin'] = 'Надоградња додатка за извештај о оценама';
|
||||
$string['upgradinglocaldb'] = 'Надоградља локалне базе података';
|
||||
$string['upgradingmessageoutputpluggin'] = 'Унапређење додатка Излаз Поруке';
|
||||
$string['upgradingqtypeplugin'] = 'Надоградња додатка за питања/типове';
|
||||
$string['upgradingrpcfunctions'] = 'Надоградња ROC функција';
|
||||
$string['usagehelp'] = 'Synopsis:
|
||||
$php cliupgrade.php OPTIONS
|
||||
|
||||
OPTIONS
|
||||
--lang Исправни инсталирани језик за инсталацију. Подразумеван је енглески English(en)
|
||||
--webaddr веб адреса Мoodle сајта
|
||||
--dir Локација moodle веб директоријума
|
||||
--datadir Локација moodle директоријума за податке (не би требало да буде видљив на Вебу)
|
||||
--dbtype Тип базе података. Подразумевана је mysql
|
||||
--dbhost Име рачунара сервера базе података. Подразумевно је localhost
|
||||
--dbname Име базе података. Подразумевано је moodle
|
||||
--dbuser Корисничко име на серверу базе података. Подразумевано је празно
|
||||
--dbpass Лозинка корисничког налога на серверу базе података. Подразумевано је празно
|
||||
--prefix Префикс имена табелâ за базу података изнад. Подразумевано је mdl
|
||||
--verbose 0 Нема излаза, 1 Сумарни излаз(Подразумевано), 2 Детаљни излаз
|
||||
--interactivelevel 0 Неинтерактивни, 1 полуинтерактивни(Подразумевано), 2 интерактивно
|
||||
--agreelicense Да(Подразумевано) или Не
|
||||
--confirmrelease Да(Подразумевано) или Не
|
||||
--sitefullname Пуно име сајта. Подразумевано је: Moodle Site (Молимо да промените подразумевано име!!)
|
||||
--siteshortname Краће име сајта. Подразумевано је moodle
|
||||
--sitesummary Преглед опција за сајт. Подразумевано је празно
|
||||
--adminfirstname име администратора. Подразумевано је Admin
|
||||
--adminlastname Презиме администратора. Подразумевано је User
|
||||
--adminusername Корисничко име администратора. Подразумевано је admin
|
||||
--adminpassword Лозинка администратора. Подразумевано је admin
|
||||
--adminemail Адреса е-поште администратора. Подразумевано је root@localhost
|
||||
--help штампа ову помоћ
|
||||
|
||||
Начин коришћења:
|
||||
$php cliupgrade.php --lang=en --webaddr=http://www.example.com --moodledir=/var/www/html/moodle --datadir=/var/moodledata --dbtype=mysql --dbhost=localhost --dbname=moodle --dbuser=root --prefix=mdl --agreelicense=yes --confirmrelease=yes --sitefullname=\"Example Moodle Site\" --siteshortname=moodle --sitesummary=siteforme --adminfirstname=Admin --adminlastname=User --adminusername=admin --adminpassword=admin --adminemail=admin@example.com --verbose=1 --interactivelevel=2';
|
||||
$string['user'] = 'Корисник';
|
||||
$string['versionerror'] = 'Корисник је одбачен због грешке у верзији';
|
||||
$string['welcomep10'] = '$a->installername ($a->installerversion)';
|
||||
$string['welcomep20'] = 'Приказана Вам је ова страница јер сте успешно инсталирали и покренули <strong>$a->packname $a->packversion</strong> пакет на Вашем рачунару. Честитамо!';
|
||||
$string['welcomep30'] = 'Ово издање <strong>$a->installername</strong> укључује апликације за креирање окружења у ком ће <strong>Moodle</strong> успешно функционисати, конкретно:';
|
||||
@@ -299,9 +411,14 @@ $string['welcomep40'] = 'Овај пакет обухвата и <strong>Moodle
|
||||
$string['welcomep50'] = 'Коришћење апликација из овог пакета је условљено њховим лиценцама. Комплетан <strong>$a->installername</strong> пакет је <a href=\"http://www.opensource.org/docs/definition_plain.html\">отвореног кода</a> и дистрибуира се под <a href=\"http://www.gnu.org/copyleft/gpl.html\">GPL</a> лиценцом.';
|
||||
$string['welcomep60'] = 'Наредне странице ће Вас провести кроз неколико једноставних корака током којих ћете конфигурисати <strong>Moodle</strong> на Вашем рачунару. Можете прихватити подразумевана подешавања или их, опционо, прилагодити сопственим потребама.';
|
||||
$string['welcomep70'] = 'Кликните на дугме за наставак да бисте даље подешавали <strong>Moodle</strong>.';
|
||||
$string['welcometext'] = '---Добродошли у командну линију програма за инсталацију Мoodlea---';
|
||||
$string['writetoconfigfilefaild'] = 'Грешка: Записивање у конфигурациону датотеку није успело';
|
||||
$string['wrongdestpath'] = 'Погрешна одредишна путања.';
|
||||
$string['wrongsourcebase'] = 'Погрешан изворни URL базе.';
|
||||
$string['wrongzipfilename'] = 'Погрешан назив архиве.';
|
||||
$string['wwwroot'] = 'Веб адреса';
|
||||
$string['wwwrooterror'] = 'Наведена \'веб адреса\' се чини невалидном - ова Moodle инсталација изгледа није на њој. Вредност наведена испод је ресетована.';
|
||||
$string['xmlrpcrecommended'] = 'Инсталирање опционог xmlrpc проширења је корисно за функционалност Moodle умрежавање.';
|
||||
$string['yourchoice'] = 'Ваш избор :';
|
||||
$string['ziprequired'] = 'PHP Екстензија Zip сада је обавезна за Moodle, бинарне датотеке info-ZIP и библиотека PclZip више се не користе.';
|
||||
?>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
/// File generated by cvs://contrib/lang2installer/installer_builder
|
||||
/// using strings defined in stringnames.txt (same dir)
|
||||
|
||||
$string['aborting'] = 'Odustajanje od instalacije';
|
||||
$string['admindirerror'] = 'Specificirani administratorski direktorijum je netačan';
|
||||
$string['admindirname'] = 'Administratorski direktorijum';
|
||||
$string['admindirsetting'] = 'Poneki Web serveri koriste /admin kao specijalni URL za pristup raznim podešavanjima ili nečem drugom. Nažalost to je u konfliktu sa standardnom Moodle lokacijom za administratorske stranice. Možete rešiti problem preimenovanjem administratorskog direktorijuma u Vašoj instalaciji, i navođenjem tog novog naziva ovde. Na primer: <br /> <br /><b>moodleadmin</b><br /> <br />
|
||||
@@ -16,8 +17,17 @@ Ovo podešavanje će prepraviti administratorske linkove u Moodle sistemu.';
|
||||
$string['admindirsettinghead'] = 'Podešavanje administratorskog direktorijuma';
|
||||
$string['admindirsettingsub'] = 'Poneki Web serveri koriste /admin kao specijalni URL za pristup raznim podešavanjima ili nečem drugom. Nažalost to je u konfliktu sa standardnom Moodle lokacijom za administratorske stranice. Možete rešiti problem preimenovanjem administratorskog direktorijuma u Vašoj instalaciji, i navođenjem tog novog naziva ovde. Na primer: <br /> <br /><b>moodleadmin</b><br /> <br />
|
||||
Ovo podešavanje će prepraviti administratorske linkove u Moodle sistemu.';
|
||||
$string['availablelangs'] = 'Dostupni jezički paketi';
|
||||
$string['adminemail'] = 'Adresa e-pošte :';
|
||||
$string['adminfirstname'] = 'Ime :';
|
||||
$string['admininfo'] = 'Podaci o administratoru';
|
||||
$string['adminlastname'] = 'Prezime :';
|
||||
$string['adminpassword'] = 'Lozinka :';
|
||||
$string['adminusername'] = 'Korisničko ime :';
|
||||
$string['askcontinue'] = 'Nastavi (da/ne) :';
|
||||
$string['availabledbtypes'] = 'Dostupne baze podataka';
|
||||
$string['availablelangs'] = 'Spisak dostupnih jezika';
|
||||
$string['bypassed'] = 'Izbegnuto';
|
||||
$string['cannotconnecttodb'] = 'Nije moguće uspostaviti vezu sa bazom podataka';
|
||||
$string['cannotcreatelangdir'] = 'Nije moguće kreiranje direktorijuma jezika';
|
||||
$string['cannotcreatetempdir'] = 'Nije moguće kreiranje privremenog direktorijuma.';
|
||||
$string['cannotdownloadcomponents'] = 'Nije moguće preuzimanje komponenti.';
|
||||
@@ -28,7 +38,8 @@ $string['cannotsavezipfile'] = 'Nije moguće čuvanje arhive.';
|
||||
$string['cannotunzipfile'] = 'Nije moguće raspakivanje datoteke.';
|
||||
$string['caution'] = 'Oprez';
|
||||
$string['check'] = 'Proveri';
|
||||
$string['chooselanguage'] = 'Izaberite jezik';
|
||||
$string['checkingphpsettings'] = 'Provera PHP podešavanja';
|
||||
$string['chooselanguage'] = 'Izaberi jezik';
|
||||
$string['chooselanguagehead'] = 'Izaberite jezik';
|
||||
$string['chooselanguagesub'] = 'Molimo izaberite jezik koji će se koristiti samo tokom instalacije. Kasnije ćete moći da izaberete jezička podešavanja na nivou sajta i korisnika.';
|
||||
$string['closewindow'] = 'Zatvorite ovaj prozor';
|
||||
@@ -36,13 +47,20 @@ $string['compatibilitysettings'] = 'Provera Vaših PHP podešavanja...';
|
||||
$string['compatibilitysettingshead'] = 'Provera Vaših PHP podešavanja...';
|
||||
$string['compatibilitysettingssub'] = 'Vaš server bi trebao proći sve ove testove da bi Moodle na njemu uspešno funkcionisao';
|
||||
$string['componentisuptodate'] = 'Komponenta je dostupna u svojoj najnovijoj verziji.';
|
||||
$string['configfilecreated'] = 'Konfiguraciona dadoteka je uspešno kreirana';
|
||||
$string['configfiledoesnotexist'] = 'Konfiguraciona dadoteka ne postoji!!!';
|
||||
$string['configfilenotwritten'] = 'Instalacioni skript nije bio u mogućnosti da automatski kreira datoteku config.php koja bi sadržavala Vaša odabrana podešavanja, verojatno zbog toga što nema prava na pisanje (menjanje sadržaja) u Vašem Moodle direktorijumu. Ako to želite, možete ručno kopirati kod u datoteku config.php u osnovnom direktorijumu Vaše Moodle instalacije.';
|
||||
$string['configfilewritten'] = 'config.php je uspešno kreiran';
|
||||
$string['configurationcomplete'] = 'Konfiguracija je završena';
|
||||
$string['configurationcompletehead'] = 'Konfiguracija je završena';
|
||||
$string['configurationcompletesub'] = 'Moodle je pokušao da sačuva Vašu konfiguraciju u datoteci smeštenoj u korenskom direktorijumu Moodle instalacije.';
|
||||
$string['configurationfileexist'] = 'Konfiguraciona datoteka već postoji';
|
||||
$string['continue'] = 'Nastavak';
|
||||
$string['creatingconfigfile'] = 'Kreiranje konfiguracione datoteke';
|
||||
$string['ctyperecommended'] = 'Instaliranje opcione PHP ekstenzije ctype se strogo preporučuje da bi se unapredilo funkcionisanje sajta, pogotovo ako Vaš sajt podržava ne-latinične jezike.';
|
||||
$string['ctyperequired'] = 'PHP ekstenzije ctype je sada obavezna za Moodle, da bi se unapredilo funkcionisanje sajta i da bi se nudila višejezična kompatibilnost.';
|
||||
$string['curlrecommended'] = 'Instaliranje opcione Curl biblioteke je vrlo preporučljivo, jer je ona neophodna za uspešno korišćenje funkcija za umrežavanje.';
|
||||
$string['curlrequired'] = 'PHP ekstenziju cURL sada je obavezna za Moodle da bi se komuniciralo sa Moodle repozitorijumima';
|
||||
$string['customcheck'] = 'Druge provere';
|
||||
$string['database'] = 'Baza podataka';
|
||||
$string['databasecreationsettings'] = 'Sada je potrebno konfigurisati podešavanja baze podataka u kojoj će se čuvati najveći deo Moodle podataka. Ta baza podataka će biti kreirana automatski prilikom instalacije, sa podešavanjima specificiranim ispod. <br />
|
||||
@@ -60,6 +78,9 @@ $string['databasecreationsettingssub'] = '<b>Tip:</b> postavljeno na \"mysql\" p
|
||||
<b>Korisnik:</b> postavljeno na \"root\" prilikom instalacije<br />
|
||||
<b>Lozinka:</b> Vaša lozinka za bazu podataka<br />
|
||||
<b>Prefiks tabela:</b> opcioni prefiks koji će se koristiti u nazivima svih tabela';
|
||||
$string['databasehost'] = 'Server baze podataka :';
|
||||
$string['databasename'] = 'Ima baze podataka :';
|
||||
$string['databasepass'] = 'Lozinka za pristup bazi podataka :';
|
||||
$string['databasesettings'] = 'Sada je potrebno konfigurisati bazu podataka u kojoj će se čuvati veći deo Moodle podataka. Ta baza podataka mora već biti kreirana, kao i korisničko ime i lozinka za pristup istoj.<br/>
|
||||
<br /> <br />
|
||||
<b>Tip:</b> mysql ili postgres7<br />
|
||||
@@ -68,6 +89,7 @@ $string['databasesettings'] = 'Sada je potrebno konfigurisati bazu podataka u ko
|
||||
<b>Korisnik:</b> korisničko ime za pristup bazi podataka<br />
|
||||
<b>Lozinka:</b> lozinka za pristup bazi podataka<br />
|
||||
<b>Prefiks tabela:</b>opcioni prefiks koji će se koristiti u nazivima svih tabela';
|
||||
$string['databasesettingsformoodle'] = 'Podešavanja baze podataka za Moodle';
|
||||
$string['databasesettingshead'] = 'Sada je potrebno konfigurisati bazu podataka u kojoj će se čuvati veći deo Moodle podataka. Ta baza podataka mora već biti kreirana, kao i korisničko ime i lozinka za pristup istoj.';
|
||||
$string['databasesettingssub'] = '<b>Tip:</b> mysql ili postgres7<br />
|
||||
<b>Server:</b> npr. localhost ili db.isp.com<br />
|
||||
@@ -117,6 +139,16 @@ $string['databasesettingssub_postgres7'] = '<b>Tip:</b> PostgreSQL<br />
|
||||
<b>Korisnik:</b> Vaše korisničko ime za pristup bazi podataka<br />
|
||||
<b>Lozinka:</b> Vaša lozinka za pristup bazi podataka<br />
|
||||
<b>Prefiksi tabela:</b> prefiks koji će se koristiti u nazivima svih tabela (obavezno)';
|
||||
$string['databasesettingssub_sqlite3_pdo'] = '<b>Tip:</b> SQLite 3 (PDO) <b><strong class=\"errormsg\">Eksperimentalno! (nije za zvanično korišćenje)</strong></b><br />
|
||||
<b>Host:</b> putanja do direktorijuma gde će biti sačuvane datoteke baze podataka (koristiti potpunu putanju); koristiti localhost ili ostaviti prazno da bi bio korišćen direktorijum Moodle data <br />
|
||||
<b>Ime:</b> ime baze podataka, npr. moodle (opciono)<br />
|
||||
<b>Korisnik:</b> korisničko ime Vaše baze podataka (opciono)<br />
|
||||
<b>Lozinka:</b> lozinka za pristup Vašoj bazi podataka (opciono)<br />
|
||||
<b>Prefiks imena tabela:</b> opcioni prefiks koji se koristi kod imena tabela <br />
|
||||
Ime datoteke baze podataka biće određeno prema korisničkom imenu, imenu baze podataka i prema lozinki koju ste uneli iznad.';
|
||||
$string['databasesettingswillbecreated'] = '<b>Napomena:</b> Program ѕa instalaciju će automatski pokušati da kreira bazu podataka ukoliko ona ne postoji.';
|
||||
$string['databasetype'] = 'Vrsta baze podataka :';
|
||||
$string['databaseuser'] = 'Korisničko ime za pristup bazi podataka :';
|
||||
$string['dataroot'] = 'Direktorijum podataka';
|
||||
$string['datarooterror'] = '\'Direktorijum podataka\' koji ste naveli ne može biti pronađen ili kreiran. Unesite tačnu putanju ili napravite taj direktorijum ručno.';
|
||||
$string['dbconnectionerror'] = 'Nemoguće je uspostaviti vezu sa bazom podataka koju ste naveli. Molimo proverite podešavanja baze podataka.';
|
||||
@@ -156,13 +188,16 @@ Vodite računa o velikim i malim slovima.
|
||||
Morate odrediti mesto na kom će Moodle čuvati postavljene datoteke. Korisnik web servera (obično \'niko\' ili \'apache\') bi morao imati mogućnost da čita podatke iz tog direktorijuma, ali i da ih u njega upisuje, ali oni ne bi trebali biti dostupni direktno preko web-a.';
|
||||
$string['dirroot'] = 'Moodle direktorijum';
|
||||
$string['dirrooterror'] = 'Podešavanje \'Moodle direktorijuma\' je čini se netačno - ne može se tamo naći Moodle instalacija. Niža vrednost će biti ponovo dovedena na početni položaj.';
|
||||
$string['disagreelicense'] = 'Nadogradnja se ne može nastavti zbog neslaganja sa GPL licencom!';
|
||||
$string['download'] = 'Preuzeti';
|
||||
$string['downloadedfilecheckfailed'] = 'Nije uspela provera preuzete datoteke.';
|
||||
$string['downloadlanguagebutton'] = 'Preuzmi \"$a\" jezički paket';
|
||||
$string['downloadlanguagehead'] = 'Preuzmi jezički paket';
|
||||
$string['downloadlanguagenotneeded'] = 'Možete nastaviti proces instalacije korišćenjem podrazumevanog jezičkog paketa, \"$a\".';
|
||||
$string['downloadlanguagepack'] = 'Da li želite da sada preuzmete jezički paket (da/ne) :';
|
||||
$string['downloadlanguagesub'] = 'Sada imate mogućnost preuzimanja željenog jezičkog paketa i nastavka instalacionog procesa na tom jeziku.<br /><br />Ako niste u mogućnosti da preuzmete jezički paket, instalacioni proces će se nastaviti na engleskom jeziku. (Kada se instalacija završi, imaćete mogućnost da preuzmete i instalirate dodatne jezičke pakete.)';
|
||||
$string['doyouagree'] = 'Jeste li pročitali navedene uslove i razumeli ih u potpunosti?';
|
||||
$string['downloadsuccess'] = 'Jezički paket je uspešno preuzet';
|
||||
$string['doyouagree'] = 'Da li se slažete? (da/ne)';
|
||||
$string['environmenterrortodo'] = 'Morate rešiti sve probleme okruženja (greške) navedene iznad pre nastavka instalacije ove Moodle verzije!';
|
||||
$string['environmenthead'] = 'Proveravanje Vašeg okruženja...';
|
||||
$string['environmentrecommendcustomcheck'] = 'ukoliko ovaj test ne prođe, postoji mogućnost pojavljivanja potencijalnog problema.';
|
||||
@@ -174,6 +209,7 @@ $string['environmentrequireversion'] = 'neophodna verzija je $a->needed a Vi tre
|
||||
$string['environmentsub'] = 'Proverava se da li razne komponente Vašeg sistema zadovoljavaju sistemske zahteve';
|
||||
$string['environmentxmlerror'] = 'Greška u čitanju podataka okruženja ($a->error_code)';
|
||||
$string['error'] = 'Greška';
|
||||
$string['errorsinenvironment'] = 'Greške u okruženju';
|
||||
$string['fail'] = 'Nije prošlo';
|
||||
$string['fileuploads'] = 'Postavljanje datoteka';
|
||||
$string['fileuploadserror'] = 'Ova opcija bi trebala biti uključena';
|
||||
@@ -201,16 +237,33 @@ $string['globalsquoteshelp'] = '<p>Kombinacija istovremeno onemogućenog podeša
|
||||
<blockquote>php_value magic_quotes_gpc On</blockquote>
|
||||
<blockquote>php_value register_globals Off</blockquote>
|
||||
</p>';
|
||||
$string['globalswarning'] = 'p><strong>Bezbednosno upozerenje</strong>: da bi funkcionisao ispravno, Moodle zahteva <br />da napravite neke izmene u vašim PHP podešavanjima.<p/><p><em>Morate</em> da postavite <code>register_globals=off</code>.<p>Ovo podešavanje je pod kontrolom vaše <code>php.ini</code>, Apache/IIS <br />konfiguracije ili <code>.htaccess</code> datoteke.</p>';
|
||||
$string['help'] = 'Pomoć';
|
||||
$string['iconvrecommended'] = 'Instaliranje opcione ICONV biblioteke je vrlo preporučljivo u cilju unapređivanja performansi sajta, pogotovo ako Vaš sajt podržava jezike koji ne koriste latinično pismo.';
|
||||
$string['info'] = 'Informacija';
|
||||
$string['inputdatadirectory'] = 'Direktorijum podatka';
|
||||
$string['inputwebadress'] = 'Web adresa :';
|
||||
$string['inputwebdirectory'] = 'Direktorijum Moodlea';
|
||||
$string['installation'] = 'Instalacija';
|
||||
$string['invalidemail'] = 'Nevažeća adresa elektronske pošte';
|
||||
$string['invalidmd5'] = 'Nevalidna md5 datoteka';
|
||||
$string['invalidurl'] = 'Nevalidni url';
|
||||
$string['langdownloaderror'] = 'Nažalost jezik \"$a\" nije instaliran. Instalacioni proces će biti nastavljen na engleskom jeziku.';
|
||||
$string['installationiscomplete'] = 'Instalacija je završena';
|
||||
$string['invalidargumenthelp'] = 'Greška: Neispravni argument(i)
|
||||
Upotreba: $php cliupgrade.php OPTIONS
|
||||
Iskoristi opciju --help za dodatnu pomoć';
|
||||
$string['invalidemail'] = 'Neispravna adresa e-pošte';
|
||||
$string['invalidhost'] = 'Neispravan host';
|
||||
$string['invalidint'] = 'Greška: vrednost nije ceo broj';
|
||||
$string['invalidintrange'] = 'Greška: vrednost je izvan ispravnog opsega';
|
||||
$string['invalidmd5'] = 'Neispravna md5 datoteka';
|
||||
$string['invalidpath'] = 'Neispravna putanja';
|
||||
$string['invalidsetelement'] = 'Greška: Zadata vrednost se ne nalazi među ponuđenim opcijama';
|
||||
$string['invalidtextvalue'] = 'Neispravna tekstalna vrednost';
|
||||
$string['invalidurl'] = 'Neispravna URL adresa';
|
||||
$string['invalidvalueforlanguage'] = 'Neispravna vrednost za opciju --lang. Kucajte --help za pomoć';
|
||||
$string['invalidyesno'] = 'Geška: vrednost nije ispravan da/ne adrgument';
|
||||
$string['langdownloaderror'] = 'Nažalost jezik \"$a\" nije instaliran. Proces instalacije biće nastavljen na engleskom jeziku.';
|
||||
$string['langdownloadok'] = 'Jezik \"$a\" je uspešno instaliran. Instalacioni proces će biti nastavljen na ovom jeziku.';
|
||||
$string['language'] = 'Jezik';
|
||||
$string['locationanddirectories'] = 'Lokacije i direktorijumi';
|
||||
$string['magicquotesruntime'] = 'Magic Quotes vreme izvršavanja';
|
||||
$string['magicquotesruntimeerror'] = 'Ova opcija bi trebala biti isključena';
|
||||
$string['magicquotesruntimehelp'] = '<p>Magic Quotes vreme izvršavanja bi trebalo isključiti da Moodle propisno funkcioniše.</p>
|
||||
@@ -256,9 +309,13 @@ $string['parentlanguage'] = '<< PREVODIOCI: Ako Vaš jezik ima nadređeni jezik
|
||||
$string['pass'] = 'Prošlo';
|
||||
$string['password'] = 'Lozinka';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'PHP nije bio propisno konfigurisan sa PGSQL ekstenzijom tako da može komunicirati sa PostgreSQLom. Molimo Vas da proverite svoju php.ini datoteku ili opet kompajlirate PHP.';
|
||||
$string['php50restricted'] = 'PHP 5.0.x ima više poznatih problema, molimo unapredite ga do verzije 5.1.x ili snizite do 4.3.x ili 4.4.x';
|
||||
$string['php50restricted'] = 'PHP 5.0.x ima više poznatih problema, molimo unapredite PHP na verzije 5.1.x ili instalirajte verziju 4.3.x odnosno 4.4.x';
|
||||
$string['php52versionerror'] = 'Verzija PHP mora biti najmanje 5.2.0.';
|
||||
$string['php52versionhelp'] = '<p>Moodle zahteva verziju PHP najmanje 5.2.0.</p>
|
||||
<p>Trenutno Vam radi verzija $a</p>
|
||||
<p>Morate unaprediti verziju PHP ili preseliti sajt na server domaćin koji ima noviju verziju PHP!</p>';
|
||||
$string['phpversion'] = 'PHP verzija';
|
||||
$string['phpversionerror'] = 'PHP verzija mora biti bar 4.3.0 ili 5.1.0 (5.0.x funkcioniše uz brojne uočene probleme)';
|
||||
$string['phpversionerror'] = 'PHP verzija mora biti bar 4.3.0 ili 5.1.0 (5.0.x funkcioniše uz brojne uočene probleme)'; // ORPHANED
|
||||
$string['phpversionhelp'] = '<p>Moodle zahteva najmanje PHP verziju 4.3.0 ili 5.1.0 (5.0.x funkcioniše uz brojne uočene probleme).</p>
|
||||
<p>Trenutno imate verziju $a</p>
|
||||
<p>Morate nadograditi PHP ili premestiti Moodle instalaciju na web server sa novijom verzijom PHP-a!</br>
|
||||
@@ -267,7 +324,8 @@ $string['postgres7'] = 'PostgreSQL (postgres7)';
|
||||
$string['previous'] = 'Prethodni';
|
||||
$string['qtyperqpwillberemoved'] = 'Tokom nadogradnje, RQP tipovi pitanja biće uklonjeni. Nećete koristiti ovaj tip pitanja, tako da ne očekujte probleme u vezi s tim.';
|
||||
$string['qtyperqpwillberemovedanyway'] = 'Tokom nadogradnje biće uklonjen RQP tip pitanja. Kako imate neka RQP pitanja u svojoj bazi, preporučuje se da ponovo instalirate dodatak sa http://moodle.org/mod/data/view.php?d=13&rid=797 pre nastavka nadogradnje da bi ona mogla i dalje nesmetano da se koriste.';
|
||||
$string['releasenoteslink'] = 'Za informacije o ovoj Moodle verziji, molimo pogledajte online <a target=\"_new\" href=\"$a\">Beleške o izdanju</a>';
|
||||
$string['releasenoteslink'] = 'Za više informaciji o ovoj verziji Moodlea, pogledajte <em>Release Notes</em> na $a';
|
||||
$string['remotedownloaderror'] = 'Preuzimanje komponente na Vaš server nije uspelo. Proverite podešavanja proksi serevera. PHP cURL ekstenzija se preporučuje.<br /><br />Morate da preuzmete <a href=\"$a->url\">$a->url</a> datoteku ručno, kopirate je u direktorijum \"$a->dest\" na svom sereveru tamo je raspakujete.';
|
||||
$string['remotedownloadnotallowed'] = 'Nije dozvoljeno preuzimanje komponenti na Vaš server (opcija allow_url_fopen je onemogućena).<br /><br />Morate ručno preuzeti datoteku <a href=\"$a->url\">$a->url</a>, kopirati je u \"$a->dest\" na svom serveru i tamo je raspakovati.';
|
||||
$string['report'] = 'Izveštaj';
|
||||
$string['restricted'] = 'Ograničeno';
|
||||
@@ -278,20 +336,74 @@ $string['safemodehelp'] = '<p>Moodle može imati različite probleme sa uključe
|
||||
<p>Bezbedni mod rada je obično jedino dozvoljen na paranoičnim javnim Web serverima, tako da možete prosto naći web server kod neke druge kuće za Vaš Moodle sajt.</p>
|
||||
|
||||
<p>Možete pokušati nastaviti sa instalacijom ako želite, ali očekujte nekoliko problema kasnije.</p>';
|
||||
$string['selectlanguage'] = 'Izbor jezika za instalaciju';
|
||||
$string['serverchecks'] = 'Provere servera';
|
||||
$string['sessionautostart'] = 'Automatski početak akcije';
|
||||
$string['sessionautostart'] = 'Automatski početak sesije';
|
||||
$string['sessionautostarterror'] = 'Ova opcija bi trebala biti isključena';
|
||||
$string['sessionautostarthelp'] = '<p>Moodle zahteva podršku za sesije i neće funcionisati bez nje.</p>
|
||||
|
||||
<p>Rad sa sesijama se može omogućiti u php.ini datoteci... potražite session.auto_start parametar.</p>';
|
||||
$string['sitefullname'] = 'Pun naziv sajta :';
|
||||
$string['siteinfo'] = 'Detalji o sajtu';
|
||||
$string['sitenewsitems'] = 'Vesti :';
|
||||
$string['siteshortname'] = 'Kratak naziv sajta :';
|
||||
$string['sitesummary'] = 'Kratak pregled sajta :';
|
||||
$string['skipdbencodingtest'] = 'Preskočiti test kodnog rasporeda baze podataka';
|
||||
$string['sqlite3_pdo'] = 'SQLite 3 (PDO) <b><strong class=\"errormsg\">Eksperimentalno! (nije za zvanično korišćenje)</strong></b>';
|
||||
$string['sqliteextensionisnotpresentinphp'] = 'PHP nije pravilno podešen sa ekstenzijom SQLite. Molimo proverite Vašu datoteku php.ini ili ponovo kompajlirajte PHP.';
|
||||
$string['status'] = 'Status';
|
||||
$string['tableprefix'] = 'Prefiks tabele :';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thislanguage'] = 'Srpski';
|
||||
$string['unicoderecommended'] = 'Preporučljivo je smeštanje vaših podataka u Unikod (UTF-8) standard. Nove instalacije biće izvršene nad bazama koji kao podrazumevan karakter-set imaju podešen Unikod. Ukoliko vršite nadogradnju, potrebno je pokrenuti UTF-8 proces migracije (pogledati Admin stranu).';
|
||||
$string['unicoderequired'] = 'Potrebno je da sve vaše podatke smeštate u Unikod formatu (UTF-8).Nove instalacije moraju biti primenjene u bazama podataka koje imaju osnovni karakterni set namešten na Unikod. Ukoliko vršite nadogradnju, potrebno je pokrenuti UTF-8 proces migracije (pogledati Admin stranu).';
|
||||
$string['upgradingactivitymodule'] = 'Nadogradnja modula Aktivnost';
|
||||
$string['upgradingbackupdb'] = 'Nadogradnja rezervne kopije baze podataka';
|
||||
$string['upgradingblocksdb'] = 'Nadogradnja blokova baze podatka';
|
||||
$string['upgradingblocksplugin'] = 'Nadogradnja dodatka za blokove';
|
||||
$string['upgradingcompleted'] = 'Nadogradnja je završeno...';
|
||||
$string['upgradingcourseformatplugin'] = 'Nadogradnja dodatka za format kursa';
|
||||
$string['upgradingenrolplugin'] = 'Nadogradnja dodatka za upis';
|
||||
$string['upgradinggradeexportplugin'] = 'Nadogradnja dodatka za izvoz ocena';
|
||||
$string['upgradinggradeimportplugin'] = 'Nadogradnja dodatka za uvoz ocena';
|
||||
$string['upgradinggradereportplugin'] = 'Nadogradnja dodatka za izveštaj o ocenama';
|
||||
$string['upgradinglocaldb'] = 'Nadogradlja lokalne baze podataka';
|
||||
$string['upgradingmessageoutputpluggin'] = 'Unapređenje dodatka Izlaz Poruke';
|
||||
$string['upgradingqtypeplugin'] = 'Nadogradnja dodatka za pitanja/tipove';
|
||||
$string['upgradingrpcfunctions'] = 'Nadogradnja ROC funkcija';
|
||||
$string['usagehelp'] = 'Synopsis:
|
||||
$php cliupgrade.php OPTIONS
|
||||
|
||||
OPTIONS
|
||||
--lang Ispravni instalirani jezik za instalaciju. Podrazumevan je engleski English(en)
|
||||
--webaddr Web adresa Moodle sajta
|
||||
--dir Lokacija moodle Web direktorijuma
|
||||
--datadir Lokacija moodle direktorijuma za podatke (ne bi trebalo da bude vidljiv na Webu)
|
||||
--dbtype Tip baze podataka. Podrazumevana je mysql
|
||||
--dbhost Ime računara servera baze podataka. Podrazumevno je localhost
|
||||
--dbname Ime baze podataka. Podrazumevano je moodle
|
||||
--dbuser Korisničko ime na serveru baze podataka. Podrazumevano je prazno
|
||||
--dbpass Lozinka korisničkog naloga na serveru baze podataka. Podrazumevano je prazno
|
||||
--prefix Prefiks imena tabelâ za bazu podataka iznad. Podrazumevano je mdl
|
||||
--verbose 0 Nema izlaza, 1 Sumarni izlaz(Podrazumevano), 2 Detaljni izlaz
|
||||
--interactivelevel 0 Neinteraktivni, 1 poluinteraktivni(Podrazumevano), 2 interaktivno
|
||||
--agreelicense Da(Podrazumevano) ili Ne
|
||||
--confirmrelease Da(Podrazumevano) ili Ne
|
||||
--sitefullname Puno ime sajta. Podrazumevano je: Moodle Site (Molimo da promenite podrazumevano ime!!)
|
||||
--siteshortname Kraće ime sajta. Podrazumevano je moodle
|
||||
--sitesummary Pregled opcija za sajt. Podrazumevano je prazno
|
||||
--adminfirstname ime administratora. Podrazumevano je Admin
|
||||
--adminlastname Prezime administratora. Podrazumevano je User
|
||||
--adminusername Korisničko ime administratora. Podrazumevano je admin
|
||||
--adminpassword Lozinka administratora. Podrazumevano je admin
|
||||
--adminemail Adresa e-pošte administratora. Podrazumevano je root@localhost
|
||||
--help štampa ovu pomoć
|
||||
|
||||
Način korišćenja:
|
||||
$php cliupgrade.php --lang=en --webaddr=http://www.example.com --moodledir=/var/www/html/moodle --datadir=/var/moodledata --dbtype=mysql --dbhost=localhost --dbname=moodle --dbuser=root --prefix=mdl --agreelicense=yes --confirmrelease=yes --sitefullname=\"Example Moodle Site\" --siteshortname=moodle --sitesummary=siteforme --adminfirstname=Admin --adminlastname=User --adminusername=admin --adminpassword=admin --adminemail=admin@example.com --verbose=1 --interactivelevel=2';
|
||||
$string['user'] = 'Korisnik';
|
||||
$string['versionerror'] = 'Korisnik je odbačen zbog greške u verziji';
|
||||
$string['welcomep10'] = '$a->installername ($a->installerversion)';
|
||||
$string['welcomep20'] = 'Prikazana Vam je ova stranica jer ste uspešno instalirali i pokrenuli <strong>$a->packname $a->packversion</strong> paket na Vašem računaru. Čestitamo!';
|
||||
$string['welcomep30'] = 'Ovo izdanje <strong>$a->installername</strong> uključuje aplikacije za kreiranje okruženja u kom će <strong>Moodle</strong> uspešno funkcionisati, konkretno:';
|
||||
@@ -299,9 +411,14 @@ $string['welcomep40'] = 'Ovaj paket obuhvata i <strong>Moodle $a->moodlerelease
|
||||
$string['welcomep50'] = 'Korišćenje aplikacija iz ovog paketa je uslovljeno njhovim licencama. Kompletan <strong>$a->installername</strong> paket je <a href=\"http://www.opensource.org/docs/definition_plain.html\">otvorenog koda</a> i distribuira se pod <a href=\"http://www.gnu.org/copyleft/gpl.html\">GPL</a> licencom.';
|
||||
$string['welcomep60'] = 'Naredne stranice će Vas provesti kroz nekoliko jednostavnih koraka tokom kojih ćete konfigurisati <strong>Moodle</strong> na Vašem računaru. Možete prihvatiti podrazumevana podešavanja ili ih, opciono, prilagoditi sopstvenim potrebama.';
|
||||
$string['welcomep70'] = 'Kliknite na dugme za nastavak da biste dalje podešavali <strong>Moodle</strong>.';
|
||||
$string['welcometext'] = '---Dobrodošli u komandnu liniju programa za instalaciju Moodlea---';
|
||||
$string['writetoconfigfilefaild'] = 'Greška: Zapisivanje u konfiguracionu datoteku nije uspelo';
|
||||
$string['wrongdestpath'] = 'Pogrešna odredišna putanja.';
|
||||
$string['wrongsourcebase'] = 'Pogrešan izvorni URL baze.';
|
||||
$string['wrongzipfilename'] = 'Pogrešan naziv arhive.';
|
||||
$string['wwwroot'] = 'Web adresa';
|
||||
$string['wwwrooterror'] = 'Navedena \'Web adresa\' se čini nevalidnom - ova Moodle instalacija izgleda nije na njoj. Vrednost navedena ispod je resetovana.';
|
||||
$string['xmlrpcrecommended'] = 'Instaliranje opcionog xmlrpc proširenja je korisno za funkcionalnost Moodle umrežavanje.';
|
||||
$string['yourchoice'] = 'Vaš izbor :';
|
||||
$string['ziprequired'] = 'PHP Ekstenzija Zip sada je obavezna za Moodle, binarne datoteke info-ZIP i biblioteka PclZip više se ne koriste.';
|
||||
?>
|
||||
|
||||
@@ -56,6 +56,7 @@ $string['configurationfileexist'] = 'Yapılandırma dosyası zaten var!';
|
||||
$string['continue'] = 'Devam';
|
||||
$string['creatingconfigfile'] = 'Yapılandırma dosyası oluşturuluyor...';
|
||||
$string['curlrecommended'] = 'Moodle Ağının işlevsel bir şekilde çalışması için isteğe bağlı Curl kütüphanesinin kurulması şiddetle tavsiye edilir.';
|
||||
$string['curlrequired'] = 'cURL PHP eklentisi, Moodle kaynakları ile iletişim kurulabilmesi için gereklidir.';
|
||||
$string['customcheck'] = 'Diğer Kontroller';
|
||||
$string['database'] = 'Veritabanı';
|
||||
$string['databasecreationsettings'] = 'Şimdi, Moodle verilerinin saklanacağı veritabanını
|
||||
@@ -321,8 +322,8 @@ $string['pass'] = 'Geçti';
|
||||
$string['password'] = 'Şifre';
|
||||
$string['pgsqlextensionisnotpresentinphp'] = 'PHP, PostgreSQL ile iletişim kurabilmek için pgsql uzantısı düzgün bir şekilde yapılandırılmamış. Lütfen php.ini dosyasını kontrol edin veya PHP\'yi tekrar derleyin.';
|
||||
$string['php50restricted'] = 'PHP 5.0.x sürümünde çok fazla hata var. Lütfen sürümü, 5.1.x\'e yükseltin ya da 4.3.x veya 4.4.x sürümüne düşürün.';
|
||||
$string['php52versionerror'] = 'En düşük PHP 5.2.0 sürümü gerekli';
|
||||
$string['php52versionhelp'] = '<p>Moodle en düşük PHP 5.2.0 sürümü ile çalışır.</p>
|
||||
$string['php52versionerror'] = 'En düşük PHP 5.2.4 sürümü gerekli';
|
||||
$string['php52versionhelp'] = '<p>Moodle en düşük PHP 5.2.4 sürümü ile çalışır.</p>
|
||||
<p>Şu anda çalışan sürüm $a</p>
|
||||
<p>PHP güncellemesi yapmalı veya en yeni PHP sürümü kullanan bir hostinge taşınmalısınız!</p>';
|
||||
$string['phpversion'] = 'PHP sürümü';
|
||||
@@ -355,6 +356,8 @@ $string['sitenewsitems'] = 'Haber Öğeleri';
|
||||
$string['siteshortname'] = 'Site kısa adı:';
|
||||
$string['sitesummary'] = 'Site özeti:';
|
||||
$string['skipdbencodingtest'] = 'Veritabanı Dil Kodlama Testini Atla';
|
||||
$string['sqlite3_pdo'] = 'SQLite 3 (PDO) <b><strong class=\"errormsg\">Deneysel! (gerçek kullanım için değil)</strong></b>';
|
||||
$string['sqliteextensionisnotpresentinphp'] = 'PHP SQLite uzantısı düzgün bir şekilde yapılandırılmamış. Lütfen php.ini dosyasını kontrol edin veya PHP\'yi tekrar derleyin.';
|
||||
$string['status'] = 'Durum';
|
||||
$string['tableprefix'] = 'Tablo öneki:';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
@@ -422,5 +425,7 @@ $string['wrongsourcebase'] = 'Hatalı kaynak URL base.';
|
||||
$string['wrongzipfilename'] = 'Hatalı ZIP dosya adı.';
|
||||
$string['wwwroot'] = 'Web adresi';
|
||||
$string['wwwrooterror'] = 'Web adresi doğru ayarlanmış görünmüyor. Moodle kurulumu belirtilen yerde görünmüyor.';
|
||||
$string['xmlrpcrecommended'] = 'İsteğe bağlı xmlrpc eklentisinin kurulması, Moodle Ağı işlevselliği için kullanışlıdır.';
|
||||
$string['yourchoice'] = 'Seçiminiz:';
|
||||
$string['ziprequired'] = 'Moodle, Zip PHP eklentisini gerektirir. Info-ZIP dosyaları veya PclZip kütüphanesi artık kullanılmamaktadır.';
|
||||
?>
|
||||
|
||||
@@ -63,10 +63,22 @@ $string['databasesettingssub'] = '<b>資料庫系統:</b> mysql 或 postgres7<br
|
||||
<b>資料表的前置字元:</b> 針對所有資料表名稱,選擇性的前置字元';
|
||||
$string['databasesettingssub_mssql'] = '<b>類型:</b> SQL*Server (非UTF-8) <b><font color=\"red\">實驗的!(不能用在產品中)</font></b><br /> <b>主機:</b> 例如,localhost 或者 db.isp.com<br /> <b>名稱:</b> 資料庫名稱:例如 moodle<br /> <b>帳號:</b> 您的資料庫帳號<br /> <b>密碼:</b> 您的資料庫密碼<br /> <b>資料表的前置字元:</b> 在所有的表格名稱前加上前置字元 (強制的)';
|
||||
$string['databasesettingssub_mssql_n'] = '<b>類型:</b> SQL*Server (UTF-8 可以)<br /> <b>主機:</b> 例如,localhost或者db.isp.com<br /> <b>名稱:</b>資料庫名稱,例如moodle<br /> <b>帳號:</b> 您的資料庫帳號<br /> <b>密碼:</b> 您的資料庫密碼<br /> <b>表格前置字元:</b> 在所有的表格名稱前加上字首 (強制的)';
|
||||
$string['databasesettingssub_mysql'] = '<b>類型:</b> MySQL<br /> <b>主機:</b> 例如,localhost或者db.isp.com<br /> <b>名稱:</b> 資料庫名稱,例如moodle<br /> <b>帳號:</b> 您的資料庫帳號<br /> <b>密碼:</b> 您的資料庫密碼<br /> <b>表格前置字元:</b> 在所有的表格名稱前加上字首(可選的)';
|
||||
$string['databasesettingssub_mysql'] = '<b>類型:</b> MySQL<br/>
|
||||
<b>主機:</b> 例如,localhost或者db.dn.edu.tw<br/>
|
||||
<b>名稱:</b> 資料庫名稱,例如moodle<br/>
|
||||
<b>帳號:</b> 您的資料庫帳號<br/>
|
||||
<b>密碼:</b> 您的資料庫密碼<br/>
|
||||
<b>表格前置字元:</b>在所有的表格名稱前加上字首(可自選的)';
|
||||
$string['databasesettingssub_mysqli'] = '<b>類型:</b> 改良的MySQL<br/>
|
||||
<b>主機:</b> 例如,localhost或者db.dn.edu.tw<br/>
|
||||
<b>名稱:</b> 資料庫名稱,例如moodle<br/>
|
||||
<b>帳號:</b> 您的資料庫帳號<br/>
|
||||
<b>密碼:</b> 您的資料庫密碼<br/>
|
||||
<b>表格前置字元:</b>在所有的表格名稱前加上字首(可自選的)';
|
||||
$string['databasesettingssub_oci8po'] = '<b>類型:</b> Oracle<br /> <b>主機:</b> 不需要,必須留空<br /> <b>名稱:</b> 給出tnsnames.ora連接的名稱<br /> <b>帳號:</b> 您的資料庫帳號<br /> <b>密碼:</b> 您的資料庫密碼<br /> <b>表格字首:</b> 在所有的表格名稱前加上字首(強制的, 最大2cc.)';
|
||||
$string['databasesettingssub_odbc_mssql'] = '<b>類型:</b> SQL*Server (超過 ODBC) <b><font color=\"red\">實驗的! (不可用在產品中)</font></b><br /> <b>主機:</b> 給出ODBC控制面板中DSN的名字<br /> <b>名稱:</b> 資料庫名稱,例如moodle<br /> <b>帳號:</b> 您的資料庫帳號<br /> <b>密碼:</b> 您的資料庫密碼<br /> <b>表格字首:</b> 在所有的表格名稱前加上字首(強制的)';
|
||||
$string['databasesettingssub_postgres7'] = '<b>類型:</b> PostgreSQL<br /> <b>主機:</b> 例如,localhost或者db.isp.com<br /> <b>名稱:</b> 資料庫名稱,例如moodle<br /> <b>帳號:</b> 您的資料庫帳號<br /> <b>密碼:</b> 您的資料庫密碼<br /> <b>表格字首:</b> 在所有的表格名稱前加上字首(強制的)';
|
||||
$string['databasesettingswillbecreated'] = '<b>註:</b>如果資料庫不存在,安裝程式將會自動建立';
|
||||
$string['dataroot'] = '資料目錄';
|
||||
$string['datarooterror'] = '您所指定的\'資料目錄\'找不到或無法建立。請更正路徑,或者手動建立該目錄。';
|
||||
$string['dbconnectionerror'] = '無法連到您指定的資料庫,請查檢您的資料庫設定';
|
||||
@@ -97,7 +109,7 @@ $string['dirroot'] = 'Moodle目錄';
|
||||
$string['dirrooterror'] = '此\'Moodle目錄\'設定似乎不正確-我們無法在這兒找到Moodle安裝程式。下列數值已經重設。';
|
||||
$string['download'] = '下載';
|
||||
$string['downloadedfilecheckfailed'] = '下載檔案檢查錯誤。';
|
||||
$string['downloadlanguagebutton'] = '下載這 "$a" 語言包';
|
||||
$string['downloadlanguagebutton'] = '下載 \"{$a}\" 語言包';
|
||||
$string['downloadlanguagehead'] = '下載語言包';
|
||||
$string['downloadlanguagenotneeded'] = '您可以用預設的語言包 \"{$a}\" 繼續安裝過程。';
|
||||
$string['downloadlanguagesub'] = '您現在可以選擇下載一個語言包然後用指定的語言繼續安裝過程。<br /><br />如果您無法下載語言包,安裝過程會繼續以英文繼續進行。(只要安裝完成,您還是可以下載、安裝其他的語言包)';
|
||||
@@ -141,12 +153,14 @@ $string['globalsquoteshelp'] = '<p>不建議您同時取消了Magic Quotes GPC
|
||||
<blockquote>php_value magic_quotes_gpc On</blockquote>
|
||||
<blockquote>php_value register_globals Off</blockquote>
|
||||
</p>';
|
||||
$string['globalswarning'] = '<p><strong>安全性警告</strong>: 為了正常運作,Moodle需要<br />您進行目前PHP設定的變更<p/><p>您 <em>務必</em>設定 <code>register_globals=off</code>.<p>此設定透過 <code>php.ini</code>, Apache/IIS <br />或<code>.htaccess</code> 檔案的編輯來設定。</p>';
|
||||
$string['help'] = '輔助說明';
|
||||
$string['iconvrecommended'] = '為了提昇網站效率,尤其您的網站支援非拉丁語系的情況下,建議您可以安裝額外的 ICONV 函式庫。';
|
||||
$string['info'] = '資訊';
|
||||
$string['installation'] = '安裝';
|
||||
$string['invalidemail'] = '錯誤的電子郵件';
|
||||
$string['invalidmd5'] = '無效的 md5';
|
||||
$string['invalidurl'] = '無效的URL網址';
|
||||
$string['langdownloaderror'] = '很不幸地,語言“{$a}”並未安裝。安裝過程將以英文繼續。';
|
||||
$string['langdownloadok'] = '語言“{$a}”已經成功安裝了。安裝過程將會以此語言繼續。';
|
||||
$string['language'] = '語言';
|
||||
@@ -181,6 +195,8 @@ $string['mysql'] = 'MySQL (mysql)';
|
||||
$string['mysql416bypassed'] = '不過,若您的網站僅使用 iso-8859-1 (拉丁) 語言,您可以繼續使用目前安裝的 MySQL 4.1.12 (或以上的版本)。';
|
||||
$string['mysql416required'] = 'Moodle 1.6 需要 MySQL 4.1.16以上的版本來確保未來所有資料都能夠轉換為 UTF-8 編碼。';
|
||||
$string['mysqlextensionisnotpresentinphp'] = 'PHP用MySQL延伸指令作無法正常架設,此延伸指令讓PHP可以跟MySQL做溝通。請檢查php.ini檔或者重新編譯PHP。';
|
||||
$string['mysqli'] = '改良的MySQL(mysqli)';
|
||||
$string['mysqliextensionisnotpresentinphp'] = 'PHP的MySQLi延伸套件沒有適當設置。為了可以和MySQL連線,請檢查您的php.ini檔案或重新編譯PHP。針對PHP4,MySQLi延伸套件不能使用。';
|
||||
$string['name'] = '名稱';
|
||||
$string['next'] = '往後';
|
||||
$string['oci8po'] = 'Oracle (oci8po)';
|
||||
@@ -201,7 +217,10 @@ $string['phpversionhelp'] = '<p>Moodle 需要至少4.1.0.的PHP版本 </p>
|
||||
<p>您必須更新您的 PHP 或在有更新版本的主機進行安裝!</p>';
|
||||
$string['postgres7'] = 'PostgreSQL (postgres7)';
|
||||
$string['previous'] = '向前';
|
||||
$string['qtyperqpwillberemoved'] = '在更新時,也將RQP問題移除。您不使用此問題型態,你也不會經歷任何問題。';
|
||||
$string['qtyperqpwillberemovedanyway'] = '在更新時,也將RQP問題移除。您的資料庫中有一些RQP問題存在,除非您在繼續更新前,重新安裝程式碼 http://moodle.org/mod/data/view.php?d=13&rid=797,否則它會停止運作。';
|
||||
$string['releasenoteslink'] = '關於這個版本的 Moodle資訊,請參考線上 <a target=\"_new\" href=\"$a\">版本摘要</a>';
|
||||
$string['remotedownloaderror'] = '下載元件至伺服器失敗,檢查代理伺服器的設定、高度建議安裝PHP cURL,您必須手動下載<a href=\"$a->url\">$a->url</a>,並且複製到伺服器\"$a->dest\" 解壓縮';
|
||||
$string['remotedownloadnotallowed'] = '您的伺服器不允許下載元件(停用了 allow_url_fopen )。<br /><br />您必須手動下載 <a href=\"$a->url\">$a->url</a> ,然後複製到 \"$a->dest\" 並且解壓縮。';
|
||||
$string['report'] = '報表';
|
||||
$string['restricted'] = '限制';
|
||||
@@ -237,4 +256,5 @@ $string['wrongsourcebase'] = '錯誤的來源網址基礎。';
|
||||
$string['wrongzipfilename'] = '錯誤的 ZIP 檔名。';
|
||||
$string['wwwroot'] = '網站位址';
|
||||
$string['wwwrooterror'] = '指定網路位址不存在-這個Moodle 系統並不在您指定的地方';
|
||||
$string['xmlrpcrecommended'] = '對於Moodle網路功能,安裝xmlrpc選擇性延伸套件是有用的。';
|
||||
?>
|
||||
|
||||
@@ -185,7 +185,7 @@ $string['configsitemailcharset'] = 'All the emails generated by your site will b
|
||||
$string['configsitepolicy'] = 'If you have a site policy that all users must see and agree to before using this site, then specify the URL to it here, otherwise leave this field blank. The URL can point to anywhere - one convenient place would be a file in the site files. eg http://yoursite/file.php/1/policy.html';
|
||||
$string['configslasharguments'] = 'Files (images, uploads etc) are provided via a script using \'slash arguments\' (the second option here). This method allows files to be more easily cached in web browsers, proxy servers etc. Unfortunately, some PHP servers don\'t allow this method, so if you have trouble viewing uploaded files or images (eg user pictures), disable this setting.';
|
||||
$string['configsmartpix'] = 'With this on, icons are served through a PHP script that searches the current theme, then all parent themes, then the Moodle /pix folder. This reduces the need to duplicate image files within themes, but has a slight performance cost.';
|
||||
$string['configsmtphosts'] = 'Give the full name of one or more local SMTP servers that Moodle should use to send mail (eg \'mail.a.com\' or \'mail.a.com;mail.b.com\'). If you leave it blank, Moodle will use the PHP default method of sending mail.';
|
||||
$string['configsmtphosts'] = 'Give the full name of one or more local SMTP servers that Moodle should use to send mail (eg \'mail.a.com\' or \'mail.a.com;mail.b.com\'). To specify a non-default port (i.e other than port 25), you can use the [server]:[port] syntax (eg \'mail.a.com:587\'. If you leave it blank, Moodle will use the PHP default method of sending mail.';
|
||||
$string['configsmtpuser'] = 'If you have specified an SMTP server above, and the server requires authentication, then enter the username and password here.';
|
||||
$string['configstartwday'] = 'Start of Week';
|
||||
$string['configstatsfirstrun'] = 'This specifies how far back the logs should be processed <b>the first time</b> the cronjob wants to process statistics. If you have a lot of traffic and are on shared hosting, it\'s probably not a good idea to go too far back, as it could take a long time to run and be quite resource intensive. (Note that for this setting, 1 month = 28 days. In the graphs and reports generated, 1 month = 1 calendar month.)';
|
||||
|
||||
@@ -1447,15 +1447,18 @@ $string['updatinga'] = 'Updating: $a';
|
||||
$string['updatingain'] = 'Updating $a->what in $a->in';
|
||||
$string['upload'] = 'Upload';
|
||||
$string['uploadafile'] = 'Upload a file';
|
||||
$string['uploadcantwrite'] = 'Failed to write file to disk';
|
||||
$string['uploadedfile'] = 'File uploaded successfully';
|
||||
$string['uploadedfileto'] = 'Uploaded $a->file to $a->directory';
|
||||
$string['uploadedfiletoobig'] = 'Sorry, but that file is too big (limit is $a bytes)';
|
||||
$string['uploadextension'] = 'File upload stopped by extension';
|
||||
$string['uploadfailednotrecovering'] = 'Your file upload has failed because there was a problem with one of the files, $a->name.<br /> Here is a log of the problems:<br />$a->problem<br />Not recovering.';
|
||||
$string['uploadfilelog'] = 'Upload log for file $a';
|
||||
$string['uploadformlimit'] = 'Uploaded file exceeded the maximum size limit set by the form';
|
||||
$string['uploadlabel'] = 'Title:';
|
||||
$string['uploadnofilefound'] = 'No file was found - are you sure you selected one to upload?';
|
||||
$string['uploadnotallowed'] = 'Uploads are not allowed';
|
||||
$string['uploadnotempdir'] = 'Missing a temporary folder';
|
||||
$string['uploadoldfilesdeleted'] = 'The old file(s) in your upload area have been deleted';
|
||||
$string['uploadpartialfile'] = 'File was only partially uploaded';
|
||||
$string['uploadproblem'] = 'An unknown problem occurred while uploading the file \'$a\' (perhaps it was too large?)';
|
||||
|
||||
@@ -17,9 +17,11 @@ $string['newlocal1'] = 'will use a new private dataset';
|
||||
$string['nextitemtoadd'] = 'Next \'Item to Add\'';
|
||||
$string['nextpage'] = 'Next Page';
|
||||
$string['nodataset'] = 'nothing - it is not a wild card';
|
||||
$string['nosharedwildcard']='No shared wild card in this category';
|
||||
$string['nosharedwildcard'] = 'No shared wild card in this category';
|
||||
$string['possiblehdr']='Possible wild cards present only in the question text';
|
||||
$string['tolerance'] = 'Tolerance ±';
|
||||
$string['trueanswerinsidelimits'] = ' Correct answer : $a->correct inside limits of true value $a->true';
|
||||
$string['trueansweroutsidelimits'] = '<span class=\"error\">ERROR Correct answer : $a->correct outside limits of true value $a->true</span>';
|
||||
$string['updatecategory'] = 'Update the category';
|
||||
$string['usedinquestion']='Used in Question';
|
||||
$string['youmustenteramultiplierhere'] = 'You must enter a multiplier here.';
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
$string['addmoreanswerblanks'] = 'Blanks for {no} More Answers';
|
||||
$string['answerno'] = 'Answer $a';
|
||||
$string['filloutoneanswer'] = 'You must provide at least one possible answer. Answers left blank will not be used. \'*\' can be used as a wildcard to match any characters. The first matching answer will be used to determine the score and feedback.';
|
||||
$string['answermustbegiven'] = 'You must enter an answer if there is a grade or feedback.';
|
||||
?>
|
||||
@@ -88,10 +88,10 @@ $string['no_children'] = 'Tag $a->tag must have children';
|
||||
$string['noactivity'] = 'Nothing to report';
|
||||
$string['nolimit'] = 'Unlimited attempts';
|
||||
$string['nomanifest'] = 'Manifest not found';
|
||||
$string['noprerequisites'] = 'Sorry but you don\'t reach enough prerequisites to access this learning object';
|
||||
$string['noprerequisites'] = 'Sorry but you haven\'t reached enough prerequisites to access this learning object';
|
||||
$string['noreports'] = 'No report to display';
|
||||
$string['normal'] = 'Normal';
|
||||
$string['noscriptnoscorm'] = 'Your browser does not support javascript or it has javascript support disabled. No tracks will recorded.';
|
||||
$string['noscriptnoscorm'] = 'Your browser does not support javascript or it has javascript support disabled. This SCORM package may not play or save data correctly.';
|
||||
$string['not_corr_type'] = 'Type mismatch for tag $a->tag';
|
||||
$string['notattempted'] = 'Not attempted';
|
||||
$string['objectives'] = 'Objectives';
|
||||
@@ -125,6 +125,7 @@ $string['scormcourse'] = 'Learning Course';
|
||||
$string['scrollbars'] = 'Allow the window to be scrolled';
|
||||
$string['sided'] = 'On the left side';
|
||||
$string['skipview'] = 'Student skip content structure page';
|
||||
$string['slashargs'] = 'WARNING: slash arguments is disabled on this site and objects may not function as expected!';
|
||||
$string['stagesize'] = 'Stage size';
|
||||
$string['started'] = 'Started on';
|
||||
$string['status'] = 'Status';
|
||||
@@ -154,5 +155,8 @@ $string['unziperror'] = 'An error occurs during package unzip';
|
||||
$string['othersettings'] = 'Additional settings';
|
||||
$string['updatefreq'] = 'Auto-update frequency';
|
||||
$string['options'] = 'Options';
|
||||
|
||||
?>
|
||||
$string['activityloading'] = "You will be automatically redirected to the activity in"; // used in conjunction with numseconds
|
||||
$string['activitypleasewait'] = "Activity loading, please wait ....";
|
||||
$string['scormloggingon'] = "API Logging is On";
|
||||
$string['scormloggingoff'] = "API Logging is Off";
|
||||
?>
|
||||
+1
-1
@@ -1173,7 +1173,7 @@ function get_my_remotecourses($userid=0) {
|
||||
$userid = $USER->id;
|
||||
}
|
||||
|
||||
$sql = "SELECT c.remoteid, c.shortname, c.fullname,
|
||||
$sql = "SELECT c.id, c.remoteid, c.shortname, c.fullname,
|
||||
c.hostid, c.summary, c.cat_name,
|
||||
h.name AS hostname
|
||||
FROM {$CFG->prefix}mnet_enrol_course c
|
||||
|
||||
+4
-9
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php // $Id$
|
||||
//
|
||||
// Capability definitions for Moodle core.
|
||||
//
|
||||
@@ -780,9 +780,7 @@ $moodle_capabilities = array(
|
||||
),
|
||||
|
||||
'moodle/question:import' => array(
|
||||
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'riskbitmask' => RISK_SPAM | RISK_XSS,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
@@ -792,7 +790,6 @@ $moodle_capabilities = array(
|
||||
),
|
||||
|
||||
'moodle/question:export' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
@@ -802,7 +799,7 @@ $moodle_capabilities = array(
|
||||
),
|
||||
|
||||
'moodle/question:managecategory' => array(
|
||||
|
||||
'riskbitmask' => RISK_SPAM | RISK_XSS,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
@@ -812,9 +809,7 @@ $moodle_capabilities = array(
|
||||
),
|
||||
|
||||
'moodle/question:manage' => array(
|
||||
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'riskbitmask' => RISK_SPAM | RISK_XSS,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
|
||||
@@ -1894,6 +1894,27 @@ function sql_order_by_text($fieldname, $numchars=32) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the SQL for returning searching one string for the location of another.
|
||||
* @param string $needle the SQL expression that will be searched for.
|
||||
* @param string $haystack the SQL expression that will be searched in.
|
||||
* @return string the required SQL
|
||||
*/
|
||||
function sql_position($needle, $haystack) {
|
||||
global $CFG;
|
||||
|
||||
switch ($CFG->dbfamily) {
|
||||
case 'mssql':
|
||||
return "CHARINDEX(($needle), ($haystack))";
|
||||
break;
|
||||
case 'oracle':
|
||||
return "INSTR(($haystack), ($needle))";
|
||||
break;
|
||||
default:
|
||||
return "POSITION(($needle) IN ($haystack))";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the SQL to be used in order to CAST one CHAR column to INTEGER.
|
||||
*
|
||||
|
||||
+26
-4
@@ -516,6 +516,10 @@ function environment_custom_checks($version) {
|
||||
|
||||
$results = array();
|
||||
|
||||
/// Get current Moodle version (release) for later compare
|
||||
$release = isset($CFG->release) ? $CFG->release : $version; /// In case $CFG fails (at install) use $version
|
||||
$current_version = normalize_version($release);
|
||||
|
||||
/// Get the enviroment version we need
|
||||
if (!$data = get_environment_for_version($version)) {
|
||||
/// Error. No version data found - but this will already have been reported.
|
||||
@@ -546,12 +550,30 @@ function environment_custom_checks($version) {
|
||||
$result->setInfo($function);
|
||||
$result = $function($result);
|
||||
} else {
|
||||
$result->setStatus(false);
|
||||
$result->setErrorCode(CUSTOM_CHECK_FUNCTION_MISSING);
|
||||
/// Only show error for current version (where function MUST exist)
|
||||
/// else, we are performing custom checks against future versiosn
|
||||
/// and function MAY not exist, so it doesn't cause error, just skip
|
||||
/// custom check by returning null. MDL-15939
|
||||
if (version_compare($current_version, $version, '>=')) {
|
||||
$result->setStatus(false);
|
||||
$result->setInfo($function);
|
||||
$result->setErrorCode(CUSTOM_CHECK_FUNCTION_MISSING);
|
||||
} else {
|
||||
$result = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$result->setStatus(false);
|
||||
$result->setErrorCode(CUSTOM_CHECK_FILE_MISSING);
|
||||
/// Only show error for current version (where function MUST exist)
|
||||
/// else, we are performing custom checks against future versiosn
|
||||
/// and function MAY not exist, so it doesn't cause error, just skip
|
||||
/// custom check by returning null. MDL-15939
|
||||
if (version_compare($current_version, $version, '>=')) {
|
||||
$result->setStatus(false);
|
||||
$result->setInfo($function);
|
||||
$result->setErrorCode(CUSTOM_CHECK_FILE_MISSING);
|
||||
} else {
|
||||
$result = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$result->setStatus(false);
|
||||
|
||||
@@ -90,7 +90,7 @@ class MoodleQuickForm_choosecoursefileorimsrepo extends MoodleQuickForm_group
|
||||
$button->updateAttributes($buttonattributes);
|
||||
|
||||
/// With repository active, show the button to browse it
|
||||
if ($CFG->repositoryactivate) {
|
||||
if (isset($CFG->repositoryactivate) && $CFG->repositoryactivate) {
|
||||
$this->_elements[2] =& MoodleQuickForm::createElement('button', 'imsrepo', get_string('browserepository', 'resource'));
|
||||
$imsbutton =& $this->_elements[2];
|
||||
$url = "/mod/resource/type/ims/finder.php?directory=&choose=".$choose;
|
||||
|
||||
@@ -23,6 +23,7 @@ class MoodleQuickForm_passwordreveal extends MoodleQuickForm_password {
|
||||
$revealjs = '<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
document.write(\'<div class="reveal"><input id="'.$id.'reveal" value="1" type="checkbox" onclick="revealPassword(\\\''.$id.'\\\')"/><label for="'.$id.'reveal">'.addslashes_js($reveal).'<\/label><\/div>\');
|
||||
document.getElementById("'.$this->getAttribute('id').'").setAttribute("autocomplete", "off");
|
||||
//]]>
|
||||
</script>';
|
||||
return $this->_getTabs() . '<input' . $this->_getAttrString($this->_attributes) . ' />'.$revealjs;
|
||||
|
||||
+16
-3
@@ -468,7 +468,7 @@ class moodleform {
|
||||
$mform->setConstants(array($repeathiddenname=>$repeats));
|
||||
for ($i=0; $i<$repeats; $i++) {
|
||||
foreach ($elementobjs as $elementobj){
|
||||
$elementclone = clone($elementobj);
|
||||
$elementclone = fullclone($elementobj);
|
||||
$name = $elementclone->getName();
|
||||
if (!empty($name)){
|
||||
$elementclone->setName($name."[$i]");
|
||||
@@ -880,6 +880,19 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set constant value not overriden by _POST or _GET
|
||||
* note: this does not work for complex names with [] :-(
|
||||
* @param string $elname name of element
|
||||
* @param mixed $value
|
||||
* @return void
|
||||
*/
|
||||
function setConstant($elname, $value) {
|
||||
$this->_constantValues = HTML_QuickForm::arrayMerge($this->_constantValues, array($elname=>$value));
|
||||
$element =& $this->getElement($elname);
|
||||
$element->onQuickFormEvent('updateValue', null, $this);
|
||||
}
|
||||
|
||||
function exportValues($elementList= null, $addslashes=true){
|
||||
$unfiltered = array();
|
||||
if (null === $elementList) {
|
||||
@@ -1282,8 +1295,8 @@ function validate_' . $this->_formName . '(frm) {
|
||||
/**
|
||||
* Displays elements without HTML input tags.
|
||||
* This method is different to freeze() in that it makes sure no hidden
|
||||
* elements are included in the form. And a 'hardFrozen' element's submitted value is
|
||||
* ignored.
|
||||
* elements are included in the form.
|
||||
* Note: If you want to make sure the submitted value is ignored, please use setDefaults().
|
||||
*
|
||||
* This function also removes all previously defined rules.
|
||||
*
|
||||
|
||||
+4
-2
@@ -26,10 +26,12 @@
|
||||
<script type="text/javascript" src="<?php echo $CFG->httpswwwroot ?>/lib/dropdown.js"></script>
|
||||
|
||||
<script type="text/javascript" defer="defer">
|
||||
|
||||
//<![CDATA[
|
||||
|
||||
setTimeout('fix_column_widths()', 20);
|
||||
//]]>
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
function openpopup(url,name,options,fullscreen) {
|
||||
fullurl = "<?php echo $CFG->httpswwwroot ?>" + url;
|
||||
|
||||
+37
-15
@@ -552,7 +552,18 @@ function clean_param($param, $type) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is useful for testing whether something you got back from
|
||||
* the HTML editor actually contains anything. Sometimes the HTML editor
|
||||
* appear to be empty, but actually you get back a <br> tag or something.
|
||||
*
|
||||
* @param string $string a string containing HTML.
|
||||
* @return boolean does the string contain any actual content - that is text,
|
||||
* images, objcts, etc.
|
||||
*/
|
||||
function html_is_blank($string) {
|
||||
return trim(strip_tags($string, '<img><object><applet><input><select><textarea><hr>')) == '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a key in global configuration
|
||||
@@ -2605,6 +2616,10 @@ function update_user_record($username, $authplugin) {
|
||||
if ($newinfo = $userauth->get_userinfo($username)) {
|
||||
$newinfo = truncate_userinfo($newinfo);
|
||||
foreach ($newinfo as $key => $value){
|
||||
if ($key === 'username') {
|
||||
// 'username' is not a mapped updateable/lockable field, so skip it.
|
||||
continue;
|
||||
}
|
||||
$confval = $userauth->config->{'field_updatelocal_' . $key};
|
||||
$lockval = $userauth->config->{'field_lock_' . $key};
|
||||
if (empty($confval) || empty($lockval)) {
|
||||
@@ -2875,17 +2890,18 @@ function get_complete_user_data($field, $value, $mnethostid=null) {
|
||||
|
||||
$constraints = $field .' = \''. $value .'\' AND deleted <> \'1\'';
|
||||
|
||||
if (is_null($mnethostid)) {
|
||||
// if null, we restrict to local users
|
||||
// ** testing for local user can be done with
|
||||
// mnethostid = $CFG->mnet_localhost_id
|
||||
// or with
|
||||
// auth != 'mnet'
|
||||
// but the first one is FAST with our indexes
|
||||
$mnethostid = $CFG->mnet_localhost_id;
|
||||
// If we are loading user data based on anything other than id,
|
||||
// we must also restrict our search based on mnet host.
|
||||
if ($field != 'id') {
|
||||
if (empty($mnethostid)) {
|
||||
// if empty, we restrict to local users
|
||||
$mnethostid = $CFG->mnet_localhost_id;
|
||||
}
|
||||
}
|
||||
if (!empty($mnethostid)) {
|
||||
$mnethostid = (int)$mnethostid;
|
||||
$constraints .= ' AND mnethostid = ' . $mnethostid;
|
||||
}
|
||||
$mnethostid = (int)$mnethostid;
|
||||
$constraints .= ' AND mnethostid = \''.$mnethostid.'\'';
|
||||
|
||||
/// Get all the basic user data
|
||||
|
||||
@@ -4209,7 +4225,7 @@ function get_directory_size($rootdir, $excludefile='') {
|
||||
|
||||
// do it this way if we can, it's much faster
|
||||
if (!empty($CFG->pathtodu) && is_executable(trim($CFG->pathtodu))) {
|
||||
$command = trim($CFG->pathtodu).' -sk --apparent-size '.escapeshellarg($rootdir);
|
||||
$command = trim($CFG->pathtodu).' -sk '.escapeshellarg($rootdir);
|
||||
$output = null;
|
||||
$return = null;
|
||||
exec($command,$output,$return);
|
||||
@@ -6280,6 +6296,9 @@ function address_in_subnet($addr, $subnetstr) {
|
||||
$subnet = trim($subnet);
|
||||
if (strpos($subnet, '/') !== false) { /// type 1
|
||||
list($ip, $mask) = explode('/', $subnet);
|
||||
if ($mask === '') {
|
||||
$mask = 32;
|
||||
}
|
||||
$mask = 0xffffffff << (32 - $mask);
|
||||
$found = ((ip2long($addr) & $mask) == (ip2long($ip) & $mask));
|
||||
} else if (strpos($subnet, '-') !== false) {/// type 3
|
||||
@@ -6292,7 +6311,10 @@ function address_in_subnet($addr, $subnetstr) {
|
||||
$subnetrange[0] <= $lastaddrpart && $lastaddrpart <= $subnetrange[1]);
|
||||
}
|
||||
} else { /// type 2
|
||||
$found = (strpos($addr, $subnet) === 0);
|
||||
if ($subnet[strlen($subnet) - 1] != '.') {
|
||||
$subnet .= '.';
|
||||
}
|
||||
$found = (strpos($addr . '.', $subnet) === 0);
|
||||
}
|
||||
|
||||
if ($found) {
|
||||
@@ -6999,11 +7021,11 @@ function check_dir_exists($dir, $create=false, $recursive=false) {
|
||||
} else {
|
||||
umask(0000);
|
||||
if ($recursive) {
|
||||
/// PHP 5.0 has recursive mkdir parameter, but 4.x does not :-(
|
||||
$dir = str_replace('\\', '/', $dir); //windows compatibility
|
||||
/// We are going to make it recursive under $CFG->dataroot only
|
||||
/// (will help sites running open_basedir security and others)
|
||||
$dir = str_replace($CFG->dataroot . '/', '', $dir);
|
||||
/// PHP 5.0 has recursive mkdir parameter, but 4.x does not :-(
|
||||
$dir = str_replace('\\', '/', $dir); //windows compatibility
|
||||
$dirs = explode('/', $dir); /// Extract path parts
|
||||
/// Iterate over each part with start point $CFG->dataroot
|
||||
$dir = $CFG->dataroot . '/';
|
||||
|
||||
Executable
+1076
File diff suppressed because it is too large
Load Diff
Executable
+357
@@ -0,0 +1,357 @@
|
||||
<?php
|
||||
/**
|
||||
* OO AJAX Implementation for PHP, contains HTML_AJAX_Action
|
||||
*
|
||||
* SVN Rev: $Id$
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Elizabeth Smith <auroraeosrose@gmail.com>
|
||||
* @copyright 2005-2008 Elizabeth Smith
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
* @link http://htmlajax.org/HTML_AJAX/Using%20haSerializer
|
||||
*/
|
||||
|
||||
/**
|
||||
* Require the response class and json serializer
|
||||
*/
|
||||
require_once 'HTML/AJAX/Response.php';
|
||||
require_once 'HTML/AJAX/Serializer/JSON.php';
|
||||
|
||||
/**
|
||||
* Helper class to eliminate the need to write javascript functions to deal with data
|
||||
*
|
||||
* This class creates information that can be properly serialized and used by
|
||||
* the haaction serializer which eliminates the need for php users to write
|
||||
* javascript for dealing with the information returned by an ajax method -
|
||||
* instead the javascript is basically created for them
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Elizabeth Smith <auroraeosrose@gmail.com>
|
||||
* @copyright 2005-2008 Elizabeth Smith
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
* @link http://htmlajax.org/HTML_AJAX/Using%20haSerializer
|
||||
*/
|
||||
class HTML_AJAX_Action extends HTML_AJAX_Response
|
||||
{
|
||||
|
||||
/**
|
||||
* Content type for the HAA response
|
||||
*
|
||||
* goofy but unique content type to tell the javascript which deserializer to use
|
||||
* overrides HTML_AJAX_Response
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $contentType = 'application/html_ajax_action';
|
||||
|
||||
/**
|
||||
* An array holding all the actions for the class
|
||||
*
|
||||
* these have numeric keys and each new action is added on the end, remember
|
||||
* these are executed in the order added
|
||||
*
|
||||
* @var array
|
||||
* @access private
|
||||
*/
|
||||
var $_actions = array();
|
||||
|
||||
/**
|
||||
* Prepends data to the attribute identified by id
|
||||
*
|
||||
* The data will be added to the beginning of the attribute identified by the id
|
||||
* sent, id must be unique
|
||||
*
|
||||
* $response->prependAttr('myid', 'class', 'red');
|
||||
* $response->prependAttr('myid', array('class' => 'red', 'innerHTML' => 'this is an error'));
|
||||
*
|
||||
* @param string $id id for a specific item on the page <div id="myid"></div>
|
||||
* @param string|array $attribute either an array of attribute/data pairs or a string attribute name
|
||||
* @param mixed $data should be NULL if attribute is an array, otherwise data you wish to set the attribute to
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function prependAttr($id, $attribute, $data = null)
|
||||
{
|
||||
if (!is_null($data)) {
|
||||
$attribute = array($attribute => $data);
|
||||
}
|
||||
$this->_actions[] = array(
|
||||
'action' => 'prepend',
|
||||
'id' => $id,
|
||||
'attributes' => $attribute,
|
||||
'data' => $data,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends data to the attribute identified by id
|
||||
*
|
||||
* The data will be added to the end of the attribute identified by the id
|
||||
* sent, id must be unique
|
||||
*
|
||||
* $response->appendAttr('myid', 'class', 'red');
|
||||
* $response->appendAttr('myid', array('class' => 'red', 'innerHTML' => 'this is an error'));
|
||||
*
|
||||
* @param string $id id for a specific item on the page <div id="myid"></div>
|
||||
* @param string|array $attribute either an array of attribute/data pairs or a string attribute name
|
||||
* @param mixed $data should be NULL if attribute is an array, otherwise data you wish to set the attribute to
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function appendAttr($id, $attribute, $data = null)
|
||||
{
|
||||
if (!is_null($data)) {
|
||||
$attribute = array($attribute => $data);
|
||||
}
|
||||
$this->_actions[] = array(
|
||||
'action' => 'append',
|
||||
'id' => $id,
|
||||
'attributes' => $attribute,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Assigns data to the attribute identified by id overwriting any previous values
|
||||
*
|
||||
* The data will be assigned to the attribute identified by the id
|
||||
* sent, id must be unique
|
||||
*
|
||||
* $response->assignAttr('myid', 'class', 'red');
|
||||
* $response->assignAttr('myid', array('class' => 'red', 'innerHTML' => 'this is an error'));
|
||||
*
|
||||
* @param string $id id for a specific item on the page <div id="myid"></div>
|
||||
* @param string|array $attribute either an array of attribute/data pairs or a string attribute name
|
||||
* @param mixed $data should be NULL if attribute is an array, otherwise data you wish to set the attribute to
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function assignAttr($id, $attribute, $data = null)
|
||||
{
|
||||
if (!is_null($data)) {
|
||||
$attribute = array($attribute => $data);
|
||||
}
|
||||
$this->_actions[] = array(
|
||||
'action' => 'assign',
|
||||
'id' => $id,
|
||||
'attributes' => $attribute,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes or assigns a value of an empty string to an attribute
|
||||
*
|
||||
* You may send either a single attribute or an array of attributes to clear
|
||||
*
|
||||
* $response->clearAttr('myid', 'class');
|
||||
* $response->clearAttr('myid', array('class', 'innerHTML'));
|
||||
*
|
||||
* @param string $id id for a specific item on the page <div id="myid"></div>
|
||||
* @param string|array $attribute either an array of attribute/data pairs or a string attribute name
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function clearAttr($id, $attribute)
|
||||
{
|
||||
if (!is_array($attribute)) {
|
||||
$attribute = array($attribute);
|
||||
}
|
||||
$this->_actions[] = array(
|
||||
'action' => 'clear',
|
||||
'id' => $id,
|
||||
'attributes' => $attribute,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* create a dom node via javascript
|
||||
*
|
||||
* higher level dom manipulation - creates a new node to insert into the dom
|
||||
* You can control where the new node is inserted with two things, the insertion
|
||||
* type and the id/ The type should be append, prepend, insertBefore, or insertAfter
|
||||
*
|
||||
* The id is a sibling node - like a div in the same div you want to add more to
|
||||
* If you choose to append or prepend a node it will be placed at the beginning
|
||||
* or end of the node with the id you send. If you choose insertBefore or
|
||||
* InsertAfter it will be put right before or right after the node you specified.
|
||||
* You can send an array of attributes to apply to the new node as well,
|
||||
* so you don't have to create it and then assign Attributes.
|
||||
*
|
||||
* <code>
|
||||
* $response->createNode('myid', 'div');
|
||||
* $response->createNode('submit', 'input',
|
||||
* array('id' => 'key',
|
||||
* 'name' => 'key',
|
||||
* 'type' => 'hidden',
|
||||
* 'value' => $id),
|
||||
* 'insertBefore');
|
||||
* <code>
|
||||
*
|
||||
* @param string $id id for a specific item on the page <div id="myid"></div>
|
||||
* @param string $tag html node to create
|
||||
* @param array $attributes array of attribute -> data to fill the node with
|
||||
* @param string $type append|prepend|insertBefore|insertAfter default is append
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function createNode($id, $tag, $attributes, $type = 'append')
|
||||
{
|
||||
$types = array('append', 'prepend', 'insertBefore', 'insertAfter');
|
||||
if (!in_array($type, $types)) {
|
||||
$type = 'append';
|
||||
}
|
||||
settype($attributes, 'array');
|
||||
$this->_actions[] = array(
|
||||
'action' => 'create',
|
||||
'id' => $id,
|
||||
'tag' => $tag,
|
||||
'attributes' => $attributes,
|
||||
'type' => $type,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace a dom node via javascript
|
||||
*
|
||||
* higher level dom manipulation - replaces one node with another
|
||||
* This can be used to replace a div with a form for inline editing
|
||||
* use innerHtml attribute to change inside text
|
||||
*
|
||||
* $response->replaceNode('myid', 'div', array('innerHTML' => 'loading complete'));
|
||||
* $response->replaceNode('mydiv', 'form', array('innerHTML' => $form));
|
||||
*
|
||||
* @param string $id id for a specific item on the page <div id="myid"></div>
|
||||
* @param string $tag html node to create
|
||||
* @param array $attributes array of attribute -> data to fill the node with
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function replaceNode($id, $tag, $attributes)
|
||||
{
|
||||
settype($attributes, 'array');
|
||||
$this->_actions[] = array(
|
||||
'action' => 'replace',
|
||||
'id' => $id,
|
||||
'tag' => $tag,
|
||||
'attributes' => $attributes,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a dom node via javascript
|
||||
*
|
||||
* $response->removeNode('myid');
|
||||
* $response->removeNode(array('mydiv', 'myform'));
|
||||
*
|
||||
* @param string $id id for a specific item on the page <div id="myid"></div>
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function removeNode($id)
|
||||
{
|
||||
$this->_actions[] = array(
|
||||
'action' => 'remove',
|
||||
'id' => $id,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a string to a javascript eval
|
||||
*
|
||||
* This will send the data right to the eval javascript function, it will NOT
|
||||
* allow you to dynamically add a javascript function for use later on because
|
||||
* it is constrined by the eval function
|
||||
*
|
||||
* @param string $data string to pass to the alert javascript function
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function insertScript($data)
|
||||
{
|
||||
$this->_actions[] = array(
|
||||
'action' => 'script',
|
||||
'data' => $data,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a string to a javascript alert
|
||||
*
|
||||
* This will send the data right to the alert javascript function
|
||||
*
|
||||
* @param string $data string to pass to the alert javascript function
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function insertAlert($data)
|
||||
{
|
||||
$this->_actions[] = array(
|
||||
'action' => 'alert',
|
||||
'data' => $data,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the serialized content of the response class
|
||||
*
|
||||
* we actually use the json serializer underneath, so we send the actions array
|
||||
* to the json serializer and return the data
|
||||
*
|
||||
* @return string serialized response content
|
||||
* @access public
|
||||
*/
|
||||
function getPayload()
|
||||
{
|
||||
$serializer = new HTML_AJAX_Serializer_JSON();
|
||||
return $serializer->serialize($this->_actions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds all the actions from one response object to another, feature request
|
||||
* #6635 at pear.php.net
|
||||
*
|
||||
* @param object &$instance referenced HTML_AJAX_Action object
|
||||
*
|
||||
* @return array
|
||||
* @access public
|
||||
*/
|
||||
function combineActions(&$instance)
|
||||
{
|
||||
$this->_actions = array_merge($this->_actions, $instance->retrieveActions());
|
||||
}
|
||||
|
||||
/**
|
||||
* to follow proper property access we need a way to retrieve the private
|
||||
* actions array
|
||||
*
|
||||
* @return array
|
||||
* @access public
|
||||
*/
|
||||
function retrieveActions()
|
||||
{
|
||||
return $this->_actions;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Executable
+144
@@ -0,0 +1,144 @@
|
||||
<?php
|
||||
/**
|
||||
* AJAX Debugging implementation
|
||||
*
|
||||
* SVN Rev: $Id$
|
||||
*/
|
||||
|
||||
/**
|
||||
* Newline to use
|
||||
*/
|
||||
define ("HTML_AJAX_NEWLINE", "\n");
|
||||
|
||||
// {{{ class HTML_AJAX_Debug
|
||||
/**
|
||||
* AJAX Debugging implementation
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author David Coallier <davidc@php.net>
|
||||
* @copyright 2005 David Coallier
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
*/
|
||||
class HTML_AJAX_Debug {
|
||||
// {{{ properties
|
||||
/**
|
||||
* This is the error message.
|
||||
*
|
||||
* @access private
|
||||
*/
|
||||
var $errorMsg;
|
||||
|
||||
/**
|
||||
* The line where the error occured.
|
||||
*
|
||||
* @access private
|
||||
*/
|
||||
var $errorLine;
|
||||
|
||||
/**
|
||||
* The error code.
|
||||
*
|
||||
* @access private
|
||||
*/
|
||||
var $errorCode;
|
||||
|
||||
/**
|
||||
* The file where the error occured.
|
||||
*
|
||||
* @access private
|
||||
*/
|
||||
var $errorFile;
|
||||
|
||||
/**
|
||||
* Time the error occured
|
||||
*
|
||||
* @access private
|
||||
*/
|
||||
var $_timeOccured;
|
||||
|
||||
/**
|
||||
* The whole error itself
|
||||
*
|
||||
* @access private
|
||||
* @see errorMsg
|
||||
* @see errorLine
|
||||
* @see errorFile
|
||||
* @see errorCode
|
||||
*/
|
||||
var $error;
|
||||
|
||||
/**
|
||||
* The file to save the error to.
|
||||
*
|
||||
* @access private
|
||||
* @default ajaxErrLog.xml
|
||||
*/
|
||||
var $file = 'ajaxErrLog.xml';
|
||||
// }}}
|
||||
// {{{ constructor
|
||||
/**
|
||||
* The constructor.
|
||||
*
|
||||
* @param string $errorMsg The error message.
|
||||
* @param string $errLine The line where error occured.
|
||||
* @param string $errCode The error Code.
|
||||
* @param string $errFile The file where error occured.
|
||||
*/
|
||||
function HTML_AJAX_Debug($errMsg, $errLine, $errCode, $errFile)
|
||||
{
|
||||
$this->errorMsg = $errMsg;
|
||||
$this->errorLine = $errLine;
|
||||
$this->errorCode = $errCode;
|
||||
$this->errorFile = $errFile;
|
||||
$this->_timeOccured = date("Y-m-d H:i:s", time());
|
||||
$this->xmlError();
|
||||
}
|
||||
// }}}
|
||||
// {{{ xmlError
|
||||
/**
|
||||
* This functions formats the error to xml format then we can save it.
|
||||
*
|
||||
* @access protected
|
||||
* @return $this->error the main error.
|
||||
*/
|
||||
function xmlError()
|
||||
{
|
||||
$error = " <when>{$this->_timeOccured}</when>" . HTML_AJAX_NEWLINE;
|
||||
$error .= " <msg>{$this->errorMsg}</msg>" . HTML_AJAX_NEWLINE;
|
||||
$error .= " <code>{$this->errorCode}</code>" . HTML_AJAX_NEWLINE;
|
||||
$error .= " <line>{$this->errorLine}</line>" . HTML_AJAX_NEWLINE;
|
||||
$error .= " <file>{$this->errorFile}</file>" . HTML_AJAX_NEWLINE . HTML_AJAX_NEWLINE;
|
||||
return $this->error = $error;
|
||||
}
|
||||
// }}}
|
||||
// {{{ sessionError
|
||||
/**
|
||||
* This function pushes the array $_SESSION['html_ajax_debug']['time'][]
|
||||
* with the values inside of $this->error
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
function sessionError()
|
||||
{
|
||||
$_SESSION['html_ajax_debug']['time'][] = $this->error;
|
||||
}
|
||||
// }}}
|
||||
// {{{ _saveError
|
||||
/**
|
||||
* This function saves the error to a file
|
||||
* appending to this file.
|
||||
*
|
||||
* @access private.
|
||||
*/
|
||||
function _saveError()
|
||||
{
|
||||
if ($handle = fopen($this->file, 'a')) {
|
||||
fwrite($handle, $this->error);
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
}
|
||||
// }}}
|
||||
?>
|
||||
Executable
+186
@@ -0,0 +1,186 @@
|
||||
<?php
|
||||
/**
|
||||
* HTML/JavaScript Generation Helper
|
||||
*
|
||||
* SVN Rev: $Id$
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Joshua Eichorn <josh@bluga.net>
|
||||
* @copyright 2005 Joshua Eichorn
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
*/
|
||||
|
||||
/**
|
||||
* HTML/JavaScript Generation Helper
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Joshua Eichorn <josh@bluga.net>
|
||||
* @copyright 2005 Joshua Eichorn
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
* @link http://pear.php.net/package/HTML_AJAX
|
||||
*/
|
||||
class HTML_AJAX_Helper
|
||||
{
|
||||
/**
|
||||
* URL where an HTML_AJAX_Server instance is serving up clients and taking ajax requests
|
||||
*/
|
||||
var $serverUrl = 'server.php';
|
||||
|
||||
/**
|
||||
* JS libraries to include
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
var $jsLibraries = array('Util','Main','Request','HttpClient','Dispatcher','Behavior','Loading','JSON','iframe');
|
||||
|
||||
/**
|
||||
* Remote class stubs to include
|
||||
*/
|
||||
var $stubs = array();
|
||||
|
||||
/**
|
||||
* Combine jsLibraries into a single require and remove duplicates
|
||||
*/
|
||||
var $combineJsIncludes = false;
|
||||
|
||||
/**
|
||||
* Include all needed libraries, stubs, and set defaultServer
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function setupAJAX()
|
||||
{
|
||||
$libs = array(0=>array());
|
||||
$combinedLibs = array();
|
||||
|
||||
$this->jsLibraries = array_unique($this->jsLibraries);
|
||||
foreach($this->jsLibraries as $library) {
|
||||
if (is_array($library)) {
|
||||
$library = array_unique($library);
|
||||
$combinedLibs = array_merge($combinedLibs,$library);
|
||||
$libs[] = implode(',',$library);
|
||||
}
|
||||
else {
|
||||
$libs[0][] = $library;
|
||||
$combinedLibs[] = $library;
|
||||
}
|
||||
}
|
||||
$libs[0] = implode(',',$libs[0]);
|
||||
|
||||
$sep = '?';
|
||||
if (strstr($this->serverUrl,'?')) {
|
||||
$sep = '&';
|
||||
}
|
||||
|
||||
$ret = '';
|
||||
if ($this->combineJsIncludes == true) {
|
||||
$list = implode(',',$combinedLibs);
|
||||
$ret .= "<script type='text/javascript' src='{$this->serverUrl}{$sep}client={$list}'></script>\n";
|
||||
}
|
||||
else {
|
||||
foreach($libs as $list) {
|
||||
$ret .= "<script type='text/javascript' src='{$this->serverUrl}{$sep}client={$list}'></script>\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (count($this->stubs) > 0) {
|
||||
$stubs = implode(',',$this->stubs);
|
||||
$ret .= "<script type='text/javascript' src='{$this->serverUrl}{$sep}stub={$stubs}'></script>\n";
|
||||
}
|
||||
$ret .= $this->encloseInScript('HTML_AJAX.defaultServerUrl = '.$this->escape($this->serverUrl));
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a custom Loading message
|
||||
*
|
||||
* @param string $body HTML body of the loading div
|
||||
* @param string $class CSS class of the div
|
||||
* @param string $style style tag of the loading div
|
||||
*/
|
||||
function loadingMessage($body, $class = 'HTML_AJAX_Loading',
|
||||
$style = 'position: absolute; top: 0; right: 0; background-color: red; width: 80px; padding: 4px; display: none')
|
||||
{
|
||||
return "<div id='HTML_AJAX_LOADING' class='{$class}' style=\"{$style}\">{$body}</div>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the contents of an element using ajax
|
||||
*
|
||||
* @param string $id id of the element to update
|
||||
* @param string|array $update Either a url to update with or a array like array('class','method')
|
||||
* @param string $type replace or append
|
||||
* @param boolean $enclose
|
||||
*/
|
||||
function updateElement($id, $update, $type, $enclose = false) {
|
||||
if (is_array($update)) {
|
||||
$updateStr = "";
|
||||
$comma = '';
|
||||
foreach($update as $item) {
|
||||
$updateStr .= $comma.$this->escape($item);
|
||||
$comma = ',';
|
||||
}
|
||||
}
|
||||
else {
|
||||
$updateStr = $this->escape($update);
|
||||
}
|
||||
|
||||
$ret = "HTML_AJAX.{$type}(".$this->escape($id).",{$updateStr});\n";
|
||||
if ($enclose) {
|
||||
$ret = $this->encloseInScript($ret);
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Escape a string and add quotes allowing it to be a javascript paramater
|
||||
*
|
||||
* @param string $input
|
||||
* @return string
|
||||
* @todo do something here besides a quick hack
|
||||
*/
|
||||
function escape($input) {
|
||||
return "'".addslashes($input)."'";
|
||||
}
|
||||
|
||||
/**
|
||||
* Enclose a string in a script block
|
||||
*
|
||||
* @param string $input
|
||||
* @return string
|
||||
*/
|
||||
function encloseInScript($input) {
|
||||
return '<script type="text/javascript">'.$input."</script>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a JSON String
|
||||
*
|
||||
* @param string $input
|
||||
* @return string
|
||||
*/
|
||||
function jsonEncode($input) {
|
||||
require_once 'HTML/AJAX/Serializer/JSON.php';
|
||||
|
||||
$s = new HTML_AJAX_Serializer_JSON();
|
||||
return $s->serialize($input);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the request headers to see if this is an AJAX request
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
function isAJAX() {
|
||||
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||
?>
|
||||
Regular → Executable
+62
-49
@@ -1,5 +1,17 @@
|
||||
<?php
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||
/**
|
||||
* This is an embedded version of HTML_AJAX_JSON since it has yet to have
|
||||
* a PEAR release it has been renamed to HTML_AJAX_JSON so no problems
|
||||
* will be caused by an eventual release
|
||||
* Feel free to report bugs against it to HTML_AJAX
|
||||
*
|
||||
* SVN Rev: $Id$
|
||||
*/
|
||||
|
||||
/**
|
||||
* Needed for compat functions
|
||||
*/
|
||||
require_once 'HTML/AJAX.php';
|
||||
|
||||
/**
|
||||
* Converts to and from JSON format.
|
||||
@@ -46,48 +58,47 @@
|
||||
* DAMAGE.
|
||||
*
|
||||
* @category
|
||||
* @package Services_JSON
|
||||
* @package HTML_AJAX_JSON
|
||||
* @author Michal Migurski <mike-json@teczno.com>
|
||||
* @author Matt Knapp <mdknapp[at]gmail[dot]com>
|
||||
* @author Brett Stimmerman <brettstimmerman[at]gmail[dot]com>
|
||||
* @copyright 2005 Michal Migurski
|
||||
* @version CVS: $Id$
|
||||
* @license http://www.opensource.org/licenses/bsd-license.php
|
||||
* @link http://pear.php.net/pepr/pepr-proposal-show.php?id=198
|
||||
*/
|
||||
|
||||
/**
|
||||
* Marker constant for Services_JSON::decode(), used to flag stack state
|
||||
* Marker constant for HTML_AJAX_JSON::decode(), used to flag stack state
|
||||
*/
|
||||
define('SERVICES_JSON_SLICE', 1);
|
||||
|
||||
/**
|
||||
* Marker constant for Services_JSON::decode(), used to flag stack state
|
||||
* Marker constant for HTML_AJAX_JSON::decode(), used to flag stack state
|
||||
*/
|
||||
define('SERVICES_JSON_IN_STR', 2);
|
||||
|
||||
/**
|
||||
* Marker constant for Services_JSON::decode(), used to flag stack state
|
||||
* Marker constant for HTML_AJAX_JSON::decode(), used to flag stack state
|
||||
*/
|
||||
define('SERVICES_JSON_IN_ARR', 3);
|
||||
|
||||
/**
|
||||
* Marker constant for Services_JSON::decode(), used to flag stack state
|
||||
* Marker constant for HTML_AJAX_JSON::decode(), used to flag stack state
|
||||
*/
|
||||
define('SERVICES_JSON_IN_OBJ', 4);
|
||||
|
||||
/**
|
||||
* Marker constant for Services_JSON::decode(), used to flag stack state
|
||||
* Marker constant for HTML_AJAX_JSON::decode(), used to flag stack state
|
||||
*/
|
||||
define('SERVICES_JSON_IN_CMT', 5);
|
||||
|
||||
/**
|
||||
* Behavior switch for Services_JSON::decode()
|
||||
* Behavior switch for HTML_AJAX_JSON::decode()
|
||||
*/
|
||||
define('SERVICES_JSON_LOOSE_TYPE', 16);
|
||||
|
||||
/**
|
||||
* Behavior switch for Services_JSON::decode()
|
||||
* Behavior switch for HTML_AJAX_JSON::decode()
|
||||
*/
|
||||
define('SERVICES_JSON_SUPPRESS_ERRORS', 32);
|
||||
|
||||
@@ -97,8 +108,8 @@ define('SERVICES_JSON_SUPPRESS_ERRORS', 32);
|
||||
* Brief example of use:
|
||||
*
|
||||
* <code>
|
||||
* // create a new instance of Services_JSON
|
||||
* $json = new Services_JSON();
|
||||
* // create a new instance of HTML_AJAX_JSON
|
||||
* $json = new HTML_AJAX_JSON();
|
||||
*
|
||||
* // convert a complexe value to JSON notation, and send it to the browser
|
||||
* $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4)));
|
||||
@@ -112,7 +123,7 @@ define('SERVICES_JSON_SUPPRESS_ERRORS', 32);
|
||||
* $value = $json->decode($input);
|
||||
* </code>
|
||||
*/
|
||||
class Services_JSON
|
||||
class HTML_AJAX_JSON
|
||||
{
|
||||
/**
|
||||
* constructs a new JSON instance
|
||||
@@ -130,7 +141,7 @@ class Services_JSON
|
||||
* bubble up with an error, so all return values
|
||||
* from encode() should be checked with isError()
|
||||
*/
|
||||
function Services_JSON($use = 0)
|
||||
function HTML_AJAX_JSON($use = 0)
|
||||
{
|
||||
$this->use = $use;
|
||||
}
|
||||
@@ -149,9 +160,8 @@ class Services_JSON
|
||||
function utf162utf8($utf16)
|
||||
{
|
||||
// oh please oh please oh please oh please oh please
|
||||
if(function_exists('mb_convert_encoding')) {
|
||||
if(function_exists('mb_convert_encoding'))
|
||||
return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16');
|
||||
}
|
||||
|
||||
$bytes = (ord($utf16{0}) << 8) | ord($utf16{1});
|
||||
|
||||
@@ -193,9 +203,8 @@ class Services_JSON
|
||||
function utf82utf16($utf8)
|
||||
{
|
||||
// oh please oh please oh please oh please oh please
|
||||
if(function_exists('mb_convert_encoding')) {
|
||||
if(function_exists('mb_convert_encoding'))
|
||||
return mb_convert_encoding($utf8, 'UTF-16', 'UTF-8');
|
||||
}
|
||||
|
||||
switch(strlen($utf8)) {
|
||||
case 1:
|
||||
@@ -227,7 +236,7 @@ class Services_JSON
|
||||
* encodes an arbitrary variable into JSON format
|
||||
*
|
||||
* @param mixed $var any number, boolean, string, array, or object to be encoded.
|
||||
* see argument 1 to Services_JSON() above for array-parsing behavior.
|
||||
* see argument 1 to HTML_AJAX_JSON() above for array-parsing behavior.
|
||||
* if var is a strng, note that encode() always expects it
|
||||
* to be in ASCII or UTF-8 format!
|
||||
*
|
||||
@@ -380,11 +389,9 @@ class Services_JSON
|
||||
array_keys($var),
|
||||
array_values($var));
|
||||
|
||||
foreach($properties as $property) {
|
||||
if(Services_JSON::isError($property)) {
|
||||
foreach($properties as $property)
|
||||
if(HTML_AJAX_JSON::isError($property))
|
||||
return $property;
|
||||
}
|
||||
}
|
||||
|
||||
return '{' . join(',', $properties) . '}';
|
||||
}
|
||||
@@ -392,11 +399,9 @@ class Services_JSON
|
||||
// treat it like a regular array
|
||||
$elements = array_map(array($this, 'encode'), $var);
|
||||
|
||||
foreach($elements as $element) {
|
||||
if(Services_JSON::isError($element)) {
|
||||
foreach($elements as $element)
|
||||
if(HTML_AJAX_JSON::isError($element))
|
||||
return $element;
|
||||
}
|
||||
}
|
||||
|
||||
return '[' . join(',', $elements) . ']';
|
||||
|
||||
@@ -407,18 +412,16 @@ class Services_JSON
|
||||
array_keys($vars),
|
||||
array_values($vars));
|
||||
|
||||
foreach($properties as $property) {
|
||||
if(Services_JSON::isError($property)) {
|
||||
foreach($properties as $property)
|
||||
if(HTML_AJAX_JSON::isError($property))
|
||||
return $property;
|
||||
}
|
||||
}
|
||||
|
||||
return '{' . join(',', $properties) . '}';
|
||||
|
||||
default:
|
||||
return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)
|
||||
? 'null'
|
||||
: new Services_JSON_Error(gettype($var)." can not be encoded as JSON string");
|
||||
: new HTML_AJAX_JSON_Error(gettype($var)." can not be encoded as JSON string");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -435,9 +438,8 @@ class Services_JSON
|
||||
{
|
||||
$encoded_value = $this->encode($value);
|
||||
|
||||
if(Services_JSON::isError($encoded_value)) {
|
||||
if(HTML_AJAX_JSON::isError($encoded_value))
|
||||
return $encoded_value;
|
||||
}
|
||||
|
||||
return $this->encode(strval($name)) . ':' . $encoded_value;
|
||||
}
|
||||
@@ -476,7 +478,7 @@ class Services_JSON
|
||||
*
|
||||
* @return mixed number, boolean, string, array, or object
|
||||
* corresponding to given JSON input string.
|
||||
* See argument 1 to Services_JSON() above for object-output behavior.
|
||||
* See argument 1 to HTML_AJAX_JSON() above for object-output behavior.
|
||||
* Note that decode() always returns strings
|
||||
* in ASCII or UTF-8 format!
|
||||
* @access public
|
||||
@@ -496,8 +498,6 @@ class Services_JSON
|
||||
return null;
|
||||
|
||||
default:
|
||||
$m = array();
|
||||
|
||||
if (is_numeric($str)) {
|
||||
// Lookie-loo, it's a number
|
||||
|
||||
@@ -665,8 +665,6 @@ class Services_JSON
|
||||
// out the property name and set an
|
||||
// element in an associative array,
|
||||
// for now
|
||||
$parts = array();
|
||||
|
||||
if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:\s*(\S.*),?$/Uis', $slice, $parts)) {
|
||||
// "name":value pair
|
||||
$key = $this->decode($parts[1]);
|
||||
@@ -698,10 +696,9 @@ class Services_JSON
|
||||
|
||||
} elseif (($chrs{$c} == $top['delim']) &&
|
||||
($top['what'] == SERVICES_JSON_IN_STR) &&
|
||||
((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
|
||||
(($chrs{$c - 1} != '\\') ||
|
||||
($chrs{$c - 1} == '\\' && $chrs{$c - 2} == '\\'))) {
|
||||
// found a quote, we're in a string, and it's not escaped
|
||||
// we know that it's not escaped becase there is _not_ an
|
||||
// odd number of backslashes at the end of the string so far
|
||||
array_pop($stk);
|
||||
//print("Found end of string at {$c}: ".substr($chrs, $top['where'], (1 + 1 + $c - $top['where']))."\n");
|
||||
|
||||
@@ -765,7 +762,7 @@ class Services_JSON
|
||||
*/
|
||||
function isError($data, $code = null)
|
||||
{
|
||||
if (class_exists('pear')) {
|
||||
if (HTML_AJAX_class_exists('pear', false)) {
|
||||
return PEAR::isError($data, $code);
|
||||
} elseif (is_object($data) && (get_class($data) == 'services_json_error' ||
|
||||
is_subclass_of($data, 'services_json_error'))) {
|
||||
@@ -776,11 +773,11 @@ class Services_JSON
|
||||
}
|
||||
}
|
||||
|
||||
if (class_exists('PEAR_Error')) {
|
||||
if (HTML_AJAX_class_exists('pear_error', false)) {
|
||||
|
||||
class Services_JSON_Error extends PEAR_Error
|
||||
class HTML_AJAX_JSON_Error extends PEAR_Error
|
||||
{
|
||||
function Services_JSON_Error($message = 'unknown error', $code = null,
|
||||
function HTML_AJAX_JSON_Error($message = 'unknown error', $code = null,
|
||||
$mode = null, $options = null, $userinfo = null)
|
||||
{
|
||||
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
|
||||
@@ -792,9 +789,9 @@ if (class_exists('PEAR_Error')) {
|
||||
/**
|
||||
* @todo Ultimately, this class shall be descended from PEAR_Error
|
||||
*/
|
||||
class Services_JSON_Error
|
||||
class HTML_AJAX_JSON_Error
|
||||
{
|
||||
function Services_JSON_Error($message = 'unknown error', $code = null,
|
||||
function HTML_AJAX_JSON_Error($message = 'unknown error', $code = null,
|
||||
$mode = null, $options = null, $userinfo = null)
|
||||
{
|
||||
|
||||
@@ -802,5 +799,21 @@ if (class_exists('PEAR_Error')) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Future-friendly json_encode
|
||||
if( !function_exists('json_encode') ) {
|
||||
function json_encode($data) {
|
||||
$json = new HTML_AJAX_JSON();
|
||||
return( $json->encode($data) );
|
||||
}
|
||||
}
|
||||
|
||||
// Future-friendly json_decode
|
||||
if( !function_exists('json_decode') ) {
|
||||
function json_decode($data) {
|
||||
$json = new HTML_AJAX_JSON();
|
||||
return( $json->decode($data) );
|
||||
}
|
||||
}
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||
?>
|
||||
Executable
+78
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* OO AJAX Implementation for PHP, contains HTML_AJAX_Response
|
||||
*
|
||||
* SVN Rev: $Id$
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Elizabeth Smith <auroraeosrose@gmail.com>
|
||||
* @copyright 2005-2006 Elizabeth Smith
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
*/
|
||||
|
||||
/**
|
||||
* Require the main AJAX library
|
||||
*/
|
||||
require_once 'HTML/AJAX.php';
|
||||
|
||||
/**
|
||||
* Simple base class for a response object to use as an ajax callback
|
||||
*
|
||||
* This is the base response class, more interesting response classes can be
|
||||
* built off of this, simply give it a unique content type and override the
|
||||
* getPayload method or fill the payload property with your extended classes's
|
||||
* serialized content
|
||||
*
|
||||
* @version $Id$
|
||||
*/
|
||||
class HTML_AJAX_Response
|
||||
{
|
||||
|
||||
/**
|
||||
* The base response class uses plain text so use that content type
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $contentType = 'text/plain';
|
||||
|
||||
/**
|
||||
* Assign a string to this variable to use the bare response class
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $payload = '';
|
||||
|
||||
/**
|
||||
* Returns the appropriate content type
|
||||
*
|
||||
* This normally simply returns the contentType property but can be overridden
|
||||
* by an extending class if the content-type is variable
|
||||
*
|
||||
* @return string appropriate content type
|
||||
* @access public
|
||||
*/
|
||||
function getContentType()
|
||||
{
|
||||
return $this->contentType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the serialized content of the response class
|
||||
*
|
||||
* You can either fill the payload elsewhere in an extending class and leave
|
||||
* this method alone, or you can override it if you have a different type
|
||||
* of payload that needs special treatment
|
||||
*
|
||||
* @return string serialized response content
|
||||
* @access public
|
||||
*/
|
||||
function getPayload()
|
||||
{
|
||||
return $this->payload;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
require_once 'HTML/AJAX/Serializer/JSON.php';
|
||||
// $Id
|
||||
/**
|
||||
* Error Serializer, for now just uses JSON
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Joshua Eichorn <josh@bluga.net>
|
||||
* @copyright 2005 Joshua Eichorn
|
||||
* @license http://www.php.net/license/3_0.txt PHP License 3.0
|
||||
* @version Release: 0.5.6
|
||||
* @link http://pear.php.net/package/HTML_AJAX
|
||||
*/
|
||||
class HTML_AJAX_Serializer_Error extends HTML_AJAX_Serializer_JSON
|
||||
{
|
||||
|
||||
}
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||
?>
|
||||
Executable
+96
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
require_once 'HTML/AJAX/JSON.php';
|
||||
// $Id$
|
||||
/**
|
||||
* JSON Serializer
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Joshua Eichorn <josh@bluga.net>
|
||||
* @copyright 2005 Joshua Eichorn
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
* @link http://pear.php.net/package/PackageName
|
||||
*/
|
||||
// {{{ class HTMLA_AJAX_Serialize_JSON
|
||||
class HTML_AJAX_Serializer_JSON
|
||||
{
|
||||
// {{{ variables-properties
|
||||
/**
|
||||
* JSON instance
|
||||
* @var HTML_AJAX_JSON
|
||||
* @access private
|
||||
*/
|
||||
var $_json;
|
||||
|
||||
/**
|
||||
* use json php extension http://www.aurore.net/projects/php-json/
|
||||
* @access private
|
||||
*/
|
||||
var $_jsonext;
|
||||
|
||||
/**
|
||||
* use loose typing to decode js objects into php associative arrays
|
||||
* @access public
|
||||
*/
|
||||
var $loose_type;
|
||||
|
||||
// }}}
|
||||
// {{{ constructor
|
||||
function HTML_AJAX_Serializer_JSON($use_loose_type = true)
|
||||
{
|
||||
$this->loose_type = (bool) $use_loose_type;
|
||||
$this->_jsonext = $this->_detect();
|
||||
if(!$this->_jsonext) {
|
||||
$use_loose_type = ($this->loose_type) ? SERVICES_JSON_LOOSE_TYPE : 0;
|
||||
$this->_json = new HTML_AJAX_JSON($use_loose_type);
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
// {{{ serialize
|
||||
/**
|
||||
* This function serializes and input passed to it.
|
||||
*
|
||||
* @access public
|
||||
* @param string $input The input to serialize.
|
||||
* @return string $input The serialized input.
|
||||
*/
|
||||
function serialize($input)
|
||||
{
|
||||
if($this->_jsonext) {
|
||||
return json_encode($input);
|
||||
} else {
|
||||
return $this->_json->encode($input);
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
// {{{ unserialize
|
||||
/**
|
||||
* this function unserializes the input passed to it.
|
||||
*
|
||||
* @access public
|
||||
* @param string $input The input to unserialize
|
||||
* @return string $input The unserialized input.
|
||||
*/
|
||||
function unserialize($input)
|
||||
{
|
||||
if($this->_jsonext) {
|
||||
return json_decode($input, $this->loose_type);
|
||||
} else {
|
||||
return $this->_json->decode($input);
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
// {{{ _detect
|
||||
/**
|
||||
* detects the loaded extension
|
||||
*/
|
||||
function _detect()
|
||||
{
|
||||
return extension_loaded('json');
|
||||
}
|
||||
// }}}
|
||||
}
|
||||
// }}}
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||
?>
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// $Id$
|
||||
/**
|
||||
* Null Serializer
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Joshua Eichorn <josh@bluga.net>
|
||||
* @copyright 2005 Joshua Eichorn
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
* @link http://pear.php.net/package/PackageName
|
||||
*/
|
||||
class HTML_AJAX_Serializer_Null
|
||||
{
|
||||
|
||||
function serialize($input)
|
||||
{
|
||||
return $input;
|
||||
}
|
||||
|
||||
function unserialize($input)
|
||||
{
|
||||
return $input;
|
||||
}
|
||||
}
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||
?>
|
||||
Executable
+88
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
// $Id$
|
||||
/**
|
||||
* PHP Serializer
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Arpad Ray <arpad@php.net>
|
||||
* @copyright 2005 Arpad Ray
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
* @link http://pear.php.net/package/HTML_AJAX
|
||||
*/
|
||||
class HTML_AJAX_Serializer_PHP
|
||||
{
|
||||
function serialize($input)
|
||||
{
|
||||
return serialize($input);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unserializes the given string
|
||||
*
|
||||
* Triggers an error if a class is found which is not
|
||||
* in the provided array of allowed class names.
|
||||
*
|
||||
* @param string $input
|
||||
* the serialized string to process
|
||||
* @param array $allowedClasses
|
||||
* an array of class names to check objects against
|
||||
* before instantion
|
||||
* @return mixed
|
||||
* the unserialized variable on success, or false on
|
||||
* failure. If this method fails it will also trigger
|
||||
* a warning.
|
||||
*/
|
||||
function unserialize($input, $allowedClasses)
|
||||
{
|
||||
if (version_compare(PHP_VERSION, '4.3.10', '<')
|
||||
|| (substr(PHP_VERSION, 0, 1) == '5' && version_compare(PHP_VERSION, '5.0.3', '<'))) {
|
||||
trigger_error('Unsafe version of PHP for native unserialization');
|
||||
return false;
|
||||
}
|
||||
$classes = $this->_getSerializedClassNames($input);
|
||||
if ($classes === false) {
|
||||
trigger_error('Invalidly serialized string');
|
||||
return false;
|
||||
}
|
||||
$diff = array_diff($classes, $allowedClasses);
|
||||
if (!empty($diff)) {
|
||||
trigger_error('Class(es) not allowed to be serialized');
|
||||
return false;
|
||||
}
|
||||
return unserialize($input);
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract class names from serialized string
|
||||
*
|
||||
* Adapted from code by Harry Fuecks
|
||||
*
|
||||
* @param string $string
|
||||
* the serialized string to process
|
||||
* @return mixed
|
||||
* an array of class names found, or false if the input
|
||||
* is invalidly formed
|
||||
*/
|
||||
function _getSerializedClassNames($string) {
|
||||
// Strip any string representations (which might contain object syntax)
|
||||
while (($pos = strpos($string, 's:')) !== false) {
|
||||
$pos2 = strpos($string, ':', $pos + 2);
|
||||
if ($pos2 === false) {
|
||||
// invalidly serialized string
|
||||
return false;
|
||||
}
|
||||
$end = $pos + 2 + substr($string, $pos + 2, $pos2) + 1;
|
||||
$string = substr($string, 0, $pos) . substr($string, $end);
|
||||
}
|
||||
|
||||
// Pull out the class names
|
||||
preg_match_all('/O:[0-9]+:"(.*)"/U', $string, $matches);
|
||||
|
||||
// Make sure names are unique (same object serialized twice)
|
||||
return array_unique($matches[1]);
|
||||
}
|
||||
}
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||
?>
|
||||
Executable
+67
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
// $Id$
|
||||
|
||||
// {{{ http_build_query
|
||||
/**
|
||||
* Replacement for http_build_query()
|
||||
*
|
||||
* @link http://php.net/function.http-build-query
|
||||
* @author vlad_mustafin@ukr.net
|
||||
* @author Arpad Ray <arpad@php.net>
|
||||
*/
|
||||
if (!function_exists('http_build_query')) {
|
||||
function http_build_query($formdata, $numeric_prefix = null, $key = null)
|
||||
{
|
||||
$res = array();
|
||||
foreach ((array)$formdata as $k => $v) {
|
||||
if (is_resource($v)) {
|
||||
return null;
|
||||
}
|
||||
$tmp_key = urlencode(is_int($k) ? $numeric_prefix . $k : $k);
|
||||
if (!is_null($key)) {
|
||||
$tmp_key = $key . '[' . $tmp_key . ']';
|
||||
}
|
||||
$res[] = (is_scalar($v))
|
||||
? $tmp_key . '=' . urlencode($v)
|
||||
: http_build_query($v, null , $tmp_key);
|
||||
}
|
||||
$separator = ini_get('arg_separator.output');
|
||||
if (strlen($separator) == 0) {
|
||||
$separator = '&';
|
||||
}
|
||||
return implode($separator, $res);
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
// {{{ class HTML_AJAX_Serialize_Urlencoded
|
||||
/**
|
||||
* URL Encoding Serializer
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Arpad Ray <arpad@php.net>
|
||||
* @author David Coallier <davidc@php.net>
|
||||
* @copyright 2005 Arpad Ray
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
* @link http://pear.php.net/package/HTML_AJAX
|
||||
*/
|
||||
class HTML_AJAX_Serializer_Urlencoded
|
||||
{
|
||||
// {{{ serialize
|
||||
function serialize($input)
|
||||
{
|
||||
return http_build_query(array('_HTML_AJAX' => $input));
|
||||
}
|
||||
// }}}
|
||||
// {{{ unserialize
|
||||
function unserialize($input)
|
||||
{
|
||||
parse_str($input, $ret);
|
||||
return (isset($ret['_HTML_AJAX']) ? $ret['_HTML_AJAX'] : $ret);
|
||||
}
|
||||
// }}}
|
||||
}
|
||||
// }}}
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||
?>
|
||||
Executable
+88
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
// $Id$
|
||||
/**
|
||||
* XML Serializer - does NOT need a js serializer, use responseXML property in XmlHttpRequest
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Elizabeth Smith <auroraeosrose@gmail.com>
|
||||
* @copyright 2005-2006 Elizabeth Smith
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: 0.5.6
|
||||
* @link http://pear.php.net/package/PackageName
|
||||
*/
|
||||
class HTML_AJAX_Serializer_XML
|
||||
{
|
||||
|
||||
/**
|
||||
* Serializes a domdocument into an xml string
|
||||
*
|
||||
* Uses dom or domxml to dump a string from a DomDocument instance
|
||||
* remember dom is always the default and this will die horribly without
|
||||
* a domdocument instance
|
||||
*
|
||||
* @access public
|
||||
* @param object $input instanceof DomDocument
|
||||
* @return string xml string of DomDocument
|
||||
*/
|
||||
function serialize($input)
|
||||
{
|
||||
if(empty($input))
|
||||
{
|
||||
return $input;
|
||||
}
|
||||
// we check for the dom extension
|
||||
elseif (extension_loaded('Dom'))
|
||||
{
|
||||
return $input->saveXml();
|
||||
}
|
||||
// then will check for domxml
|
||||
elseif (extension_loaded('Domxml'))
|
||||
{
|
||||
return $input->dump_mem();
|
||||
}
|
||||
// will throw an error
|
||||
else {
|
||||
$error = new HTML_AJAX_Serializer_Error();
|
||||
$this->serializerNewType = 'Error';
|
||||
return $error->serialize(array('errStr'=>"Missing PHP Dom extension direct XML won't work"));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unserializes the xml string sent from the document
|
||||
*
|
||||
* Uses dom or domxml to pump a string into a DomDocument instance
|
||||
* remember dom is always the default and this will die horribly without
|
||||
* one or the other, and will throw warnings if you have bad xml
|
||||
*
|
||||
* @access public
|
||||
* @param string $input The input to serialize.
|
||||
* @return object instanceofDomDocument
|
||||
*/
|
||||
function unserialize($input)
|
||||
{
|
||||
if(empty($input))
|
||||
{
|
||||
return $input;
|
||||
}
|
||||
// we check for the dom extension
|
||||
elseif (extension_loaded('Dom'))
|
||||
{
|
||||
$doc = new DOMDocument();
|
||||
$doc->loadXML($input);
|
||||
return $doc;
|
||||
}
|
||||
// then we check for the domxml extensions
|
||||
elseif (extension_loaded('Domxml'))
|
||||
{
|
||||
return domxml_open_mem($input);
|
||||
}
|
||||
// we give up and just return the xml directly
|
||||
else
|
||||
{
|
||||
return $input;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
Executable
+725
@@ -0,0 +1,725 @@
|
||||
<?php
|
||||
/**
|
||||
* OO AJAX Implementation for PHP
|
||||
*
|
||||
* SVN Rev: $Id$
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Joshua Eichorn <josh@bluga.net>
|
||||
* @copyright 2005 Joshua Eichorn
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Require the main AJAX library
|
||||
*/
|
||||
require_once 'HTML/AJAX.php';
|
||||
|
||||
/**
|
||||
* Class for creating an external AJAX server
|
||||
*
|
||||
* Can be used in 2 different modes, registerClass mode where you create an instance of the server and add the classes that will be registered
|
||||
* and then run handle request
|
||||
*
|
||||
* Or you can extend it and add init{className} methods for each class you want to export
|
||||
*
|
||||
* Client js generation is exposed through 2 _GET params client and stub
|
||||
* Setting the _GET param client to `all` will give you all the js classes needed
|
||||
* Setting the _GET param stub to `all` will give you stubs of all registered classes, you can also set it too just 1 class
|
||||
*
|
||||
* @category HTML
|
||||
* @package AJAX
|
||||
* @author Joshua Eichorn <josh@bluga.net>
|
||||
* @copyright 2005 Joshua Eichorn
|
||||
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
* @version Release: @package_version@
|
||||
* @link http://pear.php.net/package/PackageName
|
||||
*/
|
||||
class HTML_AJAX_Server
|
||||
{
|
||||
|
||||
/**
|
||||
* Client options array if set to true the code looks at _GET
|
||||
* @var bool|array
|
||||
*/
|
||||
var $options = true;
|
||||
|
||||
/**
|
||||
* HTML_AJAX instance
|
||||
* @var HTML_AJAX
|
||||
*/
|
||||
var $ajax;
|
||||
|
||||
/**
|
||||
* Set to true if your extending the server to add init{className methods}
|
||||
* @var boolean
|
||||
* @access public
|
||||
*/
|
||||
var $initMethods = false;
|
||||
|
||||
/**
|
||||
* Location on filesystem of client javascript library
|
||||
* @var false|string if false the default pear data dir location is used
|
||||
*/
|
||||
var $clientJsLocation = false;
|
||||
|
||||
/**
|
||||
* An array of options that tell the server howto Cache output
|
||||
*
|
||||
* The rules are functions that make etag hash used to see if the client needs to download updated content
|
||||
* If you extend this class you can make your own rule function the naming convention is _cacheRule{RuleName}
|
||||
*
|
||||
* <code>
|
||||
* array(
|
||||
* 'httpCacheClient' => true, // send 304 headers for responses to ?client=* requests
|
||||
* 'ClientCacheRule' => 'File', // create a hash from file names and modified times, options: file|content
|
||||
* 'ClientCacheExpects'=> 'files', // what type of content to send to the hash function, options: files|classes|content
|
||||
* 'httpCacheStub' => true, // send 304 headers for responses to ?stub=* requests
|
||||
* 'StubCacheRule' => 'Api', // create a hash from the exposed api, options: api|content
|
||||
* 'StubCacheExpects'=> 'classes', // what type of content to send to the hash function, options: files|classes|content
|
||||
* )
|
||||
* </code>
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
*/
|
||||
var $cacheOptions = array(
|
||||
'httpCacheClient' => true,
|
||||
'ClientCacheRule' => 'file',
|
||||
'ClientCacheExpects' => 'files',
|
||||
'httpCacheStub' => true,
|
||||
'StubCacheRule' => 'api',
|
||||
'StubCacheExpects' => 'classes',
|
||||
);
|
||||
|
||||
/**
|
||||
* Compression Options
|
||||
*
|
||||
* <code>
|
||||
* array(
|
||||
* 'enabled' => false, // enable compression
|
||||
* 'type' => 'gzip' // the type of compression to do, options: gzip
|
||||
* )
|
||||
* </code>
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
*/
|
||||
var $compression = array(
|
||||
'enabled' => false,
|
||||
'type' => 'gzip'
|
||||
);
|
||||
|
||||
/**
|
||||
* Javascript library names and there path
|
||||
*
|
||||
* the return of $this->clientJsLocation(), is prepended before running readfile on them
|
||||
*
|
||||
* @access public
|
||||
* @var array
|
||||
*/
|
||||
var $javascriptLibraries = array(
|
||||
'all' => 'HTML_AJAX.js',
|
||||
'html_ajax' => 'HTML_AJAX.js',
|
||||
'html_ajax_lite'=> 'HTML_AJAX_lite.js',
|
||||
'json' => 'serializer/JSON.js',
|
||||
'request' => 'Request.js',
|
||||
'main' => array('Compat.js','Main.js','clientPool.js'),
|
||||
'httpclient' => 'HttpClient.js',
|
||||
'dispatcher' => 'Dispatcher.js',
|
||||
'util' => 'util.js',
|
||||
'loading' => 'Loading.js',
|
||||
'phpserializer' => 'serializer/phpSerializer.js',
|
||||
'urlserializer' => 'serializer/UrlSerializer.js',
|
||||
'haserializer' => 'serializer/haSerializer.js',
|
||||
'clientpool' => 'clientPool.js',
|
||||
'iframe' => 'IframeXHR.js',
|
||||
'alias' => 'Alias.js',
|
||||
'queues' => 'Queue.js',
|
||||
'behavior' => array('behavior/behavior.js','behavior/cssQuery-p.js'),
|
||||
|
||||
// rules to help you use a minimal library set
|
||||
'standard' => array('Compat.js','clientPool.js','util.js','Main.js','HttpClient.js','Request.js','serializer/JSON.js',
|
||||
'Loading.js','serializer/UrlSerializer.js','Alias.js','behavior/behavior.js','behavior/cssQuery-p.js'),
|
||||
'jsonrpc' => array('Compat.js','util.js','Main.js','clientPool.js','HttpClient.js','Request.js','serializer/JSON.js'),
|
||||
'proxyobjects' => array('Compat.js','util.js','Main.js','clientPool.js','Request.js','serializer/JSON.js','Dispatcher.js'),
|
||||
|
||||
// BC rules
|
||||
'priorityqueue' => 'Queue.js',
|
||||
'orderedqueue' => 'Queue.js',
|
||||
);
|
||||
|
||||
/**
|
||||
* Custom paths to use for javascript libraries, if not set {@link clientJsLocation} is used to find the system path
|
||||
*
|
||||
* @access public
|
||||
* @var array
|
||||
* @see registerJsLibrary
|
||||
*/
|
||||
var $javascriptLibraryPaths = array();
|
||||
|
||||
/**
|
||||
* Array of className => init methods to call, generated from constructor from initClassName methods
|
||||
*
|
||||
* @access protected
|
||||
*/
|
||||
var $_initLookup = array();
|
||||
|
||||
|
||||
/**
|
||||
* Constructor creates the HTML_AJAX instance
|
||||
*
|
||||
* @param string $serverUrl (Optional) the url the client should be making a request too
|
||||
*/
|
||||
function HTML_AJAX_Server($serverUrl = false)
|
||||
{
|
||||
$this->ajax = new HTML_AJAX();
|
||||
|
||||
// parameters for HTML::AJAX
|
||||
$parameters = array('stub', 'client');
|
||||
|
||||
// keep in the query string all the parameters that don't belong to AJAX
|
||||
// we remove all string like "parameter=something&". Final '&' can also
|
||||
// be '&' (to be sure) and is optional. '=something' is optional too.
|
||||
$querystring = '';
|
||||
if (isset($_SERVER['QUERY_STRING'])) {
|
||||
$querystring = preg_replace('/(' . join('|', $parameters) . ')(?:=[^&]*(?:&(?:amp;)?|$))?/', '', $this->ajax->_getServer('QUERY_STRING'));
|
||||
}
|
||||
|
||||
// call the server with this query string
|
||||
if ($serverUrl === false) {
|
||||
$serverUrl = htmlentities($this->ajax->_getServer('PHP_SELF'));
|
||||
}
|
||||
|
||||
if (substr($serverUrl,-1) != '?') {
|
||||
$serverUrl .= '?';
|
||||
}
|
||||
$this->ajax->serverUrl = $serverUrl . $querystring;
|
||||
|
||||
$methods = get_class_methods($this);
|
||||
foreach($methods as $method) {
|
||||
if (preg_match('/^init([a-zA-Z0-9_]+)$/',$method,$match)) {
|
||||
$this->_initLookup[strtolower($match[1])] = $method;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle a client request, either generating a client or having HTML_AJAX handle the request
|
||||
*
|
||||
* @return boolean true if request was handled, false otherwise
|
||||
*/
|
||||
function handleRequest()
|
||||
{
|
||||
if ($this->options == true) {
|
||||
$this->_loadOptions();
|
||||
}
|
||||
//basically a hook for iframe but allows processing of data earlier
|
||||
$this->ajax->populatePayload();
|
||||
if (!isset($_GET['c']) && (count($this->options['client']) > 0 || count($this->options['stub']) > 0) ) {
|
||||
$this->generateClient();
|
||||
return true;
|
||||
} else {
|
||||
if (!empty($_GET['c'])) {
|
||||
$this->_init($this->_cleanIdentifier($this->ajax->_getVar('c')));
|
||||
}
|
||||
return $this->ajax->handleRequest();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Register method passthrough to HTML_AJAX
|
||||
*
|
||||
* @see HTML_AJAX::registerClass for docs
|
||||
*/
|
||||
function registerClass(&$instance, $exportedName = false, $exportedMethods = false)
|
||||
{
|
||||
$this->ajax->registerClass($instance,$exportedName,$exportedMethods);
|
||||
}
|
||||
|
||||
/**
|
||||
* Change default serialization - important for exporting classes
|
||||
*
|
||||
* I wanted this for the xml serializer :)
|
||||
*/
|
||||
function setSerializer($type)
|
||||
{
|
||||
$this->ajax->serializer = $type;
|
||||
$this->ajax->unserializer = $type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a new js client library
|
||||
*
|
||||
* @param string $libraryName name you'll reference the library as
|
||||
* @param string|array $fileName actual filename with no path, for example customLib.js
|
||||
* @param string|false $path Optional, if not set the result from jsClientLocation is used
|
||||
*/
|
||||
function registerJSLibrary($libraryName,$fileName,$path = false) {
|
||||
$libraryName = strtolower($libraryName);
|
||||
$this->javascriptLibraries[$libraryName] = $fileName;
|
||||
|
||||
if ($path !== false) {
|
||||
$this->javascriptLibraryPaths[$libraryName] = $path;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Register init methods from an external class
|
||||
*
|
||||
* @param object $instance an external class with initClassName methods
|
||||
*/
|
||||
function registerInitObject(&$instance) {
|
||||
$instance->server =& $this;
|
||||
$methods = get_class_methods($instance);
|
||||
foreach($methods as $method) {
|
||||
if (preg_match('/^init([a-zA-Z0-9_]+)$/',$method,$match)) {
|
||||
$this->_initLookup[strtolower($match[1])] = array(&$instance,$method);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a callback to be exported to the client
|
||||
*
|
||||
* This function uses the PHP callback pseudo-type
|
||||
*
|
||||
*/
|
||||
function registerPhpCallback($callback)
|
||||
{
|
||||
if (!is_callable($callback)) {
|
||||
// invalid callback
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_array($callback) && is_object($callback[0])) {
|
||||
// object method
|
||||
$this->registerClass($callback[0], strtolower(get_class($callback[0])), array($callback[1]));
|
||||
return true;
|
||||
}
|
||||
|
||||
// static callback
|
||||
$this->ajax->registerPhpCallback($callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate client js
|
||||
*
|
||||
* @todo this is going to need tests to cover all the options
|
||||
*/
|
||||
function generateClient()
|
||||
{
|
||||
$headers = array();
|
||||
|
||||
ob_start();
|
||||
|
||||
// create a list list of js files were going to need to output
|
||||
// index is the full file and so is the value, this keeps duplicates out of $fileList
|
||||
$fileList = array();
|
||||
|
||||
if(!is_array($this->options['client'])) {
|
||||
$this->options['client'] = array();
|
||||
}
|
||||
foreach($this->options['client'] as $library) {
|
||||
if (isset($this->javascriptLibraries[$library])) {
|
||||
$lib = (array)$this->javascriptLibraries[$library];
|
||||
foreach($lib as $file) {
|
||||
if (isset($this->javascriptLibraryPaths[$library])) {
|
||||
$fileList[$this->javascriptLibraryPaths[$library].$file] = $this->javascriptLibraryPaths[$library].$file;
|
||||
}
|
||||
else {
|
||||
$fileList[$this->clientJsLocation().$file] = $this->clientJsLocation().$file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// do needed class init if were running an init server
|
||||
if(!is_array($this->options['stub'])) {
|
||||
$this->options['stub'] = array();
|
||||
}
|
||||
$classList = $this->options['stub'];
|
||||
if ($this->initMethods) {
|
||||
if (isset($this->options['stub'][0]) && $this->options['stub'][0] === 'all') {
|
||||
$this->_initAll();
|
||||
} else {
|
||||
foreach($this->options['stub'] as $stub) {
|
||||
$this->_init($stub);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($this->options['stub'][0]) && $this->options['stub'][0] === 'all') {
|
||||
$classList = array_keys($this->ajax->_exportedInstances);
|
||||
}
|
||||
|
||||
// if were doing stub and client we have to wait for both ETags before we can compare with the client
|
||||
$combinedOutput = false;
|
||||
if ($classList != false && count($classList) > 0 && count($fileList) > 0) {
|
||||
$combinedOutput = true;
|
||||
}
|
||||
|
||||
|
||||
if ($classList != false && count($classList) > 0) {
|
||||
|
||||
// were setup enough to make a stubETag if the input it wants is a class list
|
||||
if ($this->cacheOptions['httpCacheStub'] &&
|
||||
$this->cacheOptions['StubCacheExpects'] == 'classes')
|
||||
{
|
||||
$stubETag = $this->_callCacheRule('Stub',$classList);
|
||||
}
|
||||
|
||||
// if were not in combined output compare etags, if method returns true were done
|
||||
if (!$combinedOutput && isset($stubETag)) {
|
||||
if ($this->_compareEtags($stubETag)) {
|
||||
ob_end_clean();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// output the stubs for all the classes in our list
|
||||
foreach($classList as $class) {
|
||||
echo $this->ajax->generateClassStub($class);
|
||||
}
|
||||
|
||||
// if were cacheing and the rule expects content make a tag and check it, if the check is true were done
|
||||
if ($this->cacheOptions['httpCacheStub'] &&
|
||||
$this->cacheOptions['StubCacheExpects'] == 'content')
|
||||
{
|
||||
$stubETag = $this->_callCacheRule('Stub',ob_get_contents());
|
||||
}
|
||||
|
||||
// if were not in combined output compare etags, if method returns true were done
|
||||
if (!$combinedOutput && isset($stubETag)) {
|
||||
if ($this->_compareEtags($stubETag)) {
|
||||
ob_end_clean();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (count($fileList) > 0) {
|
||||
// if were caching and need a file list build our jsETag
|
||||
if ($this->cacheOptions['httpCacheClient'] &&
|
||||
$this->cacheOptions['ClientCacheExpects'] === 'files')
|
||||
{
|
||||
$jsETag = $this->_callCacheRule('Client',$fileList);
|
||||
|
||||
}
|
||||
|
||||
// if were not in combined output compare etags, if method returns true were done
|
||||
if (!$combinedOutput && isset($jsETag)) {
|
||||
if ($this->_compareEtags($jsETag)) {
|
||||
ob_end_clean();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// output the needed client js files
|
||||
foreach($fileList as $file) {
|
||||
$this->_readFile($file);
|
||||
}
|
||||
|
||||
// if were caching and need content build the etag
|
||||
if ($this->cacheOptions['httpCacheClient'] &&
|
||||
$this->cacheOptions['ClientCacheExpects'] === 'content')
|
||||
{
|
||||
$jsETag = $this->_callCacheRule('Client',ob_get_contents());
|
||||
}
|
||||
|
||||
// if were not in combined output compare etags, if method returns true were done
|
||||
if (!$combinedOutput && isset($jsETag)) {
|
||||
if ($this->_compareEtags($jsETag)) {
|
||||
ob_end_clean();
|
||||
return;
|
||||
}
|
||||
}
|
||||
// were in combined output, merge the 2 ETags and compare
|
||||
else if (isset($jsETag) && isset($stubETag)) {
|
||||
if ($this->_compareEtags(md5($stubETag.$jsETag))) {
|
||||
ob_end_clean();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// were outputting content, add our length header and send the output
|
||||
$length = ob_get_length();
|
||||
$output = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
if ($this->ajax->packJavaScript) {
|
||||
$output = $this->ajax->packJavaScript($output);
|
||||
$length = strlen($output);
|
||||
}
|
||||
|
||||
if ($this->compression['enabled'] && $this->compression['type'] == 'gzip' && strpos($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip") !== false) {
|
||||
$output = gzencode($output,9);
|
||||
$length = strlen($output);
|
||||
$headers['Content-Encoding'] = 'gzip';
|
||||
}
|
||||
|
||||
if ($length > 0 && $this->ajax->_sendContentLength()) {
|
||||
$headers['Content-Length'] = $length;
|
||||
}
|
||||
$headers['Content-Type'] = 'text/javascript; charset=utf-8';
|
||||
$this->ajax->_sendHeaders($headers);
|
||||
echo($output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Run readfile on input with basic error checking
|
||||
*
|
||||
* @param string $file file to read
|
||||
* @access private
|
||||
* @todo is addslashes enough encoding for js?
|
||||
*/
|
||||
function _readFile($file)
|
||||
{
|
||||
if (file_exists($file)) {
|
||||
readfile($file);
|
||||
} else {
|
||||
$file = addslashes($file);
|
||||
echo "alert('Unable to find javascript file: $file');";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the location of the client js
|
||||
* To override the default pear datadir location set $this->clientJsLocation
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function clientJsLocation()
|
||||
{
|
||||
if (!$this->clientJsLocation) {
|
||||
$path = '@data-dir@'.DIRECTORY_SEPARATOR.'HTML_AJAX'.DIRECTORY_SEPARATOR.'js'.DIRECTORY_SEPARATOR;
|
||||
if(strpos($path, '@'.'data-dir@') === 0)
|
||||
{
|
||||
$path = realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'js').DIRECTORY_SEPARATOR;
|
||||
}
|
||||
return $path;
|
||||
} else {
|
||||
return $this->clientJsLocation;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the location of the client js
|
||||
*
|
||||
* @access public
|
||||
* @param string $location Location
|
||||
* @return void
|
||||
*/
|
||||
function setClientJsLocation($location)
|
||||
{
|
||||
$this->clientJsLocation = $location;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the path to a Javascript libraries
|
||||
*
|
||||
* @access public
|
||||
* @param string $library Library name
|
||||
* @param string $path Path
|
||||
* @return void
|
||||
*/
|
||||
function setJavascriptLibraryPath($library, $path)
|
||||
{
|
||||
$this->javascriptLibraryPaths[$library] = $path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the path to more than one Javascript libraries at once
|
||||
*
|
||||
* @access public
|
||||
* @param array $paths Paths
|
||||
* @return void
|
||||
*/
|
||||
function setJavascriptLibraryPaths($paths)
|
||||
{
|
||||
if (is_array($paths)) {
|
||||
$this->javascriptLibraryPaths = array_merge($this->javascriptLibraryPaths, $paths);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Load options from _GET
|
||||
*
|
||||
* @access private
|
||||
*/
|
||||
function _loadOptions()
|
||||
{
|
||||
$this->options = array('client'=>array(),'stub'=>array());
|
||||
if (isset($_GET['client'])) {
|
||||
$clients = explode(',',$this->ajax->_getVar('client'));
|
||||
$client = array();
|
||||
foreach($clients as $val) {
|
||||
$cleanVal = $this->_cleanIdentifier($val);
|
||||
if (!empty($cleanVal)) {
|
||||
$client[] = strtolower($cleanVal);
|
||||
}
|
||||
}
|
||||
|
||||
if (count($client) > 0) {
|
||||
$this->options['client'] = $client;
|
||||
}
|
||||
}
|
||||
if (isset($_GET['stub'])) {
|
||||
$stubs = explode(',',$this->ajax->_getVar('stub'));
|
||||
$stub = array();
|
||||
foreach($stubs as $val) {
|
||||
$cleanVal = $this->_cleanIdentifier($val);
|
||||
if (!empty($cleanVal)) {
|
||||
$stub[] = strtolower($cleanVal);
|
||||
}
|
||||
}
|
||||
|
||||
if (count($stub) > 0) {
|
||||
$this->options['stub'] = $stub;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean an identifier like a class name making it safe to use
|
||||
*
|
||||
* @param string $input
|
||||
* @return string
|
||||
* @access private
|
||||
*/
|
||||
function _cleanIdentifier($input) {
|
||||
return trim(preg_replace('/[^A-Za-z_0-9]/','',$input));
|
||||
}
|
||||
|
||||
/**
|
||||
* Run every init method on the class
|
||||
*
|
||||
* @access private
|
||||
*/
|
||||
function _initAll()
|
||||
{
|
||||
if ($this->initMethods) {
|
||||
foreach($this->_initLookup as $class => $method) {
|
||||
$this->_init($class);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Init one class
|
||||
*
|
||||
* @param string $className
|
||||
* @access private
|
||||
*/
|
||||
function _init($className)
|
||||
{
|
||||
$className = strtolower($className);
|
||||
if ($this->initMethods) {
|
||||
if (isset($this->_initLookup[$className])) {
|
||||
$method =& $this->_initLookup[$className];
|
||||
if (is_array($method)) {
|
||||
call_user_func($method);
|
||||
}
|
||||
else {
|
||||
$this->$method();
|
||||
}
|
||||
} else {
|
||||
trigger_error("Could find an init method for class: " . $className);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a hash from a list of files
|
||||
*
|
||||
* @param array $files file list
|
||||
* @return string a hash that can be used as an etag
|
||||
* @access private
|
||||
*/
|
||||
function _cacheRuleFile($files) {
|
||||
$signature = "";
|
||||
foreach($files as $file) {
|
||||
if (file_exists($file)) {
|
||||
$signature .= $file.filemtime($file);
|
||||
}
|
||||
}
|
||||
return md5($signature);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a hash from the api of registered classes
|
||||
*
|
||||
* @param array $classes class list
|
||||
* @return string a hash that can be used as an etag
|
||||
* @access private
|
||||
*/
|
||||
function _cacheRuleApi($classes) {
|
||||
$signature = "";
|
||||
foreach($classes as $class) {
|
||||
if (isset($this->ajax->_exportedInstances[$class])) {
|
||||
$signature .= $class.implode(',',$this->ajax->_exportedInstances[$class]['exportedMethods']);
|
||||
}
|
||||
}
|
||||
return md5($signature);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a hash from the raw content
|
||||
*
|
||||
* @param array $content
|
||||
* @return string a hash that can be used as an etag
|
||||
* @access private
|
||||
*/
|
||||
function _cacheRuleContent($content) {
|
||||
return md5($content);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send cache control headers
|
||||
* @access private
|
||||
*/
|
||||
function _sendCacheHeaders($etag,$notModified) {
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('ETag: '.$etag);
|
||||
if ($notModified) {
|
||||
header('HTTP/1.0 304 Not Modified',false,304);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Compare eTags
|
||||
*
|
||||
* @param string $serverETag server eTag
|
||||
* @return boolean
|
||||
* @access private
|
||||
*/
|
||||
function _compareEtags($serverETag) {
|
||||
if (isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
|
||||
if (strcmp($this->ajax->_getServer('HTTP_IF_NONE_MATCH'),$serverETag) == 0) {
|
||||
$this->_sendCacheHeaders($serverETag,true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
$this->_sendCacheHeaders($serverETag,false);
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call a cache rule and return its retusn
|
||||
*
|
||||
* @param string $rule Stub|Client
|
||||
* @param mixed $payload
|
||||
* @return boolean
|
||||
* @access private
|
||||
* @todo decide if error checking is needed
|
||||
*/
|
||||
function _callCacheRule($rule,$payload) {
|
||||
$method = '_cacheRule'.$this->cacheOptions[$rule.'CacheRule'];
|
||||
return call_user_func(array(&$this,$method),$payload);
|
||||
}
|
||||
}
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||
?>
|
||||
+26
-21
@@ -2,13 +2,13 @@ PEAR Libraries
|
||||
====================================================================
|
||||
|
||||
|
||||
This directory (lib/pear) contains unmodified copies of some
|
||||
This directory (lib/pear) contains unmodified copies of some
|
||||
libraries from the standard PEAR distribution (http://pear.php.net).
|
||||
|
||||
We include these in Moodle solely for the convenience of sites that
|
||||
We include these in Moodle solely for the convenience of sites that
|
||||
may not have PEAR installed.
|
||||
|
||||
If this directory is DELETED from Moodle then Moodle will search
|
||||
If this directory is DELETED from Moodle then Moodle will search
|
||||
the standard PHP directories and use the PEAR libraries there instead.
|
||||
|
||||
|
||||
@@ -46,10 +46,15 @@ In detail, the libraries added here are:
|
||||
- http://pear.php.net/package/HTML
|
||||
- PEAR main class:
|
||||
- Current version: 1.4.5
|
||||
- by Stig Bakken, Thomas V.V.Cox, Pierre-Alain Joye,
|
||||
- by Stig Bakken, Thomas V.V.Cox, Pierre-Alain Joye,
|
||||
Greg Beaver and Martin Jansen
|
||||
- License: PHP
|
||||
- http://pear.php.net/package/PEAR
|
||||
- PEAR HTML_AJAX:
|
||||
- Current version: 0.5.6
|
||||
- by Elizabeth Smith, Arpad Ray, Joshua Eichorn, David Coallier and Laurent Yaish
|
||||
- License: LGPL
|
||||
- http://pear.php.net/package/HTML_AJAX/
|
||||
|
||||
|
||||
|
||||
@@ -57,17 +62,17 @@ In detail, the libraries added here are:
|
||||
A NOTE TO DEVELOPERS
|
||||
================================================================
|
||||
|
||||
We must not use these classes directly ever. Instead we must build
|
||||
We must not use these classes directly ever. Instead we must build
|
||||
and use wrapper classes to isolate Moodle code from internal PEAR
|
||||
implementations, allowing us to migrate if needed to other
|
||||
libraries in the future. For an example of wrapped classes,
|
||||
see the excel.class.lib file, that includes code to build
|
||||
implementations, allowing us to migrate if needed to other
|
||||
libraries in the future. For an example of wrapped classes,
|
||||
see the excel.class.lib file, that includes code to build
|
||||
Excel files using the cool library inside PEAR, but using
|
||||
the old calls used before Moodle 1.6 to maintain compatibility.
|
||||
|
||||
Please, don't forget it! Always use wrapper classes/functions!
|
||||
|
||||
Ciao,
|
||||
Ciao,
|
||||
Eloy Lafuente, 2005-12-17 :-)
|
||||
|
||||
|
||||
@@ -79,28 +84,28 @@ A NOTE ON THE PHP LICENSE AND MOODLE
|
||||
Everything in Moodle in pure GPL. This pear directory is the only
|
||||
part of the distribution that is not.
|
||||
|
||||
There is some question about how PHP-licensed software can be
|
||||
There is some question about how PHP-licensed software can be
|
||||
included within a GPL-licensed distribution like Moodle, specifically
|
||||
the clause that annoyingly says no derivative of the software can
|
||||
include the name PHP.
|
||||
the clause that annoyingly says no derivative of the software can
|
||||
include the name PHP.
|
||||
|
||||
We don't intend to rename Moodle to anything of the sort, obviously,
|
||||
but to help people downstream who could possibly want to do so,
|
||||
we have sought special permission from the authors of these classes
|
||||
to allow us an exemption on this point so that we don't need to
|
||||
We don't intend to rename Moodle to anything of the sort, obviously,
|
||||
but to help people downstream who could possibly want to do so,
|
||||
we have sought special permission from the authors of these classes
|
||||
to allow us an exemption on this point so that we don't need to
|
||||
change our nice clean GPL license.
|
||||
|
||||
Several authors have given Moodle explicit permission to distribute
|
||||
their PHP-licensed PEAR classes in the Moodle distribution, allowing
|
||||
Several authors have given Moodle explicit permission to distribute
|
||||
their PHP-licensed PEAR classes in the Moodle distribution, allowing
|
||||
anybody using these classes ONLY as part of the Moodle distribution
|
||||
exemption from clauses of the PHP license that could cause
|
||||
conflict with the main GNU Public License that Moodle uses.
|
||||
|
||||
We are still waiting to hear back from the others but we assume
|
||||
We are still waiting to hear back from the others but we assume
|
||||
for now that it will likewise be OK.
|
||||
|
||||
If you are at all worried about this situation you can simply delete
|
||||
this directory from Moodle and it will use your installed PEAR
|
||||
If you are at all worried about this situation you can simply delete
|
||||
this directory from Moodle and it will use your installed PEAR
|
||||
libraries instead.
|
||||
|
||||
Cheers,
|
||||
|
||||
+5
-1
@@ -1292,7 +1292,11 @@ function question_apply_penalty_and_timelimit(&$question, &$state, $attempt, $cm
|
||||
function print_question_icon($question, $return = false) {
|
||||
global $QTYPES, $CFG;
|
||||
|
||||
$namestr = $QTYPES[$question->qtype]->menu_name();
|
||||
if (array_key_exists($question->qtype, $QTYPES)) {
|
||||
$namestr = $QTYPES[$question->qtype]->menu_name();
|
||||
} else {
|
||||
$namestr = 'missingtype';
|
||||
}
|
||||
$html = '<img src="' . $CFG->wwwroot . '/question/type/' .
|
||||
$question->qtype . '/icon.gif" alt="' .
|
||||
$namestr . '" title="' . $namestr . '" />';
|
||||
|
||||
+1
-1
@@ -220,7 +220,7 @@ function rss_add_items($items) {
|
||||
$result .= rss_full_tag('title',3,false,strip_tags($item->title));
|
||||
$result .= rss_full_tag('link',3,false,$item->link);
|
||||
$result .= rss_add_enclosures($item);
|
||||
$result .= rss_full_tag('pubDate',3,false,date('D, d M Y H:i:s T',$item->pubdate));
|
||||
$result .= rss_full_tag('pubDate',3,false,gmdate('D, d M Y H:i:s',$item->pubdate).' GMT'); # MDL-12563
|
||||
//Include the author if exists
|
||||
if (isset($item->author)) {
|
||||
//$result .= rss_full_tag('author',3,false,$item->author);
|
||||
|
||||
@@ -81,9 +81,15 @@ class moodlelib_test extends UnitTestCase {
|
||||
$this->assertTrue(address_in_subnet('123.121.234.15', '123.121.234.2/28'));
|
||||
$this->assertFalse(address_in_subnet('123.121.234.16', '123.121.234.2/28'));
|
||||
$this->assertFalse(address_in_subnet('123.121.234.255', '123.121.234.2/28'));
|
||||
$this->assertTrue(address_in_subnet('123.121.234.1', '123.121.'));
|
||||
$this->assertTrue(address_in_subnet('123.121.234.0', '123.121.234.0/')); // / is like /32.
|
||||
$this->assertFalse(address_in_subnet('123.121.234.1', '123.121.234.0/'));
|
||||
$this->assertFalse(address_in_subnet('232.232.232.232', '123.121.234.0/0'));
|
||||
$this->assertFalse(address_in_subnet('123.122.234.1', '123.121.'));
|
||||
$this->assertFalse(address_in_subnet('223.121.234.1', '123.121.'));
|
||||
$this->assertTrue(address_in_subnet('123.121.234.1', '123.121'));
|
||||
$this->assertFalse(address_in_subnet('123.122.234.1', '123.121'));
|
||||
$this->assertFalse(address_in_subnet('223.121.234.1', '123.121'));
|
||||
$this->assertFalse(address_in_subnet('123.121.234.100', '123.121.234.10'));
|
||||
$this->assertFalse(address_in_subnet('123.121.234.9', '123.121.234.10-20'));
|
||||
$this->assertTrue(address_in_subnet('123.121.234.10', '123.121.234.10-20'));
|
||||
$this->assertTrue(address_in_subnet('123.121.234.15', '123.121.234.10-20'));
|
||||
|
||||
@@ -381,6 +381,20 @@ class upload_manager {
|
||||
$errmessage = get_string('uploadnofilefound');
|
||||
break;
|
||||
|
||||
// Note: there is no error with a value of 5
|
||||
|
||||
case 6: // UPLOAD_ERR_NO_TMP_DIR
|
||||
$errmessage = get_string('uploadnotempdir');
|
||||
break;
|
||||
|
||||
case 7: // UPLOAD_ERR_CANT_WRITE
|
||||
$errmessage = get_string('uploadcantwrite');
|
||||
break;
|
||||
|
||||
case 8: // UPLOAD_ERR_EXTENSION
|
||||
$errmessage = get_string('uploadextension');
|
||||
break;
|
||||
|
||||
default:
|
||||
$errmessage = get_string('uploadproblem', $file['name']);
|
||||
}
|
||||
|
||||
+8
-5
@@ -92,8 +92,8 @@ $ALLOWED_TAGS =
|
||||
* @global string $ALLOWED_PROTOCOLS
|
||||
*/
|
||||
$ALLOWED_PROTOCOLS = array('http', 'https', 'ftp', 'news', 'mailto', 'rtsp', 'teamspeak', 'gopher', 'mms',
|
||||
'color', 'callto', 'cursor', 'text-align', 'font-size', 'font-weight', 'font-style',
|
||||
'border', 'margin', 'padding', 'background'); // CSS as well to get through kses
|
||||
'color', 'callto', 'cursor', 'text-align', 'font-size', 'font-weight', 'font-style', 'font-family',
|
||||
'border', 'margin', 'padding', 'background', 'text-decoration'); // CSS as well to get through kses
|
||||
|
||||
|
||||
/// Functions
|
||||
@@ -1436,9 +1436,12 @@ function format_string ($string, $striplinks=true, $courseid=NULL ) {
|
||||
if (!empty($CFG->formatstringstriptags)) {
|
||||
$string = strip_tags($string);
|
||||
|
||||
// Otherwise strip just links if that is required (default)
|
||||
} else if ($striplinks) { //strip links in string
|
||||
$string = preg_replace('/(<a[^>]+?>)(.+?)(<\/a>)/is','$2',$string);
|
||||
} else {
|
||||
// Otherwise strip just links if that is required (default)
|
||||
if ($striplinks) { //strip links in string
|
||||
$string = preg_replace('/(<a\s[^>]+?>)(.+?)(<\/a>)/is','$2',$string);
|
||||
}
|
||||
$string = clean_text($string);
|
||||
}
|
||||
|
||||
//Store to cache
|
||||
|
||||
@@ -74,11 +74,11 @@ class XMLDBFile extends XMLDBObject {
|
||||
function validateXMLStructure() {
|
||||
|
||||
/// Going to perform complete DOM schema validation
|
||||
if (extension_loaded('dom')) {
|
||||
if (extension_loaded('dom') && method_exists(new DOMDocument(), 'load')) {
|
||||
/// Let's capture errors
|
||||
if (function_exists('libxml_use_internal_errors')) {
|
||||
libxml_use_internal_errors(true); // This function is PHP5 only (MDL-8730)
|
||||
}
|
||||
if (function_exists('libxml_use_internal_errors')) {
|
||||
libxml_use_internal_errors(true); // This function is PHP5 only (MDL-8730)
|
||||
}
|
||||
|
||||
/// Create and load XML file
|
||||
$parser = new DOMDocument();
|
||||
@@ -100,7 +100,7 @@ class XMLDBFile extends XMLDBObject {
|
||||
/// Add errors to structure
|
||||
$structure->errormsg = 'XML Error: ';
|
||||
foreach ($errors as $error) {
|
||||
$structure->errormsg .= sprintf("%s at line %d. ",
|
||||
$structure->errormsg .= sprintf("%s at line %d. ",
|
||||
trim($error->message, "\n\r\t ."),
|
||||
$error->line);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,11 @@ class login_signup_form extends moodleform {
|
||||
$country = array_merge($default_country, $country);
|
||||
$mform->addElement('select', 'country', get_string('country'), $country);
|
||||
$mform->addRule('country', get_string('missingcountry'), 'required', null, 'client');
|
||||
$mform->setDefault('country', '');
|
||||
if ( !empty($CFG->country) ){
|
||||
$mform->setDefault('country', $CFG->country);
|
||||
} else {
|
||||
$mform->setDefault('country', '');
|
||||
}
|
||||
|
||||
// buttons
|
||||
$this->add_action_buttons(true, get_string('createaccount'));
|
||||
|
||||
+1
-1
@@ -268,7 +268,7 @@ function message_print_search() {
|
||||
function message_print_settings() {
|
||||
global $USER;
|
||||
|
||||
if ($frm = data_submitted()) {
|
||||
if ($frm = data_submitted() and confirm_sesskey()) {
|
||||
|
||||
$pref = array();
|
||||
$pref['message_showmessagewindow'] = (isset($frm->showmessagewindow)) ? '1' : '0';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<form id="message_settings" action="index.php" method="post">
|
||||
<input type="hidden" name="tab" value="settings" />
|
||||
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
|
||||
|
||||
|
||||
<table cellpadding="5" align="center" class="message_form">
|
||||
|
||||
+41
-23
@@ -10,6 +10,8 @@
|
||||
|
||||
class mnet_peer {
|
||||
|
||||
//Unless stated otherwise, properties of this object are unescaped, and unsafe to
|
||||
//insert into the db without further processing.
|
||||
var $id = 0;
|
||||
var $wwwroot = '';
|
||||
var $ip_address = '';
|
||||
@@ -20,8 +22,12 @@ class mnet_peer {
|
||||
var $last_log_id = 0;
|
||||
var $keypair = array();
|
||||
var $error = array();
|
||||
//Object whose properties need to be put into the database:
|
||||
//(properties here are slashescaped)
|
||||
var $updateparams;
|
||||
|
||||
function mnet_peer() {
|
||||
$this->updateparams = new stdClass();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -44,7 +50,8 @@ class mnet_peer {
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->name = $wwwroot;
|
||||
$this->name = stripslashes($wwwroot);
|
||||
$this->updateparams->name = $wwwroot;
|
||||
|
||||
// TODO: In reality, this will be prohibitively slow... need another
|
||||
// default - maybe blank string
|
||||
@@ -53,24 +60,35 @@ class mnet_peer {
|
||||
$count = preg_match("@<title>(.*)</title>@siU", $homepage, $matches);
|
||||
if ($count > 0) {
|
||||
$this->name = $matches[1];
|
||||
$this->updateparams->name = addslashes($matches[1]);
|
||||
}
|
||||
}
|
||||
|
||||
$this->wwwroot = $wwwroot;
|
||||
$this->ip_address = $ip_address;
|
||||
$this->deleted = 0;
|
||||
$this->wwwroot = stripslashes($wwwroot);
|
||||
$this->updateparams->wwwroot = $wwwroot;
|
||||
$this->ip_address = $ip_address;
|
||||
$this->updateparams->ip_address = $ip_address;
|
||||
$this->deleted = 0;
|
||||
$this->updateparams->deleted = 0;
|
||||
if(empty($pubkey)) {
|
||||
$this->public_key = clean_param(mnet_get_public_key($this->wwwroot), PARAM_PEM);
|
||||
$pubkeytemp = clean_param(mnet_get_public_key($this->wwwroot), PARAM_PEM);
|
||||
} else {
|
||||
$this->public_key = clean_param($pubkey, PARAM_PEM);
|
||||
$pubkeytemp = clean_param($pubkey, PARAM_PEM);
|
||||
}
|
||||
$this->public_key_expires = $this->check_common_name($this->public_key);
|
||||
$this->last_connect_time = 0;
|
||||
$this->last_log_id = 0;
|
||||
$this->public_key_expires = $this->check_common_name($pubkeytemp);
|
||||
|
||||
if ($this->public_key_expires == false) {
|
||||
$this->public_key == '';
|
||||
return false;
|
||||
}
|
||||
$this->updateparams->public_key_expires = $this->public_key_expires;
|
||||
|
||||
$this->updateparams->public_key = $pubkeytemp;
|
||||
$this->public_key = $pubkeytemp;
|
||||
|
||||
$this->last_connect_time = 0;
|
||||
$this->updateparams->last_connect_time = 0;
|
||||
$this->last_log_id = 0;
|
||||
$this->updateparams->last_log_id = 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -82,11 +100,13 @@ class mnet_peer {
|
||||
$users = count_records('user','mnethostid', $this->id);
|
||||
if ($users > 0) {
|
||||
$this->deleted = 1;
|
||||
$this->updateparams->deleted = 1;
|
||||
}
|
||||
|
||||
$actions = count_records('mnet_log','hostid', $this->id);
|
||||
if ($actions > 0) {
|
||||
$this->deleted = 1;
|
||||
$this->updateparams->deleted = 1;
|
||||
}
|
||||
|
||||
$obj = delete_records('mnet_rpc2host', 'host_id', $this->id);
|
||||
@@ -145,34 +165,32 @@ class mnet_peer {
|
||||
}
|
||||
|
||||
function commit() {
|
||||
$obj = new stdClass();
|
||||
|
||||
$obj->wwwroot = $this->wwwroot;
|
||||
$obj->ip_address = $this->ip_address;
|
||||
$obj->name = $this->name;
|
||||
$obj->public_key = $this->public_key;
|
||||
$obj->public_key_expires = $this->public_key_expires;
|
||||
$obj->deleted = $this->deleted;
|
||||
$obj->last_connect_time = $this->last_connect_time;
|
||||
$obj->last_log_id = $this->last_log_id;
|
||||
$obj = $this->updateparams;
|
||||
|
||||
if (isset($this->id) && $this->id > 0) {
|
||||
$obj->id = $this->id;
|
||||
return update_record('mnet_host', $obj);
|
||||
$dbresult = update_record('mnet_host', $obj);
|
||||
} else {
|
||||
$this->id = insert_record('mnet_host', $obj);
|
||||
return $this->id > 0;
|
||||
$dbresult = ($this->id > 0);
|
||||
}
|
||||
//If the insert/update was successful, clear the parameters that need updating
|
||||
if ($dbresult) {
|
||||
$this->updateparams = new stdClass();
|
||||
}
|
||||
return $dbresult;
|
||||
}
|
||||
|
||||
function touch() {
|
||||
$this->last_connect_time = time();
|
||||
$this->updateparams->last_connect_time = time();
|
||||
$this->commit();
|
||||
}
|
||||
|
||||
function set_name($newname) {
|
||||
if (is_string($newname) && strlen($newname <= 80)) {
|
||||
$this->name = $newname;
|
||||
$this->name = stripslashes($newname);
|
||||
$this->updateparams->name = $newname;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -61,7 +61,7 @@ class mnet_remote_client extends mnet_peer {
|
||||
$temp = new mnet_peer();
|
||||
$temp->set_id($this->id);
|
||||
if($this->public_key != $temp->public_key) {
|
||||
$newkey = param_clean($temp->public_key, PARAM_PEM);
|
||||
$newkey = clean_param($temp->public_key, PARAM_PEM);
|
||||
if(!empty($newkey)) {
|
||||
$this->public_key = $newkey;
|
||||
return true;
|
||||
|
||||
+15
-8
@@ -206,20 +206,27 @@ function mnet_server_strip_wrappers($HTTP_RAW_POST_DATA) {
|
||||
|
||||
// Does the signature match the data and the public cert?
|
||||
$signature_verified = openssl_verify($payload, base64_decode($sig_parser->signature), $certificate);
|
||||
if ($signature_verified == 1) {
|
||||
$MNET_REMOTE_CLIENT->touch();
|
||||
// Parse the XML
|
||||
} elseif ($signature_verified == 0) {
|
||||
|
||||
if ($signature_verified == 0) {
|
||||
// $signature was not generated for $payload using $certificate
|
||||
// Get the key the remote peer is currently publishing:
|
||||
$currkey = mnet_get_public_key($MNET_REMOTE_CLIENT->wwwroot);
|
||||
// If the key the remote peer is currently publishing is different to $certificate
|
||||
if($currkey != $certificate) {
|
||||
// Has the server updated its certificate since our last
|
||||
// handshake?
|
||||
// If we can't get the server's new key through trusted means, exit.
|
||||
if(!$MNET_REMOTE_CLIENT->refresh_key()) {
|
||||
exit(mnet_server_fault(7026, 'verifysignature-invalid'));
|
||||
}
|
||||
} else {
|
||||
exit(mnet_server_fault(710, 'verifysignature-invalid'));
|
||||
// If we did manage to re-key, try to verify the signature again against the new public key.
|
||||
$certificate = $MNET_REMOTE_CLIENT->public_key;
|
||||
$signature_verified = openssl_verify($payload, base64_decode($sig_parser->signature), $certificate);
|
||||
}
|
||||
}
|
||||
|
||||
if ($signature_verified == 1) {
|
||||
$MNET_REMOTE_CLIENT->touch();
|
||||
} elseif ($signature_verified == 0) {
|
||||
exit(mnet_server_fault(710, 'verifysignature-invalid'));
|
||||
} else {
|
||||
exit(mnet_server_fault(711, 'verifysignature-error'));
|
||||
}
|
||||
|
||||
+1
-1
@@ -138,7 +138,7 @@
|
||||
foreach ($allforums as $forum) {
|
||||
if (!forum_is_forcesubscribed($forum->id)) {
|
||||
$subscribed = forum_is_subscribed($USER->id, $forum->id);
|
||||
if ($subscribe && !$subscribed) {
|
||||
if ((has_capability('moodle/course:manageactivities', $coursecontext, $USER->id) || $forum->forcesubscribe != FORUM_DISALLOWSUBSCRIBE) && $subscribe && !$subscribed) {
|
||||
forum_subscribe($USER->id, $forum->id);
|
||||
} elseif (!$subscribe && $subscribed) {
|
||||
forum_unsubscribe($USER->id, $forum->id);
|
||||
|
||||
+33
-13
@@ -3199,30 +3199,50 @@ function forum_unsubscribe($userid, $forumid) {
|
||||
* Given a new post, subscribes or unsubscribes as appropriate.
|
||||
* Returns some text which describes what happened.
|
||||
*/
|
||||
function forum_post_subscription($post) {
|
||||
function forum_post_subscription($post, $forum) {
|
||||
|
||||
global $USER;
|
||||
|
||||
$subscribed=forum_is_subscribed($USER->id, $post->forum);
|
||||
if ((isset($post->subscribe) && $post->subscribe && $subscribed)
|
||||
|| (!$post->subscribe && !$subscribed)) {
|
||||
$action = '';
|
||||
$subscribed = forum_is_subscribed($USER->id, $forum);
|
||||
|
||||
if ($forum->forcesubscribe == FORUM_FORCESUBSCRIBE) { // database ignored
|
||||
return "";
|
||||
}
|
||||
} elseif (($forum->forcesubscribe == FORUM_DISALLOWSUBSCRIBE)
|
||||
&& !has_capability('moodle/course:manageactivities', $coursecontext, $USER->id)) {
|
||||
if ($subscribed) {
|
||||
$action = 'unsubscribe'; // sanity check, following MDL-14558
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
||||
if (!$forum = get_record("forum", "id", $post->forum)) {
|
||||
return "";
|
||||
} else { // go with the user's choice
|
||||
if (isset($post->subscribe)) {
|
||||
// no change
|
||||
if ((!empty($post->subscribe) && $subscribed)
|
||||
|| (empty($post->subscribe) && !$subscribed)) {
|
||||
return "";
|
||||
|
||||
} elseif (!empty($post->subscribe) && !$subscribed) {
|
||||
$action = 'subscribe';
|
||||
|
||||
} elseif (empty($post->subscribe) && $subscribed) {
|
||||
$action = 'unsubscribe';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$info->name = fullname($USER);
|
||||
$info->forum = $forum->name;
|
||||
|
||||
if (!empty($post->subscribe)) {
|
||||
forum_subscribe($USER->id, $post->forum);
|
||||
return "<p>".get_string("nowsubscribed", "forum", $info)."</p>";
|
||||
switch ($action) {
|
||||
case 'subscribe':
|
||||
forum_subscribe($USER->id, $post->forum);
|
||||
return "<p>".get_string("nowsubscribed", "forum", $info)."</p>";
|
||||
case 'unsubscribe':
|
||||
forum_unsubscribe($USER->id, $post->forum);
|
||||
return "<p>".get_string("nownotsubscribed", "forum", $info)."</p>";
|
||||
}
|
||||
|
||||
forum_unsubscribe($USER->id, $post->forum);
|
||||
return "<p>".get_string("nownotsubscribed", "forum", $info)."</p>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ class mod_forum_mod_form extends moodleform_mod {
|
||||
$mform->addElement('text', 'name', get_string('forumname', 'forum'), array('size'=>'64'));
|
||||
$mform->setType('name', PARAM_TEXT);
|
||||
$mform->addRule('name', null, 'required', null, 'client');
|
||||
$mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
|
||||
|
||||
asort($FORUM_TYPES);
|
||||
$mform->addElement('select', 'type', get_string('forumtype', 'forum'), $FORUM_TYPES);
|
||||
|
||||
+3
-3
@@ -514,7 +514,7 @@
|
||||
}
|
||||
$message .= '<br />'.get_string("postupdated", "forum");
|
||||
|
||||
if ($subscribemessage = forum_post_subscription($fromform)) {
|
||||
if ($subscribemessage = forum_post_subscription($fromform, $forum)) {
|
||||
$timemessage = 4;
|
||||
}
|
||||
if ($forum->type == 'single') {
|
||||
@@ -544,7 +544,7 @@
|
||||
$timemessage = 4;
|
||||
}
|
||||
|
||||
if ($subscribemessage = forum_post_subscription($fromform)) {
|
||||
if ($subscribemessage = forum_post_subscription($fromform, $forum)) {
|
||||
$timemessage = 4;
|
||||
}
|
||||
|
||||
@@ -604,7 +604,7 @@
|
||||
$message .= '<br />'.get_string("postadded", "forum", format_time($CFG->maxeditingtime));
|
||||
}
|
||||
|
||||
if ($subscribemessage = forum_post_subscription($discussion)) {
|
||||
if ($subscribemessage = forum_post_subscription($discussion, $forum)) {
|
||||
$timemessage = 4;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ class mod_forum_post_form extends moodleform {
|
||||
$mform->addElement('text', 'subject', get_string('subject', 'forum'), 'size="48"');
|
||||
$mform->setType('subject', PARAM_TEXT);
|
||||
$mform->addRule('subject', get_string('required'), 'required', null, 'client');
|
||||
$mform->addRule('subject', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
|
||||
|
||||
$mform->addElement('htmleditor', 'message', get_string('message', 'forum'), array('cols'=>50, 'rows'=>30));
|
||||
$mform->setType('message', PARAM_RAW);
|
||||
|
||||
@@ -187,7 +187,7 @@ function hotpot_mediaplayer_moodle(&$hotpot, $text) {
|
||||
$replace .= '<param name="controls" value="imagewindow" />';
|
||||
$replace .= '<param name="console" value="video" />';
|
||||
$replace .= '<param name="loop" value="true" />';
|
||||
$replace .= '<embed src="\\2.ram" width=240" height="180" loop="true" type="audio/x-pn-realaudio-plugin" controls="imagewindow" console="video" autostart="true">';
|
||||
$replace .= '<embed src="\\2.ram" width="240" height="180" loop="true" type="audio/x-pn-realaudio-plugin" controls="imagewindow" console="video" autostart="true">';
|
||||
$replace .= '</embed>';
|
||||
$replace .= '</object><br />';
|
||||
|
||||
@@ -212,7 +212,7 @@ function hotpot_mediaplayer_moodle(&$hotpot, $text) {
|
||||
$replace .= '<param name="controls" value="imagewindow" />';
|
||||
$replace .= '<param name="console" value="video" />';
|
||||
$replace .= '<param name="loop" value="true" />';
|
||||
$replace .= '<embed src="\\2.rpm" width=240" height="180" loop="true" type="audio/x-pn-realaudio-plugin" controls="imagewindow" console="video" autostart="true">';
|
||||
$replace .= '<embed src="\\2.rpm" width="240" height="180" loop="true" type="audio/x-pn-realaudio-plugin" controls="imagewindow" console="video" autostart="true">';
|
||||
$replace .= '</embed>';
|
||||
$replace .= '</object><br />';
|
||||
|
||||
@@ -237,7 +237,7 @@ function hotpot_mediaplayer_moodle(&$hotpot, $text) {
|
||||
$replace .= '<param name="controls" value="imagewindow" />';
|
||||
$replace .= '<param name="console" value="video" />';
|
||||
$replace .= '<param name="loop" value="true" />';
|
||||
$replace .= '<embed src="\\2.rm" width=240" height="180" loop="true" type="audio/x-pn-realaudio-plugin" controls="imagewindow" console="video" autostart="true">';
|
||||
$replace .= '<embed src="\\2.rm" width="240" height="180" loop="true" type="audio/x-pn-realaudio-plugin" controls="imagewindow" console="video" autostart="true">';
|
||||
$replace .= '</embed>';
|
||||
$replace .= '</object><br />';
|
||||
|
||||
|
||||
+62
-22
@@ -715,9 +715,14 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
|
||||
$this->set_jmatch_items();
|
||||
$str = '';
|
||||
foreach ($this->l_items as $i=>$item) {
|
||||
for ($ii=0; $ii<$i; $ii++) {
|
||||
if ($this->r_items[$ii]['text']==$this->r_items[$i]['text']) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
$str .= "F[$i] = new Array();\n";
|
||||
$str .= "F[$i][0] = '".$this->js_safe($item['text'], true)."';\n";
|
||||
$str .= "F[$i][1] = ".($i+1).";\n";
|
||||
$str .= "F[$i][1] = ".($ii+1).";\n";
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@@ -725,33 +730,51 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
|
||||
$this->set_jmatch_items();
|
||||
$str = '';
|
||||
foreach ($this->r_items as $i=>$item) {
|
||||
for ($ii=0; $ii<$i; $ii++) {
|
||||
if ($this->r_items[$ii]['text']==$this->r_items[$i]['text']) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
$str .= "D[$i] = new Array();\n";
|
||||
$str .= "D[$i][0] = '".$this->js_safe($item['text'], true)."';\n";
|
||||
$str .= "D[$i][1] = ".($i+1).";\n";
|
||||
$str .= "D[$i][2] = '".$item['fixed']."';\n";
|
||||
$str .= "D[$i][1] = ".($ii+1).";\n";
|
||||
$str .= "D[$i][2] = ".$item['fixed'].";\n";
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
||||
function set_jmatch_items() {
|
||||
if (empty($this->l_items)) {
|
||||
$tags = 'data,matching-exercise,pair';
|
||||
$i = 0;
|
||||
while (($leftitem = "[$i]['#']['left-item'][0]['#']") && $this->parent->xml_value($tags, $leftitem)) {
|
||||
$lefttext = $this->parent->xml_value($tags, $leftitem."['text'][0]['#']");
|
||||
if (strlen($lefttext)) {
|
||||
$this->l_items[] = array(
|
||||
'text' => $lefttext,
|
||||
'fixed' => $this->int_value($tags, $leftitem."['fixed'][0]['#']")
|
||||
);
|
||||
$rightitem = "[$i]['#']['right-item'][0]['#']";
|
||||
$this->r_items[] = array(
|
||||
'text' => $this->parent->xml_value($tags, $rightitem."['text'][0]['#']"),
|
||||
'fixed' => $this->int_value($tags, $rightitem."['fixed'][0]['#']")
|
||||
);
|
||||
}
|
||||
$i++;
|
||||
if (count($this->l_items)) {
|
||||
return;
|
||||
}
|
||||
$tags = 'data,matching-exercise,pair';
|
||||
$i = 0;
|
||||
while (($item = "[$i]['#']") && $this->parent->xml_value($tags, $item)) {
|
||||
$leftitem = $item."['left-item'][0]['#']";
|
||||
$lefttext = $this->parent->xml_value($tags, $leftitem."['text'][0]['#']");
|
||||
|
||||
$rightitem = $item."['right-item'][0]['#']";
|
||||
$righttext = $this->parent->xml_value($tags, $rightitem."['text'][0]['#']");
|
||||
|
||||
if (strlen($righttext)) {
|
||||
$addright = true;
|
||||
} else {
|
||||
$addright = false;
|
||||
}
|
||||
if (strlen($lefttext)) {
|
||||
$this->l_items[] = array(
|
||||
'text' => $lefttext,
|
||||
'fixed' => $this->int_value($tags, $leftitem."['fixed'][0]['#']")
|
||||
);
|
||||
$addright = true; // force right item to be added
|
||||
}
|
||||
if ($addright) {
|
||||
$this->r_items[] = array(
|
||||
'text' => $righttext,
|
||||
'fixed' => $this->int_value($tags, $rightitem."['fixed'][0]['#']")
|
||||
);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
function shuffle_jmatch_items(&$items) {
|
||||
@@ -901,7 +924,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
|
||||
$gap .= '<select id="Gap'.$q.'"><option value=""></option>'.$dropdownlist.'</select>';
|
||||
} else {
|
||||
// minimum gap size
|
||||
$gapsize = 6;
|
||||
if (! $gapsize = $this->int_value('hotpot-config-file,'.$this->parent->quiztype.',minimum-gap-size')) {
|
||||
$gapsize = 6;
|
||||
}
|
||||
|
||||
// increase gap size to length of longest answer for this gap
|
||||
$a = 0;
|
||||
@@ -1262,8 +1287,23 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
|
||||
$question_type==HOTPOT_JQUIZ_SHORTANSWER ||
|
||||
$question_type==HOTPOT_JQUIZ_HYBRID
|
||||
) {
|
||||
$size = 9; // default size
|
||||
$a = 0;
|
||||
$answers = $question."['answers'][0]['#']";
|
||||
while (($answer = $answers."['answer'][$a]['#']") && $this->parent->xml_value($tags, $answer)) {
|
||||
$text = $this->parent->xml_value($tags, $answer."['text'][0]['#']");
|
||||
$text = preg_replace('/&[#a-zA-Z0-9]+;/', 'x', $text);
|
||||
$size = max($size, strlen($text));
|
||||
$a++;
|
||||
}
|
||||
|
||||
$str .= '<div class="ShortAnswer" id="Q_'.$q.'_SA"><form method="post" action="" onsubmit="return false;"><div>';
|
||||
$str .= '<input type="text" id="Q_'.$q.'_Guess" onfocus="TrackFocus('."'".'Q_'.$q.'_Guess'."'".')" onblur="LeaveGap()" class="ShortAnswerBox" size="9"></input><br /><br />';
|
||||
if ($size<=25) { // text box
|
||||
$str .= '<input type="text" id="Q_'.$q.'_Guess" onfocus="TrackFocus('."'".'Q_'.$q.'_Guess'."'".')" onblur="LeaveGap()" class="ShortAnswerBox" size="'.$size.'"></input>';
|
||||
} else { // textarea (29 cols wide)
|
||||
$str .= '<textarea id="Q_'.$q.'_Guess" onfocus="TrackFocus('."'".'Q_'.$q.'_Guess'."'".')" onblur="LeaveGap()" class="ShortAnswerBox" cols="29" rows="'.ceil($size/25).'"></textarea>';
|
||||
}
|
||||
$str .= '<br /><br />';
|
||||
|
||||
$caption = $this->v6_expand_CheckCaption();
|
||||
$str .= $this->v6_expand_jquiz_button($caption, "CheckShortAnswer($q)");
|
||||
|
||||
@@ -84,7 +84,9 @@
|
||||
$studentanswer = s(stripslashes_safe($useranswer));
|
||||
break;
|
||||
case LESSON_SHORTANSWER :
|
||||
if (!$useranswer = $_POST['answer']) {
|
||||
if (isset($_POST['answer'])) {
|
||||
$useranswer = $_POST['answer'];
|
||||
} else {
|
||||
$noanswer = true;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
for ($i = 0; $i < $lesson->maxanswers; $i++) {
|
||||
// strip tags because the editor gives <p><br />...
|
||||
// also save any answers where the editor is (going to be) used
|
||||
if ((!empty($form->answer[$i]) and trim(strip_tags($form->answer[$i]))) or isset($form->answereditor[$i]) or isset($form->responseeditor[$i])) {
|
||||
if ((isset($form->answer[$i]) and (trim(strip_tags($form->answer[$i]))) != '') or isset($form->answereditor[$i]) or isset($form->responseeditor[$i])) {
|
||||
if ($form->answerid[$i]) {
|
||||
$oldanswer = new stdClass;
|
||||
$oldanswer->id = clean_param($form->answerid[$i], PARAM_INT);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php // $Id$
|
||||
/**
|
||||
* Capability definitions for the quiz module.
|
||||
*
|
||||
@@ -9,7 +9,6 @@ $mod_quiz_capabilities = array(
|
||||
// Ability to see that the quiz exists, and the basic information
|
||||
// about it, for example the start date and time limit.
|
||||
'mod/quiz:view' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
@@ -23,7 +22,6 @@ $mod_quiz_capabilities = array(
|
||||
|
||||
// Ability to do the quiz as a 'student'.
|
||||
'mod/quiz:attempt' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
@@ -33,7 +31,7 @@ $mod_quiz_capabilities = array(
|
||||
|
||||
// Edit the quiz settings, add and remove questions.
|
||||
'mod/quiz:manage' => array(
|
||||
|
||||
'riskbitmask' => RISK_SPAM,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
@@ -44,7 +42,6 @@ $mod_quiz_capabilities = array(
|
||||
|
||||
// Preview the quiz.
|
||||
'mod/quiz:preview' => array(
|
||||
|
||||
'captype' => 'write', // Only just a write.
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
@@ -56,7 +53,7 @@ $mod_quiz_capabilities = array(
|
||||
|
||||
// Manually grade and comment on student attempts at a question, and regrade quizzes.
|
||||
'mod/quiz:grade' => array(
|
||||
|
||||
'riskbitmask' => RISK_SPAM | RISK_XSS,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
@@ -68,7 +65,7 @@ $mod_quiz_capabilities = array(
|
||||
|
||||
// View the quiz reports.
|
||||
'mod/quiz:viewreports' => array(
|
||||
|
||||
'riskbitmask' => RISK_PERSONAL,
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
@@ -80,7 +77,6 @@ $mod_quiz_capabilities = array(
|
||||
|
||||
// Delete attempts using the overview report.
|
||||
'mod/quiz:deleteattempts' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
@@ -88,7 +84,8 @@ $mod_quiz_capabilities = array(
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
|
||||
// Do not have the time limit imposed. Used for accessibility legislation compliance.
|
||||
'mod/quiz:ignoretimelimits' => array(
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
|
||||
+13
-13
@@ -206,34 +206,34 @@ function quiz_repaginate($layout, $perpage, $shuffle=false) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Print navigation panel for quiz attempt and review pages
|
||||
*
|
||||
* @param integer $page The number of the current page (counting from 0).
|
||||
* @param integer $pages The total number of pages.
|
||||
*/
|
||||
* Print navigation panel for quiz attempt and review pages
|
||||
*
|
||||
* @param integer $page The number of the current page (counting from 0).
|
||||
* @param integer $pages The total number of pages.
|
||||
*/
|
||||
function quiz_print_navigation_panel($page, $pages) {
|
||||
//$page++;
|
||||
echo '<div class="pagingbar">';
|
||||
echo '<span class="title">' . get_string('page') . ':</span>';
|
||||
echo '<div class="paging pagingbar">';
|
||||
echo '<span class="title">' . get_string('page') . ':</span> ';
|
||||
if ($page > 0) {
|
||||
// Print previous link
|
||||
$strprev = get_string('previous');
|
||||
echo '<a href="javascript:navigate(' . ($page - 1) . ');" title="'
|
||||
. $strprev . '">(' . $strprev . ')</a>';
|
||||
echo ' <a href="javascript:navigate(' . ($page - 1) . ');" title="'
|
||||
. $strprev . '">(' . $strprev . ')</a> ';
|
||||
}
|
||||
for ($i = 0; $i < $pages; $i++) {
|
||||
if ($i == $page) {
|
||||
echo '<span class="thispage">'.($i+1).'</span>';
|
||||
echo ' <span class="thispage">'.($i+1).'</span> ';
|
||||
} else {
|
||||
echo '<a href="javascript:navigate(' . ($i) . ');">'.($i+1).'</a>';
|
||||
echo ' <a href="javascript:navigate(' . ($i) . ');">'.($i+1).'</a> ';
|
||||
}
|
||||
}
|
||||
|
||||
if ($page < $pages - 1) {
|
||||
// Print next link
|
||||
$strnext = get_string('next');
|
||||
echo '<a href="javascript:navigate(' . ($page + 1) . ');" title="'
|
||||
. $strnext . '">(' . $strnext . ')</a>';
|
||||
echo ' <a href="javascript:navigate(' . ($page + 1) . ');" title="'
|
||||
. $strnext . '">(' . $strnext . ')</a> ';
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ class mod_quiz_mod_form extends moodleform_mod {
|
||||
$mform->setAdvanced('timelimitgrp', $CFG->quiz_fix_timelimit);
|
||||
$mform->setHelpButton('timelimitgrp', array("timelimit", get_string("quiztimer","quiz"), "quiz"));
|
||||
$mform->setDefault('timelimit', $CFG->quiz_timelimit);
|
||||
$mform->setDefault('timelimitenable', !empty($CFG->quiz_timelimit));
|
||||
|
||||
|
||||
//enforced time delay between quiz attempts add-on
|
||||
@@ -252,12 +253,10 @@ class mod_quiz_mod_form extends moodleform_mod {
|
||||
}
|
||||
$key++;
|
||||
}
|
||||
|
||||
}
|
||||
if (empty($default_values['timelimit'])) {
|
||||
$default_values['timelimitenable'] = 0;
|
||||
} else {
|
||||
$default_values['timelimitenable'] = 1;
|
||||
|
||||
if (isset($default_values['timelimit'])) {
|
||||
$default_values['timelimitenable'] = $default_values['timelimit'] > 0;
|
||||
}
|
||||
|
||||
if (isset($default_values['review'])){
|
||||
|
||||
+11
-6
@@ -35,9 +35,11 @@
|
||||
|
||||
require_login($course->id, false, $cm);
|
||||
|
||||
if ($usertrack=scorm_get_tracks($scoid,$USER->id,$attempt)) {
|
||||
if ($usertrack = scorm_get_tracks($scoid,$USER->id,$attempt)) {
|
||||
if ((isset($usertrack->{'cmi.exit'}) && ($usertrack->{'cmi.exit'} != 'time-out')) || ($scorm->version != "SCORM_1.3")) {
|
||||
$userdata = $usertrack;
|
||||
foreach ($usertrack as $key => $value) {
|
||||
$userdata->$key = addslashes_js($value);
|
||||
}
|
||||
} else {
|
||||
$userdata->status = '';
|
||||
$userdata->score_raw = '';
|
||||
@@ -46,8 +48,8 @@
|
||||
$userdata->status = '';
|
||||
$userdata->score_raw = '';
|
||||
}
|
||||
$userdata->student_id = addslashes($USER->username);
|
||||
$userdata->student_name = addslashes($USER->lastname .', '. $USER->firstname);
|
||||
$userdata->student_id = addslashes_js($USER->username);
|
||||
$userdata->student_name = addslashes_js($USER->lastname .', '. $USER->firstname);
|
||||
$userdata->mode = 'normal';
|
||||
if (isset($mode)) {
|
||||
$userdata->mode = $mode;
|
||||
@@ -59,11 +61,14 @@
|
||||
}
|
||||
if ($scodatas = scorm_get_sco($scoid, SCO_DATA)) {
|
||||
foreach ($scodatas as $key => $value) {
|
||||
$userdata->$key = $value;
|
||||
$userdata->$key = addslashes_js($value);
|
||||
}
|
||||
} else {
|
||||
error('Sco not found');
|
||||
}
|
||||
if (!$sco = scorm_get_sco($scoid)) {
|
||||
error('Sco not found');
|
||||
}
|
||||
$scorm->version = strtolower(clean_param($scorm->version, PARAM_SAFEDIR)); // Just to be safe
|
||||
if (file_exists($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'.js.php')) {
|
||||
include_once($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'.js.php');
|
||||
@@ -74,6 +79,6 @@
|
||||
|
||||
var errorCode = "0";
|
||||
function underscore(str) {
|
||||
str = str.replace(/.N/g,".");
|
||||
str = String(str).replace(/.N/g,".");
|
||||
return str.replace(/\./g,"__");
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
if (!empty($id)) {
|
||||
if (! $cm = get_record("course_modules", "id", $id)) {
|
||||
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
|
||||
error("Course Module ID was incorrect");
|
||||
}
|
||||
if (! $course = get_record("course", "id", $cm->course)) {
|
||||
@@ -67,6 +67,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// // Log every datamodel update requested
|
||||
// if (substr($element,0,15) == 'adl.nav.request' || substr($element,0,3) == 'cmi') {
|
||||
// if (debugging('',DEBUG_DEVELOPER)) {
|
||||
// add_to_log($course->id, 'scorm', 'trk: '.trim($scorm->name).' at: '.$attempt, 'view.php?id='.$cm->id, "$element => $value", $cm->id);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
if ($result) {
|
||||
|
||||
@@ -16,9 +16,8 @@
|
||||
//
|
||||
function AICCapi() {
|
||||
// Standard Data Type Definition
|
||||
CMIString256 = '^.{0,255}$';
|
||||
//CMIString4096 = '^[.|\\n|\\r]{0,4095}$';
|
||||
CMIString4096 = '^.{0,4096}$';
|
||||
CMIString256 = '^[\\u0000-\\uffff]{0,255}$';
|
||||
CMIString4096 = '^[\\u0000-\\uffff]{0,4096}$';
|
||||
CMITime = '^([0-2]{1}[0-9]{1}):([0-5]{1}[0-9]{1}):([0-5]{1}[0-9]{1})(\.[0-9]{1,2})?$';
|
||||
CMITimespan = '^([0-9]{2,4}):([0-9]{2}):([0-9]{2})(\.[0-9]{1,2})?$';
|
||||
CMIInteger = '^\\d+$';
|
||||
@@ -126,6 +125,8 @@ function AICCapi() {
|
||||
cmi.student_data = new Object();
|
||||
cmi.student_preference = new Object();
|
||||
cmi.interactions = new Object();
|
||||
cmi.evaluation = new Object();
|
||||
cmi.evaluation.comments = new Object();
|
||||
|
||||
// Navigation Object
|
||||
var nav = new Object();
|
||||
@@ -141,14 +142,15 @@ function AICCapi() {
|
||||
}
|
||||
|
||||
<?php
|
||||
$current_objective = '';
|
||||
$count = 0;
|
||||
$objectives = '';
|
||||
foreach($userdata as $element => $value){
|
||||
if (substr($element,0,14) == 'cmi.objectives') {
|
||||
preg_match('/.(\d+)./',$element,$matches);
|
||||
$element = preg_replace('/.(\d+)./',"_\$1.",$element);
|
||||
if ($matches[1] == $count) {
|
||||
$count++;
|
||||
$element = preg_replace('/\.(\d+)\./', "_\$1.", $element);
|
||||
preg_match('/\_(\d+)\./', $element, $matches);
|
||||
if (count($matches) > 0 && $current_objective != $matches[1]) {
|
||||
$current_objective = $matches[1];
|
||||
$end = strpos($element,$matches[1])+strlen($matches[1]);
|
||||
$subelement = substr($element,0,$end);
|
||||
echo ' '.$subelement." = new Object();\n";
|
||||
@@ -223,10 +225,10 @@ function AICCapi() {
|
||||
if (Initialized) {
|
||||
if (element !="") {
|
||||
expression = new RegExp(CMIIndex,'g');
|
||||
elementmodel = element.replace(expression,'.n.');
|
||||
elementmodel = String(element).replace(expression,'.n.');
|
||||
if ((typeof eval('datamodel["'+elementmodel+'"]')) != "undefined") {
|
||||
if (eval('datamodel["'+elementmodel+'"].mod') != 'w') {
|
||||
element = element.replace(expression, "_$1.");
|
||||
element = String(element).replace(expression, "_$1.");
|
||||
elementIndexes = element.split('.');
|
||||
subelement = 'cmi';
|
||||
i = 1;
|
||||
@@ -277,7 +279,7 @@ function AICCapi() {
|
||||
if (Initialized) {
|
||||
if (element != "") {
|
||||
expression = new RegExp(CMIIndex,'g');
|
||||
elementmodel = element.replace(expression,'.n.');
|
||||
elementmodel = String(element).replace(expression,'.n.');
|
||||
if ((typeof eval('datamodel["'+elementmodel+'"]')) != "undefined") {
|
||||
if (eval('datamodel["'+elementmodel+'"].mod') != 'r') {
|
||||
expression = new RegExp(eval('datamodel["'+elementmodel+'"].format'));
|
||||
@@ -473,7 +475,7 @@ function AICCapi() {
|
||||
} else {
|
||||
element = parent+'.'+property;
|
||||
expression = new RegExp(CMIIndex,'g');
|
||||
elementmodel = element.replace(expression,'.n.');
|
||||
elementmodel = String(element).replace(expression,'.n.');
|
||||
if ((typeof eval('datamodel["'+elementmodel+'"]')) != "undefined") {
|
||||
if (eval('datamodel["'+elementmodel+'"].mod') != 'r') {
|
||||
elementstring = '&'+underscore(element)+'='+escape(data[property]);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user