Tech blog

PHP tutorials,a way to getting some thing new in web

Followers

Powered by Blogger.

Saturday 30 August 2014

Iphone Push Notification using PHP

No comments :
In previous article we have learned android gcm notification using php but now we will see iphone notification using php.




Here I have wonderful code for it as below:



<?php
$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', 
    $err, 
    $errstr, 
    60, 
    STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, 
    $ctx);

//if (!$fp)
//exit("Failed to connect amarnew: $err $errstr" . PHP_EOL);

//echo 'Connected to APNS' . PHP_EOL;

// Create the payload body
$body['aps'] = array(
    'badge' => +1,
    'alert' => $message,
    'sound' => 'default'
);

$payload = json_encode($body);

// Build the binary notification
$msg = chr(0) . pack('n', 32) . pack('H*', $deviceToken) . pack('n', strlen($payload)) . $payload;

// Send it to the server
$result = fwrite($fp, $msg, strlen($msg));

if (!$result)
    echo 'Message not delivered' . PHP_EOL;
else
    echo 'Message successfully delivered amar'.$message. PHP_EOL;

// Close the connection to the server
fclose($fp);
?>

Notification to android apps using PHP

No comments :
WE have created website but also created application for our website.here i have created small code for sending notification thru CURL to android apps using php.First try to create your google application on google developers and make android notification ON.

After completing above steps,you will get an application access key for your code.just paste that in your code.and get registration id from an android developer so that u will able to send notification to that device.




Code:

<?php

// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );


$registrationIds = array( $_GET['id'] );

// prep the bundle
$msg = array
(
    'message' => 'first push notification message',
'title' => 'test title',
'subtitle' => 'subtitle',
'tickerText' => 'ticker',
'vibrate' => 1,
'sound' => 1
);

$message_array = array
(
'registration_ids' => $registrationIds,
'data' => $msg
);

$headers = array
(
'Authorization: key=' . API_ACCESS_KEY,
'Content-Type: application/json'
);

$ch = curl_init();
curl_setopt( $ch,CURLOPT_URL, 'https://android.googleapis.com/gcm/send' );
curl_setopt( $ch,CURLOPT_POST, true );
curl_setopt( $ch,CURLOPT_HTTPHEADER, $headers );
curl_setopt( $ch,CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch,CURLOPT_SSL_VERIFYPEER, false );
curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $message_array ) );
$result = curl_exec($ch );
curl_close( $ch );

echo $result;
?>

You will get notification as output of this code.This is known as Android GCM notification from PHP.



Sunday 17 August 2014

Getting Video Thumbnails in PHP using ffmpeg

No comments :
Developers always create awesome codes by knowing language deeply.He can create ideas to make new innovative system.In PHP,same thing happens.As you all know extensions of php.ffmpeg is one of popular extension of php to take images from video.

Now,you can create images of your video.The video can be mp4,wmv,mkv etc..But here some lines are different.I have created code for windows system and with ffmpeg.exe

Download ffmpeg.exe for windows and paste following code in your editor.




Code:
<?php

$ffmpeg = 'ffmpeg.exe';

//video dir
$video = 'song.mp4';

//where to save the image
$image = 'image.jpg';

//interval
$interval = 5;

//image size
$size = '320x240';

//ffmpeg command
$cmd = "$ffmpeg -i $video -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size $image 2>&1";       
$return = `$cmd`;
?>

if you want to define directory you can define it  with "/".



Creating Facebook Apps

No comments :
Now a days,Facebook has socialized a lot.People want to advertise everything on social sites.Facebook Application is main interface to interact with Facebook functionality.To login,to post data on Facebook wall we need to create Facebook application.

Here are few steps which will help you to create Facebook Application:

Step-1:-

Go to https://developers.facebook.com/
Step-2:-

Go to Apps tab at top and click "create an app" button.
Finally you will get popup following page:

Step-3:-

Fill all above data and click on create app.Fill security text and go ahead.


Finally you are ready with Facebook application.

Thursday 14 August 2014

Creating Twitter Apps

No comments :
Today I will tell you about how to create twitter application in your account

Step-1:
go to twitter application site:

http://dev.twitter.com/



Step-2:

Log-in to site with your username and password

Step-3:

Go to Below page and click on create new app button

When you click on this button the following page will open.Enter Application name,Application Description,website url and call back url.Check "Yes,I agree" box.

Now, click on create new app button below.

Congratulations!!Your application has been created.


Tuesday 5 August 2014

How To Read Text Files using PHP

No comments :
I have posted tutorials for creating and posting of data.But here is good code and easy way in php to read text files which is stored in folder.In last post, I have posted code for making text file and directory.We will read data of same file.As assumed in code,files are same but contents in text file may be different.



Check out code for the same as follow:

<?php
$newdir='RuchiS';
echo  readfile($newdir.'/' ."newfile.txt");
?>


The above codee show one line which is reason for execution or say function names readfile.
 readfile is function in php which helps to read text file. 


Create Directory and text File using PHP

No comments :

We have been regularly in use of making directory using windows. and also text file.




Here is code which will help u to make folder and text files using php script.

<?php
$newdir='RuchiS';
$thisdir = getcwd();
echo "The Current Directory is ".$thisdir;
if(mkdir($thisdir . '/' . $newdir, 0777))
{
    $myfile = fopen($newdir.'/' ."newfile.txt", "w") or die("Unable to open file!");
    $txt = "Ruchi\n";
    fwrite($myfile, $txt);
    $txt = "Sanghvi\n";
    fwrite($myfile, $txt);
    fclose($myfile);
echo 'Directory has been created successfully...';
}
else
{
echo 'Failed to create directory...';
}
?>


The first line of code will be name of directory which you want to create in short,name of directory.Second line is for pointing current directory which u will create.

Here if condition will check wheather directory is made or not.and 777 will give write permission to folder.
under if condition text file will be created with fopen function.which will be in write mode.

In that text we can write text like Ruchi and Sanghvi. and fwrite function will write text into it.
 

Monday 4 August 2014

Password Strength Meter using PHP and Jquery

No comments :
you can create password strength meter using php and jquery with following code:




JQuery:

$(document).ready(function() {
    var password1       = $('#password1'); //id of first password field
    var password2       = $('#password2'); //id of second password field
    var passwordsInfo   = $('#pass-info'); //id of indicator element
 
    Passwordmeter(password1,password2,passwordsInfo); //call password check function
  
});

function Passwordmeter(password1, password2, passwordsInfo)
{
    //Must contain 5 characters or more
    var WeakPass = /(?=.{8,}).*/;
    //Must contain lower case letters and at least one digit.
    var MediumPass = /^(?=\S*?[a-z])(?=\S*?[0-9])\S{8,}$/;
    //Must contain at least one upper case letter, one lower case letter and one digit.
    var StrongPass = /^(?=\S*?[A-Z])(?=\S*?[a-z])(?=\S*?[0-9])\S{8,}$/;
    //Must contain at least one upper case letter, one lower case letter and one digit.
    var VryStrongPass = /^(?=\S*?[A-Z])(?=\S*?[a-z])(?=\S*?[0-9])(?=\S*?[^\w\*])\S{8,}$/;
  
    $(password1).keypress(function(e) {
       
        if(VryStrongPass.test(password1.val()))
        {
            passwordsInfo.removeClass().addClass('vrystrongpass').html("Very Strong! (Awesome, please don't forget your pass now!)");
        } 
        else if(StrongPass.test(password1.val()))
        {
            passwordsInfo.removeClass().addClass('strongpass').html("Strong! (Enter special chars to make even stronger");
        } 
        else if(MediumPass.test(password1.val()))
        {
            passwordsInfo.removeClass().addClass('goodpass').html("Good! (Enter uppercase letter to make strong)");
        }
        else if(WeakPass.test(password1.val()))
        {
            passwordsInfo.removeClass().addClass('stillweakpass').html("Still Weak! (Enter digits to make good password)");
        }
        else
        {
            passwordsInfo.removeClass().addClass('weakpass').html("Very Weak! (Must be 8 or more chars)");
        }
    });
  
    $(password2).keypress(function(e) {
      
        if(password1.val() !== password2.val())
        {
            passwordsInfo.removeClass().addClass('weakpass').html("Passwords do not match!"); 
        }else{
            passwordsInfo.removeClass().addClass('goodpass').html("Passwords match!");
        }
          
    });
}




HTML 

<form action="" method="post" id="passwordmeter">
<div><input type="password" id="password1" /></div>
<div><input type="password" id="password2" /></div>
<div id="pass-info"></div>

Login with Google using PHP

No comments :
You can create your website with google login.You can now socialize your website on google. here is code for it:

Please get google api client from google site

Please make sure you create application for google application on google developers.


Here is code:

<?php
@session_start();
require_once 'src/apiClient.php';
require_once 'src/contrib/apiOauth2Service.php';

$client = new apiClient();
$client->setApplicationName("Google Account Login");
$oauth2 = new apiOauth2Service($client);

if (isset($_GET['code'])) {
  $client->authenticate();
  $_SESSION['token'] = $client->getAccessToken();
  $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
  header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL));
}

if (isset($_SESSION['token'])) {
 $client->setAccessToken($_SESSION['token']);
}

if (isset($_REQUEST['logout'])) {
  unset($_SESSION['token']);
  unset($_SESSION['google_data']); //Google session data unset
  $client->revokeToken();
}

if ($client->getAccessToken()) {
  $user = $oauth2->userinfo->get();
   if (!empty($user ))
  {
      echo "<strong>Your Google details follows.</strong><br/>";
        echo "Name : ".$user['name']."<br/>";
        echo "Google ID : ".$user['id']."<br/>";
        echo "Google Email : ".$user['email']."<br/><br/><br/><br/>";
  }
 


  $_SESSION['google_data']=$user;
   

  $_SESSION['token'] = $client->getAccessToken();
} else {
  $authUrl = $client->createAuthUrl();
}
?>

<?php if(isset($personMarkup)): ?>
<?php print $personMarkup ?>
<?php endif ?>
<?php
  if(isset($authUrl)) {
    print "<a class='login' href='$authUrl'>Google Account Login</a>";
  } else {
   print "<a class='logout' href='?logout'>Logout</a>";
  }
?>
<a href="http://friendstaxi.com/" style="font-size:24px; color:#C00; font-family:Arial, Helvetica, sans-serif;  margin:100px;float:left">Goto HOME</a>


Login with Twitter Using PHP

No comments :
You can create your website with twitter login.You can now socialize your website on twitter.
here is code for it:

Please get twitter php sdk from:
https://github.com/abraham/twitteroauth

You can create your api on following url:

Please make sure your application have read/write permission.
https://dev.twitter.com/

To create Application and to learn twitter application After creating application you will get token and token secret.I am assuming that you all are know how to create twitter application,so not explaining here.



Code:

<?php
require("twitter/twitteroauth.php");
define('YOUR_CONSUMER_KEY', 'Twitter Key');
define('YOUR_CONSUMER_SECRET', 'Twitter Secret Key');
session_start();

$twitteroauth = new TwitterOAuth(YOUR_CONSUMER_KEY, YOUR_CONSUMER_SECRET);
// Requesting authentication tokens, the parameter is the URL we will be redirected to
$request_token = $twitteroauth->getRequestToken('http://yourwebsite.com/getTwitterData.php');

// Saving them into the session

$_SESSION['oauth_token'] = $request_token['oauth_token'];
$_SESSION['oauth_token_secret'] = $request_token['oauth_token_secret'];

// If everything goes well..
if ($twitteroauth->http_code == 200) {
    // Let's generate the URL and redirect
    $url = $twitteroauth->getAuthorizeURL($request_token['oauth_token']);
    header('Location: ' . $url);
} else {
    // It's a bad idea to kill the script, but we've got to know when there's an error.
    die('Something wrong happened.');
}
?>

Saturday 2 August 2014

Login With Facebook in your website using PHP

No comments :
We always seek attention in social networking site as we are very used to publish everything and liked and shared by others.But if we are developer in website development then our clients must seek Facebook login in their site and also we do.



You will get facebook php sdk from following link:

https://github.com/facebook/facebook-php-sdk

Here is little code for login in facebook using php

<?php
require 'src/facebook.php';  // Include facebook SDK file
$facebook = new Facebook(array(
  'appId'  => 'XXXXXXXXXXXXXX',   // Facebook App ID
  'secret' => 'XXXXXXXXXXXXXX',  // Facebook App Secret
  'cookie' => true,   
));
$user = $facebook->getUser();
if ($user) {
  try {
    $user_profile = $facebook->api('/me');
          $fbid = $user_profile['id'];           // To Get Facebook ID
        $fbuname = $user_profile['username'];  // To Get Facebook Username
        $fbfullname = $user_profile['name'];    // To Get Facebook full name
  } catch (FacebookApiException $e) {
    error_log($e);
   $user = null;
  }
}
if ($user) {
  $logoutUrl = $facebook->getLogoutUrl(array(
         'next' => 'http://ruchisanghvi.in/demo/logout.php',  // Logout URL full path
        ));
} else {
$loginUrl = $facebook->getLoginUrl(array(
        'scope'        => 'email', // Permissions to request from the user
        ));
}
?>




Friday 1 August 2014

How to Extract Zip File to specific folder in PHP.

No comments :

We know PHP is very reliable language.IT has many features.One of feature is file.We can extract zip file using php with following code.



<?php
include("ZipArchive.php");
//Create the object
$zip = new ZipArchive();  

// open archive
if ($zip->open('../test1.zip') !== TRUE) {
    die ("Could not open archive");
}

// extract contents to destination directory
$zip->extractTo('../ZIP_extract/');

//Close the archive
$zip->close();   
echo "Archive extracted to ZIP_extract folder!";
?>

How to Create Simple PDF with PDF Class in PHP

No comments :
Many of us want to generate different types of reports in PHP.We can do this with help of pdf class. Following codes will help u to understand simple pdf classes and its functions.Go through whole code from top to bottom u will get many new things to know.




