-<?PHP // $Id: backuplib.php,v 1.1 2006/03/12 18:39:59 skodak Exp $
+<?PHP
//This php script contains all the stuff to backup/restore
//book mods
return $info;
}
-?>
-/* $Id: book_print.css,v 1.1 2006/03/12 18:39:59 skodak Exp $ */
h1, h2, h3, h4, h5, h6 {
margin-left: 0px;
-<?php // $Id: coursefiles.php,v 1.3 2008/08/13 23:21:13 skodak Exp $
+<?php
// Manage all uploaded files in a course file area
//echo "<hr width=\"640\" align=\"center\" noshade=\"noshade\" size=\"1\" />";
}
-
-?>
-<?PHP // $Id: mysql.php,v 1.1 2006/03/12 18:40:01 skodak Exp $
+<?PHP
function book_upgrade($oldversion) {
/// This function does anything necessary to upgrade
}
return true;
}
-
-?>
-<?PHP // $Id: postgres7.php,v 1.1 2006/03/12 18:40:01 skodak Exp $
+<?PHP
function book_upgrade($oldversion) {
// This function does anything necessary to upgrade
return true;
}
-
-?>
-<?php //$Id: upgrade.php,v 1.4 2007/09/24 19:15:39 stronk7 Exp $
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the assignment module
//
// Sometimes, changes between versions involve
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-
-?>
-<?PHP // $Id: delete.php,v 1.3 2008/03/25 20:19:49 poltawski Exp $
+<?PHP
require('teacheraccess.php'); //page only for teachers
$confirm = optional_param('confirm', 0, PARAM_BOOL);
print_footer($course);
-?>
-<?PHP // $Id: edit.php,v 1.4 2008/08/13 23:21:14 skodak Exp $
+<?PHP
require_once('../../config.php');
require_once('lib.php');
$sql = "UPDATE {$CFG->prefix}book_chapters
SET pagenum = pagenum + 1
WHERE bookid = $book->id AND pagenum >= $data->pagenum";
- execute_sql($sql, false);
+ execute_sql($sql, false);
if (!$data->id = insert_record('book_chapters', addslashes_recursive($data))) {
error('Could not insert a new chapter');
$mform->display();
print_footer($course);
-
-?>
-<?php //$Id: edit_form.php,v 1.1 2008/08/13 23:21:14 skodak Exp $
+<?php
require_once($CFG->libdir.'/formslib.php');
}
}
}
-
-?>
-<?PHP // $Id: generateimscp.php,v 1.3 2008/08/13 23:21:14 skodak Exp $
+<?PHP
///////////////////////////////////////////////////////////////////////////
// //
return $object;
}
-
-?>
-<?PHP // $Id: import.php,v 1.5 2008/08/13 23:21:13 skodak Exp $
+<?PHP
require('../../config.php');
require_once('lib.php');
print_footer($course);
-?>
-<?php //$Id: import_form.php,v 1.1 2008/08/13 23:21:14 skodak Exp $
+<?php
require_once($CFG->libdir.'/formslib.php');
return $errors;
}
}
-
-?>
-<?PHP // $Id: index.php,v 1.3 2008/03/25 20:19:49 poltawski Exp $
+<?PHP
/// This page lists all the instances of book in a particular course
print_table($table);
print_footer($course);
-
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:03 skodak Exp $
+<?PHP
// book.php - created with Moodle 1.4.4 (2004083140)
$string['tocwidth'] = 'Вызначыць шырыню зместу для ўсіх падручнікаў';
$string['top'] = 'наверх';
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:03 skodak Exp $
+<?PHP
$string['modulename'] = 'Llibre';
$string['modulenameplural'] = 'Llibres';
$string['importinfo'] = 'Importa el directori o el fitxer HTML seleccionat.<br />Els capítols estan ordenats alfabèticament pel nom del fitxer.';
$string['maindirectory'] = 'Directori principal';
$string['fileordir'] = 'Fitxer o directori';
-
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:03 skodak Exp $
+<?PHP
// book.php - created with Moodle 1.3.3 + (2004052503)
$string['toc'] = 'Obsah';
$string['tocwidth'] = 'Vyberte šířku obsahu pro všechny knihy.';
$string['top'] = 'začátek';
-
-?>
-<?PHP // $Id: book.php,v 1.2 2008/07/22 15:16:26 skodak Exp $
+<?PHP
$string['modulename'] = 'Buch';
$string['modulenameplural'] = 'Bücher';
$string['maindirectory'] = 'Hauptordner';
$string['fileordir'] = 'Datei oder Ordner';
-?>
-<?PHP // $Id: book.php,v 1.5 2008/08/13 23:21:14 skodak Exp $
+<?PHP
$string['modulename'] = 'Book';
$string['modulenameplural'] = 'Books';
$string['book:print'] = 'Print book';
$string['book:exportimscp'] = 'Export book as IMS content package';
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:03 skodak Exp $
+<?PHP
// book.php - created with Moodle 1.3 (2004052500)
// book.php - Translated to Spanish by Juan Luis Martinez from Dominican Republic (fernluichi@hotmail.com)
$string['toc'] = 'Tabla de Contenido';
$string['tocwidth'] = 'Seleciona el Ancho de la Tabla de Contenidos de Todos los Libros.';
$string['top'] = 'arriba';
-
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:03 skodak Exp $
+<?PHP
// book.php - created with Moodle 1.5 unstable development (2004092000)
$string['toc'] = 'Sisällysluettelo';
$string['tocwidth'] = 'Valitse kaikkien kirjojen sisällysluetteloiden leveys.';
$string['top'] = 'Alkuun';
-
-?>
-<?php // $Id: book.php,v 1.1 2006/03/12 18:40:05 skodak Exp $
+<?php
$string['modulename'] = 'Livre';
$string['modulenameplural'] = 'Livre';
$string['selectdir'] = 'Choisir le dossier du cours';
$string['relinking'] = 'Mise à jour des liens';
-
-?>
\ No newline at end of file
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:05 skodak Exp $
+<?PHP
$string['modulename'] = 'Buku';
$string['modulenameplural'] = 'Buku-buku';
$string['chooseafileordir'] = 'Pilih sebuah file atau direktori';
$string['relinking'] = 'Relinking';
-
-
-
-?>
-<?PHP // $Id: book.php,v 1.3 2007/07/03 11:42:29 andreabix Exp $
+<?PHP
// book.php - created with Moodle 1.7.1+ (2006101010)
$string['toc'] = 'Sommario';
$string['tocwidth'] = 'Larghezza in pixel del Sommario per tutti i Libri.';
$string['top'] = 'Ritorna su';
-
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:04 skodak Exp $
+<?PHP
$string['modulename'] = 'ブック';
$string['modulenameplural'] = 'ブック';
$string['importinfo'] = '選択したHTMLもしくはディレクトリのインポート<br />各章はファイル名順にソートされます。';
$string['maindirectory'] = 'メインディレクトリ';
$string['fileordir'] = 'ファイルもしくはディレクトリ';
-
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:04 skodak Exp $
+<?PHP
// book.php - created with Moodle 1.5 development (2004082300)
$string['tocwidth'] = 'Kies de breedte van de inhoudstafel voor alle boeken.';
$string['top'] = 'boven';
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:04 skodak Exp $
+<?PHP
// book.php - created with Moodle 1.5 UNSTABLE DEVELOPMENT (2005031000)
$string['tocwidth'] = 'Ustaw szrokość spisu treści dla wszystkich książek';
$string['top'] = 'Góra';
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:02 skodak Exp $
+<?PHP
$string['modulename'] = 'Livro';
$string['modulenameplural'] = 'Livros';
$string['importinfo'] = 'Importar o arquivo HTML ou diretório selecionados.<br />Os capítulos são ordenados alfabeticamente usando os nomes dos arquivos.';
$string['maindirectory'] = 'Diretório principal';
$string['fileordir'] = 'Arquivo ou diretório';
-
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:00 skodak Exp $
+<?PHP
// book.php - created with Moodle 1.3.3 + (2004052503)
$string['toc'] = 'Obsah';
$string['tocwidth'] = 'Vyberte šírku obsahu pre všetky knihy.';
$string['top'] = 'začiatok';
-
-?>
-<?PHP // $Id: book.php,v 1.1 2006/03/12 18:40:04 skodak Exp $
+<?PHP
// book.php - created with Moodle 1.4 (2004083100)
$string['tocwidth'] = 'Välj en bredd på innehållsförteckningen som gäller alla böcker.';
$string['top'] = 'Upp';
-?>
-<?PHP // $Id: lib.php,v 1.6 2008/08/13 23:21:14 skodak Exp $
+<?PHP
define('NUM_NONE', '0');
define('NUM_NUMBERS', '1');
}
}
}
-
-?>
}
-?>
\ No newline at end of file
-<?PHP // $Id: move.php,v 1.2 2006/11/21 19:26:36 skodak Exp $
+<?PHP
require('teacheraccess.php'); //page only for teachers
$up = optional_param('up', 0, PARAM_BOOL);
redirect('view.php?id='.$cm->id.'&chapterid='.$chapter->id);
die;
-?>
-<?PHP // $Id: print.php,v 1.3 2008/08/13 23:21:14 skodak Exp $
+<?PHP
require_once('../../config.php');
require_once('lib.php');
echo '</body> </html>';
}
-?>
-<?PHP // $Id: restorelib.php,v 1.3 2008/08/13 23:21:13 skodak Exp $
+<?PHP
//This php script contains all the stuff to backup/restore
//book mods
return $status;
}
-
-
-?>
-<?php //$Id: settings.php,v 1.2 2008/03/25 20:19:49 poltawski Exp $
+<?php
$choices = array('140'=>'140', '160'=>'160', '180'=>'180', '200'=>'200',
'220'=>'220', '240'=>'240', '260'=>'260', '280'=>'280', '300'=>'300');
$settings->add(new admin_setting_configselect('book_tocwidth', get_string('book_tocwidth', 'book'),
get_string('tocwidth', 'book'), '180', $choices));
-
-
-?>
-<?PHP // $Id: show.php,v 1.4 2008/08/17 13:04:56 skodak Exp $
+<?PHP
require('teacheraccess.php'); //page only for teachers
book_check_structure($book->id);
redirect('view.php?id='.$cm->id.'&chapterid='.$chapter->id);
die;
-
-?>
-/* $Id: styles.php,v 1.1 2008/08/13 23:21:13 skodak Exp $*/
/* later should be defined in themes*/
#mod-book-view div.faq {
font-size: 0.7em;
}
-
+
/* == TOC styles == */
/* toc style NONE */
-<?PHP // $Id: teacheraccess.php,v 1.3 2008/08/13 23:21:14 skodak Exp $
+<?PHP
///standard routine to allow only teachers in
///check of $id and $chapterid parameters
//check all variables
unset($id);
unset($chapterid);
-
-?>
-<?PHP // $Id: toc.php,v 1.4 2008/08/13 23:21:14 skodak Exp $
+<?PHP
defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
$toc = str_replace('<ul></ul>', '', $toc); //cleanup of invalid structures
-?>
-<?PHP // $Id: version.php,v 1.5 2008/08/13 23:21:13 skodak Exp $
+<?PHP
/////////////////////////////////////////////////////////////////////////////////
/// Called by moodle_needs_upgrading() and /admin/index.php
$module->cron = 0; // Period for cron to check this module (secs)
$release = "1.5beta"; // User-friendly version number
-
-?>
-<?PHP // $Id: view.php,v 1.6 2008/08/13 23:21:14 skodak Exp $
+<?PHP
require('../../config.php');
require_once('lib.php');
<?php
print_footer($course);
-
-?>