122. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/13/2019 2:49:46 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

122.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\DSM\Direct_API\application\config config.php Tue Mar 12 22:00:06 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\DSM-scrubbed\Direct_API\application\config config.php Wed Mar 13 04:33:10 2019 UTC

122.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 896
Changed 1 2
Inserted 0 0
Removed 0 0

122.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

122.4 Active regular expressions

No regular expressions were active.

122.5 Comparison detail

  1   <?php  if  ( ! define d('BASEPAT H')) exit( 'No direct  script ac cess allow ed');
  2  
  3   /**
  4   * @package  direct-as -a-service
  5   * @subpack age config
  6   *//** */
  7  
  8   /**
  9   * Base Sit e URL
  10   *
  11   * URL to y our CodeIg niter root . Typicall y this wil l be your  base URL,
  12   * WITH a t railing sl ash:
  13   *
  14   *       ht tp://examp le.com/
  15   *
  16   * If this  is not set  then Code Igniter wi ll guess t he protoco l, domain  and
  17   * path to  your insta llation.
  18   *
  19   * @global  string $co nfig['base _url']
  20   */
  21   if(defined ('PHPUNIT_ TEST') ||  (defined(' API_ADMINP ANEL_DOMAI N') && mb_ strstr($_S ERVER['HTT P_HOST'],  API_ADMINP ANEL_DOMAI N))) {
  22           $c onfig['bas e_url']      = 'https ://'.API_A DMINPANEL_ DOMAIN.'/' ;
  23   }elseif(de fined('API _FILETRANS FER_DOMAIN ') && mb_s trstr($_SE RVER['HTTP _HOST'], A PI_FILETRA NSFER_DOMA IN)){
  24           $c onfig['bas e_url'] =  'https://' .API_FILET RANSFER_DO MAIN.'/';
  25   }else {
  26           $c onfig['bas e_url']      = 'https ://'.API_D OMAIN.'/';
  27   }
  28  
  29   /**
  30   * Index Fi le
  31  
  32   * Typicall y this wil l be your  index.php  file, unle ss you've  renamed it  to
  33   * somethin g else. If  you are u sing mod_r ewrite to  remove the  page set  this
  34   * variable  so that i t is blank .
  35   *
  36   * @global  string $co nfig['inde x_page']
  37   */
  38   $config['i ndex_page' ] = '';
  39  
  40   /**
  41   * URI PROT OCOL
  42  
  43   * This ite m determin es which s erver glob al should  be used to  retrieve  the
  44   * URI stri ng.  The d efault set ting of 'A UTO' works  for most  servers.
  45   * If your  links do n ot seem to  work, try  one of th e other de licious fl avors:
  46   *
  47   * 'AUTO'                           Default  - auto det ects
  48   * 'PATH_IN FO'            Uses t he PATH_IN FO
  49   * 'QUERY_S TRING'         Uses t he QUERY_S TRING
  50   * 'REQUEST _URI'          Uses t he REQUEST _URI
  51   * 'ORIG_PA TH_INFO'       Uses t he ORIG_PA TH_INFO
  52   *
  53   * @global  string $co nfig['uri_ protocol']
  54   */
  55   $config['u ri_protoco l'] = 'AUT O';
  56  
  57   /**
  58   * URL suff ix
  59  
  60   * This opt ion allows  you to ad d a suffix  to all UR Ls generat ed by Code Igniter.
  61   * For more  informati on please  see the us er guide:
  62   *
  63   * http://c odeigniter .com/user_ guide/gene ral/urls.h tml
  64   *
  65   * @global  string $co nfig['url_ suffix']
  66   */
  67  
  68   $config['u rl_suffix' ] = '';
  69  
  70   /**
  71   * Default  Language
  72  
  73   * This det ermines wh ich set of  language  files shou ld be used . Make sur e
  74   * there is  an availa ble transl ation if y ou intend  to use som ething oth er
  75   * than eng lish.
  76   *
  77   * @global  string $co nfig['lang uage']
  78   */
  79   $config['l anguage']      = 'eng lish';
  80  
  81   /**
  82   * Default  Character  Set
  83  
  84   * This det ermines wh ich charac ter set is  used by d efault in  various me thods
  85   * that req uire a cha racter set  to be pro vided.
  86   *
  87   * @global  string $co nfig['char set']
  88   */
  89   $config['c harset'] =  'UTF-8';
  90  
  91   /**
  92   * Enable/D isable Sys tem Hooks
  93  
  94   * If you w ould like  to use the  'hooks' f eature you  must enab le it by
  95   * setting  this varia ble to TRU E (boolean ).  See th e user gui de for det ails.
  96   *
  97   * @global  boolean $c onfig['ena ble_hooks' ]
  98   */
  99   $config['e nable_hook s'] = TRUE ;
  100  
  101  
  102   /**
  103   * Class Ex tension Pr efix
  104  
  105   * This ite m allows y ou to set  the filena me/classna me prefix  when exten ding
  106   * native l ibraries.   For more  informatio n please s ee the use r guide:
  107   *
  108   * http://c odeigniter .com/user_ guide/gene ral/core_c lasses.htm l
  109   * http://c odeigniter .com/user_ guide/gene ral/creati ng_librari es.html
  110   *
  111   * @global  string $co nfig['subc lass_prefi x']
  112   */
  113   $config['s ubclass_pr efix'] = ' DAAS_';
  114  
  115   /*
  116   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  117   | Composer  auto-load ing
  118   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  119   |
  120   | Enabling  this sett ing will t ell CodeIg niter to l ook for a  Composer
  121   | package  auto-loade r script i n applicat ion/vendor /autoload. php.
  122   |
  123   |       $c onfig['com poser_auto load'] = T RUE;
  124   |
  125   | Or if yo u have you r vendor/  directory  located so mewhere el se, you
  126   | can opt  to set a s pecific pa th as well :
  127   |
  128   |       $c onfig['com poser_auto load'] = ' /path/to/v endor/auto load.php';
  129   |
  130   | For more  informati on about C omposer, p lease visi t http://g etcomposer .org/
  131   |
  132   | Note: Th is will NO T disable  or overrid e the Code Igniter-sp ecific
  133   |       au toloading  (applicati on/config/ autoload.p hp)
  134   */
  135   $config['c omposer_au toload'] =  FALSE;
  136  
  137   /**
  138   * Allowed  URL Charac ters
  139  
  140   * This let s you spec ify with a  regular e xpression  which char acters are  permitted
  141   * within y our URLs.   When some one tries  to submit  a URL with  disallowe d
  142   * characte rs they wi ll get a w arning mes sage.
  143   *
  144   * As a sec urity meas ure you ar e STRONGLY  encourage d to restr ict URLs t o
  145   * as few c haracters  as possibl e.  By def ault only  these are  allowed: a -z 0-9~%.: _-
  146   *
  147   * Leave bl ank to all ow all cha racters --  but only  if you are  insane.
  148   *
  149   * DO NOT C HANGE THIS  UNLESS YO U FULLY UN DERSTAND T HE REPERCU SSIONS!!
  150   *
  151   * @global  string $co nfig['perm itted_uri_ chars']
  152   */
  153   $config['p ermitted_u ri_chars']  = 'a-z 0- 9~%.:_\'\- ()@=';
  154   /* 2017-06 -30 - Myke  Carter -  Apostrophe  added to  accommodat e users wi th apostro phes in th eir names  and/or ext ernal emai l addresse s */
  155  
  156   /**
  157   * Enable Q uery Strin gs
  158  
  159   * By defau lt CodeIgn iter uses  search-eng ine friend ly segment  based URL s:
  160   * example. com/who/wh at/where/
  161   *
  162   * By defau lt CodeIgn iter enabl es access  to the $_G ET array.   If for so me
  163   * reason y ou would l ike to dis able it, s et 'allow_ get_array'  to FALSE.
  164   *
  165   * You can  optionally  enable st andard que ry string  based URLs :
  166   * example. com?who=me &what=some thing&wher e=here
  167   *
  168   * Options  are: TRUE  or FALSE ( boolean)
  169   *
  170   * The othe r items le t you set  the query  string 'wo rds' that  will
  171   * invoke y our contro llers and  its functi ons:
  172   * example. com/index. php?c=cont roller&m=f unction
  173   *
  174   * Please n ote that s ome of the  helpers w on't work  as expecte d when
  175   * this fea ture is en abled, sin ce CodeIgn iter is de signed pri marily to
  176   * use segm ent based  URLs.
  177   */
  178   $config['a llow_get_a rray']                = TRUE;
  179   $config['e nable_quer y_strings' ] = FALSE;
  180   $config['c ontroller_ trigger']    = 'c';
  181   $config['f unction_tr igger']               = 'm';
  182   $config['d irectory_t rigger']     = 'd'; / / experime ntal not c urrently i n use
  183  
  184   /**
  185   * Error Lo gging Thre shold
  186  
  187   * If you h ave enable d error lo gging, you  can set a n error th reshold to
  188   * determin e what get s logged.  Threshold  options ar e:
  189   * You can  enable err or logging  by settin g a thresh old over z ero. The
  190   * threshol d determin es what ge ts logged.  Threshold  options a re:
  191   *
  192   *       0  = Disables  logging,  Error logg ing TURNED  OFF
  193   *       1  = Error Me ssages (in cluding PH P errors)
  194   *       2  = Debug Me ssages
  195   *       3  = Informat ional Mess ages
  196   *       4  = All Mess ages
  197   *
  198   * For a li ve site yo u'll usual ly only en able Error s (1) to b e logged o therwise
  199   * your log  files wil l fill up  very fast.
  200   *
  201   * @global  int $confi g['log_thr eshold']
  202   */
  203   $config['l og_thresho ld'] = 1;
  204  
  205   /**
  206   * Error Lo gging Dire ctory Path
  207  
  208   * Leave th is BLANK u nless you  would like  to set so mething ot her than t he default
  209   * applicat ion/logs/  folder. Us e a full s erver path  with trai ling slash .
  210   *
  211   * @global  string $co nfig['log_ path']
  212   */
  213   $config['l og_path']  = '';
  214  
  215  
  216   /*
  217   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  218   | Log File  Extension
  219   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  220   |
  221   | The defa ult filena me extensi on for log  files. Th e default  'php' allo ws for
  222   | protecti ng the log  files via  basic scr ipting, wh en they ar e to be st ored
  223   | under a  publicly a ccessible  directory.
  224   |
  225   | Note: Le aving it b lank will  default to  'php'.
  226   |
  227   */
  228   $config['l og_file_ex tension']  = '';
  229  
  230   /*
  231   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  232   | Log File  Permissio ns
  233   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  234   |
  235   | The file  system pe rmissions  to be appl ied on new ly created  log files .
  236   |
  237   | IMPORTAN T: This MU ST be an i nteger (no  quotes) a nd you MUS T use octa l
  238   |             integer  notation  (i.e. 0700 , 0644, et c.)
  239   */
  240   $config['l og_file_pe rmissions' ] = 0644;
  241  
  242   /**
  243   * Date For mat for Lo gs
  244  
  245   * Each ite m that is  logged has  an associ ated date.  You can u se PHP dat e
  246   * codes to  set your  own date f ormatting
  247   *
  248   * @global  string $co nfig['log_ date_forma t']
  249   */
  250   $config['l og_date_fo rmat'] = ' Y-m-d H:i: s';
  251  
  252   /**
  253   * Error Vi ews Direct ory Path
  254   *
  255   * Leave th is BLANK u nless you  would like  to set so mething ot her than t he default
  256   * applicat ion/views/ errors/ di rectory.   Use a full  server pa th with tr ailing sla sh.
  257   *
  258   * @global  string $co nfig['erro r_views_pa th']
  259   */
  260   $config['e rror_views _path'] =  '';
  261  
  262   /**
  263   * Cache Di rectory Pa th
  264  
  265   * Leave th is BLANK u nless you  would like  to set so mething ot her than t he default
  266   * system/c ache/ fold er.  Use a  full serv er path wi th trailin g slash.
  267   *
  268   * @global  string $co nfig['cach e_path']
  269   */
  270   $config['c ache_path' ] = '';
  271  
  272   $applicati on_ini_con fig = pars e_ini_file (APPLICATI ON_INI_LOC ATION);
  273  
  274   /**
  275   * Encrypti on Key
  276  
  277   * If you u se the Enc ryption cl ass or the  Session c lass you
  278   * MUST set  an encryp tion key.   See the u ser guide  for info.
  279   *
  280   * @global  string $co nfig['encr yption_key ']
  281   */
  282   $config['e ncryption_ key'] = $a pplication _ini_confi g['encrypt ion_key'];
  283  
  284   /*
  285   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  286   | Session  Variables
  287   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  288   |
  289   | 'sess_dr iver'
  290   |
  291   |       Th e storage  driver to  use: files , database , redis, m emcached
  292   |
  293   | 'sess_co okie_name'
  294   |
  295   |       Th e session  cookie nam e, must co ntain only  [0-9a-z_- ] characte rs
  296   |
  297   | 'sess_ex piration'
  298   |
  299   |       Th e number o f SECONDS  you want t he session  to last.
  300   |       Se tting to 0  (zero) me ans expire  when the  browser is  closed.
  301   |
  302   | 'sess_sa ve_path'
  303   |
  304   |       Th e location  to save s essions to , driver d ependant.
  305   |
  306   |       Fo r the 'fil es' driver , it's a p ath to a w ritable di rectory.
  307   |       WA RNING: Onl y absolute  paths are  supported !
  308   |
  309   |       Fo r the 'dat abase' dri ver, it's  a table na me.
  310   |       Pl ease read  up the man ual for th e format w ith other  session dr ivers.
  311   |
  312   |       IM PORTANT: Y ou are REQ UIRED to s et a valid  save path !
  313   |
  314   | 'sess_ma tch_ip'
  315   |
  316   |       Wh ether to m atch the u ser's IP a ddress whe n reading  the sessio n data.
  317   |
  318   | 'sess_ti me_to_upda te'
  319   |
  320   |       Ho w many sec onds betwe en CI rege nerating t he session  ID.
  321   |
  322   | 'sess_re generate_d estroy'
  323   |
  324   |       Wh ether to d estroy ses sion data  associated  with the  old sessio n ID
  325   |       wh en auto-re generating  the sessi on ID. Whe n set to F ALSE, the  data
  326   |       wi ll be late r deleted  by the gar bage colle ctor.
  327   |
  328   | Other se ssion cook ie setting s are shar ed with th e rest of  the applic ation,
  329   | except f or 'cookie _prefix' a nd 'cookie _httponly' , which ar e ignored  here.
  330   |
  331   */
  332   $config['s ess_driver '] = 'file s';
  333   $config['s ess_cookie _name'] =  'api_sessi on';
  334   $config['s ess_expira tion'] = 6 00;
  335   $config['s ess_save_p ath'] = NU LL;
  336   $config['s ess_match_ ip'] = FAL SE;
  337   $config['s ess_time_t o_update']   = 0; //d on't chang e the sess ion id unt il the ses sion expir es
  338   $config['s ess_regene rate_destr oy'] = FAL SE;
  339  
  340   /**
  341   * Cookie R elated Var iables
  342  
  343   * 'cookie_ prefix' =  Set a pref ix if you  need to av oid collis ions
  344   * 'cookie_ domain' =  Set to .yo ur-domain. com for si te-wide co okies
  345   * 'cookie_ path'   =   Typically  will be a  forward s lash
  346   * 'cookie_ secure' =   Cookies w ill only b e set if a  secure HT TPS connec tion exist s.
  347   */
  348   $config['c ookie_pref ix']         = '';
  349   $config['c ookie_doma in']         = '';
  350   $config['c ookie_path ']           = '/';
  351   $config['c ookie_secu re'] = TRU E;
  352   $config['c ookie_http only'] = T RUE;
  353  
  354   /*
  355   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  356   | Standard ize newlin es
  357   |--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  358   |
  359   | Determin es whether  to standa rdize newl ine charac ters in in put data,
  360   | meaning  to replace  \r\n, \r,  \n occure nces with  the PHP_EO L value.
  361   |
  362   | This is  particular ly useful  for portab ility betw een UNIX-b ased OSes,
  363   | (usually  \n) and W indows (\r \n).
  364   |
  365   */
  366   $config['s tandardize _newlines' ] = FALSE;
  367  
  368   /**
  369   * Global X SS Filteri ng
  370  
  371   * Determin es whether  the XSS f ilter is a lways acti ve when GE T, POST or
  372   * COOKIE d ata is enc ountered
  373   *
  374   * @global  boolean $c onfig['glo bal_xss_fi ltering']
  375   */
  376   $config['g lobal_xss_ filtering' ] = FALSE;
  377  
  378   /**
  379   * Cross Si te Request  Forgery
  380   *--------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  381   * Enables  a CSRF coo kie token  to be set.  When set  to TRUE, t oken will  be
  382   * checked  on a submi tted form.  If you ar e acceptin g user dat a, it is s trongly
  383   * recommen ded CSRF p rotection  be enabled .
  384   *
  385   * 'csrf_to ken_name'  = The toke n name
  386   * 'csrf_co okie_name'  = The coo kie name
  387   * 'csrf_ex pire' = Th e number i n seconds  the token  should exp ire.
  388   */
  389   $config['c srf_protec tion'] = T RUE;
  390   $config['c srf_token_ name'] = ' dpii_api_t oken';
  391   $config['c srf_cookie _name'] =  'dpii_api_ token_cook ie';
  392   $config['c srf_expire '] = 300;
  393   $config['c srf_regene rate'] = F ALSE;
  394   $config['c srf_exclud e_uris'] =  array();
  395  
  396   /**
  397   * Output C ompression
  398  
  399   * Enables  Gzip outpu t compress ion for fa ster page  loads.  Wh en enabled ,
  400   * the outp ut class w ill test w hether you r server s upports Gz ip.
  401   * Even if  it does, h owever, no t all brow sers suppo rt compres sion
  402   * so enabl e only if  you are re asonably s ure your v isitors ca n handle i t.
  403   *
  404   * VERY IMP ORTANT:  I f you are  getting a  blank page  when comp ression is  enabled i t
  405   * means yo u are prem aturely ou tputting s omething t o your bro wser. It c ould
  406   * even be  a line of  whitespace  at the en d of one o f your scr ipts.  For
  407   * compress ion to wor k, nothing  can be se nt before  the output  buffer is  called
  408   * by the o utput clas s.  Do not  'echo' an y values w ith compre ssion enab led.
  409   *
  410   * @global  boolean $c onfig['com press_outp ut']
  411   */
  412   $config['c ompress_ou tput'] = F ALSE;
  413  
  414   /**
  415   * Master T ime Refere nce
  416  
  417   * Options  are 'local ' or 'gmt' .  This pr ef tells t he system  whether to  use
  418   * your ser ver's loca l time as  the master  'now' ref erence, or  convert i t to
  419   * GMT.  Se e the 'dat e helper'  page of th e user gui de for inf ormation
  420   * regardin g date han dling.
  421   *
  422   * @global  string $co nfig['time _reference '] 
  423   */
  424   $config['t ime_refere nce'] = 'l ocal';
  425  
  426  
  427   /**
  428   * Rewrite  PHP Short  Tags
  429  
  430   * If your  PHP instal lation doe s not have  short tag  support e nabled CI
  431   * can rewr ite the ta gs on-the- fly, enabl ing you to  utilize t hat syntax
  432   * in your  view files .  Options  are TRUE  or FALSE ( boolean)
  433   *
  434   * @global  boolean $c onfig['rew rite_short _tags']
  435   */
  436   $config['r ewrite_sho rt_tags']  = FALSE;
  437  
  438  
  439   /**
  440   * Reverse  Proxy IPs
  441  
  442   * If your  server is  behind a r everse pro xy, you mu st whiteli st the pro xy IP
  443   * addresse s from whi ch CodeIgn iter shoul d trust th e HTTP_X_F ORWARDED_F OR
  444   * header i n order to  properly  identify t he visitor 's IP addr ess.
  445   * Comma-de limited, e .g. ' IP          , IP          '
  446   *
  447   * @global  string $co nfig['rewr ite_short_ tags']
  448   */
  449   $config['p roxy_ips']  = '';