Skip to content

Instantly share code, notes, and snippets.

View Gr33nLight's full-sized avatar
🤯
code code code

Bruno Gr33nLight

🤯
code code code
View GitHub Profile
<?php
/* Database configuration
db_host_name: PostgreSQL Database Hostname
db_port: PostgreSQL Port
db_user_name: PostgreSQL Username
db_password: PostgreSQL Password
db_name: PostgreSQL Database Name
*/
$dbconfig['db_host_name'] = '[SERVER_IP]';
if(empty($toMailInfo)){
if($recordModel->getEntityType($recordId) == 'Users'){
$parentIds .= $recordIds[0].'@-1|';
}else{
$parentIds .= $recordIds[0].'@1|';
}
}
<?xml version="1.0"?>
<module>
<!-- Module name -->
<name>Module</name>
<!-- This is the name that will appar in the Vtiger GUI -->
<label>Module</label>
<!-- Module will be listed under Tools -->
<parent>Tools</parent>
<!-- Module version -->
<version>1.5</version>
<?php
/*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
************************************************************************************/
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".TipCalc">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"