<?php


    $mm1="";
    $mm2="";   
    $mm3="";   
    $mm4="";   
    $sig1 = "";
    $sig2 = "";

    if($role1=="Member" && !empty($member1)) { $mm1 = "<b>[X] Member   [ ] Manager</b>";}
    if($role1=="Manager" && !empty($member1)) { $mm1 = "<b>[ ] Member   [X] Manager</b>";}
    if($role2=="Member" && !empty($member2)) { $mm2 = "<b>[X] Member   [ ] Manager</b>";}
    if($role2=="Manager" && !empty($member2)) { $mm2 = "<b>[ ] Member   [X] Manager</b>";}
    if($role3=="Member" && !empty($member3)) { $mm3 = "<b>[X] Member   [ ] Manager</b>";}
    if($role3=="Manager" && !empty($member3)) { $mm3 = "<b>[ ] Member   [X] Manager</b>";}
    if($role4=="Member" && !empty($member4)) { $mm4 = "<b>[X] Member   [ ] Manager</b>";}
    if($role4=="Manager" && !empty($member4)) { $mm4 = "<b>[ ] Member   [X] Manager</b>";}
    $mgrno = "";
    if(!$member1=="")
    {
        $mgrno = "ONE";
    }   
    if(!$member1=="" && !$member2=="")
    {
        $mgrno = "TWO";
    }   
    if(!$member1=="" && !$member2=="" && !$member3=="")
    {
        $mgrno = "THREE";
    }   
    if(!$member1=="" && !$member2=="" && !$member3=="" && !$member4=="")
    {
        $mgrno = "FOUR";
    }  
    if(!$member1=="")
    {
        $sig1 = "______________________________\n$member1 Signature";
    }
    if(!$member1=="" && !$member3=="")
    {
        $sig1 = "______________________________\n$member1 Signature\n\n______________________________\n$member3 Signature";
    }
    if(!$member2=="")
    {
        $sig2 = "______________________________\n$member2 Signature";
    }
    if(!$member2=="" && !$member4=="")
    {
        $sig2 = "______________________________\n$member2 Signature\n\n______________________________\n$member4 Signature";
    }
    $mem1="";
    $mem2="";
    if(!empty($member1)) { $mem1 = "$mm1\n$member1\n$member1address";}
    if(!empty($member1) && !empty($member3)) { $mem1 = "$mm1\n$member1\n$member1address\n\n$mm3\n$member3\n$member3address";}   
    if(!empty($member2)) { $mem2 = "$mm2\n$member2\n$member2address";}
    if(!empty($member2) && !empty($member4)) { $mem2 = "$mm2\n$member2\n$member2address\n\n$mm4\n$member4\n$member4address";}   
    $member1tcc = str_replace("$","",$member1tcc);
    $member2tcc = str_replace("$","",$member2tcc);
    $member3tcc = str_replace("$","",$member3tcc);
    $member4tcc = str_replace("$","",$member4tcc);
    $totaltcc=$member1tcc+$member2tcc+$member3tcc+$member4tcc;
    $totalper=$member1per+$member2per+$member3per+$member4per;
    $allmember = "$member1\n\n$member2\n\n$member3\n\n$member4\n\n<b>TOTALS</b>";
    $m1tcc="";
    $m2tcc="";
    $m3tcc="";
    $m4tcc="";
    $m1per="";
    $m2per="";
    $m3per="";
    $m4per="";
    if(!$member1tcc=="") {$m1tcc="$".$member1tcc;}
    if(!$member2tcc=="") {$m2tcc="$".$member2tcc;}
    if(!$member3tcc=="") {$m3tcc="$".$member3tcc;}
    if(!$member4tcc=="") {$m4tcc="$".$member4tcc;}
    if(!$member1per=="") {$m1per=$member1per."%" ;}
    if(!$member2per=="") {$m2per=$member2per."%" ;}
    if(!$member3per=="") {$m3per=$member3per."%" ;}
    if(!$member4per=="") {$m4per=$member4per."%" ;}
    if(!$totaltcc=="") {$totaltcc="$".$totaltcc;}
    $alltcc = "$m1tcc\n\n$m2tcc\n\n$m3tcc\n\n$m4tcc\n\n$totaltcc";
    $allper = "$m1per\n\n$m2per\n\n$m3per\n\n$m4per\n\n$totalper%";
    $allcspc = "$member1cspc\n\n$member2cspc\n\n$member3cspc\n\n$member4cspc";
    $allfmv="$m1tcc\n\n$m2tcc\n\n$m3tcc\n\n$m4tcc\n\n$totaltcc";
    $docname = "State Articles of Organization";
    $phone ="Not yet set. Will be operational when the Database is up.";   
        error_reporting(E_ALL);
        //set_time_limit(1800);
        include 'class.ezpdf.php';
        // define a clas extension to allow the use of a callback to get the table of contents, and to put the dots in the toc
        class Creport extends Cezpdf {
        var $reportContents = array();
          $this->Cezpdf($p,$o);
        }
        function rf($info){

          // this callback records all of the table of contents entries, it also places a destination marker there

          // so that it can be linked too

          $tmp = $info['p'];

          $lvl = $tmp[0];

          $lbl = rawurldecode(substr($tmp,1));

          $num=$this->ezWhatPageNumber($this->ezGetCurrentPageNumber());

          $this->reportContents[] = array($lbl,$num,$lvl );

          $this->addDestination('toc'.(count($this->reportContents)-1),'FitH',$info['y']+$info['height']);

        }
        function dots($info){

          // draw a dotted line over to the right and put on a page number

          $tmp = $info['p'];

          $lvl = $tmp[0];

          $lbl = substr($tmp,1);

          $xpos = 20;

       

          switch($lvl){

            case '1':

              $size=1;

              $thick=1;

              break;

            case '2':

              $size=12;

              $thick=0.5;

              break;

          }

       

          $this->saveState();

          $this->setLineStyle($thick,'round','',array(0,10));

          $this->line($xpos,$info['y'],$info['x']+5,$info['y']);

          $this->restoreState();

          $this->addText($xpos+5,$info['y'],$size,$lbl);

       

       

        }

       

       

        }

// I am in NZ, so will design my page for A4 paper.. but don't get me started on that.

// (defaults to legal)

// this code has been modified to use ezpdf.



//$pdf = new Cezpdf('a4','portrait');

$pdf = new Creport('a4','portrait');

$pdf2 = new Creport('a4','portrait');







$pdf -> ezSetMargins(70,70,70,70);





//$mainFont = './fonts/Helvetica.afm';

$mainFont = './fonts/Times-Roman.afm';

$boldFont = './fonts/Times-Bold.afm';

$codeFont = './fonts/Courier.afm';



$all = $pdf->openObject();

$pdf->saveState();

$pdf->setColor(0.3,0.3,0.3);

$pdf->addText(70,34,8,'Articles of Organization');

$i=$pdf->ezStartPageNumbers(320,28,12,'','Page-{PAGENUM}-',1);

$pdf->restoreState();

$pdf->closeObject();

$pdf->addObject($all,'all');

// select a font//-----------------------------------page 1

$pdf->selectFont($mainFont);

$pdf->setLineStyle(3);



$pdf->ezText("<b>STATE OF $state</b>\n",14,array('justification'=>'centre'));

$pdf->ezText("<b>ARTICLES OF ORGANIZATION</b>\n",14,array('justification'=>'centre'));

$pdf->ezText("<b>$llcname</b>\n",14,array('justification'=>'centre'));

$pdf->ezText("<b>A LIMITED LIABILITY COMPANY (LLC)</b>\n",14,array('justification'=>'centre'));



$pdf->ezText("1.  <b><u>Name :</u></b>  The name of the Limited Liability Company is <b><u>$llcname</u></b>.\n",12,array('justification'=>'left'));



$pdf->ezText("2.  <b><u>Purpose :</u></b>  This Limited Liability Company is organized to conduct the business of $biztype and is organized under the laws of the State of $state, \n",12,array('justification'=>'left'));





$pdf->ezText("3.  <b><u>Registered Office :</u></b>  The address of the registered office of the Limited Liability Company is <u>$llcaddress</u>.\n",12,array('justification'=>'left'));



$pdf->ezText("4.  <b><u>Registered/Statutory Agent :</u></b>     The name and street address of the Registered/Statutory Agent is:",12,array('justification'=>'left'));

$pdf->ezText("       <u>$sagentname</u>",12,array('justification'=>'left'));

$pdf->ezText("       <u>$sagentaddress</u>\n",12,array('justification'=>'left'));



$pdf->ezText("5.  <b><u>Date of Dissolution. </u></b>  The latest date, if any, on which the Limited Liability Company must dissolve, is <u>$dissdate</u>.\n",12,array('justification'=>'left'));



$pdf->ezText("6.  <b><u>Management. </u></b>  Management of the Limited Liability Company will be <u>$memger Managed</u> the following persons whose names and addresses are as follow. \n",12,array('justification'=>'left'));



$pdf->ezText("7.  <b><u>Members. </u></b>  The total number of initial Members of this company is <u>$mgrno</u> and the names and addresses of each person are as follows:\n",12,array('justification'=>'left'));



$pdf->ezText("IF RESERVED TO THE MEMBER(S), YOU MAY SELECT ONLY THE MEMBER BOX FOR EACH MEMBER LISTED.",9,array('justification'=>'left'));



$table = array(

        array('col1'=>$mem1,'col2'=>$mem2));



$pdf->ezTable($table,array('col1'=>'','col2'=>''),''

,array('rowGap'=>0,'fontSize'=>12,'showHeadings'=>0,'shaded'=>0,'width'=>440,'showLines'=>0,'cols'=>array('col1'=>array('width'=>220),'col2'=>array('width'=>220))));

$pdf->ezText("\n",12,array('justification'=>'left'));



$pdf->ezText("IF YOU NEED MORE SPACE FOR LISTING MEMBERS / MANAGERS PLEASE ATTACH AN ADDITIONAL PAGE TO THE ARTICLES OF ORGANIZATION.\n",9,array('justification'=>'left'));



$pdf->ezText("8.  The total amount of initial capitalization of this Limited Liability Company is: <u>$initialcapital</u>.\n",12,array('justification'=>'left'));



$pdf->ezText("9.  <b><u>Admitting New Members. </u></b> The Company reserves the right to admit new members at any time.\n",12,array('justification'=>'left'));



$pdf->ezText("10. <u>The company reserves</u> the right to continue, without dissolution, under the terms as set forth in the company Operating Agreement, upon any act that might otherwise cause the dissolution of the company or the dissociation of a member under the laws of the State of $state.\n",12,array('justification'=>'left'));



$pdf->ezText("11. <b><u>The Federal Employer Identification Number is :</u></b> <u>$fedempno</u>.\n",12,array('justification'=>'left'));

$pdf->ezText("12. <b><u>The Standard Industrial Code is :</u></b>_________________.\n",12,array('justification'=>'left'));

$pdf->ezText("I certify that all of the facts stated in these Articles or Organization are true and correct and are made for the purpose of forming a Limited Liability Company under the laws of the State of $state.\n",12,array('justification'=>'left'));
$pdf->ezText("<b>Acceptance of Appointment by Registered/Statutory Agent</b>\n",12,array('justification'=>'left'));
$pdf->ezText("I <u>$sagentname</u>, having been designated to act as Registered/Statutory Agent, hereby consent to act in that capacity until removed, or resignation is submitted in accordance with the $state Revised Statutes.\n\n",12,array('justification'=>'left'));
$pdf->ezText("___________________________________________",12,array('justification'=>'left'));
$pdf->ezText("$sagentname, Registered/Statutory Agent\n",12,array('justification'=>'left'));
$pdf->ezText("\n\nEXECUTED this on _____ day of _____________, 20_____.\n",12,array('justification'=>'left'));
$table3 = array(
        array('col1'=>$sig1,'col2'=>$sig2));
$pdf->ezTable($table3,array('col1'=>'','col2'=>''),''
,array('rowGap'=>0,'fontSize'=>12,'showHeadings'=>0,'shaded'=>0,'width'=>440,'showLines'=>0,'cols'=>array('col1'=>array('width'=>220),'col2'=>array('width'=>220))));
$pdf->ezText(" ",12,array('justification'=>'left'));
$tablephone = array(
        array('col1'=>"<u>$llcphone</u>\nPhone No.",'col2'=>"$llcfax\nFax No."));
$pdf->ezTable($tablephone,array('col1'=>'','col2'=>''),''
,array('rowGap'=>0,'fontSize'=>12,'showHeadings'=>0,'shaded'=>0,'width'=>440,'showLines'=>0,'cols'=>array('col1'=>array('width'=>220),'col2'=>array('width'=>220))));
$pdf->ezText("\n",12,array('justification'=>'left'));
$pdf->ezText("State of $nstate\n",12,array('justification'=>'left'));
$pdf->ezText("County of $ncounty\n",12,array('justification'=>'left'));
$pdf->ezText("On ____ day of ________________, 20____, personally appeared before me ____________________________, the signer(s) of the within instrument, who duly acknowledged to me that they executed the same.\n",12,array('justification'=>'left'));
$pdf->ezText("\n__________________________",12,array('justification'=>'left'));
$pdf->ezText("Notary Public                                                    Notary Stamp          ",12,array('justification'=>'left'));

$pdf->ezStopPageNumbers(1,1,$i);
$pdf->stopObject($all);
$pdf->ezNewPage();
$all2 = $pdf->openObject();
$pdf->saveState();
$pdf->setColor(0.3,0.3,0.3);
$pdf->addText(70,34,8,'Operating Agreement');
$pdf->ezStartPageNumbers(320,28,12,'','Page-{PAGENUM}-',1);
$pdf->restoreState();
$pdf->closeObject();
$pdf->addObject($all2,'all');

$pdf->ezText("OPERATING AGREEMENT\n",14,array('justification'=>'centre'));

$pdf->ezText("OF\n",14,array('justification'=>'centre'));

$pdf->ezText("$llcname\n",14,array('justification'=>'centre'));

