“This school is committed to safeguarding and promoting the welfare of children and young people and expects all staff and volunteers to share this commitment”
All positions are subject to an Enhanced Disclosure check under the Rehabilitation of Offenders Act 1974. Further details regarding this check are available from schools or by visiting www.crb.gov.uk
If you are interested, please download and fill out the form below and send it, with a letter of application, to the Headteacher’s PA at office@cc-hs.com
[insert_php]
function findClosingDate($fileName) {
$str = “Closing”;
$lines = file($fileName);
foreach ($lines as $lineNumber => $line) {
if (strpos($line, $str) !== false) {
$lineArray = explode(” “, $line);
return $lineArray;
}
}
return -1;
}
$dir = ‘/var/www/perton/pdf/externalFiles/Codsall/Jobs’;
//$pdfArray =
$cleanDir = array_diff(scandir($dir), array(‘..’, ‘.’,’Hidden’));
if(count($cleanDir) > 2){
$count = 0;
echo “
“;
++$count;
}
echo “
“;
}
$count = 0;
foreach($cleanDir as $folder){
echo ““;
echo “
“;
$fileArray = glob($dir . “/” . $folder . “/*”);
foreach($fileArray as $file){
if(substr($file, strrpos($file, ‘.’) + 1) ==”txt”){
$txtDoc = $file;
$closingDate = implode(” “,array_slice(findClosingDate($txtDoc), -3, 3, true));
}
if(substr($file, strrpos($file, ‘.’) + 1) ==”pdf”){
$pdfFile[] = $file;
}
if(substr($file, strrpos($file, ‘.’) + 1) ==”docx” OR substr($file, strrpos($file, ‘.’) + 1) ==”doc” ){
$docFile[] = $file;
}
if(substr($file, strrpos($file, ‘.’) + 1) ==”xlsx” OR substr($file, strrpos($file, ‘.’) + 1) ==”xls” ){
$xlsFile[] = $file;
}
}
//$txtDocr = str_replace(“£”,”£”,file_get_contents($txtDoc, true));
//echo strtotime($closingDate) . “
“;
//echo time() . “
“;
if(strtotime($closingDate) < time()){
echo "Applications for this post have now closed" . "
“;
//if(file_exists(“/Hidden/” . $folder)) unlink(“/Hidden/” . $folder);
echo “Deleting File1”;
rename($dir . “/” . $folder, $dir . “/Hidden/$folder”);
}else{
$txtDocr = str_replace(chr(163),”£”,file_get_contents($txtDoc, true));
echo nl2br($txtDocr, true) . “
“;
echo “
“;
}
echo “
“;
echo “
“;
}
echo “
“;
echo “
“;
}
echo “
“;
}
++$count;
//echo “
“;
unset($pdfFile);
unset($docFile);
}
[/insert_php]