EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #05813
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Programatically find the cfg.d directory
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
 - Subject: Re: [EP-tech] Programatically find the cfg.d directory
 - From: "Alan.Stiles" <alan.stiles@open.ac.uk>
 - Date: Fri, 8 Jul 2016 15:12:58 +0000
 
| 
 Thank’ee kindly good sir.  Great power, etc.
 From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Adam Field $repository->config('archiveroot') . '/cfg/cfg.d'; …but be careful with what you do to it – all code in there is executed.  It’s a vector for code injection. From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of "Alan.Stiles" <alan.stiles@open.ac.uk> Is there a simple way to find the cfg.d directory for an archive from within the archive? I’m thinking that I want to create a config file to hold e.g. an authorisation token that I’ve obtained via an API.  It’s 1 token per repository so I don’t really want to create a database table to just hold that, and I’d rather not try
 and get an admin to transcribe the token into a config file by hand if I don’t have to.   Unless anyone has a better suggestion for how to store it?  Pointers to example code also gratefully received…   Alan. -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University
 is authorised and regulated by the Financial Conduct Authority.  
  | 
- References:
- Re: [EP-tech] Programatically find the cfg.d directory
- From: Adam Field <Adam.Field@jisc.ac.uk>
 
 
 - Re: [EP-tech] Programatically find the cfg.d directory
 
- Prev by Date: Re: [EP-tech] Programatically find the cfg.d directory
 - Next by Date: [EP-tech] Rerecorded training video (has sound now)
 - Previous by thread: Re: [EP-tech] Programatically find the cfg.d directory
 - Next by thread: [EP-tech] Rerecorded training video (has sound now)
 - Index(es):
 