$pdf->ezText("A LIMITED LIABILITY COMPANY\n",14,array('justification'=>'centre'));

$pdf->ezText("1. Effective Date: ____ day of __________, 20_____\n",12,array('justification'=>'left'));

$pdf->ezText("2. Effective Place of Execution: $effplace\n",12,array('justification'=>'left'));

$pdf->ezText("3. End of Fiscal Year: $fiscalyear\n",12,array('justification'=>'left'));

$pdf->ezText("4. Members: Members are set forth on the Schedule of Members and Contributions to Capital attached as Exhibit A to this certificate.\n",12,array('justification'=>'left'));

$pdf->ezText("5. Place of Business (Hereinafter Company Location): $llcaddress\n",12,array('justification'=>'left'));

$pdf->ezText("6. Address where Records Are Kept: $recaddress\n",12,array('justification'=>'left'));

$pdf->ezText("7. Name and Address of Registered Agent: $sagentname, $sagentaddress\n",12,array('justification'=>'left'));

$pdf->ezText("8. Character of Business: The character of the business of the Limited Liability Company (hereafter \"LLC\") is the transaction of any and all lawful business under the laws of the State of $state.\n",12,array('justification'=>'left'));

$pdf->ezText("9. Documents Incorporated by Reference:\n\nExhibit A Schedule of Members and Contributions to Capital\n\nExhibit B Statement of Amounts of Cash, Property, or Services Contributed by Each Member",12,array('justification'=>'left'));



$pdf->ezNewPage();

$pdf->ezText("TABLE OF CONTENTS\n",18,array('justification'=>'centre'));

$pdf->ezText("1. Organization\n",12,array('justification'=>'left'));

$pdf->ezText("2. Contributions\n",12,array('justification'=>'left'));

$pdf->ezText("3. Profits and Losses\n",12,array('justification'=>'left'));

$pdf->ezText("4. Management\n",12,array('justification'=>'left'));

$pdf->ezText("5. Additional Members\n",12,array('justification'=>'left'));

$pdf->ezText("6. Dissolution of LLC\n",12,array('justification'=>'left'));

$pdf->ezText("7. Miscellaneous\n",12,array('justification'=>'left'));

$pdf->ezText("8. Execution and Certification\n\n",12,array('justification'=>'left'));

$pdf->ezText("EXHIBIT A -- Schedule of Members and Contributions to Capital\n",12,array('justification'=>'left'));

$pdf->ezText("EXHIBIT B -- Statement of Amounts of Cash, Property, or Services Contributed    by Each Members\n",12,array('justification'=>'left'));



$pdf->ezNewPage();

$pdf->ezText("<b>Part 1\nOrganization\n</b>",14,array('justification'=>'centre'));

$pdf->ezText("1. <b><u>Name.</b></u>  Name of the LLC is set forth on the caption page hereof.\n",12,array('justification'=>'full'));

$pdf->ezText("2. <b><u>Character of Business.</b></u>  Character of the business is set forth on the caption page hereof.\n",12,array('justification'=>'full'));

$pdf->ezText("3. <b><u>Location.</b></u>  Principal place of business of the LLC is as set forth on the caption page or at any other place, within or without the State of  $state, as the members shall determine.\n",12,array('justification'=>'full'));

$pdf->ezText("4. <b><u>Members.</b></u>  Agreement is entered into by the members whose names and addresses are designated on Exhibit A annexed hereto.\n",12,array('justification'=>'full'));

$pdf->ezText("5. <b><u>Term.</b></u>  Term of this LLC shall be perpetual unless otherwise stated in the original Articles of Organization.\n",12,array('justification'=>'full'));

$pdf->ezText("6. <b><u>Annual Meeting.</b></u>  Annual meeting of the members of the LLC shall be held on the second to last Wednesday before the end of the fiscal year, or at any other time as the members shall decide.\n",12,array('justification'=>'full'));

$pdf->ezText("7. <b><u>Trust Corporation, Partnership, or other LLC as Member.</b></u>  If a trust, corporation, partnership or other LLC is a member, the death, incompetence, insolvency, or assignment by any beneficiary, shareholder, partner, or member of such entity who has a beneficial or ownership interest of 50% or more of that other entity shall, for the purpose of this agreement, constitute the death, incompetence, insolvency, or assignment by the said member who is a party to this agreement.\n",12,array('justification'=>'full'));



$pdf->ezNewPage();

$pdf->ezText("<b>Part 2\nContributions\n</b>",14,array('justification'=>'centre'));

$pdf->ezText("1. <b><u>Original Contributions.</b></u>  Each member shall contribute, as of the date of this agreement, the cash, property, or services valued at the amount set forth opposite his respective name in Exhibit B annexed hereto, which shall constitute the initial contribution of capital to the LLC.\n",12,array('justification'=>'full'));

$pdf->ezText("2. <b><u>Additional Contributions.</b></u>  Additional capital is required, the members may make contributions in proportion to the manner in which profits are shared. Additional capital may be contributed in disproportionate amounts upon written consent of the members. Capital contributed by any member in excess of such proportionate share shall be deemed a loan to the LLC in the amount of such excess.  Any such loan shall be repayable as the members may agree at the time of such contribution or from time to time and shall bear interest until repaid at the prime rate plus two percentage points at the bank where the LLC funds are deposited, but at no less than 8% per annum.\n",12,array('justification'=>'full'));

$pdf->ezText("3. <b><u>Loaned Property.</b></u>  All property originally brought into the LLC is LLC property.  Any contrary intent as to any particular items of property shall be indicated by either written notice to the remaining members or a descriptive label on the particular item.\n",12,array('justification'=>'full'));

$pdf->ezText("4. <b><u>Return of Contribution.</b></u>  Capital contribution of each member is to be returned only upon the complete dissolution and termination of the LLC.  A member has, however, the right to withdraw from the LLC if such withdrawal is affected in the manner as provided for in this agreement.\n",12,array('justification'=>'full'));

$pdf->ezText("5. <b><u>Limitation on Withdrawal.</b></u>  A member shall not be entitled to withdraw any initial or additional capital during the existence of the LLC unless and to the extent that the members so agree, except as provided in this agreement.  If it shall ever be deemed advisable to reduce the amount of capital, the amount of such reduction shall be determined by the managing member or members, and the same shall be distributed to the members ratably according to their respective interests in the capital of the LLC.\n",12,array('justification'=>'full'));

$pdf->ezText("6. <b><u>Interest on Capital Contributions.</b></u>  Interest shall be paid on original or any subsequent contributions to capital.\n",12,array('justification'=>'full'));

$pdf->ezText("7. <b><u>Treatment of Loans.</b></u>  As permitted in this agreement, shall be upon promissory notes made and delivered to or by the LLC  The interest rate and method of repayment shall be set forth clearly on the face of such notes.  Any loan not handled in this manner shall be deemed an advance, shall not bear interest, and shall be payable within 90 days after written demand.\n",12,array('justification'=>'full'));

$pdf->ezText("8. <b><u>Capital Account.</b></u>  There shall be maintained, in the name of each member, a capital account.  Any increase or decrease in the value of the LLC on any valuation date shall be credited or debited, respectively, to each member's capital account on that date.  Any other method of evaluating each member's capital account may be substituted for this method, provided that such substituted method results in exactly the same valuation as previously provided herein.\n",12,array('justification'=>'full'));

$pdf->ezText("9. <b><u>Return of Contribution in Property Other than Cash.</b></u>  Members are given the right to demand and receive property other than cash in return for their contributions, subject to the terms and conditions of any written agreement signed by all members.\n",12,array('justification'=>'full'));



$pdf->ezNewPage();

$pdf->ezText("<b>Part 3\nProfits and Losses</b>\n",14,array('justification'=>'centre'));

$pdf->ezText("1. <b><u>Fiscal Year.</b></u>  Fiscal year of the LLC shall be that set forth on the caption page hereof.\n",12,array('justification'=>'full'));

$pdf->ezText("2. <b><u>Salaries to Members.</b></u>  Member shall receive a salary for services rendered to the LLC except as the members may unanimously authorize.\n",12,array('justification'=>'full'));

$pdf->ezText("3. <b><u>Allocation of Income.</b></u>  At any time this LLC would be deemed an investment company under Internal Revenue Code §721(b), then the contribution of specific assets to the formation of the LLC shall be traced to the contributing member. Contributing member shall be allocated all income, gain, or loss and deduction with respect to such property as provided in the Committee Reports P.L.10, under Internal Revenue Code §721.\n",12,array('justification'=>'full'));

$pdf->ezText("4. <b><u>Salary Winding Up.</b></u>  Salary will be paid to a member for services performed in winding up the affairs of the LLC, under any applicable provisions of the $state Limited Liability Company Act, in a reasonable amount as agreed between the parties having an interest in the LLC or by arbitration.\n",12,array('justification'=>'full'));

$pdf->ezText("5. <b><u>Draws.</b></u>  Member may draw out of the LLC account during the fiscal year such amount as the members may from time to time determine.  Each member's share of profits and losses of the LLC shall be credited or charged, respectively, to his drawing account.  The members may determine to charge any loss to the members' capital accounts and to transfer amounts from the members' drawing accounts to their capital accounts.  All such charges and transfers shall be in proportion to each member's respective interest in losses and profits of the LLC \n",12,array('justification'=>'full'));

$pdf->ezText("6. <b><u>Draws in Excess of Profit Share.</b></u>  If any member draws out more than his share of net profits for such year, as determined by the annual review, he shall immediately repay that excess within ten days and, upon failing to do so, shall execute a promissory note bearing interest at the maximum legal rate until his share of the profits shall be available to repay the principal and interest due on the note; if sufficient profits are not available within one year to repay the note with interest, he shall in all events pay it within one year of the audit.\n",12,array('justification'=>'full'));

$pdf->ezText("7. <b><u>Profits and Losses.</b></u>  Members shall share profits and losses of the LLC in the same percentages as their respective Percentage of Ownership and Percentage of Profit Distribution as set forth in Exhibit A to this agreement, or according to the capital accounts as determined by the accountant for the LLC at the end of each fiscal year, if there is a variance from the percentages set forth in the latest Exhibit A to this agreement and any amendments hereto.\n",12,array('justification'=>'full'));

$pdf->ezText("8. <b><u>Formula for Profit Determination.</b></u>  Determining the net profits of the LLC for any accounting period, the deductions from gross receipts of the LLC shall include:\n",12,array('justification'=>'full'));



$pdf -> ezSetMargins(70,70,100,70);

$pdf->ezText("a. Disbursements made by or on behalf of the LLC for the usual and customary expenses of conducting the business;\n",12,array('justification'=>'full'));

$pdf->ezText("b. Taxes chargeable to the LLC as such and paid by it;\n",12,array('justification'=>'full'));

$pdf->ezText("c. Adequate reserves for taxes accrued or levied but not yet payable;\n",12,array('justification'=>'full'));

$pdf->ezText("d. Interest on all interest-bearing loans of the LLC;\n",12,array('justification'=>'full'));

$pdf->ezText("e. Salaries paid to employees and to members;\n\n",12,array('justification'=>'full'));

$pdf->ezText("f. Adequate reserves for depreciation of LLC property and for contingencies, including bad accounts;\n",12,array('justification'=>'full'));

$pdf->ezText("g. Proper allowance for all liabilities accruing; and\n",12,array('justification'=>'full'));

$pdf->ezText("h. Any and all other disbursements, incidental to the conduct of the business, made by the LLC during such accounting period, except payments to members on account of LLC profits.\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,70,70);

$pdf->ezText("9. <b><u>Losses in Excess of LLC Contributions.</b></u>  No member shall be obligated under any circumstances to invest in this venture any sum in excess of his original contribution, but he may contribute additional capital as provided in paragraph 2.2 (Additional Contributions).\n",12,array('justification'=>'full'));

$pdf->ezText("10. <b><u>Discretion on the Distribution of Profits.</b></u>  Other provisions notwithstanding, the earnings of the LLC shall be distributed at least annually except that all or some of the earnings may be retained by the LLC and transferred to LLC capital for the reasonable needs of the business as determined at the sole discretion of the members.\n",12,array('justification'=>'full'));



$pdf->ezNewPage();

//Following code shows PART 4 BASED ON THE VALUE OF MEMGER

if($memger=="Member")

    {

        $pdf->ezText("<b>Part 4\nManagement</b>\n",14,array('justification'=>'centre'));

        $pdf->ezText("1.  <b><u>Management Duties and Limitations of Members.</u></b>      The members shall have equal rights to participate in the management of the LLC.  Unless otherwise provided by this agreement, all decisions shall be by majority vote, and each member shall be entitled to one vote.  No member shall, without the consent of the other members:\n",12,array('justification'=>'full'));

        $pdf -> ezSetMargins(70,70,100,70);

        $pdf->ezText("a.   Borrow or lend money or make and deliver any commercial paper, mortgage or security agreement on behalf of the LLC.",12,array('justification'=>'full'));

        $pdf->ezText("b.   Sell or contract to sell any LLC property other than the type sold in the ordinary course of LLC business.",12,array('justification'=>'full'));

        $pdf->ezText("c.   Assign, sell, or encumber his interest in the LLC.",12,array('justification'=>'full'));

        $pdf->ezText("d.   Become a surety, guarantor or accommodation party on any obligation.\n",12,array('justification'=>'full'));

        $pdf -> ezSetMargins(70,70,70,70);

       

        $pdf->ezText("2.  <b><u>Rights, Powers and Liabilities of Members.</u></b>     A member shall have all the rights and powers and be subject to all the restrictions and liabilities necessary to carry out the business of the liability company, except that, without the written consent or ratification of the specific act by all the members, a member has no authority to:\n",12,array('justification'=>'full'));

        $pdf -> ezSetMargins(70,70,100,70);

        $pdf->ezText("a.   Do any act in contravention of the Articles of Organization or this Agreement.",12,array('justification'=>'full'));

        $pdf->ezText("b.   Do any act which would make it impossible to carry on the ordinary business of the LLC.",12,array('justification'=>'full'));

        $pdf->ezText("c.   Confess a judgment against the LLC.",12,array('justification'=>'full'));

        $pdf->ezText("d.   Possess LLC property, or assign his or her rights in specific LLC property, for other than an LLC purpose.",12,array('justification'=>'full'));

        $pdf->ezText("e.   Admit a person as a member.",12,array('justification'=>'full'));

        $pdf->ezText("f.   Continue the business with LLC property on the withdrawal, death, retirement, or insanity of a member.\n",12,array('justification'=>'full'));

        $pdf -> ezSetMargins(70,70,70,70);

        $pdf->ezText("3.  <b><u>Books of Account.</u></b>  LLC shall keep books of account adequate for its purposes.  The books of account shall be maintained at its principal place of business and shall be open at all times to inspection and copying by any member.  The books of account shall be reviewed at the end of each fiscal year by a public accountant selected by the members.  Every member shall have access to and may inspect or copy the LLC books as provided under the applicable provisions of the State Limited Liability Company Act.  The books shall also, upon reasonable request, be open to the inspection of the executor, administrator, or guardian of any deceased or legally incapacitated member.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("4.  <b><u>Basis of Accounting.</u></b>  LLC books shall be kept on a cash or accrual basis, based on the recommendations of the accountant or lawyer, and approved by a majority of the members.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("5.  <b><u>Financial Statements.</u></b>     At the end of the annual accounting period, or more frequently as may be prescribed, or as soon thereafter as is practical, the members shall direct the preparation of financial statements reflecting the transactions of the LLC for the preceding period.  Such statements shall consist of a balance sheet, profit and loss statement, statement of changes in members' capital and income, and such other information as the members deem advisable.  Copies in writing of such statements shall be furnished and delivered to each member; additional copies of such statements shall be kept in the office specified under State Law for a period of not less than three years.  Each member's earnings and losses shall be determined by the provisions of this LLC agreement, as set forth elsewhere in this agreement and the State Limited Liability Company Act.  At the end of each quarter, the members shall determine the cash requirements for the succeeding quarter and any cash on hand in excess of such determined requirements shall be distributed ratably to the members.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("6.  <b><u>Banking.</u></b>  All LLC funds shall be deposited in an account in a bank or other financial institution selected by the members.  All withdrawals from that account shall be made only for LLC purposes and upon the signature of any person so authorized by the members.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("7.  <b><u>Brokerage Account.</u></b>  LLC may select a broker and enter into such agreements with the broker as required for the purchase or sale of stocks, bonds, and securities.  Stocks, bonds, and securities owned by the LLC shall be registered in the LLC name unless another name shall be designated by the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("8.  <b><u>Transfer of Securities.</u></b>  Any corporation or transfer agent called upon to transfer any stocks, bonds or securities to or from the name of the LLC shall be entitled to rely on instructions or assignments signed by any one of the members designated by the LLC to make withdrawals from the LLC bank account, without inquiry as to the authority of such persons, or as to the validity of any transfer to or from the name of the LLC  At the time of transfer, the corporation or transfer agent is entitled to assume (a) that the LLC is still in existence and (b) that this agreement is in full force and effect and has not been amended unless the corporation has received written notice to the contrary.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("9.  <b><u>Written Minutes.</u></b>  Minutes of the business transacted at LLC meetings shall be made and retained at the LLC’s business office only if requested by any member.  Generally, minutes will not be made unless so requested.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("10. <b><u>Meetings.</u></b>  Of the members may be called at any time by any member upon reasonable notice in writing, unless waived during such meeting.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("11. <b><u>Place of Meetings.</u></b>  Of the members may be held at such place within or without the State of State as a majority of the members shall appoint.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("12. <b><u>Managing Member(s) Powers.</u></b>  Members shall have full, exclusive, and complete discretion in the management, operation, direction and control of the affairs of the LLC for the purposes herein stated and shall make all decisions affecting its affairs.  Where there are multiple members and no managing member has been designated in writing by the members, then all members may together, by written concurrence, perform all acts and exercise all powers of the managing member.  The members may at any time in writing designate a managing member, who shall be one of the members, to exercise the complete control of the supervision and coordination of all LLC activities for a given fiscal year. The managing member shall manage and control the affairs of the LLC to the best of his ability and shall use his best efforts to carry out the character of its business and to perform the duties as set forth in this agreement, including but not limited to the following powers:\n",12,array('justification'=>'full'));

       

        $pdf -> ezSetMargins(70,70,100,70);

        $pdf->ezText("a.   <b>To Sell.</b>  Sell, lease, pledge, mortgage, transfer, exchange, convert or otherwise dispose of, or grant options with respect to, any and all property at any time forming a part of the LLC property, in such manner, at such time or times, for such purposes, for such prices and upon such terms, credits and conditions as he deems advisable.  Any lease made by the managing member (or members) may extend beyond the period fixed by statute for leases made by LLC’s and beyond the duration of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("b.   <b>To Invest.</b> To invest and reinvest the LLC assets, both principal and income if accumulated, in any property or undivided interests therein, wherever located, including bonds, notes (secured and unsecured), stock of corporations (including stock of managing member or members), real estate (or any interest therein), and interests in trusts, including common trust funds, without being limited by any statute or rule of law concerning investments of LLC’s and to hold on deposit or to deposit any funds in one or more banks in any form of account whether or not interest.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("c.   <b>To Hold Property.</b>  To retain, without liability for loss or depreciation resulting from such retention, original property, real or personal, received by him from the LLC, including but not limited to stocks and securities, for such time as to him shall seem advisable; although such property may not be of the character prescribed by law or by the terms of this instrument for the investment of other LLC assets, and although it represents a large percentage or all the LLC assets, that original property may accordingly be held as a permanent investment.\n",12,array('justification'=>'full'));


       

        $pdf->ezText("d.   <b>To Operate Business.</b>  To operate and manage, at the sole risk of the LLC and not at the risk of the managing member, any property or business received by him, as long as he deems advisable; the managing member is authorized to incorporate any unincorporated business received hereunder; to accept beneficial employment with or from any business in which the LLC may be interested, whether by way of stock ownership or otherwise, and even though the interests of the LLC in the business shall constitute a majority interest therein, or the complete ownership thereof; and to receive appropriate compensation from such business for such employment.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("e.   <b>To Lease.</b>  Lease property upon any terms or conditions and for any term of years although extending beyond the period of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("f.   <b>To Develop.</b>  Develop, improve, lease, partition, abandon, subdivide, dedicate as parks, streets and alleys, and grant easements and rights with respect to any real property or improvements of this LLC, and to improve, construct, repair, alter, reconstruct, or demolish any such improvements, and to lease for any periods, all or any part of the LLC assets, upon such terms and conditions and for such considerations as he deems advisable. Lease may be made for such period of time as the managing member deems proper, without regard to the duration of the LLC or any statutory restriction on leasing and without the approval of any court.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("g.   <b>To Insure and Change.</b>  Insure, improve, repair, alter and partition real estate, erect or raze improvements, grant easements, subdivide, or dedicate property to public use.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("h.   <b>To Register.</b>  To cause any of the investments which may be delivered to or acquired by him to be registered in his name or in the name of his nominee; any corporation or its transfer agent may presume conclusively that such nominee is the actual owner of any investment submitted for transfer; to retain any investment received in exchange in any reorganization or recapitalization.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("i.   <b>To Acquire Stock Rights.</b>  To acquire stock and securities of a corporation by the exercise of rights to acquire stock and securities issued in connection with the stock of any corporation comprising a portion of the LLC property, including but not limited to the following: vote in person or by general or limited proxy with respect to any shares of stock or other securities held by him; to consent, directly or through a committee or other agent, to the reorganization, consolidation, merger, dissolution or liquidation of any corporation in which the LLC may have any interest, or to the sale, lease, pledge or mortgage of any property by or to any such corporation; and to make any payments and to take any steps which he may deem necessary or proper to enable the LLC to obtain the benefit of such transaction.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("j.   <b>To Employ Agents.</b>  Employ agents, experts and counsel, investment or legal, even though they may be associates with, employed by, or counsel for any of the members; and to make reasonable and proper payments to such agents, experts or counsel for services rendered.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("j.   <b>To Employ Agents.</b>  Employ agents, experts and counsel, investment or legal, even though they may be associates with, employed by, or counsel for any of the members; and to make reasonable and proper payments to such agents, experts or counsel for services rendered.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("k.   <b>To Dissolve Corporations.</b>  Enter into an agreement making the LLC liable for a prorata share of the liabilities of any corporation which is being dissolved, and in which stock is held, when, in his opinion, such action is in the best interests of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("l.   <b>To Contract.</b>  Complete, extend, modify or renew any loans, notes, bonds, mortgages, contracts or any other obligations which the LLC may owe or be a party to or which may be liens or charges against any property of the LLC, although the LLC may not be liable thereon, in such manner as he may deem advisable; to pay, compromise, compound, adjust, submit to arbitration, sell or release any claims or demands of the LLC against others or of others against the LLC as he may deem advisable, including the acceptance of deeds of real property in satisfaction of bonds and mortgages, and to make any payments in connection therewith which he may deem advisable.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("m.   <b>To Borrow.</b>  To borrow money for any purpose connected with the protection, preservation or improvement of the LLC assets whenever in his judgment advisable, and as security to mortgage or pledge any real estate or personal property forming a part of the LLC assets upon such terms and conditions as he may deem advisable.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("n.   <b>To Set Up Reserves.</b>  Set up, out of the rents, profits or other income received, if any, reserves for taxes, assessments, insurance premiums, repayments of mortgage or other indebtedness, repairs, improvements, depreciation, obsolescence and general maintenance of buildings and other property, and for the equalization of payments to or for members entitled to receive income, as he shall deem advisable.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("o.   <b>To Determine Value.</b>  Determine the market value of any investment of the LLC for any purpose on the basis of such quotations or information as the managing member may deem pertinent and reliable without any limitation whatsoever; to distribute in cash or in kind upon partial or final distribution.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("p.   <b>To Pay Costs.</b>  To pay all costs, charges and expenses of the LLC and pay or compromise all taxes pertaining to the administration of the LLC which may be assessed against it or against the managing member on account of the LLC or the income thereof.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("q.   <b>To Purchase Insurance.</b>  To carry insurance against such risks and for such amounts and upon such terms as the managing member deems necessary and for the protection of the managing member or any member of the LLC, and to purchase policies of insurance on the life of any other person in whom the LLC may have an insurable interest, and to continue in effect or to terminate any life insurance policy which may be owned or held by any the LLC; and to pay (from income or principal) any premiums or other charges, and to exercise any and all rights or incidents of ownership in connection therewith.\n",12,array('justification'=>'full'));

       

       

        $pdf->ezText("r.   <b>To Buy on Margin.</b> Buy, sell, and hypothecate securities on margin; to buy, sell and write \"put and call\" options; and to transact all types of securities transactions with a brokerage firm that are allowed under SEC regulations.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("s.   <b>To Inform Members.</b>  Inform the members periodically as to the progress of acquisition, development, operation, and pending disposition of the LLC property and other property owned by the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("t.   <b>To Maintain Records.</b>  To maintain complete and accurate records of the business affairs of the LLC, keeping all correspondence relating to its business and the original records of all statements, bills and other instruments furnished the LLC in connection with its business for a period of six years; and to maintain all other records required to be maintained by law.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("u.   <b>To Cause Examination of Records.</b>  Cause the records and accounts of the LLC to be examined and reviewed as of the close of each fiscal year by an independent certified public accountant selected by the managing member, and to cause such accountant to timely prepare and furnish to each member a copy of the statement of the financial condition of the LLC, a statement of the capital accounts of all the members, and a statement of income or loss, together with copies of the LLC tax returns in the form to be filed with the IRS and the State of State.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("v.   <b>To Accept Gifts.</b>  Accept on behalf of the LLC any contribution, gift, bequest, or devise for the general purposes or for any special purpose of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("w.   <b>To Implement Powers Execution of Documents.</b>  In order to implement his powers, to execute and deliver all deeds, assignments, leases, sub-leases, engineering and planning contracts, management contracts, maintenance contracts and construction contracts covering or affecting LLC property; to execute and deliver all checks, drafts, orders, promissory notes, mortgages, deeds of trust, security agreements and all other instruments and documents of any kind or character relating to the affairs of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("x.   <b>Additional Powers Given by Law.</b>  Powers enumerated above shall be construed as being in addition to any other authority given or conferred upon the managing member by law.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("y.   <b>Continuation of Powers.</b> Managing member may exercise all powers and authority, including any discretion, after the termination of the LLC created herein until the same is finally distributed.\n",12,array('justification'=>'full'));

       

        $pdf -> ezSetMargins(70,70,70,70);

        $pdf->ezText("13. <b><u>Term of managing member(s).</u></b>  Unless otherwise agreed in writing by all the members, the term of the managing member shall be one fiscal year.  Upon termination of the managing member's term, another member, if there be more than one, shall automatically begin his term as managing member for the next fiscal year.  The next succeeding managing member shall be the oldest member in age who has not served a term as managing member, until all have served a term, after which the rotation shall begin again.  If there is only one member, he shall continue as managing member until another member qualifies.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("14. <b><u>Compensation of managing member(s).</u></b>  Members may authorize the payment of a prescribed salary to the managing member.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("15. <b><u>LLC Transactions in Securities and Oil and Gas Interests.</u></b>   Nothing in this agreement intends to prohibit any member from buying or selling securities for his own account, including securities of the same issues as those held by the LLC, and the members may buy securities from or sell securities to the LLC  Nothing in this agreement prohibits any member from dealing in any property, including oil, gas and other minerals, for such member's own account nor from dealing with and between the LLC with respect to any properties including oil, gas or other minerals.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("16. <b><u>Written Reports.</u></b>   90 days after the close of each fiscal year, the members shall furnish to each member, upon request, a written report setting forth as of the end of such year:\n",12,array('justification'=>'full'));

       

        $pdf -> ezSetMargins(70,70,100,70);

        $pdf->ezText("a.   The assets and liabilities of the LLC;",12,array('justification'=>'full'));

        $pdf->ezText("b.   The net profit or net loss of the LLC;",12,array('justification'=>'full'));

        $pdf->ezText("c.   Such member's closing account and the manner of its calculation;",12,array('justification'=>'full'));

        $pdf->ezText("d.   Any other information necessary to enable such member to prepare his individual income tax returns; and",12,array('justification'=>'full'));

        $pdf->ezText("e.   Such member's LLC percentage for the succeeding fiscal year or interim period.\n",12,array('justification'=>'full'));

       

        $pdf -> ezSetMargins(70,70,70,70);

        $pdf->ezText("17. <b><u>Special Power of Attorney to Member.</u></b>  Each member (for himself, his successors and assigns) hereby constitutes and appoints each of the members (and each person who may be subsequently substituted as a member) his true and lawful attorney-in-fact, and empowers and authorizes each such attorney-in-fact, in the name, place and stead of each such member, to execute and acknowledge any and all amendments to Exhibit A attached hereto from time to time as necessary to reflect any change in the LLC of the membership or in the address or percentage of ownership of any member which occurs in accordance with the terms of this agreement; and to make, execute, sign, swear to, acknowledge and file in such place or places as may be required by law any documents, certificates, or instruments which by law may be required or permitted to be made and filed in connection with the formation or continuation of the LLC and the admission of the members in accordance with the terms of this agreement; and to include therein all information required by law and any such additional information as he may deem appropriate, hereby ratifying and confirming all actions which may be taken by said attorney-in-fact pursuant to this paragraph.  The power of the attorney-in-fact hereby granted is a special power of attorney, coupled with an interest, and is irrevocable; may be exercised by any such attorney-in-fact for executing any agreement, certificate, instrument or document with the single signature of any such attorney-in-fact acting as attorney for all the members; and shall survive the delivery of an assignment by a member of the whole or a portion of his interest in the LLC, except that, where the purchaser, transferee or assignee of such interest is admitted as a substituted member, the power of attorney shall survive the delivery of such assignment for the sole purpose of enabling such attorney-in-fact to execute, acknowledge and file any such agreement, certificate, instrument or document necessary to effect such substitution.  Such attorney-in-fact shall not, however, have any right, power or authority to amend or modify the provisions of this agreement when acting in such capacity except as permitted by law.",12,array('justification'=>'full'));
    }

       

if($memger=="Manager")

    {

        $pdf->ezText("<b>Part 4\nManagement</b>\n",14,array('justification'=>'centre'));

        $pdf->ezText("1.  <b><u>Management.</u></b>  The members of the LLC have elected managers to have the rights and powers of the LLC.  The managers must act within the powers set forth in this Articles of Organization.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("2.  <b><u>Rights, Powers and Liabilities of Members.</u></b>  A member shall have all the rights and powers and be subject to all the restrictions and liabilities necessary to carry out the business of the liability company, except that, without the written consent or ratification of the specific act by all the members, a member has no authority to:\n",12,array('justification'=>'full'));

       

        $pdf -> ezSetMargins(70,70,100,70);

        $pdf->ezText("a.   Do any act in contravention of the Articles of Organization or this Agreement.",12,array('justification'=>'full'));

        $pdf->ezText("b.   Do any act, which would make it impossible to carry on the ordinary business of the LLC.",12,array('justification'=>'full'));

        $pdf->ezText("c.   Confess a judgment against the LLC.",12,array('justification'=>'full'));

        $pdf->ezText("d.   Possess LLC property, or assign his or her rights in specific LLC property, for other than an LLC purpose.",12,array('justification'=>'full'));

        $pdf->ezText("e.   Admit a person as a member.",12,array('justification'=>'full'));

        $pdf->ezText("f.   Continue the business with LLC property on the withdrawal, death, retirement, or insanity of a member.",12,array('justification'=>'full'));

       

        $pdf -> ezSetMargins(70,70,70,70);

        $pdf->ezText("3.  <b><u>Books of Account.</u></b>  LLC shall keep books of account adequate for its purposes.  The books of account shall be maintained at its principal place of business and shall be open at all times to inspection and copying by any member.  The books of account shall be reviewed at the end of each fiscal year by a public accountant selected by the members.  Every member shall have access to and may inspect or copy the LLC books as provided under the applicable provisions of the STATE Limited Liability Company Act.  The books shall also, upon reasonable request, be open to the inspection of the executor, administrator, or guardian of any deceased or legally incapacitated member.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("4.  <b><u>Basis of Accounting.</u></b>  LLC books shall be kept on a cash or accrual basis, based on the recommendations of the accountant or lawyer, and approved by a majority of the members.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("5.  <b><u>Financial Statements.</u></b>  At the end of the annual accounting period, or more frequently as may be prescribed, or as soon thereafter as is practical, the members shall direct the preparation of financial statements reflecting the transactions of the LLC for the preceding period.  Such statements shall consist of a balance sheet, profit and loss statement, statement of changes in members' capital and income, and such other information as the members deem advisable.  Copies in writing of such statements shall be furnished and delivered to each member; additional copies of such statements shall be kept in the office specified under $state Law for a period of not less than three years.  Each member's earnings and losses shall be determined by the provisions of this LLC agreement, as set forth elsewhere in this agreement and the STATE Limited Liability Company Act.  At the end of each quarter, the members shall determine the cash requirements for the succeeding quarter and any cash on hand in excess of such determined requirements shall be distributed ratably to the members.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("6.  <b><u>Banking.</u></b>  All LLC funds shall be deposited in an account in a bank or other financial institution selected by the members.  All withdrawals from that account shall be made only for LLC purposes and upon the signature of any person so authorized by the members.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("7.  <b><u>Brokerage Account.</u></b>  LLC may select a broker and enter into such agreements with the broker as required for the purchase or sale of stocks, bonds, and securities.  Stocks, bonds, and securities owned by the LLC shall be registered in the LLC name unless another name shall be designated by the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("8.  <b><u>Transfer of Securities.</u></b>  Any corporation or transfer agent called upon to transfer any stocks, bonds or securities to or from the name of the LLC shall be entitled to rely on instructions or assignments signed by any one of the members designated by the LLC to make withdrawals from the LLC bank account, without inquiry as to the authority of such persons, or as to the validity of any transfer to or from the name of the LLC.  At the time of transfer, the corporation or transfer agent is entitled to assume (a) that the LLC is still in existence and (b) that this agreement is in full force and effect and has not been amended unless the corporation has received written notice to the contrary.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("9.  <b><u>Written Minutes.</u></b>  Minutes of the business transacted at LLC meetings shall be made and retained at the LLC’s business office only if requested by any member.  Generally, minutes will not be made unless so requested.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("10. <b><u>Meetings.</u></b>  The meetings of the members may be called at any time by any member upon reasonable notice in writing, unless waived during such meeting.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("11. <b><u>Place of Meetings.</u></b>  The Place of the members may be held at such place within or outside the State of STATE, as a majority of the members shall appoint.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("12. <b><u>Managers Powers.</u></b>  Managers shall have full, exclusive, and complete discretion in the management, operation, direction and control of the affairs of the LLC for the purposes herein stated and shall make all decisions affecting its affairs.  The manager shall manage and control the affairs of the LLC to the best of his ability and shall use his best efforts to carry out the character of its business and to perform the duties as set forth in this agreement, including but not limited to the following powers:\n",12,array('justification'=>'full'));

       

        $pdf -> ezSetMargins(70,70,100,70);

        $pdf->ezText("a.   <b>To Sell.</b>  Sell, lease, pledge, mortgage, transfer, exchange, convert or otherwise dispose of, or grant options with respect to, any and all property at any time forming a part of the LLC property, in such manner, at such time or times, for such purposes, for such prices and upon such terms, credits and conditions as he deems advisable.  Any lease made by the manager (or members) may extend beyond the period fixed by statute for leases made by LLC’s and beyond the duration of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("b.   <b>To Invest.</b> To invest and reinvest the LLC assets, both principal and income if accumulated, in any property or undivided interests therein, wherever located, including bonds, notes (secured and unsecured), stock of corporations (including stock of manager or members), real estate (or any interest therein), and interests in trusts, including common trust funds, without being limited by any statute or rule of law concerning investments of LLC’s and to hold on deposit or to deposit any funds in one or more banks in any form of account whether or not interest.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("c.   <b>To Hold Property.</b>  To retain, without liability for loss or depreciation resulting from such retention, original property, real or personal, received by him from the LLC, including but not limited to stocks and securities, for such time as to him shall seem advisable; although such property may not be of the character prescribed by law or by the terms of this instrument for the investment of other LLC assets, and although it represents a large percentage or all the LLC assets, that original property may accordingly be held as a permanent investment.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("d.   <b>To Operate Business.</b>  To operate and manage, at the sole risk of the LLC and not at the risk of the manager, any property or business received by him, as long as he deems advisable; the manager is authorized to incorporate any unincorporated business received hereunder; to accept beneficial employment with or from any business in which the LLC may be interested, whether by way of stock ownership or otherwise, and even though the interests of the LLC in the business shall constitute a majority interest therein, or the complete ownership thereof; and to receive appropriate compensation from such business for such employment.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("e.   <b>To Lease.</b>  Lease property upon any terms or conditions and for any term of years although extending beyond the period of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("f.   <b>To Develop.</b>  Develop, improve, lease, partition, abandon, subdivide, dedicate as parks, streets and alleys, and grant easements and rights with respect to any real property or improvements of this LLC, and to improve, construct, repair, alter, reconstruct, or demolish any such improvements, and to lease for any periods, all or any part of the LLC assets, upon such terms and conditions and for such considerations as he deems advisable. Lease may be made for such period of time as the manager deems proper, without regard to the duration of the LLC or any statutory restriction on leasing and without the approval of any court.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("g.   <b>To Insure and Change.</b>  Insure, improve, repair, alter and partition real estate, erect or raze improvements, grant easements, subdivide, or dedicate property to public use.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("h.   <b>To Register.</b>  To cause any of the investments which may be delivered to or acquired by him to be registered in his name or in the name of his nominee; any corporation or its transfer agent may presume conclusively that such nominee is the actual owner of any investment submitted for transfer; to retain any investment received in exchange in any reorganization or recapitalization.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("i.   <b>To Acquire Stock Rights.</b> To acquire stock and securities of a corporation by the exercise of rights to acquire stock and securities issued in connection with the stock of any corporation comprising a portion of the LLC property, including but not limited to the following: vote in person or by general or limited proxy with respect to any shares of stock or other securities held by him; to consent, directly or through a committee or other agent, to the reorganization, consolidation, merger, dissolution or liquidation of any corporation in which the LLC may have any interest, or to the sale, lease, pledge or mortgage of any property by or to any such corporation; and to make any payments and to take any steps which he may deem necessary or proper to enable the LLC to obtain the benefit of such transaction.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("j.   <b>To Employ Agents.</b>  Employ agents, experts and counsel, investment or legal, even though they may be associates with, employed by, or counsel for any of the members; and to make reasonable and proper payments to such agents, experts or counsel for services rendered.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("k.   <b>To Dissolve Corporations.</b> Enter into an agreement making the LLC liable for a prorata share of the liabilities of any corporation which is being dissolved, and in which stock is held, when, in his opinion, such action is in the best interests of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("l.   <b>To Contract.</b>  Complete, extend, modify or renew any loans, notes, bonds, mortgages, contracts or any other obligations which the LLC may owe or be a party to or which may be liens or charges against any property of the LLC, although the LLC may not be liable thereon, in such manner as he may deem advisable; to pay, compromise, compound, adjust, submit to arbitration, sell or release any claims or demands of the LLC against others or of others against the LLC as he may deem advisable, including the acceptance of deeds of real property in satisfaction of bonds and mortgages, and to make any payments in connection therewith which he may deem advisable.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("m.   <b>To Borrow.</b>  To borrow money for any purpose connected with the protection, preservation or improvement of the LLC assets whenever in his judgment advisable, and as security to mortgage or pledge any real estate or personal property forming a part of the LLC assets upon such terms and conditions as he may deem advisable.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("n.   <b>To Set Up Reserves.</b>  Set up, out of the rents, profits or other income received, if any, reserves for taxes, assessments, insurance premiums, repayments of mortgage or other indebtedness, repairs, improvements, depreciation, obsolescence and general maintenance of buildings and other property, and for the equalization of payments to or for members entitled to receive income, as he shall deem advisable.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("o.   <b>To Determine Value.</b>  Determine the market value of any investment of the LLC for any purpose on the basis of such quotations or information as the manager may deem pertinent and reliable without any limitation whatsoever; to distribute in cash or in kind upon partial or final distribution.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("p.   <b>To Pay Costs.</b>  To pay all costs, charges and expenses of the LLC and pay or compromise all taxes pertaining to the administration of the LLC which may be assessed against it or against the manager on account of the LLC or the income thereof.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("q.   <b>To Purchase Insurance.</b>  To carry insurance against such risks and for such amounts and upon such terms as the manager deems necessary and for the protection of the manager or any member of the LLC, and to purchase policies of insurance on the life of any other person in whom the LLC may have an insurable interest, and to continue in effect or to terminate any life insurance policy which may be owned or held by any the LLC; and to pay (from income or principal) any premiums or other charges, and to exercise any and all rights or incidents of ownership in connection therewith.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("r.   <b>To Buy on Margin.</b> Buy, sell and hypothecate securities on margin; to buy, sell and write \"put and call\" options; and to transact all types of securities transactions with a brokerage firm that are allowed under SEC regulations.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("s.   <b>To Inform Members.</b>  Inform the members periodically as to the progress of acquisition, development, operation, and pending disposition of the LLC property and other property owned by the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("t.   <b>To Maintain Records.</b>  To maintain complete and accurate records of the business affairs of the LLC, keeping all correspondence relating to its business and the original records of all statements, bills and other instruments furnished the LLC in connection with its business for a period of six years; and to maintain all other records required to be maintained by law.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("u.   <b>To Cause Examination of Records.</b>  Cause the records and accounts of the LLC to be examined and reviewed as of the close of each fiscal year by an independent certified public accountant selected by the manager, and to cause such accountant to timely prepare and furnish to each member a copy of the statement of the financial condition of the LLC, a statement of the capital accounts of all the members, and a statement of income or loss, together with copies of the LLC tax returns in the form to be filed with the IRS and the State of $state.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("v.   <b>To Accept Gifts.</b>  Accept on behalf of the LLC any contribution, gift, bequest, or devise for the general purposes or for any special purpose of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("w.   <b>To Implement Powers Execution of Documents.</b>  In order to implement his powers, to execute and deliver all deeds, assignments, leases, sub-leases, engineering and planning contracts, management contracts, maintenance contracts and construction contracts covering or affecting LLC property; to execute and deliver all checks, drafts, orders, promissory notes, mortgages, deeds of trust, security agreements and all other instruments and documents of any kind or character relating to the affairs of the LLC.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("x.   <b>Additional Powers Given by Law.</b>  Powers enumerated above shall be construed as being in addition to any other authority given or conferred upon the manager by law.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("y.   <b>Continuation of Powers.</b> Manager may exercise all powers and authority, including any discretion, after the termination of the LLC created herein until the same is finally distributed.\n",12,array('justification'=>'full'));

       

        $pdf -> ezSetMargins(70,70,70,70);

        $pdf->ezText("13. <b><u>Term of manager(s).</u></b> Unless otherwise agreed in writing by all the members, the term of the manager shall be one fiscal year.  Upon termination of the manager's term, another manager shall be appointed by the members and shall automatically begin his term as manager for the next fiscal year.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("14. <b><u>Compensation of manager(s).</u></b>  Members may authorize the payment of a prescribed salary to the manager.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("15. <b><u>LLC Transactions in Securities and Oil and Gas Interests.</u></b>  Nothing in this agreement intends to prohibit any member from buying or selling securities for his own account, including securities of the same issues as those held by the LLC, and the members may buy securities from or sell securities to the LLC.  Nothing in this agreement prohibits any member from dealing in any property, including oil, gas and other minerals, for such member's own account nor from dealing with and between the LLC with respect to any properties including oil, gas or other minerals.\n",12,array('justification'=>'full'));

       

        $pdf->ezText("1. <b><u>Written Reports.</u></b>  Within 90 days after the close of each fiscal year, the manager shall furnish to each member, upon request, a written report setting forth as of the end of such year:\n",12,array('justification'=>'full'));

        $pdf -> ezSetMargins(70,70,100,70);

        $pdf->ezText("a.   The assets and liabilities of the LLC;\n",12,array('justification'=>'full'));

        $pdf->ezText("b.   The net profit or net loss of the LLC;\n",12,array('justification'=>'full'));

        $pdf->ezText("c.   Such member's closing account and the manner of its calculation;\n",12,array('justification'=>'full'));

        $pdf->ezText("d.   Any other information necessary to enable such member to prepare his individual income tax returns; and\n",12,array('justification'=>'full'));

        $pdf->ezText("e.   Such member's LLC percentage for the succeeding fiscal year or interim period.\n",12,array('justification'=>'full'));

        $pdf -> ezSetMargins(70,70,70,70);

       

        $pdf->ezText("17. <b><u>Special Power of Attorney to Member.</u></b>  Each member (for himself, his successors and assigns) hereby constitutes and appoints each of the members (and each person who may be subsequently substituted as a member) his true and lawful attorney-in-fact, and empowers and authorizes each such attorney-in-fact, in the name, place and stead of each such member, to execute and acknowledge any and all amendments to Exhibit A attached hereto from time to time as necessary to reflect any change in the LLC of the membership or in the address or percentage of ownership of any member which occurs in accordance with the terms of this agreement; and to make, execute, sign, swear to, acknowledge and file in such place or places as may be required by law any documents, certificates, or instruments which by law may be required or permitted to be made and filed in connection with the formation or continuation of the LLC and the admission of the members in accordance with the terms of this agreement; and to include therein all information required by law and any such additional information as he may deem appropriate, hereby ratifying and confirming all actions which may be taken by said attorney-in-fact pursuant to this paragraph.  The power of the attorney-in-fact hereby granted is a special power of attorney, coupled with an interest, and is irrevocable; may be exercised by any such attorney-in-fact for executing any agreement, certificate, instrument or document with the single signature of any such attorney-in-fact acting as attorney for all the members; and shall survive the delivery of an assignment by a member of the whole or a portion of his interest in the LLC, except that, where the purchaser, transferee or assignee of such interest is admitted as a substituted member, the power of attorney shall survive the delivery of such assignment for the sole purpose of enabling such attorney-in-fact to execute, acknowledge and file any such agreement, certificate, instrument or document necessary to effect such substitution.  Such attorney-in-fact shall not, however, have any right, power or authority to amend or modify the provisions of this agreement when acting in such capacity except as permitted by law.",12,array('justification'=>'full'));
    }

$pdf->ezNewPage();

$pdf->ezText("<b>Part 5\nAdditional Members\n</b>\n",14,array('justification'=>'centre'));

$pdf->ezText("1. <b><u>Admission of New Members.</b></u>  With the written unanimous consent of the members, new members may be admitted into the LLC upon the payment of such capital contribution and upon such terms as the members unanimously decide.  In the event that new members are admitted into the LLC, the share of each new member in the profits and losses shall be in such proportion as may be agreed upon between all the members and the new member.\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,100,70);

$pdf->ezText("a. <b>Signature on Operating Agreement.</b>  For purposes of admitting new members to the LLC and setting forth the capital contributions and shares of profits and losses of new members, signing a copy of this Operating Agreement, with amended Schedule A and Schedule B, shall be all that is required to show the consent, capital contributions and shares of profits and losses as provided in this paragraph.  By signing this Operating Agreement, new members shall be conclusively presumed to have read this agreement and to have become parties to this agreement as of the date of signing, and to be bound by all the terms and conditions of this agreement.\n",12,array('justification'=>'full'));

$pdf->ezText("b. <b>Initial Investment.</b>  Each additional member admitted to the LLC shall make an initial investment in the LLC of a sum based upon the then current market value of the shares of each of the individual members, as determined by initial agreement between the existing members and prospective members, and shall pay any costs that may be incurred to effectuate such additional members' admission to the LLC\n",12,array('justification'=>'full'));



$pdf->ezText("c. <b>Right to Assign LLC Interest.</b>  A member shall have the right to assign all or part of his interest in the LLC.  Such an assignment shall be effective only to give the assignee the right to receive the distributions to which his assignor would otherwise be entitled.\n",12,array('justification'=>'full'));



$pdf -> ezSetMargins(70,70,70,70);



$pdf->ezText("2. <b><u>Marital Community. </u></b>  If the interest of any member is held as community property, then that member's spouse does hereby ratify and confirm this agreement, consenting that his or her respective community interest in and to the LLC assets shall be embraced by the terms and provisions of this agreement.  The spouse specifically agrees to execute and deliver such documents as shall be necessary and proper to effectuate and implement the intentions and purposes of this agreement.  Furthermore, such spouse, in furtherance of this agreement, shall not make testamentary disposition of his or her community interest in and to the LLC assets in any manner which will contravene the terms and provisions of this agreement, and the personal representative of such spouse shall be obligated to perform this agreement.\n",12,array('justification'=>'full'));



$pdf->ezText("3. <b><u>Member's LLC Interest in Case of Divorce.</u></b>      In the event of a divorce, the LLC interest owned by a married couple (or their revocable trust) shall go to the spouse named herein as a member with equivalent assets going to the other spouse.  If there are not enough other assets to equal the LLC interest, the other spouse will have a lien on the LLC interest, but not an equity interest that would permit such person to attend LLC meetings.\n",12,array('justification'=>'full'));





$pdf->ezText("4. <b><u>Priorities as Between Members.</b></u>    Member has any right to priority over other members as to contributions or as to compensation by way of income.\n",12,array('justification'=>'full'));



$pdf->ezText("5. <b><u>Compliance with Law. </u></b>    Members shall sign and swear to any document required by the $state Limited Liability Company Act and shall cause such document to be filed as required by that Act, and shall take any other action necessary to comply with the requirements of that Act, as provided in the applicable provisions of the $state Limited Liability Company Act.\n",12,array('justification'=>'full'));



$pdf->ezText("6. <b><u>Assignments by Operation of Law. </u></b>    Any interest is transferred, assigned, or conveyed to an immediate member of a member's family or to an estate of a deceased member, the members shall be notified.\n",12,array('justification'=>'full'));



$pdf->ezNewPage();

$pdf->ezText("<b>Part \nDissolution of LLC</b>\n",14,array('justification'=>'centre'));

$pdf->ezText("1. <b><u>Dissolution. </u></b>  Upon entry of a decree of judicial dissolution or upon any event of withdrawal of a member or if all the members consent in writing that the LLC be dissolved, the LLC shall be dissolved and its affairs shall be wound up.\n",12,array('justification'=>'full'));



$pdf->ezText("2. <b><u>Events of Withdrawal of a Member. </u></b>      Except as approved by the specific written consent of all members at the time, a person ceases to be a member of the LLC upon the happening of any of the following events:\n",12,array('justification'=>'full'));



$pdf -> ezSetMargins(70,70,100,70);

$pdf->ezText("a. <b>Withdrawal.</b>  The member withdraws from the LLC after giving all the other members 90 day prior written notice of such action;\n",12,array('justification'=>'full'));

$pdf->ezText("b. <b>Assignment.</b>  The member ceases to be a member of the LLC by assigning all his LLC interest;\n",12,array('justification'=>'full'));



$pdf->ezText("c. <b>Removal.</b>  The member is removed as a member in accordance with this LLC agreement;\n",12,array('justification'=>'full'));



$pdf->ezText("d. <b>Bankruptcy or Reorganization.</b>  The member:\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,120,70);

$pdf->ezText("(1) Assignment to Creditors: makes an assignment for the benefit of creditors;\n",12,array('justification'=>'full'));

$pdf->ezText("(2) Petition for Bankruptcy: files a voluntary petition in bankruptcy;\n",12,array('justification'=>'full'));

$pdf->ezText("(3) Adjudicated Bankrupt: is adjudicated a bankrupt or insolvent;\n",12,array('justification'=>'full'));

$pdf->ezText("(4) Petition for Reorganization: files a petition or answer seeking for himself any reorganization, arrangement, composition, readjustment, liquidation, dissolution or similar relief under any statute, law or regulation;\n",12,array('justification'=>'full'));

$pdf->ezText("(5) Admission of Allegations of Bankruptcy: files an answer or other pleading admitting or failing to contest the material allegations of a petition filed against him in any proceeding of this nature; or\n",12,array('justification'=>'full'));

$pdf->ezText("(6) Appointment of Receiver: seeks, consents to or acquiesces in the appointment of a trustee, receiver or liquidator of the member or of all or any substantial part of his properties.\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,100,70);

$pdf->ezText("e. <b>Commencement of Proceeding for Reorganization. </b>  One hundred twenty days after the commencement of any proceeding against the member seeking reorganization, arrangement, composition, readjustment, liquidation, dissolution or similar relief under any statute, law or regulation, if the proceeding has not been dismissed, or if within 90 days after the appointment without his consent or acquiescence of a trustee, receiver or liquidator of the member or of all or any substantial part of his properties, the appointment is not vacated or stayed or within 90 days after the expiration of any such stay, the appointment is not vacated;\n",12,array('justification'=>'full'));



$pdf->ezText("f. <b>For Natural Person. </b>  In the case of a member who is a natural person,\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,120,70);

$pdf->ezText("(1) Death: his death; or\n",12,array('justification'=>'full'));

$pdf->ezText("(2) Incompetence: the entry by a court of competent jurisdiction adjudicating him incompetent to manage his person or his estate;\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,100,70);



$pdf->ezText("g. <b>Termination of Trust.</b>  In the case of a member who is acting as a member by virtue of being a trustee of a trust, the termination of the trust but not merely the substitution of a new trustee;\n",12,array('justification'=>'full'));



$pdf->ezText("h. <b>Winding Up of Partnership.</b>  In the case of a member that is a partnership or separate LLC, the dissolution, and commencement of winding up of the partnership or separate LLC;\n",12,array('justification'=>'full'));



$pdf->ezText("i. <b>Dissolution of Corporation.</b>  In the case of a member that is a corporation, the filing of a certificate of dissolution, or its equivalent, for the corporation or the revocation of its charter; or\n",12,array('justification'=>'full'));



$pdf->ezText("j. <b>Distribution of Estate.</b>  In the case of an estate, the distribution by a fiduciary of the estates entire interest in the LLC\n",12,array('justification'=>'full'));



$pdf->ezText("k. <b>According to Statute.</b>  Any other Event of Withdrawal as provided in $state law of the $state Limited Liability Company Act.\n",12,array('justification'=>'full'));



$pdf -> ezSetMargins(70,70,70,70);



$pdf->ezText("3. <b><u>Continuation of Business. </u></b>  Within 90 days after an event of withdrawal of a member, all members may agree in writing to continue the business of the LLC and to the appointment of one or more additional members if necessary or desired.\n",12,array('justification'=>'full'));



$pdf->ezText("4. <b><u>Execution of Documents. </u></b>  In the event of the continuation of the LLC by the remaining members, the former member or his legal representative, as appropriate, shall execute all documents necessary for the continuation of the LLC\n",12,array('justification'=>'full'));



$pdf->ezText("5. <b><u>Name of LLC. </u></b>  If the surviving members continue the business under paragraph .2 (Continuation of Business) they shall have the right to use the LLC’s name without any further payments other than those payable to a withdrawing member under this agreement.\n",12,array('justification'=>'full'));



$pdf->ezText("6. <b><u>Order of Distribution Upon Dissolution. </u></b>    Upon dissolution for any reason, the order of distribution shall be as follows:\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,100,70);



$pdf->ezText("a. <b>Expenses.</b>  Expenses of liquidation.\n",12,array('justification'=>'full'));

$pdf->ezText("b. <b>Creditors.</b>  Creditors, including members who are creditors, shall be paid and satisfied to the extent permitted by law for liabilities of the LLC other than liabilities to members for distributions under $state law.\n",12,array('justification'=>'full'));

$pdf->ezText("c. <b>Distributions under $state law.</b>  Each member or former member shall receive any distributions under $state law to which he is entitled.\n",12,array('justification'=>'full'));



$pdf->ezText("d. <b>Member's Contribution.</b>  Each member shall receive a return of his contribution.\n",12,array('justification'=>'full'));

$pdf->ezText("e. <b>Interest in LLC.</b>  Each member shall receive the fair value of his interest in the LLC.\n",12,array('justification'=>'full'));

$pdf->ezText("f. <b>Specific Property.</b>  In making the distributions pursuant to sub-paragraphs \"d\" and \"e\" of this provision, personal property (including cash) shall be distributed ratably to all the members. As to real property, the members shall seek agreement among all the members as to a disposition thereof and, failing to obtain such approval, shall:\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,120,70);

$pdf->ezText("(1) <u>Co-member Deed. </u>  Cause a co-member deed to be drawn in which each member shall be named grantee of an undivided tenancy in common interest equal to his percentage interest in the LLC; and\n",12,array('justification'=>'full'));

$pdf->ezText("(2) <u>Time of Distribution. </u>  Such distribution in dissolution shall be effected as promptly as good business procedure permits.\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,70,70);

$pdf->ezText("7. <b><u>Preferential Rights - Procedure. </u></b>      Should a member desire to withdraw from the LLC by assigning his interest to a third party, he shall have the right to do so provided: (i) all members consent to substitute the purchaser as a member; (ii) the LLC or the members are given a right of first refusal; and (iii) if the LLC elects not to exercise the right of first refusal, then the members shall be given preferential rights to purchase their ratable shares. The consent by the members to the member withdrawing and assigning to a third person shall not be unreasonably withheld, and if there be a dispute as to reasonableness, such dispute shall be determined under the procedures and provisions of the LawForms Integrity Agreement (Uniform Agreement Establishing Procedures for Settling Disputes) entered into by the parties prior to or concurrently with the adoption of this agreement.  Prior to any sale or assignment by a withdrawing member, that withdrawing member shall set forth in writing and deliver to the other members the details of the contemplated sale or assignment.\n",12,array('justification'=>'full'));

$pdf -> ezSetMargins(70,70,100,70);



$pdf->ezText("a. <b>Preferential Rights - Purchase by LLC.</b>  The LLC shall have 90 days from the date it receives the written details of the contemplated sale or assignment within which to have the LLC, consisting of the remaining members, purchase the interest offered for sale or assignment for like terms.\n",12,array('justification'=>'full'));

$pdf->ezText("b. <b>Preferential Rights - Purchase by Other Members.</b>  If the members cannot agree for the LLC to purchase that interest, then the other members shall have 30 days to give notice to the withdrawing member of their intent to purchase for like terms their pro-rata share of that LLC interest plus their pro-rata share of any remaining member who elects not to purchase his preferential share. The analogous common law relative to preferential rights of shareholders to purchase the shares of another shareholder shall be incorporated by reference in protecting the rights of the remaining members to exercise their rights to ratably purchase the share of the withdrawing member.\n",12,array('justification'=>'full'));

$pdf->ezText("c. <b>Preferential Rights - Assignment to Third Party.</b>  If the remaining members fail to purchase the LLC interest offered for sale, then the selling member may complete the sale or assignment to the third party according to the terms of the sale or assignment, provided he has complied with the provisions of this paragraph.\n",12,array('justification'=>'full'));



$pdf -> ezSetMargins(70,70,70,70);

$pdf->ezText("8. <b><u>Voluntary Withdrawal and Sale to Third Parties. </u></b>      A member may sell or assign his interest to a third party provided he complies with the preferential rights defined in this agreement.\n",12,array('justification'=>'full'));



$pdf->ezText("9. <b><u>Assignment to Issue of Member. </u></b>  Furthermore, a member may assign to his issue, (including legally adopted issue), either by way of gift or for consideration, without complying with the preferential rights provision of this agreement, and such assignee shall become a member to the extent of the interest which was assigned, provided all members consent in writing to the assignment. This consent shall not be unreasonably withheld, and if there is a dispute as to reasonableness, it shall be settled under the procedures and provisions of the LawForms Integrity Agreement (Uniform Agreement Establishing Procedures for Settling Disputes) entered into by the parties prior to or concurrently with the adoption of this agreement.\n",12,array('justification'=>'full'));



$pdf->ezText("10. <b><u>Voluntary Withdrawal and Sale to Remaining Members - Purchase of Interest. </u></b>         If a member elects to withdraw from the LLC and cannot comply with the preferential rights provision allowing the withdrawing member to sell or assign his interest to a third party, then the withdrawing member shall have the right to have his interest purchased by the LLC or the remaining members. The member desiring to withdraw from the LLC under this provision shall give 90 days notice of his intent to have the other members purchase his share by submitting such notice in writing, mailed to all members, with the 90 days running from the date of the postmark on the notice. If the remaining members cannot agree within that 90 day period to have the LLC purchase the withdrawing member's interest according to the terms of this agreement, then the remaining members shall be given 30 days to give notice of their intent to exercise their preferential rights to ratably purchase the interest of the withdrawing member according to the terms of this agreement. If the remaining members individually do not elect within that 30-day period, according to the terms of this agreement, to purchase all the interest of the withdrawing member, then the LLC shall within ten days thereafter give notice of its intent to purchase any portion of the withdrawing member's interest which had not been committed for purchase by the individual members. Should the LLC not purchase that remaining interest, then the LLC shall be dissolved in accordance with this agreement.\n",12,array('justification'=>'full'));



$pdf->ezText("11. <b><u>Voluntary Withdrawal and Sale to Remaining Members - Value of Interest. </u></b>        The LLC or members electing to purchase the withdrawing member's interest shall purchase that interest for its fair market value as determined in this agreement according to the terms of purchase prescribed for the LLC or members in this agreement (paragraphs .18 [Fair Market Value Determination Upon Other Withdrawals] and .19 [Terms of Purchase by LLC or Members]). The price which the remaining members or LLC shall pay for the interest of the withdrawing member shall be discounted 25% from the fair market value. For every year that a member remains in the LLC, the above-stated discount charged against the withdrawing member shall be reduced by one percent. For instance, if the discount is 25% and the member has had an interest in the LLC for three full years, then the discount would be reduced to 22%. The purpose of this provision is to encourage the members to remain in the LLC as long as possible before withdrawing from participation in the LLC This provision will not prevent the members among themselves agreeing to a fair price to pay for the withdrawing member's interest.\n",12,array('justification'=>'full'));



$pdf->ezText("12. <b><u>Involuntary Withdrawal Resulting from Creditors' Proceedings, Levies or Bankruptcy. </u></b>  If the interest of a member is substantially affected by creditors' proceedings, levies on that member's interest, or bankruptcy or other insolvency proceedings of that member, then, in such event, this paragraph shall be applicable. In that event, the remaining members shall have the right to immediately purchase the share of the member affected by the creditors' proceedings for the fair market value determined under this agreement (paragraph .18 [Fair Market Value Determination Upon Other Withdrawals]), in accordance with the terms of purchase by the LLC or members (paragraph .19 [Terms of Purchase by LLC or Members]). However, the purchase price shall be discounted from fair market value 50% in order to compensate the LLC for the additional risks and problems resulting from the creditors' proceedings. The procedure for effectuating the purchase shall be in accordance with the preferential rights provision of this agreement.\n",12,array('justification'=>'full'));



$pdf->ezText("13. <b><u>Involuntary Withdrawal Upon Death. </u></b>     If a member withdraws from the LLC by reason of death, then this provision shall be applicable. The LLC or the members shall, under the preferential rights provision of this agreement, purchase the interest of the deceased member from his personal representative at the fair market value determined upon death, disability or retirement according to this agreement (paragraph .15 [Fair Market Value Determination Upon Death]) and upon the terms of purchase by the LLC or the members established by this agreement (paragraph .19 [Terms of Purchase by LLC or Members]).  The price which the remaining members or the LLC shall pay for the interest of the deceased member shall be discounted 10% from the fair market value established.\n",12,array('justification'=>'full'));



$pdf->ezText("14. <b><u>Voluntary or Involuntary Withdrawal in Event of Disharmony. </u></b>       If the relationship among the members of the LLC becomes negative, strained, and unworkable to the point that the operations of the LLC are in jeopardy, any member may voluntarily withdraw or may be asked to withdraw by the other members.  In such case, the value of the withdrawing member's interest in the LLC and the timing of the withdrawal shall be processed according to the terms and provisions of the LawForms Integrity Agreement as provided for elsewhere in this agreement.  In negotiating and processing the withdrawal, the parties shall strive to minimize stress and strain on the operations of the LLC and to maximize fairness to the withdrawing member and the other members.\n",12,array('justification'=>'full'));





$pdf->ezText("15. <b><u>Fair Market Value Determination Upon Death. </u></b>   The fair market value shall be established for the interest of a member who withdraws by reason of death according to this provision. In the event of death, the determination under this paragraph shall be made at the date of death.\n",12,array('justification'=>'full'));



$pdf -> ezSetMargins(70,70,100,70);



$pdf->ezText("a. <b>Value Determined At Annual Meeting.</b>  The members, at an annual meeting, shall determine the value of the interests of all members in the LLC When this valuation is set by the members at an annual meeting or at any meeting under this provision; a certificate of value shall be used for this purpose and signed by each member as evidence of the value. This value, if set at the annual meeting, shall control the value should a member die, become disabled or retire thereafter.\n",12,array('justification'=>'full'));



$pdf->ezText("b. <b>Value if not Determined in Annual Meeting.</b>  Should the members fail to agree on the value of the interests of the members in the LLC at an annual meeting of the members in accordance with this provision, then the purchase price shall be the total sum of the following:\n",12,array('justification'=>'full'));



$pdf -> ezSetMargins(70,70,120,70);

$pdf->ezText("(1) <u>According to Schedule of Interests. </u>  The most recent agreed value as set forth in the latest schedule reflecting the values of the LLC interests, or if none has been set in the first instance, then the agreed values established for the original contributions in Exhibit B of this LLC agreement, plus\n",12,array('justification'=>'full'));

$pdf->ezText("(2) <u>Profits or Losses. </u>  The pro-rata amounts of the net profits or losses of the LLC from the date the valuations were fixed, up through the end of the month in which the death, disability, or retirement occurred.\n",12,array('justification'=>'full'));



$pdf -> ezSetMargins(70,70,100,70);

$pdf->ezText("c. <b>Value if not Determined Within 18 Months of Death. </b>  At the option of the withdrawing member or a representative of the deceased member, if a re-determination of value has not been made and endorsed on an exhibit reflecting the values of the interests of the members in the LLC within 18 months preceding the death, then the persons so electing this option shall determine the fair market value in accordance with the LawForms Integrity Agreement (Uniform Agreement Establishing Procedures for Settling Disputes) entered into by the parties prior to or concurrently with the adoption of this agreement.\n",12,array('justification'=>'full'));



$pdf -> ezSetMargins(70,70,70,70);

$pdf->ezText("16. <b><u>Values Determined According to Usual Accounting Practices. </u></b>     The determination of net earnings or losses, in accordance with this provision, shall be made in accordance with the usual accounting practice theretofore used in determining the net earnings or losses of the LLC and shall include a reasonable allowance for federal and state income taxes for the year in which death has occurred.\n",12,array('justification'=>'full'));



$pdf->ezText("17. <b><u>Members' Interest Determined by Schedule in Exhibit. </u></b>    The execution by all members of the exhibit reflecting the values of the LLC interests shall reflect the agreement between and among the members that the purchase price determined by that schedule is the full value of each member's interest in the LLC, and that purchase price shall in no manner be altered, and that all assets, both tangible and intangible, if any, as well as all liabilities, including mortgages, liens or other encumbrances of any kind whatsoever, if any, of or upon the assets of the LLC have been considered in determining the value.\n",12,array('justification'=>'full'));



$pdf->ezText("18. <b><u>Fair Market Value Determination Upon Other Withdrawals. </u></b>      Withdrawals other than by death shall necessitate the finding of a fair market value of the interest of the withdrawing member, and such value shall be determined according to this provision. The valuation date shall be the end of the month next following the first notice of intent to withdraw. If no notice has been given by the member, the valuation date shall be the date the LLC received notice from any source that an event of withdrawal under paragraph .2 (Events of Withdrawal of a Member) has occurred.  The fair market value shall be determined according to the LawForms Integrity Agreement (Uniform Agreement Establishing Procedures for Settling Disputes) entered into by the parties prior to or concurrently with the adoption of this agreement, subject to the discounts from fair market value as determined by the applicable provisions of this agreement.\n",12,array('justification'=>'full'));



$pdf->ezText("19. <b><u>Terms of Purchase by LLC or Members. </u></b>      This provision establishes a fair method for the members or the LLC to purchase the interest of a withdrawing member. After the price has been determined according to the applicable provisions of this agreement, then the terms are fixed by this paragraph. The withdrawing member shall be paid by the LLC or the remaining members to the extent that they have purchased the interest of the withdrawing member by paying the withdrawing member 10% of the purchase price in cash within 30 days from the date that notice is given to the withdrawing member that the LLC or member has elected to purchase his interest. The balance of the purchase price shall be paid in consecutive monthly payments over a ten-year period, beginning one month from the date that the down payment was made. The balance of the purchase price shall be evidenced by a negotiable promissory note executed by the LLC or the members to the order of the withdrawing member or his personal representative, with interest on that balance at 1% above prime at the bank where the LLC has the majority of its accounts on the date of the down payment. The note shall be in the usual form and shall provide for the acceleration of the due date on default in the payment of the note or interest thereon after ten days written notice of that default, and shall give the makers the option of pre-payment in whole or in part at any time without penalty. At the request of the withdrawing member, the LLC or the members shall give to the withdrawing member a lien on the interest of the LLC thus purchased plus a lien on specific LLC property valued at the amount of the unpaid balance owing to secure the balance of the purchase price until it is paid in full.  This lien shall include an assignment of all profits from the LLC payable from that interest in the LLC and can be enforced only if the promissory note is ever in default.\n",12,array('justification'=>'full'));



$pdf->ezText("20. <b><u>Integration with Buy and Sell Agreements. </u></b>    It is contemplated that the parties may execute formal buy and sell agreements, and to the extent that such buy and sell agreements are applicable, they shall supersede any corresponding provisions of this agreement relating to the purchase of a withdrawing member's share in the LLC Furthermore, if life insurance or disability insurance is purchased to fund the payment for the share of any withdrawing member, then, in such event, the amount of that insurance shall become the down payment on the purchase of the interest of the withdrawing member, and the balance due after applying that insurance shall be memorialized in a promissory note prescribed by the terms of purchase by the LLC or the member (provision .19 [Terms of Purchase by LLC or Members]).\n",12,array('justification'=>'full'));



$pdf->ezText("21. <b><u>Adjustment to Basis of LLC Interest. </u></b>     Should the successor in interest to a deceased member request the LLC to elect to adjust the basis of the LLC assets under §§743 and 754 of the Internal Revenue Code of 198 and any amendments thereto, if such sections apply, the LLC shall do so.\n",12,array('justification'=>'full'));



$pdf->ezText("22. <b><u>Limitation on Purchase by LLC or Member. </u></b>     Other provisions notwithstanding, no member's interest shall be redeemed or sold without the concurrence of the member. The member shall decide, in his sole discretion, whether such redemption or sale is in the best interest of the LLC and withdrawing member and such authorization shall not be unreasonably withheld.\n",12,array('justification'=>'full'));



$pdf->ezText("23. <b><u>Allocation to Withdrawing Member. </u></b>     If at any time this LLC would be deemed an investment company under Internal Revenue Code §721(b), then the withdrawing member shall receive as a distribution in kind the specific property the withdrawing member contributed in the formation of the LLC under Internal Revenue Code §721.\n",12,array('justification'=>'full'));



$pdf->ezNewPage();

$pdf->ezText("<b>Part 7\nMiscellaneous</b>\n",14,array('justification'=>'centre'));

$pdf->ezText("1. <b><u>Modification. </u></b>  No amendment, modification, or alteration of this agreement shall be made except upon the written agreement or authorization of all the members.  This agreement shall be binding upon and inure to the benefit of each of the members and their respective widows, heirs, executors, administrators and assigns.\n",12,array('justification'=>'full'));



$pdf->ezText("2. <b><u>Situs. </u></b>  Agreement shall be construed and governed in accordance with the laws of the State of  $state.\n",12,array('justification'=>'full'));



$pdf->ezText("3. <b><u>Whole Agreement. </u></b>  The terms of this agreement constitute the entire agreement between the parties, and the parties represent that there are no collateral agreements or agreements not otherwise provided for within the terms of this agreement.\n",12,array('justification'=>'full'));



$pdf->ezText("4. <b><u>Partial Invalidity. </u></b>  Any provision of this agreement is held to be invalid or unenforceable, all the remaining provisions shall nevertheless continue in full force and effect.\n",12,array('justification'=>'full'));



$pdf->ezText("5. <b><u>Settlement of Discomforts and Disputes. </u></b>     Any dispute or discomfort arising out of or in connection with this agreement, including disputes between or among the members, shall be settled by the negotiation, mediation and arbitration provisions of that certain Law Forms Integrity Agreement (Uniform Agreement Establishing Procedures for Settling Disputes) entered into by the parties prior to or concurrently with the adoption of this agreement.\n",12,array('justification'=>'full'));



$pdf->ezText(". <b><u>Attorneys' Fees and Costs. </u></b>  In any dispute arising between or among the members, the losing party shall pay to the prevailing party reasonable costs and expenses incurred in connection with any mediation, arbitration or suit as determined by the mediator, court or arbitrator, including attorneys' fees, court costs and the value of time lost by the prevailing party or any agent or employee of the prevailing party in participating in any arbitration or litigation in connection therewith.\n",12,array('justification'=>'full'));



$pdf->ezText("7. <b><u>Notices. </u></b> All notices shall be in writing and shall be sent to the addresses specified in Exhibit A to this agreement or at such other address as a member may in writing designate.  Any change of address shall be mailed to a member by certified mail, return receipt requested.\n",12,array('justification'=>'full'));



$pdf->ezText("8. <b><u>Interpretation. </u></b>    Should there be any question in the interpretation of any provision of this agreement, then an interpretation given in writing by the attorney who drew this agreement, whose name appears on the caption page, shall be binding.  If that attorney is no longer practicing law at the time such interpretation is required, then a written interpretation by a senior member of the last law firm with which the named attorney practiced shall be binding.   If that law firm has ceased to be in existence at the time of such interpretation, then written interpretation shall be obtained by arbitration.\n",12,array('justification'=>'full'));



$pdf->ezText("9. <b><u>Parliamentary Law. </u></b>  Not in conflict with these articles, Robert's Rules of Order, Revised, most recent edition, shall establish the rule of procedure at all annual and special meetings, and the provisions of that publication are incorporated by reference herein as the ruling law for this LLC\n",12,array('justification'=>'full'));



$pdf->ezText("10. <b><u>Fairness Adjustment. </u></b>  The parties intend a fair, balanced, and \"win-win\" arrangement between and among themselves.  If this intent is hereafter frustrated by unusual changes in circumstances which occurred outside the control of the parties or from circumstances none of the parties reckoned with at the time of entering into this contract, and which create an undue and unreasonable hardship on any of the parties or gross inequities between the parties, then the parties desire, through fair and reasonable modifications, a rebalancing of the relationship.\n",12,array('justification'=>'full'));



$pdf->ezNewPage();

$pdf->ezText("<b>Part 8\nExecution and Certification</b>\n",14,array('justification'=>'centre'));

$pdf->ezText("1. <b><u>Effective Date. </u></b>  This legal instrument has been executed by the parties intending that it be effective on the effective date set forth on the caption page.  The parties recognize that they effectuated a meeting of the minds among themselves on that effective date and intended that this instrument take effect on that date even though, because of the exigencies of the modern world, the mechanics of drafting, the convenience of the parties, and the economy of travel, it may have been necessary to actually sign the document at a later time.\n",12,array('justification'=>'full'));



$pdf->ezText("2. <b><u>Effective Place of Execution. </u></b>  The parties intend that the place of execution be that county and state that is set forth in the caption of this instrument.  The effective place of execution is the place that the parties intend this instrument to have been executed incorporating all laws, for purposes of conflicts of laws, which apply to that effective place of execution.   The parties recognize that, due to the exigencies of the modern world, the mechanics of drafting, the convenience of the parties, and the economy of travel, this instrument may be executed by one or all the parties at some other geographic location and possibly at multiple places.  However, in spite of this, they intend that it be deemed executed at the effective place of execution.\n",12,array('justification'=>'full'));



$pdf->ezText("3. <b><u>Interlineations and Initials. </u></b>    The parties recognize that because of the exigencies of the modern world, the mechanics of drafting, the convenience of the parties, and the economy of costs, they may have in their own handwriting made minor changes in this instrument.  These minor changes have been initialed by all the parties, if any changes have been made, fore and aft of the change on all originals to prevent any extension or alteration of that change by any of the parties or others.  Unless otherwise indicated by the placement of a date beside the change, these changes were intended by the parties to have occurred as of the effective date of this instrument.  Any interlineated changes made by the parties after the effective date of this instrument shall be initialed by all parties dated and have the date itself initialed fore and aft by all parties to this instrument.\n",12,array('justification'=>'full'));



$pdf->ezText("4. <b><u>Execution. </u></b>  All parties described in the caption as parties shall sign below and at least one of the parties shall initial all pages of all original copies of this instrument.  Furthermore, all documents such as schedules, exhibits and like documents which are expressly incorporated herein shall be initialed by the parties and either exchanged or attached to the originals which are given to any party described on the caption page of this instrument.  It is the intent of the parties that all pages be initialed on all originals that are exchanged in order that no substituted pages or misunderstanding shall ever become possible to create problems in satisfying the intended objectives of this instrument.\n",12,array('justification'=>'full'));



$pdf->ezText("5. <b><u>Acknowledgment. </u></b>  Notary Publics who have acknowledged the signatures of the various parties as designated in the acknowledgments hereof certify that this instrument was acknowledged by the signing party before the notary on the date of the notarization.  If the instrument was subscribed by any of the parties in a representative capacity, then the notary ascertained that the signing party signed for the principal named and in the capacity in which that party indicated he signed.\n",12,array('justification'=>'full'));

$pdf->ezNewPage();

$pdf->ezText("6. <b><u>Incorporation Without Signatures. </u></b>  Members incorporate by reference and adopt without separate signatures the Schedule of Members and Contributions to Capital and the Statement of Amounts of Cash, Property or Services Contributed by each Member, which are attached and which bear the same effective date as this LLC agreement.\n",12,array('justification'=>'full'));



$pdf->ezText("IN WITNESS WHEREOF, the parties execute this document intending the LLC be effective on this date: ______ Day of ____________  20_____. \n",12,array('justification'=>'full'));

$pdf->ezText("\nMEMBERS\n\n\n",12,array('justification'=>'full'));



if ($member2=="")

{

   $pdf->ezText("___________________________",12,array('justification'=>'left'));

   $pdf->ezText("$member1\n\n",12,array('justification'=>'left'));

}

else

{

   $strlength= 88;// - strlen($grantor1);

   $namewithspace = str_pad($member1,($strlength - strlen($member1)));

   $pdf->ezText("___________________________                                 ___________________________",12,array('justification'=>'left'));

   $pdf->ezText("$namewithspace $member2\n\n",12,array('justification'=>'left'));

}

 

if (!$member3=="" && $member4=="")

{

   $pdf->ezText("___________________________",12,array('justification'=>'left'));

   $pdf->ezText("$member3",12,array('justification'=>'left'));

}



if (!$member3=="" && !$member4=="")

{

   $strlength= 88;// - strlen($grantor1);

   $namewithspace = str_pad($member3,($strlength - strlen($member3)));

   $pdf->ezText("___________________________                                 ___________________________",12,array('justification'=>'left'));

   $pdf->ezText("$namewithspace $member4",12,array('justification'=>'left'));

}





$pdf->ezNewPage();

$pdf->ezText("OPERATING AGREEMENT OF LIMITED LIABILITY COMPANY\n\nEXHIBIT A\nSchedule of Members and Contributions to Capital\n\n",12,array('justification'=>'centre'));



$pdf->ezText("Name of LLC :   $llcname\n\n",12,array('justification'=>'left'));

$pdf->ezText("Date :   ____ day of ___________,  20____.\n\n",12,array('justification'=>'left'));



$table = array(

        array('column1'=>"$allmember",'column2'=>"$alltcc",'column3'=>"$allper"));



$pdf->ezTable($table,array('column1'=>'<b>Name of Member</b>','column2'=>'<b>Total Capital Contribution</b>','column3'=>'<b>Percentage of Ownership/Profit</b>'),''

,array('rowGap'=>0,'fontSize'=>12,'showHeadings'=>1,'shaded'=>0,'width'=>400,'showLines'=>1,'cols'=>array('column1'=>array('width'=>200),'column2'=>array('width'=>100, 'justification'=>'centre'),'column3'=>array('width'=>100, 'justification'=>'centre'))));





$pdf->ezText("\n\n      The above LLC interests are reflected on the books of the LLC as of the above date.  Any changes in ownership of LLC interests from the above will be indicated on amendments to this Exhibit A and signed by the parties to this agreement.",12,array('justification'=>'full'));



$pdf->ezNewPage();

$pdf->ezText("OPERATING AGREEMENT OF LIMITED LIABILITY COMPANY\n\nEXHIBIT B\nStatement of Amounts of Cash, Property\nor Services Contributed by Each Member\n\n",12,array('justification'=>'centre'));



$pdf->ezText("Name of LLC :   $llcname\n\n",12,array('justification'=>'left'));

$pdf->ezText("Date :   ____ day of ___________,  20____\n\n",12,array('justification'=>'left'));





$table7 = array(

        array('column1'=>"$allmember",'column2'=>"$allcspc",'column3'=>"$allfmv"));



$pdf->ezTable($table7,array('column1'=>'<b>Name of Member</b>','column2'=>'<b>Cash Services or Property Contributed</b>','column3'=>'<b>Fair Market Value (FMV)</b>'),''

,array('rowGap'=>0,'fontSize'=>12,'showHeadings'=>1,'shaded'=>0,'width'=>400,'showLines'=>1,'cols'=>array('column1'=>array('width'=>150),'column2'=>array('width'=>150, 'justification'=>'centre'),'column3'=>array('width'=>100, 'justification'=>'centre'))));





$pdf->setEncryption('','',array('print'));



//

$pdfcode = $pdf->ezOutput();



//$dir = './files';
$dir = "./".$file_folder;



if (!file_exists($dir)){

mkdir ($dir,0777);

}

$my_file = 'Operational-Agreement-Limited-Liability-Company-'.time().'.pdf';
$my_file = str_replace(" ","-",$my_file);
$fname = $dir.'/'.$my_file;

$fp = fopen($fname,'w');

fwrite($fp,$pdfcode);

fclose($fp);
                  


// now redirect to PayPal page and the PDF is ready
        $doc='LLC-01';
        $prm_finishlink = "res_llc.php";
        include 'notify_promo.php';





// NOW PDF IS READY SO JUST STORE THE LINK IN TO THE DATABASE        
           

//            include 'emailfunc.php';
//            include 'pdfredir.php';
//            include 'delold.php';       

   
}
else

{

    echo "Please enter appropriate data..";

}



?>