Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
Navigation

Infuse our CMS
for your online presence.

Discover the best way to make your personal or commercial websites with one of the most robust development environment. We've got everything that you'll ever need for your web building experience.

Download
Latest Stable Releases
PHPFusion CMS Unified Platform

A fully integrated suite of content management system

We bring together a suite of everything that is required to build application that may continously tear down, rebuild, modify and expand on features that becomes essential to the modern internet use.
We scale our technologies consistently and through time to deliver a software that everyone can feel convenient, reliable and practical to use.

Infusion

News

News Infusion provides the basic system for posting important announcements on website.

Infusion

Blog

Blog Infusion is a basic blogging system for posting blog content on website.

Infusion

Forum

Forum Infusion is a bulletin board system for engaging user communities.

Infusion

FAQ

FAQ Infusion is a Q&A Knowledgebase system for posting answers on website.

Infusion

Downloads

Download Infusion is a file hosting download system on website.

Infusion

Articles

Article Infusion is a document system for posting articles on a website.

Infusion

Shoutbox

Shoutbox Infusion is a chat posting system for posting message on a website.

PHPFusion is obsessed over developer experience

Our mission is to give developers the tools they need and provide building blocks to create a fast, universal, and compatible experience across their work. Documentation guidelines, active community and a forum will provide a way to share work and get help from other users.

PHPFusion 9
    $user_id = 1;

    $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_id=:uid LIMIT 1", [":uid"=>(int)$user_id]);

    if (dbrows($result)) {

    $data = dbarray($result);

    }
    $tab["title"] = ["Home", "Profile", "Messages", "Settings"];
    $tab["id"] = ["home", "profile", "messages", "settings"];

    $tab_active = tab_active($tab, 0);

    echo
    opentab($tab, $tab_active, "my-tabs")
    .opentabbody($tab["title"][0], $tab["id"][0], $tab_active);
    ."..."
    .closetabbody()
    .opentabbody($tab["title"][1], $tab["id"][1], $tab_active)
    ."..."
    .closetabbody()
    closetab();
    echo
    openform("form_name", "POST", FORM_REQUEST, ["id"=>"custom_form"])
    .form_text("text", "Text Field", "")
    .form_text("number", "Number Field", "", ["type"=>"number"])
    .form_text("email", "Email", "", ["type"=>"email"])
    .form_button("save_button", "Save", "save_button")
    .closeform();
    if (check_post("save_button")) {

    $array["text"] = sanitizer("text", "", "");
    $array["number"] = sanitizer("number", "", "");
    $array["email"] = sanitizer("email", "", "");

    if (fusion_safe()) {

    dbquery_insert(DB_CONTACT, $array, "save");

    }
    }
    echo
    opencollapse("group")
    .opencollapsebody("Group 1", "group1", "group")
    ."..."
    .closecollapsebody()
    .opencollapsebody("Group 2", "group2", "group")
    ."..."
    .closecollapsebody()
    .opencollapsebody("Group 3", "group3", "group")
    ."..."
    .closecollapsebody()
    .closecollapse();
    echo openmodal("id", "Modal Title")
    ."

One fine body…

" .modalfooter( form_button("save_changes", "Save Changes", "save_changes", ["class" => "btn-primary"]), TRUE ) .closemodal();
    $navbar_config = [
    "show_header"=>TRUE,
    "custom_header"=>"Brand",
    "searchbar" => TRUE,
    "callback_data" => [
    0 => [
    "link_1" => [
    "link_id" => "link_1",
    "link_name" => "Link 1"
    ],
    "link_2" => [
    "link_id" => "link_2",
    "link_name" => "Link 2"
    ],
    ],
    "link_2" => [
    "action_1" => [
    "link_id" => "action_1",
    "link_name" => "Action"
    ],
    "action_2" => [
    "link_id" => "action_2",
    "link_name" => "Another action"
    ],
    "action_3" => [
    "link_id" => "action_3",
    "link_name" => "Something else here"
    ],
    "action_4" => [
    "link_id" => "action_4",
    "link_name" => "---"
    ],
    "action_5" => [
    "link_id" => "action_5",
    "link_name" => "Separated link"
    ],
    "action_6" => [
    "link_id" => "action_6",
    "link_name" => "---"
    ],
    "action_7" => [
    "link_id" => "action_7",
    "link_name" => "One more separated link"
    ]
    ]
    ],
    "additional_data" => [
    0 => [
    "link_3" => [
    "link_id" => "link_3",
    "link_name" => "Link 3"
    ]
    ],
    "link_3" => [
    "action_a1" => [
    "link_id" => "action_a1",
    "link_name" => "Action"
    ],
    "action_a2" => [
    "link_id" => "action_a2",
    "link_name" => "Another action"
    ],
    "action_a3" => [
    "link_id" => "action_a3",
    "link_name" => "Something else here"
    ],
    "action_a4" => [
    "link_id" => "action_a4",
    "link_name" => "---"
    ],
    "action_a5" => [
    "link_id" => "action_a5",
    "link_name" => "Separated link"
    ],
    "action_a6" => [
    "link_id" => "action_a6",
    "link_name" => "---"
    ],
    "action_a7" => [
    "link_id" => "action_a7",
    "link_name" => "One more separated link"
    ]
    ]
    ]
    ];

    echo showsublinks("default", $navbar_config);
