Jump to content

bridge.php


Recommended Posts

Hi guys,

 

I was reading a really good ebook about hosting and it mentioned customising the cPanel branding so there are simple links to order new domains, check invoices, or link to other services.

 

After a little digging I found this company http://www.whmcsgold.com and the product that he used in all his code the "WHMCS cPanel Bridge" which makes extensive reference of the file 'bridge.php'. It was offered for free on his site, but you think i can get hold of anyone there?

 

Now I know this ebook was copyright, but I'm sure its ok to share the contents of MY /usr/local/cpanel/base/frontend/x3/branding/cpboxes.html file right :P? So below here is MY file so you can understand what functions the bridge file did.

 

(Of cource mods please remove the code if its offensive)

 

<!-- STARTING DOMAIN CENTER HERE -->
<table cellpadding="1" cellspacing="1" bgcolor="#EEEEEE" width="100%">
<tr><td>
<table width="100%" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td align="center">
<strong>Register New Domain</strong>
<form action="[b]bridge.php[/b]?file=cart.php&a=add&domain=register" method="post" name="regdomain">
<input type="text" name="sld" value="newdomain">
<select name="tld">
<option value=".com">.com</option>
</select><br />
<input type="submit" value="Check Availability" />
</form>
</td>
<td align="center">
<strong>Transfer Existing Domain</strong>
<form action="[b]bridge.php[/b]?file=cart.php&a=add&domain=transfer" method="post" name="trasdomain">
<input type="text" name="sld" value="existingdomain">
<select name="tld">
<option value=".com">.com</option>
</select><br />
<input type="submit" value="Check Availability" />
</form>
</td>
</tr>
</table>
</td></tr></table>
<!-- STARTING SECOND GROUP OF ICONS HERE -->
<div id="myGroup2" class="itembox">
<div id="myGroup2-bdrop" class="celldrop"> </div>
<div class="cellbox">
<h6
id="myGroup2-header"
title="Double click to collapse/expand. Click to drag."
style="clear:none;" ondblclick="rollbox(this);" class="ie-hover">
<div id="myGroup2-expander" class="box-collapse-control"
style="float:right" onClick="rollbox(this);"> </div>
Account Addons/Upgrades
</h6>
<div id="myGroup2-body">
<div searchtext="order_ssl" class="item">
<form method="post" action="[b]bridge.php[/b]?file=cart.php&a=add" name="form_name_sslcert">
<input type="hidden" name="aid" value="2">
<input type="image" src="https://whmcsgold.com/cpanelicons/file_lock.png" alt="Order SSL For This Account"><br />
<a href="#" onclick="document.form_name_sslcert.submit()">Order SSL Certificate</a>
</form>
</div>
<div searchtext="order_hosting_account" class="item">
<a class="itemlink" href="[b]bridge.php[/b]?file=cart.php&a=add&pid=4"><img src="https://whmcsgold.com/cpanelicons/local_network_add.png" border="0"></a><br />
<a id="item_tutorials" href="[b]bridge.php[/b]?file=cart.php&a=add&pid=4">Add Hosting Account</a>
</div>
<div class="clearit"> </div>
</div>
</div>
<div id="myGroup2-adrop" class="celldrop"> </div>
</div>
<div id="myGroup3" class="itembox">
<div id="myGroup3-bdrop" class="celldrop"> </div>
<div class="cellbox">
<h6
id="myGroup3-header"
title="Double click to collapse/expand. Click to drag."
style="clear:none;" ondblclick="rollbox(this);" class="ie-hover">
<div id="myGroup3-expander" class="box-collapse-control"
style="float:right" onClick="rollbox(this);"> </div>
My Support Center
</h6>
<div id="myGroup3-body">
<div searchtext="tickets" class="item">
<a class="itemlink" href="bridge.php?file=supporttickets.php"><img src="https://whmcsgold.com/cpanelicons/notice_board.png" border="0"></a><br />
<a id="item_tutorials" href="bridge.php?file=supporttickets.php">My Tickets</a>
</div>
<div searchtext="support_tickets" class="item">
<a class="itemlink" href="[b]bridge.php[/b]?file=submitticket.php&step=2&deptid=1"><img src="https://whmcsgold.com/cpanelicons/file_add.png" border="0"></a><br />
<a id="item_tutorials" href="[b]bridge.php[/b]?file=submitticket.php&step=2&deptid=1">Submit Support Ticket</a>
</div>
<div searchtext="billing_tickets" class="item">
<a class="itemlink" href="[b]bridge.php[/b]?file=submitticket.php&step=2&deptid=2"><img src="https://whmcsgold.com/cpanelicons/file_add.png" border="0"></a><br />
<a id="item_tutorials" href="[b]bridge.php[/b]?file=submitticket.php&step=2&deptid=2">Submit Billing Ticket</a>
</div>
<div class="clearit"> </div>
</div>
</div>
<div id="myGroup3-adrop" class="celldrop"> </div>
</div>
<div id="myGroup4" class="itembox">
<div id="myGroup4-bdrop" class="celldrop"> </div>
<div class="cellbox">
<h6
id="myGroup4-header"
title="Double click to collapse/expand. Click to drag."
style="clear:none;" ondblclick="rollbox(this);" class="ie-hover">
<div id="myGroup4-expander" class="box-collapse-control"
style="float:right" onClick="rollbox(this);"> </div>
My Billing Profile
</h6>
<div id="myGroup4-body">
<div searchtext="tickets" class="item">
<a class="itemlink" href="[b]bridge.php[/b]?file=clientarea.php&action=invoices"><img src="https://whmcsgold.com/cpanelicons/info.png" border="0"></a><br />
<a id="item_tutorials" href="[b]bridge.php[/b]?file=clientarea.php&action=invoices">My Invoices</a>
</div>
<div searchtext="support_tickets" class="item">
<a class="itemlink" href="bridge.php?file=clientarea.php&action=details"><img src="https://whmcsgold.com/cpanelicons/profile.png" border="0"></a><br />
<a id="item_tutorials" href="[b]bridge.php[/b]?file=clientarea.php&action=details">Update Contact</a>
</div>
<div searchtext="billing_tickets" class="item">
<a class="itemlink" href="[b]bridge.php[/b]?file=clientarea.php&action=creditcard"><img src="https://whmcsgold.com/cpanelicons/calculator.png" border="0"></a><br />
<a id="item_tutorials" href="bridge.php?file=clientarea.php&action=creditcard">Update Billing Profile</a>
</div>
<div class="clearit"> </div>
</div>
</div>
<div id="myGroup4-adrop" class="celldrop"> </div>
</div>

 

Now I'm fairly sure you can see there's a lot of reference to this file "bridge.php?file=clientarea.php&action=creditcard" but I cant seem to get hold of it. The site WHMCSGold seems to have gone out of business, even though they were giving this file away for free.

 

So I came here thinking some one here might have a copy. Or is it possible to code it? It looks like this 'bridge' file just passed varibles to the whmcs installation.

Edited by Real Webspace
highlighted stuff
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated