#!/bin/bash
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' iInsertDrawerAuthor.php > 1aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' iInsertDrawer.php       > 2aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' insertDrawerAuthor.php  > 3aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' insertDrawer.php        > 4aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' insertUpdateDrawers.php > 5aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' listingDrawers.php      > 6aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' seedetailsDrawer.php    > 7aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' updateDrawer.php        > 8aux
sed -e 's/"anonymous") {/"anonymous" || $pTipoUtilizador=="regular") {/g' uUpdateDrawer.php       > 9aux



cp 1aux iInsertDrawerAuthor.php
cp 2aux iInsertDrawer.php      
cp 3aux insertDrawerAuthor.php 
cp 4aux insertDrawer.php       
cp 5aux insertUpdateDrawers.php
cp 6aux	listingDrawers.php     
cp 7aux seedetailsDrawer.php   
cp 8aux updateDrawer.php       
cp 9aux	uUpdateDrawer.php      


