Legacy / Conventional
    $user_id = 1;

    $result = mysql_query("SELECT * FROM ".DB_USERS." WHERE user_id='%s' LIMIT 1", mysql_real_escape_string($user_id));

    if (mysql_num_rows($result)) {

    $data = mysql_fetch_assoc($result);

    }
    echo '<div><!-- Nav tabs --><ul id="my-tabs" class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
    <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
    <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
  </ul><!-- Tab panes --><div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="home">
        ...
    </div>
    <div role="tabpanel" class="tab-pane" id="profile">
        ...
    </div>
    <div role="tabpanel" class="tab-pane" id="messages">
        ...
    </div>
    <div role="tabpanel" class="tab-pane" id="settings">
        ...
    </div>
  </div>
</div>
';
    echo '
<form name="form_name" id="custom_form" method="POST" action="'.FORM_REQUEST.'">
    <div class="form-group">
        <label for="text">Text Field</label>
        <input type="text" name="text" id="text" class="form-control" aria-describedby="textField">
    </div>
    <div class="form-group">
        <label for="number">Number Field</label>
        <input type="number" name="number" id="number" class="form-control" id="number" aria-describedby="numberField">
    </div>
    <div class="form-group">
        <label for="email">Email</label>
        <input type="email" id="email" name="email" class="form-control" aria-describedby="emailField">
    </div>
    <button name="save_button" id="save_button" value="Save" class="btn btn-default">
</form>
';

    if (isset($_POST['save_button'])) {

    $a = stripslashes($_POST['text']);
    $b = (is_numeric($_POST['number']) ? $_POST['number'] : '');
    $c = stripslashes($_POST['email']);

    if (!preg_check("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,}+)$/i", $c)) {
    $value = "";
    $error = 1;
    }

    if (!isset($error)) {

    mysql_query("INSERT INTO ".DB_CONTACT."
    ('text','number','email')
    VALUES ('%s', '%s', '%s')",
    mysql_real_escape_string($a),
    mysql_real_escape_string($b),
    mysql_real_escape_string($c)
    );

    } else {
    echo 'Error on Email';
    }
    }
    echo '
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingOne">
      <h4 class="panel-title">
        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
          Group 1
        </a>
      </h4>
    </div>
    <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
      <div class="panel-body">
        ...
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingTwo">
      <h4 class="panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
          Group 2
        </a>
      </h4>
    </div>
  <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
    <div class="panel-body">
        ...
    </div>
  </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingThree">
        <h4 class="panel-title">
            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
                Group 3
            </a>
        </h4>
    </div>
    <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
        <div class="panel-body">
            ...
        </div>
    </div>
</div>
</div>
'
    echo '
<div class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">Modal title</h4>
            </div>
            <div class="modal-body">
                <p>One fine body&hellip;</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
    echo '
<nav id="default" class="navbar navbar-default">
    <div class="container"><!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#default-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Brand</a>
        </div><!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="default-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">Link 1<span class="sr-only">(current)</span></a></li>
                <li><a href="#">Link 2</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">One more separated link</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search">
                </div>
                <button type="submit" class="btn btn-default">Submit</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">Link 3</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
What can PHPFusion do?

PHPFusion in full action demo