diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-06-12 09:24:50 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-06-12 09:24:50 +0000 |
| commit | c123d29b8fe7fca0ed514f4f814110dcf6eb28e1 (patch) | |
| tree | f2e6239f9866ac8b0f59a4f501ee43d4e0100591 /includes/functions | |
| parent | 73bcc64fdd56ea2126c88020bdaf6c5101e9d388 (diff) | |
| download | webtrees-c123d29b8fe7fca0ed514f4f814110dcf6eb28e1.tar.gz webtrees-c123d29b8fe7fca0ed514f4f814110dcf6eb28e1.tar.bz2 webtrees-c123d29b8fe7fca0ed514f4f814110dcf6eb28e1.zip | |
Remove some old define('XXX_PHP, '') statements - these were a debugging aid, many years ago. Also update the copyright message for the CSS parser library
Diffstat (limited to 'includes/functions')
| -rw-r--r-- | includes/functions/functions.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions_charts.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions_date.php | 51 | ||||
| -rw-r--r-- | includes/functions/functions_db.php | 62 | ||||
| -rw-r--r-- | includes/functions/functions_edit.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions_export.php | 56 | ||||
| -rw-r--r-- | includes/functions/functions_import.php | 57 | ||||
| -rw-r--r-- | includes/functions/functions_mail.php | 55 | ||||
| -rw-r--r-- | includes/functions/functions_mediadb.php | 4 | ||||
| -rw-r--r-- | includes/functions/functions_name.php | 51 | ||||
| -rw-r--r-- | includes/functions/functions_places.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions_print.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions_print_facts.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions_print_lists.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions_privacy.php | 54 | ||||
| -rw-r--r-- | includes/functions/functions_rtl.php | 59 | ||||
| -rw-r--r-- | includes/functions/functions_utf-8.php | 45 |
17 files changed, 220 insertions, 288 deletions
diff --git a/includes/functions/functions.php b/includes/functions/functions.php index 7a8b8cfc19..01d1b293d2 100644 --- a/includes/functions/functions.php +++ b/includes/functions/functions.php @@ -28,8 +28,6 @@ if (!defined('WT_WEBTREES')) { exit; } -define('WT_FUNCTIONS_PHP', ''); - require_once WT_ROOT.'includes/functions/functions_utf-8.php'; //////////////////////////////////////////////////////////////////////////////// diff --git a/includes/functions/functions_charts.php b/includes/functions/functions_charts.php index 6f6f57523e..d9e4c1c352 100644 --- a/includes/functions/functions_charts.php +++ b/includes/functions/functions_charts.php @@ -28,8 +28,6 @@ if (!defined('WT_WEBTREES')) { exit; } -define('WT_FUNCTIONS_CHARTS_PHP', ''); - /** * print a table cell with sosa number * diff --git a/includes/functions/functions_date.php b/includes/functions/functions_date.php index 6073410322..dc0c77bab1 100644 --- a/includes/functions/functions_date.php +++ b/includes/functions/functions_date.php @@ -1,38 +1,33 @@ <?php -/** -* Date Functions that can be used by any page in webtrees -* -* webtrees: Web based Family History software - * Copyright (C) 2010 webtrees development team. - * - * Derived from PhpGedView -* Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* @package webtrees -* @version $Id$ -*/ +// Date Functions that can be used by any page in webtrees +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -define('WT_FUNCTIONS_DATE_PHP', ''); - /** * translate gedcom age string * diff --git a/includes/functions/functions_db.php b/includes/functions/functions_db.php index f949931593..fe45206c65 100644 --- a/includes/functions/functions_db.php +++ b/includes/functions/functions_db.php @@ -1,44 +1,38 @@ <?php -/** -* Functions to query the database. -* -* This file implements the datastore functions necessary for webtrees -* to use an SQL database as its datastore. -* -* webtrees: Web based Family History software - * Copyright (C) 2011 webtrees development team. - * - * Derived from PhpGedView -* Copyright (C) 2002 to 2010 PGV Development Team. All rights reserved. -* -* Modifications Copyright (c) 2010 Greg Roach -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* @version $Id$ -* @package webtrees -* @subpackage DB -*/ +// Functions to query the database. +// +// This file implements the datastore functions necessary for webtrees +// to use an SQL database as its datastore. +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2002 to 2010 PGV Development Team. All rights reserved. +// +// Modifications Copyright (c) 2010 Greg Roach +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -define('WT_FUNCTIONS_DB_PHP', ''); - //////////////////////////////////////////////////////////////////////////////// // Count the number of records linked to a given record //////////////////////////////////////////////////////////////////////////////// diff --git a/includes/functions/functions_edit.php b/includes/functions/functions_edit.php index e0cd843436..bd408db519 100644 --- a/includes/functions/functions_edit.php +++ b/includes/functions/functions_edit.php @@ -28,8 +28,6 @@ if (!defined('WT_WEBTREES')) { exit; } -define('WT_FUNCTIONS_EDIT_PHP', ''); - require_once WT_ROOT.'includes/functions/functions_import.php'; // Create an edit control for inline editing using jeditable diff --git a/includes/functions/functions_export.php b/includes/functions/functions_export.php index da97aa7ea3..5152e8c696 100644 --- a/includes/functions/functions_export.php +++ b/includes/functions/functions_export.php @@ -1,41 +1,35 @@ <?php -/** -* Functions for exporting data -* -* webtrees: Web based Family History software - * Copyright (C) 2010 webtrees development team. - * - * Derived from PhpGedView -* Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. -* -* Modifications Copyright (c) 2010 Greg Roach -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* @package webtrees -* @subpackage Admin -* @version $Id$ -*/ +// Functions for exporting data +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. +// +// Modifications Copyright (c) 2010 Greg Roach +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -define('WT_FUNCTIONS_EXPORT_PHP', ''); - // Tidy up a gedcom record on export, for compatibility/portability function reformat_record_export($rec) { global $WORD_WRAPPED_NOTES; diff --git a/includes/functions/functions_import.php b/includes/functions/functions_import.php index 6c6ac79d8b..74989aec92 100644 --- a/includes/functions/functions_import.php +++ b/includes/functions/functions_import.php @@ -1,42 +1,35 @@ <?php -/** -* -* Import specific functions -* -* webtrees: Web based Family History software - * Copyright (C) 2010 webtrees development team. - * - * Derived from PhpGedView -* Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. -* -* Modifications Copyright (c) 2010 Greg Roach -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* @version $Id$ -* @package webtrees -* @subpackage DB -*/ +// Import-specific functions +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. +// +// Modifications Copyright (c) 2010 Greg Roach +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -define('WT_FUNCTIONS_IMPORT_PHP', ''); - require_once WT_ROOT.'includes/functions/functions_export.php'; // Tidy up a gedcom record on import, so that we can access it consistently/efficiently. diff --git a/includes/functions/functions_mail.php b/includes/functions/functions_mail.php index 551fc5ed5e..a713543f31 100644 --- a/includes/functions/functions_mail.php +++ b/includes/functions/functions_mail.php @@ -1,40 +1,35 @@ <?php -/** - * Mail specific functions - * - * webtrees: Web based Family History software - * Copyright (C) 2010 webtrees development team. - * - * Derived from PhpGedView - * Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. - * - * Modifications Copyright (c) 2010 Greg Roach - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @package webtrees - * @version $Id$ - */ +// Mail specific functions +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. +// +// Modifications Copyright (c) 2010 Greg Roach +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -define('WT_FUNCTIONS_MAIL_PHP', ''); - /** * this function is a wrapper to the php mail() function so that we can change settings globally * for more info on format="flowed" see: http://www.joeclark.org/ffaq.html diff --git a/includes/functions/functions_mediadb.php b/includes/functions/functions_mediadb.php index 9ac0c8df6d..6a57143514 100644 --- a/includes/functions/functions_mediadb.php +++ b/includes/functions/functions_mediadb.php @@ -28,11 +28,9 @@ if (!defined('WT_WEBTREES')) { exit; } -define('WT_FUNCTIONS_MEDIADB_PHP', ''); - //-- Setup array of media types $MEDIATYPE = array("a11", "acb", "adc", "adf", "afm", "ai", "aiff", "aif", "amg", "anm", "ans", "apd", "asf", "au", "avi", "awm", "bga", "bmp", "bob", "bpt", "bw", "cal", "cel", "cdr", "cgm", "cmp", "cmv", "cmx", "cpi", "cur", "cut", "cvs", "cwk", "dcs", "dib", "dmf", "dng", "doc", "dsm", "dxf", "dwg", "emf", "enc", "eps", "fac", "fax", "fit", "fla", "flc", "fli", "fpx", "ftk", "ged", "gif", "gmf", "hdf", "iax", "ica", "icb", "ico", "idw", "iff", "img", "jbg", "jbig", "jfif", "jpe", "jpeg", "jp2", "jpg", "jtf", "jtp", "lwf", "mac", "mid", "midi", "miff", "mki", "mmm", ".mod", "mov", "mp2", "mp3", "mpg", "mpt", "msk", "msp", "mus", "mvi", "nap", "ogg", "pal", "pbm", "pcc", "pcd", "pcf", "pct", "pcx", "pdd", "pdf", "pfr", "pgm", "pic", "pict", "pk", "pm3", "pm4", "pm5", "png", "ppm", "ppt", "ps", "psd", "psp", "pxr", "qt", "qxd", "ras", "rgb", "rgba", "rif", "rip", "rla", "rle", "rpf", "rtf", "scr", "sdc", "sdd", "sdw", "sgi", "sid", "sng", "swf", "tga", "tiff", "tif", "txt", "text", "tub", "ul", "vda", "vis", "vob", "vpg", "vst", "wav", "wdb", "win", "wk1", "wks", "wmf", "wmv", "wpd", "wxf", "wp4", "wp5", "wp6", "wpg", "wpp", "xbm", "xls", "xpm", "xwd", "yuv", "zgm"); -$BADMEDIA = array(".", "..", "CVS", "thumbs", "index.php", "MediaInfo.txt", ".cvsignore", ".svn", "watermark"); +$BADMEDIA = array(".", "..", "thumbs", "index.php", "MediaInfo.txt", ".svn", "watermark"); /* **************************** diff --git a/includes/functions/functions_name.php b/includes/functions/functions_name.php index 7e133711c1..d8cfcbbc67 100644 --- a/includes/functions/functions_name.php +++ b/includes/functions/functions_name.php @@ -1,38 +1,33 @@ <?php -/** - * Name Specific Functions - * - * webtrees: Web based Family History software - * Copyright (C) 2010 webtrees development team. - * - * Derived from PhpGedView - * Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @package webtrees - * @version $Id$ - */ +// Name Specific Functions +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -define('WT_FUNCTIONS_NAME_PHP', ''); - /** * Takes a string and converts certain characters in the string to others for the purpose of soundex searches */ diff --git a/includes/functions/functions_places.php b/includes/functions/functions_places.php index 53eb34aba2..c33fd5b50c 100644 --- a/includes/functions/functions_places.php +++ b/includes/functions/functions_places.php @@ -28,8 +28,6 @@ if (!defined('WT_WEBTREES')) { exit; } -define('WT_FUNCTIONS_PLACE_PHP', ''); - /** * get the URL to link to a place * @string a url that can be used to link to placelist diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php index 30f934bb6a..56ba6247f4 100644 --- a/includes/functions/functions_print.php +++ b/includes/functions/functions_print.php @@ -30,8 +30,6 @@ if (!defined('WT_WEBTREES')) { exit; } -define('WT_FUNCTIONS_PRINT_PHP', ''); - require_once WT_ROOT.'includes/functions/functions_charts.php'; /** diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php index 233e572bb3..df2123f5aa 100644 --- a/includes/functions/functions_print_facts.php +++ b/includes/functions/functions_print_facts.php @@ -30,8 +30,6 @@ if (!defined('WT_WEBTREES')) { exit; } -define('WT_FUNCTIONS_PRINT_FACTS_PHP', ''); - // print a fact record, for the gedcom object pages. function print_fact(WT_Event $eventObj) { global $HIDE_GEDCOM_ERRORS, $SHOW_FACT_ICONS, $n_chil, $n_gchi; diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index e38ae95873..92e7e75843 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -31,8 +31,6 @@ if (!defined('WT_WEBTREES')) { exit; } -define('WT_FUNCTIONS_PRINT_LISTS_PHP', ''); - require_once WT_ROOT.'includes/functions/functions_places.php'; /** diff --git a/includes/functions/functions_privacy.php b/includes/functions/functions_privacy.php index 606834cce2..c6f2bb16b3 100644 --- a/includes/functions/functions_privacy.php +++ b/includes/functions/functions_privacy.php @@ -1,41 +1,33 @@ <?php -/** -* Privacy Functions -* -* See http://www.phpgedview.net/privacy.php for more information on privacy in webtrees -* -* webtrees: Web based Family History software -* Copyright (C) 2010 webtrees development team. -* -* Derived from PhpGedView -* Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* @version $Id$ -* @package webtrees -* @subpackage Privacy -*/ +// Privacy Functions +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -define('WT_FUNCTIONS_PRIVACY_PHP', ''); - // Can we display a level 1 record? // Assume we have already called canDisplayRecord() to check the parent level 0 object function canDisplayFact($xref, $ged_id, $gedrec, $access_level=WT_USER_ACCESS_LEVEL) { diff --git a/includes/functions/functions_rtl.php b/includes/functions/functions_rtl.php index 176b26b578..8a17f17bf9 100644 --- a/includes/functions/functions_rtl.php +++ b/includes/functions/functions_rtl.php @@ -1,42 +1,37 @@ <?php -/** - * RTL Functions - * - * The functions in this file are common to all webtrees pages and include date conversion - * routines and sorting functions. - * - * webtrees: Web based Family History software - * Copyright (C) 2010 to 2011 webtrees development team. - * - * Derived from PhpGedView - * Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @package webtrees - * @version $Id$ - */ +// RTL Functions +// +// The functions in this file are common to all webtrees pages and include date conversion +// routines and sorting functions. +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -define('WT_FUNCTIONS_RTL_PHP', ''); - $SpecialChar = array(' ','.',',','"','\'','/','\\','|',':',';','+','&','#','@','-','=','*','%','!','?','$','<','>',"\n"); $SpecialPar = array('(',')','[',']','{','}'); $SpecialNum = array('0','1','2','3','4','5','6','7','8','9'); diff --git a/includes/functions/functions_utf-8.php b/includes/functions/functions_utf-8.php index 01e3c66fa5..703fa98253 100644 --- a/includes/functions/functions_utf-8.php +++ b/includes/functions/functions_utf-8.php @@ -1,35 +1,30 @@ <?php -/** - * UTF-8 versions of PHP string functions - * - * webtrees: Web based Family History software - * Copyright (C) 2010 webtrees development team. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @package webtrees - * @version $Id$ - */ +// UTF-8 versions of PHP string functions +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -define('WT_FUNCTIONS_UTF_8_PHP', ''); - // Identify the script used in a given string. Just look at the first significant character. // If there are mixed scripts, then the enclosed scripts should already have been wrapped // in lrm/rlm markup. |
