<?php
$expected=['p/logic/Nutrition.php'=>'8a53cfd449a77b60461cd316e922a71aac6e28e1407ee25c4038abcffeab7837','m/logic/Nutrition.php'=>'f98219d485b80624c6b0a9ee32b389845e03e1bec67d97e84b857e7a9e809b68'];$lock=json_decode(file_get_contents(__DIR__.'/private-source-lock.json'),true);foreach($expected as $f=>$sha){if(hash_file('sha256',__DIR__.'/source/application/'.$f)!==$sha)throw new RuntimeException('Root actual SHA pin');$lock[$f]=$sha;}
if(!is_file(__DIR__.'/private-original-source-lock.json'))rename(__DIR__.'/private-source-lock.json',__DIR__.'/private-original-source-lock.json');file_put_contents(__DIR__.'/private-source-lock.json',json_encode($lock,JSON_PRETTY_PRINT));chmod(__DIR__.'/private-source-lock.json',0600);echo "Actual Root source pinned\n";
