Determine page being viewed - $textpart

From TNG_Wiki
Jump to: navigation, search

Each TNG page defines a variable $textpart which is used to select the language for that page. It may also be used in a custom application to determine which page is being viewed.

(This was collected from TNG v. 9.2.1) (In v. 9.2.1, the variable $textpart is used in globallib.php and in the languages folders in the admintext.php and text.php files.)

If using $textpart in a special function, it must be declared global:

global $textpart;

The definitions for $textpart and the pages upon which they are defined are:

  • $textpart = branches
    • admin_addalbum.php
    • admin_addbranch.php
    • admin_branches.php
    • admin_branchlabels.php
    • admin_branchmenu.php
    • admin_branchoptions.php
    • admin_editbranch.php
    • admin_newbranch.php
    • admin_showbranch.php
    • admin_updatebranch.php


  • $textpart = cemeteries
    • admin_addcemetery.php
    • admin_cemeteries.php
    • admin_editcemetery.php
    • admin_newcemetery.php
    • admin_updatecemetery.php
    • findcemetery.php


  • $textpart = checkID
    • admin_checkID.php
    • ajx_checknewuser.php


  • $textpart = entities
    • admin_addentity.php
    • admin_deleteentity.php
    • admin_newentity.php


  • $textpart = events
    • admin_addevent.php
    • admin_deleteevent.php
    • admin_editevent.php
    • admin_editmore.php
    • admin_newevent.php
    • admin_updateevent.php
    • admin_updatemore.php


  • $textpart = eventtypes
    • admin_addeventtype.php
    • admin_editeventtype.php
    • admin_eventtypes.php
    • admin_neweventtype.php
    • admin_updateeventtype.php
    • admin_updateselectedeventtypes.php


  • $textpart = families
    • admin_addfamily.php
    • admin_editfamily.php
    • admin_families.php
    • admin_newfamily.php
    • admin_updatefamily.php
    • ajx_editfamily.php
    • ajx_newfamily.php
    • findfamily2.php
    • findfamilyform.php


  • $textpart = familygroup
    • ajx_fampreview.php
    • api_family.php
    • familygroup.php
    • rpt_fam.php
    • rpt_pdfform.php


  • $textpart = findpersonform
    • findpersonform.php
    • findpersonform2.php


  • $textpart = findplace
    • admin_addplace.php
    • admin_editplace.php
    • admin_geocode.php
    • admin_geocodeform.php
    • admin_mergeplaces.php
    • admin_mergeplacesajax.php
    • admin_newplace.php
    • admin_pickcemetery.php
    • admin_places.php
    • admin_updateplace.php
    • ajx_placeconvert.php
    • findplace.php
    • findplaceform.php


  • $textpart = gedcom
    • gedcom.php
    • gedform.php
    • suggest.php
    • tngsendmail.php


  • $textpart = gedimport
    • admin_gedimport.php
    • admin_gedimport_eventtypes.php


  • $textpart = generateID
    • admin_generateID.php


  • $textpart = getperson
    • ajx_addbookmark.php
    • ajx_deletebookmark.php
    • ajx_perspreview.php
    • ajx_savetentedit.php
    • ajx_tentedit.php
    • api_person.php
    • bookmarks.php
    • getperson.php
    • rpt_descend.php
    • rpt_descend_male_only.php
    • rpt_ind.php
    • rpt_pdfform.php


  • $textpart = guestbook
    • guestbook - Copy.php
    • guestbook.php


  • $textpart = headstones
    • cemeteries.php
    • headstones.php
    • showmap.php


  • $textpart = imgviewer
    • img_newwin.php
    • img_viewer.php


  • $textpart = index
    • admin.php
    • admin_dataimport.php
    • admin_leftbanner.php
    • admin_main.php
    • admin_rightbanner.php
    • deepindex.php


  • $textpart = install
    • ajx_tnginstall.php


  • $textpart = language
    • admin_addlanguage.php
    • admin_editlanguage.php
    • admin_languages.php
    • admin_newlanguage.php
    • admin_updatelanguage.php
    • changelanguage.php
    • maint.php
    • savelanguage2.php


  • $textpart = login
    • addnewacct.php
    • adminshowlog.php
    • admin_login.php
    • ajx_editprofile.php
    • ajx_login.php
    • login.php
    • newacctform.php
    • processlogin.php
    • sendlogin.php


  • $textpart = misc
    • admin_misc.php


  • $textpart = mods
    • admin_modmanager.php


  • $textpart = notes
    • admin_addnote.php
    • admin_deletenote.php
    • admin_editnote.php
    • admin_editnote2.php
    • admin_notelist.php
    • admin_notes.php
    • admin_updatenote.php
    • admin_updatenote2.php
    • browsenotes.php


  • $textpart = pedigree
    • ahnentafel.php
    • ajx_pedjson.php
    • descend.php
    • descendtext.php
    • descendtext_male_only.php
    • desctracker.php
    • extrastree.php
    • pedigree.php
    • pedigreetext.php
    • register.php
    • rpt_pdfform.php
    • rpt_pedigree.php


  • $textpart = people
    • admin_addassoc.php
    • admin_addperson.php
    • admin_addperson2.php
    • admin_associations.php
    • admin_deleteassoc.php
    • admin_editassoc.php
    • admin_editperson.php
    • admin_merge.php
    • admin_newperson.php
    • admin_newperson2.php
    • admin_people.php
    • admin_updateassoc.php
    • admin_updateperson.php
    • ajx_editperson.php
    • ajx_newperson.php
    • findperson.php
    • findperson2.php


  • $textpart = photos
    • admin_add2albumxml.php
    • admin_addcollection.php
    • admin_addmedia.php
    • admin_albums.php
    • admin_defphotos.php
    • admin_deletealbum.php
    • admin_editalbum.php
    • admin_editcollection.php
    • admin_editmedia.php
    • admin_editmedialink.php
    • admin_filepicker.php
    • admin_findmwmedia.php
    • admin_generatethumbs.php
    • admin_media.php
    • admin_mediaeventxml.php
    • admin_medialinksxml.php
    • admin_mediaupload.php
    • admin_mediauploader.php
    • admin_newalbum.php
    • admin_newcollection.php
    • admin_newmedia.php
    • admin_orderalbumform.php
    • admin_orderalbums.php
    • admin_ordermedia.php
    • admin_ordermediaform.php
    • admin_photoimport.php
    • admin_photoimporter.php
    • admin_thumbnails.php
    • admin_updatealbum.php
    • admin_updatecollection.php
    • admin_updatemedia.php
    • admin_updateselectedmedia.php
    • ajx_medialinks.php
    • findalbummedia.php
    • findform.php


  • $textpart = places
    • places-all.php
    • places-oneletter.php
    • places.php
    • places100.php


  • $textpart = relate
    • relateform.php
    • relationship.php


  • $textpart = reports
    • admin_addreport.php
    • admin_editmostwanted.php
    • admin_editreport.php
    • admin_getphotodetails.php
    • admin_mostwanted.php
    • admin_newreport.php
    • admin_reports.php
    • admin_savewhatsnewmsg.php
    • admin_updatemostwanted.php
    • admin_updatereport.php
    • admin_whatsnewmsg.php
    • mostwanted.php
    • report-brickwall-old.php
    • report-brickwall.php
    • report-brickwall_cloud.php
    • report-brickwall_cloud_nh.php
    • reports.php
    • showreport.php


  • $textpart = review
    • admin_deletereview.php
    • admin_findreview.php
    • admin_review.php
    • admin_savereview.php


  • $textpart = search
    • anniversaries.php
    • anniversaries2.php
    • calendar.php
    • famsearch.php
    • famsearchform.php
    • placesearch.php
    • relationship2.php
    • search.php
    • searchform.php


  • $textpart = secondary
    • admin_secondary.php
    • admin_secondmenu.php


  • $textpart = setup
    • adminmaint.php
    • admin_backup.php
    • admin_diagnostics.php
    • admin_genconfig.php
    • admin_importconfig.php
    • admin_logconfig.php
    • admin_makefolder.php
    • admin_mapconfig.php
    • admin_optimize.php
    • admin_pedconfig.php
    • admin_phpinfo.php
    • admin_renumber.php
    • admin_renumbermenu.php
    • admin_restore.php
    • admin_setup.php
    • admin_tablecreate.php
    • admin_updateconfig.php
    • admin_updateimportconfig.php
    • admin_updatelogconfig.php
    • admin_updatemapconfig.php
    • admin_updatepedconfig.php
    • admin_updatetemplateconfig.php
    • admin_utilities.php


  • $textpart = showlog
    • showlog.php


  • $textpart = showphoto
    • ajx_showmediaxml.php
    • ajx_slideshow.php
    • browsealbums.php
    • browsemedia.php
    • showalbum.php
    • showmedia.php


  • $textpart = sources
    • admin_addcitation.php
    • admin_addrepo.php
    • admin_addsource.php
    • admin_citations.php
    • admin_deletecitation.php
    • admin_editcitation.php
    • admin_editrepo.php
    • admin_editsource.php
    • admin_mergerepos.php
    • admin_mergesources.php
    • admin_newrepo.php
    • admin_newsource.php
    • admin_repositories.php
    • admin_sources.php
    • admin_updatecitation.php
    • admin_updaterepo.php
    • admin_updatesource.php
    • browserepos.php
    • browsesources.php
    • finditems.php
    • findrepo.php
    • findrepoform.php
    • findsource2.php
    • findsourceform.php
    • showrepo.php
    • showsource.php


  • $textpart = stats
    • statistics.php


  • $textpart = surnames
    • surnames-all.php
    • surnames-oneletter.php
    • surnames.php
    • surnames100.php


  • $textpart = templates
    • admin_templateconfig.php


  • $textpart = timeline
    • admin_addtlevent.php
    • admin_edittlevent.php
    • admin_newtlevent.php
    • admin_timelineevents.php
    • admin_updatetlevent.php
    • ajx_timelinexml.php
    • timeline.php
    • timeline2.php


  • $textpart = trees
    • admin_addtree.php
    • admin_changetree.php
    • admin_changetreeform.php
    • admin_cleartree.php
    • admin_edittree.php
    • admin_export.php
    • admin_gedcom2.php
    • admin_newtree.php
    • admin_trees.php
    • admin_updatetree.php
    • browsetrees-old.php
    • browsetrees.php
    • showtree.php


  • $textpart = users
    • admin_adduser.php
    • admin_edituser.php
    • admin_mailusers.php
    • admin_newuser.php
    • admin_reviewusers.php
    • admin_sendmailusers.php
    • admin_updateuser.php
    • admin_users.php
    • ajx_updateuser.php


  • $textpart = whatsnew
    • tngrss.php
    • whatsnew.php

Related links