This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="help"> | |
<h5>{% trans 'Hosting settings' %}</h5> | |
</div> | |
<form method="post" action="admin/product/update_config" class="mainForm api-form save" data-api-msg="Hosting settings updated"> | |
<fieldset> | |
<div class="rowElem"> | |
<label>{% trans 'Server' %}:</label> | |
<div class="formRight noborder"> | |
{{ mf.selectbox('config[server_id]', admin.servicehosting_server_get_pairs, product.config.server_id, 0, 'Select server') }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* BoxBilling | |
* | |
* LICENSE | |
* | |
* This source file is subject to the license that is bundled | |
* with this package in the file LICENSE.txt | |
* It is also available through the world-wide-web at this URL: | |
* http://www.boxbilling.com/LICENSE.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* BoxBilling | |
* | |
* LICENSE | |
* | |
* This source file is subject to the license that is bundled | |
* with this package in the file LICENSE.txt | |
* It is also available through the world-wide-web at this URL: | |
* http://www.boxbilling.com/LICENSE.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Example product plugin usage | |
*/ | |
class Hook_Custom | |
{ | |
public static function onAfterOrderActivate(Box_Event $event) | |
{ | |
$order = $event->getSubject(); | |
$plugin = $order->Product->plugin; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Migration script from BoxBilling 0.0.41 to 2.2.8 (or later) | |
* | |
* Instructions: | |
* | |
* 1. Make your old database backup | |
* 2. Make fresh install of BoxBilling 2.2.8 (or later) | |
* 3. Put this file in same directory as bb-config.php file | |
* 4. Define BB_DB_OLD_* parameters below. Script needs to login to your old |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* BoxBilling | |
* | |
* LICENSE | |
* | |
* This source file is subject to the license that is bundled | |
* with this package in the file LICENSE.txt | |
* It is also available through the world-wide-web at this URL: | |
* http://www.boxbilling.com/LICENSE.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Hook_CheckFreeMail | |
{ | |
public static function onBeforeClientSignUp(Box_Event $event) | |
{ | |
$data = $event->getSubject(); | |
list($t, $domain) = explode('@', $data['email']); | |
if(!isset($data['email']) || empty($data['email'])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box"> | |
<div class="block pricing"> | |
<div class="total"> | |
{% if pricing.type == 'free' %} | |
{% if product.allow_quantity_select %} | |
<label>{% trans 'Quantity:' %} | |
<input type="text" name="quantity" value="1" style="width:30px;"/> | |
</label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install new locale | |
# | |
# $ sudo sh install_locale.sh fr_FR | |
cd /usr/share/locales | |
./install-language-pack $1 | |
dpkg-reconfigure locales | |
locale -a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function onAfterAdminOrderActivate(Box_Event $event) | |
{ | |
$api = $event->getApiAdmin(); | |
$params = $event->getParameters(); | |
$order_id = $params['id']; | |
$order = $api->order_get(array('id'=>$order_id)); | |
$service = $api->order_service(array('id'=>$order_id)); | |
$product = $api->product_get(array('id'=>$order['product_id'])); | |
// do your stuff here |