#!/bin/bash
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' iInsertFigure.php     > 1aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' insertFigure.php      > 2aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' insertUpdateFigure.php > 3aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' listingFigures.php    > 4aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' seedetailsFigure.php  > 5aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' updateFigure.php      > 6aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' uUpdateFigure.php     > 7aux




cp 1aux iInsertFigure.php     
cp 2aux insertFigure.php      
cp 3aux insertUpdateFigure.php
cp 4aux listingFigures.php    
cp 5aux seedetailsFigure.php  
cp 6aux	updateFigure.php      
cp 7aux uUpdateFigure.php     

























