Established in 1983 Nelson-Singleton Solicitors has continually grown in size and reputation and today provides a full range of legal services to both private and business clients. With offices in Dromore, County Down and Markethill, County Armagh. Saturday and after hours appointments may be conveniently arranged. The practice makes use of modern technology to operate as efficiently as possible. The initial consultation is absolutely free and legal aid work is undertaken.
Our main areas of practice are:
- Conveyancing
- Wills & Estate Administration
- Family Law
- Employment Law
- Magistrates' Court
- Road Traffic Accidents
- Personal Injury Claims
- County Court/High Court
Should you have any questions, queries, problems or comments
that you would like to put to us, or even if you require a
quotation for a particular service please feel free to e-mail
us.
Email: info@nelson-singleton.co.uk
|
$imagedir = "Images/counterdigits"; // the name the directory that holds the images
$fr = fopen("$DOCUMENT_ROOT/../Counter/counter.dat", "r"); // open the file for reading
flock($fr, LOCK_SH); // lock the file for reading
$filearray = file("$DOCUMENT_ROOT/../Counter/counter.dat"); // read the file and store it in an array
flock($fr, LOCK_UN); // release read lock
fclose($fr);
if($_COOKIE['singleton']==$data) { // if the cookie has been set dont do anything however if this is the users first time on the site increment the counter by one
echo ""; }
else {
$counter = $filearray[0]+1; // access the value on the first line of the file and increase it by one
$fw = fopen("$DOCUMENT_ROOT/../Counter/counter.dat", "w+"); // open the file for writing
flock($fw, LOCK_EX); // lock the file for writing
fwrite($fw, "$counter"); // write the counter value to the file
flock($fw, LOCK_UN); // release the write lock
fclose($fw);
}
$stringlength = strlen($filearray[0])-1; // calculate the length of the first line of the file
$padding = 5 - $stringlength;
$stringindex = 0;
$paddingindex = 0;
$stringvalue = strval($filearray[0]); // convert the value on the first line of the file to a string
while ($paddingindex < $padding) {
$paddingindex++;
echo " ";
}
while ($stringindex <= $stringlength) {
$stringindex++;
echo " ";
}
?>
|