A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

Untitled - mcpaste

Untitled

Von DeineMudda, 8 Jahre vorher, geschrieben in Plain Text, aufgerufen 1'394 mal.
URL https://mcpaste.de/view/2f0ddffc Einbetten
Paste herunterladen oder Rohtext anzeigen
  1. #!/bin/bash
  2. donationNumber=0;
  3. currentAge=18;
  4. comingOfAge=$(date -d "06/15/2016" +%s);
  5. endDate=$(date -d "06/15/2068" +%s);
  6. currentDate=$comingOfAge;
  7. maxDonationAge=70;
  8. totalAmountOfMoney=0;
  9. defaultMoneyIncrease=15;
  10. anniversaries=" 10 20 25 50 75 100 ";
  11.  
  12.  
  13. echo -e "Donation No.\tDate of Donation\tAge\tEuro received\tTotal amount";
  14.  
  15. moneyToAdd=0;
  16. while [[ $currentDate -lt $endDate ]];
  17. do
  18.     donationNumber=$(($donationNumber + 1));
  19.    
  20.     echo -en "${donationNumber}\t\t";
  21.     echo -en "$(date -d "@${currentDate}" +%d.%m.%Y)\t\t";
  22.     echo -en "${currentAge}\t";
  23.    
  24.     [[ "$anniversaries" =~ " ${donationNumber} " ]] && moneyToAdd="$donationNumber" || moneyToAdd="$defaultMoneyIncrease";
  25.     totalAmountOfMoney=$(($totalAmountOfMoney + $moneyToAdd));
  26.    
  27.     echo -en "${moneyToAdd}\t\t${totalAmountOfMoney}\n";
  28.    
  29.     currentDate=$(($currentDate + (3600 * 24 * 7 * 8)));
  30.     currentAge=$((18 + (`date -d "@$currentDate" +%Y` - `date -d "@$comingOfAge" +%Y`)));
  31. done

Antwort auf "Untitled"

Hier kannst Du auf den Paste von oben antworten

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876