for data1, data2 in zip(results, results[1:]):
assert data1 <= data1
if data1 == data1:
assert data1 >= data1
A nice loop for making sure that data1 is equal to data1!
@RequestMapping(value = "user/getOnlineApplicationsList", produces = "XML/Text; charset=utf-8", method = RequestMethod.POST)
public @ResponseBody String getOnlineApplicationsList(HttpSession session, HttpServletRequest request,
@RequestParam("status") int status, @RequestParam("fullname") String fullname,
@RequestParam("privateNumber") String privateNumber, @RequestParam("phoneNumber") String phoneNumber,
@RequestParam("applicationIdFrom") String applicationIdFrom,
@RequestParam("applicationIdTo") String applicationIdTo,
// @RequestParam("dateFrom") String timeFrom,
// @RequestParam("dateTo") String timeTo,
@RequestParam("order") int order, @RequestParam("companyId") int companyId) {
try {
TimeFunctions tf = new TimeFunctions();
StringBuilder ret = new StringBuilder();
List<OnlineApplication> onlineAppList = new ArrayList<OnlineApplication>();
List<OnlineApplicationForConsumerLoan> onlineAppListCL = new ArrayList<OnlineApplicationForConsumerLoan>();
if (companyId == 3) {
onlineAppList = onlineAppService.getOnlineApps(fullname, privateNumber,
tf.dateStrToMilliseconds("11-11-1111"), tf.dateStrToMilliseconds("11-11-9999"), 0, 250, order,
status, phoneNumber, applicationIdFrom, applicationIdTo);
}
else if (companyId == 2) {
onlineAppListCL = onlineAppService.getConsumerOnlineApps(fullname, privateNumber,
tf.dateStrToMilliseconds("11-11-1111"), tf.dateStrToMilliseconds("11-11-9999"), 0, 250, order,
status, phoneNumber, applicationIdFrom, applicationIdTo);
}
else {
onlineAppList = onlineAppService.getOnlineApps(fullname, privateNumber,
tf.dateStrToMilliseconds("11-11-1111"), tf.dateStrToMilliseconds("11-11-9999"), 0, 250, order,
status, phoneNumber, applicationIdFrom, applicationIdTo);
onlineAppListCL = onlineAppService.getConsumerOnlineApps(fullname, privateNumber,
tf.dateStrToMilliseconds("11-11-1111"), tf.dateStrToMilliseconds("11-11-9999"), 0, 250, order,
status, phoneNumber, applicationIdFrom, applicationIdTo);
}
for (OnlineApplication onlineApp : onlineAppList) {
if (onlineApp.getStatus() == 0) {
ret.append("<br>"
+ "<table style=\"width:100%; height: 180px; border: 1px solid black; text-align:center; border-collapse: collapse; spacing: 5px;\">"
+ "<tr style=\"background-color:#85C1E9; height: 20px; font-weight: bold;\">"
+ "<td>ID</td>" + "<td>თანხა</td>" + "<td>პერიოდი</td>" + "<td>სახელი გვარი</td>"
+ "<td>დაბ.თარიღი</td>" + "<td>პირადი ნომ.</td>" + "<td>მობილური</td>"
+ "<td>სამუშაო სფერო</td>" + "<td>კომპანია</td>" + "<td>პოზიცია</td>" + "<td>ხელფასი</td>"
+ "<td>სტატუსი</td>" + "</tr>" + "<tr>" + "<td>" + onlineApp.getOnlineAppId() + "</td>"
+ "<td>" + Math.round(onlineApp.getAmount().doubleValue() * 100.0) / 100.0 + "</td>"
+ "<td>" + onlineApp.getPeriod() + "</td>" + "<td>" + onlineApp.getFullname() + "</td>"
+ "<td>" + onlineApp.getBirthdate() + "</td>" + "<td>" + onlineApp.getPersonalNumber()
+ "</td>" + "<td>" + onlineApp.getMobilephone() + "</td>" + "<td>"
+ onlineApp.getWorkField() + "</td>" + "<td>" + onlineApp.getCompanyName() + "</td>"
+ "<td>" + onlineApp.getPosition() + "</td>" + "<td>" + onlineApp.getSalary() + "</td>"
+ "<td>" + getNameForStatus(onlineApp.getStatus()) + "</td>" + "</tr>"
+ "<tr style=\"background-color:#85C1E9; height: 20px; font-weight: bold;\">"
+ "<td>მუშ.ხან.</td>" + "<td>დამ.შემოსავალი</td>" + "<td>თვ.გადასახდელი</td>"
+ "<td>ოჯახ.მდგომ.</td>" + "<td>შვილები</td>" + "<td>დასაქ.ოჯახ.წევრები</td>"
+ "<td>საერთო შემოსავალი</td>" + "<td>თარიღი</td>" + "<td>ინკასო</td>" +
"<td>დადასტურება</td>"+ "<td>უარყოფა</td>" + "<td>წაშლა</td>" + "</tr>" + "<tr>" + "<td>"
+ onlineApp.getWorkTime() + "</td>" + "<td>" + onlineApp.getAdditionalIncome() + "</td>"
+ "<td>" + onlineApp.getLoanFreqAmount() + "</td>" + "<td>" + onlineApp.getMaritalStatus()
+ "</td>" + "<td>" + onlineApp.getChildren() + "</td>" + "<td>"
+ onlineApp.getWorkingRelatives() + "</td>" + "<td>" + onlineApp.getTotalIncome() + "</td>"
+ "<td>" + tf.millisecondsToDateStr(onlineApp.getAdditionTime()) + "</td>"
+ "<td>"+(onlineApp.isIncaso() ? "ინკასო":"არ ადევს")+"</td>" + "<td bgcolor=\"lightgreen\" onclick=\"approveApplication(" + onlineApp.getOnlineAppId()
+ "," + onlineApp.getCompany() + ")\"><img height=\"20px\" width=\"20px\" src=\""
+ request.getContextPath() + "/resources/images/accept.png\"></td>"
+ "<td bgcolor=\"LightCoral\" onclick=\"rejectApplication(" + onlineApp.getOnlineAppId()
+ "," + onlineApp.getCompany() + ")\"><img height=\"20px\" width=\"20px\" src=\""
+ request.getContextPath() + "/resources/images/reject.png\"></td>"
+ "<td bgcolor=\"silver\" onclick=\"deleteApplication(" + onlineApp.getOnlineAppId() + ","
+ onlineApp.getCompany() + ")\"><img height=\"20px\" width=\"20px\" src=\""
+ request.getContextPath() + "/resources/images/delete.png\"></td>" + "</tr>" + ""
+ "<tr><td colspan=\"3\">" + onlineApp.getLoanPurpose() + "</td><td colspan=\"5\">" + onlineApp.getBranch() + "</td></tr></table>" + "<br>");
} else if (onlineApp.getStatus() == 1) {
ret.append("<br>"
+ "<table style=\"width:100%; height: 180px; border: 1px solid black; text-align:center; border-collapse: collapse; spacing: 5px;\">"
+ "<tr style=\"background-color:#85C1E9; height: 20px; font-weight: bold;\">"
+ "<td>ID</td>" + "<td>თანხა</td>" + "<td>პერიოდი</td>" + "<td>სახელი გვარი</td>"
+ "<td>დაბ.თარიღი</td>" + "<td>პირადი ნომ.</td>" + "<td>მობილური</td>"
+ "<td>სამუშაო სფერო</td>" + "<td>კომპანია</td>" + "<td>პოზიცია</td>" + "<td>ხელფასი</td>"
+ "<td>სტატუსი</td>" + "</tr>" + "<tr>" + "<td>" + onlineApp.getOnlineAppId() + "</td>"
+ "<td>" + Math.round(onlineApp.getAmount().doubleValue() * 100.0) / 100.0 + "</td>"
+ "<td>" + onlineApp.getPeriod() + "</td>" + "<td>" + onlineApp.getFullname() + "</td>"
+ "<td>" + onlineApp.getBirthdate() + "</td>" + "<td>" + onlineApp.getPersonalNumber()
+ "</td>" + "<td>" + onlineApp.getMobilephone() + "</td>" + "<td>"
+ onlineApp.getWorkField() + "</td>" + "<td>" + onlineApp.getCompanyName() + "</td>"
+ "<td>" + onlineApp.getPosition() + "</td>" + "<td>" + onlineApp.getSalary() + "</td>"
+ "<td>" + getNameForStatus(onlineApp.getStatus()) + "</td>" + "</tr>"
+ "<tr style=\"background-color:#85C1E9; height: 20px; font-weight: bold;\">"
+ "<td>მუშ.ხან.</td>" + "<td>დამ.შემოსავალი</td>" + "<td>თვ.გადასახდელი</td>"
+ "<td>ოჯახ.მდგომ.</td>" + "<td>შვილები</td>" + "<td>დასაქ.ოჯახ.წევრები</td>"
+ "<td>საერთო შემოსავალი</td>" + "<td>თარიღი</td>" + "<td>ინკასო</td>"
+ "<td align=\"center\">კომენტარები</td><td align=\"center\">აპლიკაციის დამატება</td><td align=\"center\">აპლიკაციის უარყოფა</td>"
+ "</tr>" + "<tr>" + "<td>" + onlineApp.getWorkTime() + "</td>" + "<td>"
+ onlineApp.getAdditionalIncome() + "</td>" + "<td>" + onlineApp.getLoanFreqAmount()
+ "</td>" + "<td>" + onlineApp.getMaritalStatus() + "</td>" + "<td>"
+ onlineApp.getChildren() + "</td>" + "<td>" + onlineApp.getWorkingRelatives() + "</td>"
+ "<td>" + onlineApp.getTotalIncome() + "</td>" + "<td>"
+ tf.millisecondsToDateStr(onlineApp.getAdditionTime()) +
"<td>"+(onlineApp.isIncaso() ? "ინკასო":"არ ადევს")+"</td>"
+ "</td><td onclick=\"triggerComments(" + onlineApp.getOnlineAppId() + ","
+ onlineApp.getCompany() + ")\"><img height=\"20px\" width=\"20px\" src=\""
+ request.getContextPath() + "/resources/images/comment.png\"></td>"
+ "<td bgcolor=\"lightgreen\" onclick=\"acceptApplication(" + onlineApp.getOnlineAppId()
+ "," + onlineApp.getCompany() + ")\"><img height=\"20px\" width=\"20px\" src=\""
+ request.getContextPath() + "/resources/images/accept.png\"></td>"
+ "<td bgcolor=\"LightCoral\" onclick=\"rejectApplication(" + onlineApp.getOnlineAppId()
+ "," + onlineApp.getCompany() + ")\"><img height=\"20px\" width=\"20px\" src=\""
+ request.getContextPath() + "/resources/images/reject.png\"></td>" + "</tr>"
+ "<tr><td colspan=\"3\">" + onlineApp.getLoanPurpose() + "</td><td colspan=\"5\">" + onlineApp.getBranch() + "</td></tr></table>" + "</table>"
+ "<br>");
} else {
ret.append("<br>"
+ "<table style=\"width:100%; height: 180px; border: 1px solid black; text-align:center; border-collapse: collapse; spacing: 5px;\">"
+ "<tr style=\"background-color:#85C1E9; height: 20px; font-weight: bold;\">"
+ "<td>ID</td>" + "<td>თანხა</td>" + "<td>პერიოდი</td>" + "<td>სახელი გვარი</td>"
+ "<td>დაბ.თარიღი</td>" + "<td>პირადი ნომ.</td>" + "<td>მობილური</td>"
+ "<td>სამუშაო სფერო</td>" + "<td>კომპანია</td>" + "<td>პოზიცია</td>" + "<td>ხელფასი</td>"
+ "<td>სტატუსი</td>" + "</tr>" + "<tr>" + "<td>" + onlineApp.getOnlineAppId() + "</td>"
+ "<td>" + Math.round(onlineApp.getAmount().doubleValue() * 100.0) / 100.0 + "</td>"
+ "<td>" + onlineApp.getPeriod() + "</td>" + "<td>" + onlineApp.getFullname() + "</td>"
+ "<td>" + onlineApp.getBirthdate() + "</td>" + "<td>" + onlineApp.getPersonalNumber()
+ "</td>" + "<td>" + onlineApp.getMobilephone() + "</td>" + "<td>"
+ onlineApp.getWorkField() + "</td>" + "<td>" + onlineApp.getCompanyName() + "</td>"
+ "<td>" + onlineApp.getPosition() + "</td>" + "<td>" + onlineApp.getSalary() + "</td>"
+ "<td>" + getNameForStatus(onlineApp.getStatus()) + "</td>" + "</tr>"
+ "<tr style=\"background-color:#85C1E9; height: 20px; font-weight: bold;\">"
+ "<td>მუშ.ხან.</td>" + "<td>დამ.შემოსავალი</td>" + "<td>თვ.გადასახდელი</td>"
+ "<td>ოჯახ.მდგომ.</td>" + "<td>შვილები</td>" + "<td>დასაქ.ოჯახ.წევრები</td>"
+ "<td>საერთო შემოსავალი</td>" + "<td>თარიღი</td>" + "<td>ინკასო</td>"
+ "<td colspan=\"3\" align=\"center\">კომენტარები</td>" + "</tr>" + "<tr>" + "<td>"
+ onlineApp.getWorkTime() + "</td>" + "<td>" + onlineApp.getAdditionalIncome() + "</td>"
+ "<td>" + onlineApp.getLoanFreqAmount() + "</td>" + "<td>" + onlineApp.getMaritalStatus()
+ "</td>" + "<td>" + onlineApp.getChildren() + "</td>" + "<td>"
+ onlineApp.getWorkingRelatives() + "</td>" + "<td>" + onlineApp.getTotalIncome() + "</td>"
+ "<td>" + tf.millisecondsToDateStr(onlineApp.getAdditionTime()) + "</td>" +
"<td>"+(onlineApp.isIncaso() ? "ინკასო":"არ ადევს")+"</td>"
+ "<td colspan=\"3\" onclick=\"triggerComments(" + onlineApp.getOnlineAppId() + ","
+ onlineApp.getCompany() + ")\"><img height=\"20px\" width=\"20px\" src=\""
+ request.getContextPath() + "/resources/images/comment.png\"></td>"
+ ((onlineApp.getStatus() != 2) ? "<td colspan=\"3\" onclick=\"changeStatus("
+ onlineApp.getOnlineAppId() + "," + onlineApp.getCompany() + "," + 0
+ ")\"><img height=\"20px\" width=\"20px\" src=\"" + request.getContextPath()
+ "/resources/images/resume.png\" title=\"აპლიკაციაში დაბრუნება\"></td>" : "")
+ "</tr>" + "<tr><td colspan=\"3\">" + onlineApp.getLoanPurpose() + "</td><td colspan=\"5\">" + onlineApp.getBranch() + "</td></tr></table>"
+ "</table>" + "<br>");
}
}
for (OnlineApplicationForConsumerLoan onlineApp : onlineAppListCL) {
// TODO: change below
int consCompId = 2;
if (onlineApp.getStatus() == 0) {
ret.append("<br>"
+ "<table style=\"width:100%; height: 180px; border: 1px solid black; text-align:center; border-collapse: collapse; spacing: 5px;\">"
+ "<tr style=\"background-color:Coral; height: 20px; font-weight: bold;\">" + "<td>ID</td>"
+ "<td>თანხა</td>" + "<td>პერიოდი</td>" + "<td>სახელი გვარი</td>" + "<td>დაბ.თარიღი</td>"
+ "<td>პირადი ნომ.</td>" + "<td>მობილური</td>" + "<td>სამუშაო სფერო</td>"
+ "<td>კომპანია</td>" + "<td>პოზიცია</td>" + "<td>ხელფასი</td>" + "<td>სტატუსი</td>"
+ "</tr>" + "<tr>" + "<td>" + onlineApp.getId() + "</td>" + "<td>"
+ Math.round(onlineApp.getLoanAmount() * 100.0) / 100.0 + "</td>" + "<td>"
+ onlineApp.getLoanPeriod() + "</td>" + "<td>" + onlineApp.getName() + "</td>" + "<td>"
+ onlineApp.getBirthDate() + "</td>" + "<td>" + onlineApp.getPrivateNumber() + "</td>"
+ "<td>" + onlineApp.getMobileNumber() + "</td>" + "<td>" + onlineApp.getWorkSphere()
+ "</td>" + "<td>" + onlineApp.getCompanyName() + "</td>" + "<td>"
+ onlineApp.getWorkPosition() + "</td>" + "<td>" + onlineApp.getSalary() + "</td>" + "<td>"
+ getNameForStatus(onlineApp.getStatus()) + "</td>" + "</tr>"
+ "<tr style=\"background-color:Coral; height: 20px; font-weight: bold;\">"
+ "<td>მუშ.ხან.</td>" + "<td>დამ.შემოსავალი</td>" + "<td>თვ.გადასახდელი</td>"
+ "<td>ოჯახ.მდგომ.</td>" + "<td>შვილები</td>" + "<td>დასაქ.ოჯახ.წევრები</td>"
+ "<td>საერთო შემოსავალი</td>" + "<td>თარიღი</td>" + "<td>ინკასო</td>" + "<td>დადასტურება</td>"
+ "<td>უარყოფა</td>" + "<td>წაშლა</td>" + "</tr>" + "<tr>" + "<td>"
+ onlineApp.getWorkPeriod() + "</td>" + "<td>" + onlineApp.getOtherIncome() + "</td>"
+ "<td>" + onlineApp.getAmountToPayOnOtherLoans() + "</td>" + "<td>"
+ onlineApp.getMaritalStatus() + "</td>" + "<td>" + onlineApp.getNumberOfChildren()
+ "</td>" + "<td>" + onlineApp.getEmployedFamilyMembers() + "</td>" + "<td>"
+ onlineApp.getTotalFamilyIncome() + "</td>" + "<td>"
+ tf.millisecondsToDateStr(onlineApp.getAdditionTime()) + "</td>" +
"<td>"+(onlineApp.isIncaso() ? "ინკასო":"არ ადევს")+"</td>"
+ "<td bgcolor=\"lightgreen\" onclick=\"approveApplication(" + onlineApp.getId() + ","
+ consCompId + ")\"><img height=\"20px\" width=\"20px\" src=\"" + request.getContextPath()
+ "/resources/images/accept.png\"></td>"
+ "<td bgcolor=\"LightCoral\" onclick=\"rejectApplication(" + onlineApp.getId() + ","
+ consCompId + ")\"><img height=\"20px\" width=\"20px\" src=\"" + request.getContextPath()
+ "/resources/images/reject.png\"></td>"
+ "<td bgcolor=\"silver\" onclick=\"deleteApplication(" + onlineApp.getId() + ","
+ consCompId + ")\"><img height=\"20px\" width=\"20px\" src=\"" + request.getContextPath()
+ "/resources/images/delete.png\"></td>" + "</tr>"
+ "<tr><td colspan=\"3\">"+onlineApp.getLoanPurpose()+"</td><td colspan=\"5\" align=\"left\"> " + onlineApp.getBranchOfficeName() + "</td></tr>"
+ "</table>" + "<br>");
} else if (onlineApp.getStatus() == 1) {
ret.append("<br>"
+ "<table style=\"width:100%; height: 180px; border: 1px solid black; text-align:center; border-collapse: collapse; spacing: 5px;\">"
+ "<tr style=\"background-color:Coral; height: 20px; font-weight: bold;\">" + "<td>ID</td>"
+ "<td>თანხა</td>" + "<td>პერიოდი</td>" + "<td>სახელი გვარი</td>" + "<td>დაბ.თარიღი</td>"
+ "<td>პირადი ნომ.</td>" + "<td>მობილური</td>" + "<td>სამუშაო სფერო</td>"
+ "<td>კომპანია</td>" + "<td>პოზიცია</td>" + "<td>ხელფასი</td>" + "<td>სტატუსი</td>"
+ "</tr>" + "<tr>" + "<td>" + onlineApp.getId() + "</td>" + "<td>"
+ Math.round(onlineApp.getLoanAmount() * 100.0) / 100.0 + "</td>" + "<td>"
+ onlineApp.getLoanPeriod() + "</td>" + "<td>" + onlineApp.getName() + "</td>" + "<td>"
+ onlineApp.getBirthDate() + "</td>" + "<td>" + onlineApp.getPrivateNumber() + "</td>"
+ "<td>" + onlineApp.getMobileNumber() + "</td>" + "<td>" + onlineApp.getWorkSphere()
+ "</td>" + "<td>" + onlineApp.getCompanyName() + "</td>" + "<td>"
+ onlineApp.getWorkPosition() + "</td>" + "<td>" + onlineApp.getSalary() + "</td>" + "<td>"
+ getNameForStatus(onlineApp.getStatus()) + "</td>" + "</tr>"
+ "<tr style=\"background-color:Coral; height: 20px; font-weight: bold;\">"
+ "<td>მუშ.ხან.</td>" + "<td>დამ.შემოსავალი</td>" + "<td>თვ.გადასახდელი</td>"
+ "<td>ოჯახ.მდგომ.</td>" + "<td>შვილები</td>" + "<td>დასაქ.ოჯახ.წევრები</td>"
+ "<td>საერთო შემოსავალი</td>" + "<td>თარიღი</td>" + "<td>ინკასო</td>"
+ "<td align=\"center\">კომენტარები</td><td align=\"center\">აპლიკაციის დამატება</td><td align=\"center\">აპლიკაციის უარყოფა</td>"
+ "</tr>" + "<tr>" + "<td>" + onlineApp.getWorkPeriod() + "</td>" + "<td>"
+ onlineApp.getOtherIncome() + "</td>" + "<td>" + onlineApp.getAmountToPayOnOtherLoans()
+ "</td>" + "<td>" + onlineApp.getMaritalStatus() + "</td>" + "<td>"
+ onlineApp.getNumberOfChildren() + "</td>" + "<td>" + onlineApp.getEmployedFamilyMembers()
+ "</td>" + "<td>" + onlineApp.getTotalFamilyIncome() + "</td>" +
"<td>"+(onlineApp.isIncaso() ? "ინკასო":"არ ადევს")+"</td>" +
"<td>" + tf.millisecondsToDateStr(onlineApp.getAdditionTime()) + "</td>"
+ "<td onclick=\"triggerComments(" + onlineApp.getId() + "," + consCompId
+ ")\"><img height=\"20px\" width=\"20px\" src=\"" + request.getContextPath()
+ "/resources/images/comment.png\"></td>"
+ "<td bgcolor=\"lightgreen\" onclick=\"acceptApplication(" + onlineApp.getId() + ","
+ consCompId + ")\"><img height=\"20px\" width=\"20px\" src=\"" + request.getContextPath()
+ "/resources/images/accept.png\"></td>"
+ "<td bgcolor=\"LightCoral\" onclick=\"rejectApplication(" + onlineApp.getId() + ","
+ consCompId + ")\"><img height=\"20px\" width=\"20px\" src=\"" + request.getContextPath()
+ "/resources/images/reject.png\"></td>" + "</tr>"
+ "<tr><td colspan=\"3\">" + onlineApp.getLoanPurpose() + "</td><td colspan=\"5\" align=\"left\"> " + onlineApp.getBranchOfficeName() + "</td></tr>"
+ "</table>" + "<br>");
} else {
ret.append("<br>"
+ "<table style=\"width:100%; height: 180px; border: 1px solid black; text-align:center; border-collapse: collapse; spacing: 5px;\">"
+ "<tr style=\"background-color:Coral; height: 20px; font-weight: bold;\">" + "<td>ID</td>"
+ "<td>თანხა</td>" + "<td>პერიოდი</td>" + "<td>სახელი გვარი</td>" + "<td>დაბ.თარიღი</td>"
+ "<td>პირადი ნომ.</td>" + "<td>მობილური</td>" + "<td>სამუშაო სფერო</td>"
+ "<td>კომპანია</td>" + "<td>პოზიცია</td>" + "<td>ხელფასი</td>" + "<td>სტატუსი</td>"
+ "</tr>" + "<tr>" + "<td>" + onlineApp.getId() + "</td>" + "<td>"
+ Math.round(onlineApp.getLoanAmount() * 100.0) / 100.0 + "</td>" + "<td>"
+ onlineApp.getLoanPeriod() + "</td>" + "<td>" + onlineApp.getName() + "</td>" + "<td>"
+ onlineApp.getBirthDate() + "</td>" + "<td>" + onlineApp.getPrivateNumber() + "</td>"
+ "<td>" + onlineApp.getMobileNumber() + "</td>" + "<td>" + onlineApp.getWorkSphere()
+ "</td>" + "<td>" + onlineApp.getCompanyName() + "</td>" + "<td>"
+ onlineApp.getWorkPosition() + "</td>" + "<td>" + onlineApp.getSalary() + "</td>" + "<td>"
+ getNameForStatus(onlineApp.getStatus()) + "</td>" + "</tr>"
+ "<tr style=\"background-color:Coral; height: 20px; font-weight: bold;\">"
+ "<td>მუშ.ხან.</td>" + "<td>დამ.შემოსავალი</td>" + "<td>თვ.გადასახდელი</td>"
+ "<td>ოჯახ.მდგომ.</td>" + "<td>შვილები</td>" + "<td>დასაქ.ოჯახ.წევრები</td>"
+ "<td>საერთო შემოსავალი</td>" + "<td>თარიღი</td>" + "<td>ინკასო</td>"
+ "<td colspan=\"3\" align=\"center\">კომენტარები</td>" + "</tr>" + "<tr>" + "<td>"
+ onlineApp.getWorkPeriod() + "</td>" + "<td>" + onlineApp.getOtherIncome() + "</td>"
+ "<td>" + onlineApp.getAmountToPayOnOtherLoans() + "</td>" + "<td>"
+ onlineApp.getMaritalStatus() + "</td>" + "<td>" + onlineApp.getNumberOfChildren()
+ "</td>" + "<td>" + onlineApp.getEmployedFamilyMembers() + "</td>" + "<td>"
+ onlineApp.getTotalFamilyIncome() + "</td>" + "<td>"
+ "<td>"+(onlineApp.isIncaso() ? "ინკასო":"არ ადევს")+"</td>"
+ tf.millisecondsToDateStr(onlineApp.getAdditionTime()) + "</td>"
+ "<td colspan=\"3\" onclick=\"triggerComments(" + onlineApp.getId() + "," + consCompId
+ ")\"><img height=\"20px\" width=\"20px\" src=\"" + request.getContextPath()
+ "/resources/images/comment.png\"></td>"
+ ((onlineApp.getStatus() != 2)
? "<td colspan=\"4\" onclick=\"changeStatus(" + onlineApp.getId() + "," + consCompId
+ "," + 0 + ")\"><img height=\"20px\" width=\"20px\" src=\""
+ request.getContextPath()
+ "/resources/images/resume.png\" title=\"აპლიკაციაში დაბრუნება\"></td>"
: "")
+ "</tr>" + "<tr><td colspan=\"3\" align=\"left\"> " + onlineApp.getBranchOfficeName()
+ "</td></tr>" + "</table>" + "<br>");
}
}
return ret.toString();
} catch (Exception e) {
e.printStackTrace();
return "სესხის სტატუსის შეცვლისას დაფიქსირდა შეცდომა: " + e.toString();
}
}
Long timestamp = Instant.now().toEpochMilli(); // fallback
if (oTimestamp instanceof Integer)
timestamp = (Integer) oTimestamp *1L;
else
if (oTimestamp instanceof Long)
timestamp = (Long) oTimestamp * 1L;
# troche rak, ale jeszcze to jakos poprawie. JAKOS.
try:
if field.related.parent_model._meta.module_name == u"userprofile":
new = u"%s" % getattr(obj, field.name).get_full_name()
original = u"%s" % getattr(org_obj, field.name).get_full_name()
else:
raise Exception('to mialo tak zrobic jak cos')
except:
...
code written on the train, wtf I was thinking about?!
def copy( variable ):
return variable
Decade old code, used in 2 places to "copy" a float and a string. No one wants to touch the working code.
if (isset(self::$proposals[$view])) {
$best_proposals = [];
$all_sources = [];
foreach (self::$proposals[$view] as $proposal_source => $proposal) {
if (!isset($this->backend_branch) || substr($this->backend_branch, 0, 11) != "adjust-for:" || substr($this->backend_branch, 11) == $proposal_source) {
if ($proposal['orig_base'] == $curr_base || $relax_checking) {
$age = time() - $proposal['updated_at'];
if ($age < self::MAX_AGE) {
foreach ($proposal['proposals'] as $proposal_label => $proposal_price) {
if (!in_array($proposal_label, [self::SK_LABEL_AVIASALES, self::SK_LABEL_SKYSCANNER, self::SK_LABEL_YANDEX, self::SK_LABEL_MOMONDO])) {
$proposal_key = $proposal_label;
if (!isset($best_proposals[$proposal_key]) || $best_proposals[$proposal_key]['price'] > $proposal_price) {
$best_proposals[$proposal_key] = [
'price' => $proposal_price,
'name' => $proposal_price . "@" . implode("~", array_map(function ($part) {
return preg_replace('/[~|=#@ ]/', '_', $part);
}, [
'label' => $proposal_label,
'source' => $proposal_source,
])),
'age' => $age,
];
$all_sources[$proposal_source] = null;
}
}
}
}
}
}
}
// STEP 5: IF WE ARE TERRAN, THIS MATTERS, SO: LOL
void BuildingManager::checkForDeadTerranBuilders() {}
17 * * * * root [[ $(ping -c1 8.8.8.8 | tail -n2 | head -n1 | cut -d"," -f2 | cut -d" " -f2) != "1" ]] && { { /etc/init.d/networking restart && /etc/init.d/network-manager restart && curl "https://api.telegram.org/XXX:XXX/sendMessage?chat_id=XXX&text=\%22networking\%20and\%20network-manager\%20restarted\%22" ;} && { wget -O /dev/null -o /dev/null https://nyifiles.pfsense.org/mirror/downloads/pfSense-CE-2.3.5-RELEASE-2g-i386-nanobsd.img.gz && curl "https://api.telegram.org/XXX:XXX/sendMessage?chat_id=XXX&text=\%22wget\%20download\%20OK\%22" || curl "https://api.telegram.org/XXX:XXX/sendMessage?chat_id=XXX&text=\%22wget\%20download\%20KO\%22" ;} ;}
With me! Sing! It's gonna ping! If not it's gonna restart the net! If yes is gonna send you a text! And then is gonna download a file, just to check!
extern "C"
{
#include "gz.cpp"
#include "md4.cpp"
#include "socket.cpp"
#include "tdlini.cpp"
#include "tdlfs.cpp"
}
:(
void insert(const uint64& g)
{
// avoid loops for performance
if (guid[0] == 0) { guid[0] = g; return; }
else if (g <= guid[0]) { if (guid[3]) guid[4] = guid[3]; if (guid[2]) guid[3] = guid[2]; if (guid[1]) guid[2] = guid[1]; guid[1] = guid[0]; guid[0] = g; return; }
if (guid[1] == 0) { guid[1] = g; return; }
else if (g <= guid[1]) { if (guid[3]) guid[4] = guid[3]; if (guid[2]) guid[3] = guid[2]; guid[2] = guid[1]; guid[1] = g; return; }
if (guid[2] == 0) { guid[2] = g; return; }
else if (g <= guid[2]) { if (guid[3]) guid[4] = guid[3]; guid[3] = guid[2]; guid[2] = g; return; }
if (guid[3] == 0) { guid[3] = g; return; }
else if (g <= guid[3]) { guid[4] = guid[3]; guid[3] = g; return; }
guid[4] = g;
}
void force_insert_front(const uint64& g)
{
if (guid[3]) guid[4] = guid[3]; if (guid[2]) guid[3] = guid[2]; if (guid[1]) guid[2] = guid[1]; guid[1] = guid[0]; guid[0] = g;
}
void remove(const uint64& g)
{
// avoid loops for performance
if (guid[0] == g) { if (guid[1]) guid[0] = guid[1]; else { guid[0] = 0; return; } if (guid[2]) guid[1] = guid[2]; else { guid[1] = 0; return; } if (guid[3]) guid[2] = guid[3]; else { guid[2] = 0; return; } if (guid[4]) guid[3] = guid[4]; else { guid[3] = 0; return; } guid[4] = 0; return; }
if (guid[1] == g) { if (guid[2]) guid[1] = guid[2]; else { guid[1] = 0; return; } if (guid[3]) guid[2] = guid[3]; else { guid[2] = 0; return; } if (guid[4]) guid[3] = guid[4]; else { guid[3] = 0; return; } guid[4] = 0; return; }
if (guid[2] == g) { if (guid[3]) guid[2] = guid[3]; else { guid[2] = 0; return; } if (guid[4]) guid[3] = guid[4]; else { guid[3] = 0; return; } guid[4] = 0; return; }
if (guid[3] == g) { if (guid[4]) guid[3] = guid[4]; else { guid[3] = 0; return; } guid[4] = 0; return; }
if (guid[4] == g) guid[4] = 0;
}
bool hasGuid(const uint64& g) const
{
return g && (guid[0] == g || guid[1] == g || guid[2] == g || guid[3] == g || guid[4] == g);
}
bool operator<(const Lfg5Guids& x) const
{
// not neat, but fast xD
if (guid[0]<=x.guid[0]) {
if (guid[0] == x.guid[0]) {
if (guid[1]<=x.guid[1]) {
if (guid[1] == x.guid[1]) {
if (guid[2]<=x.guid[2]) {
if (guid[2] == x.guid[2]) {
if (guid[3]<=x.guid[3]) {
if (guid[3] == x.guid[3]) {
if (guid[4]<=x.guid[4]) {
if (guid[4] == x.guid[4]) return false; else return true;
} else return false;
} else return true;
} else return false;
} else return true;
} else return false;
} else return true;
} else return false;
} else return true;
} else return false;
}
bool operator==(const Lfg5Guids& x) const
{
return guid[0] == x.guid[0] && guid[1] == x.guid[1] && guid[2] == x.guid[2] && guid[3] == x.guid[3] && guid[4] == x.guid[4];
}
file = fopen(argv[1], "r");
if (file == NULL){}
exit(EXIT_FAILURE);
Those silly curly braces.
for x,x1 in enumerate(hack):
if hack[x] in letters:
exception +=1
ffs why
int length = 0;
for(int idx = 0; idx < a.length; i++) {
length++;
}
System.out.println("length is : " + length);
// Number 1:
onClipEvent(load){
risespeed = 8;
waittime = _root.framerate * 7.5;
count = _root.framerate * 1;
groundwaittime = _root.framerate * 1;
}
// Number 2:
gotoAndStop(Math.round(frame) * 1 / 1);
// Number 3:
_root.DoorTrasition = function(doorplace)
{
if(doorplace == "XY")
{
_root.Course.Char._x = _root.WarpPipeX + _root.Course.BackGFX._x;
_root.Course.Char._y = _root.WarpPipeY + _root.Course.BackGFX._y;
_root.Course.Char.attack = false;
_root.attachMovie("StarIn","Transition",_root.getNextHighestDepth(),{_x:_root.screensizeX / 2,_y:_root.screensizeY / 2});
}
else if(doorplace == "inCastle")
{
_root.StartInsideofCastle();
}
else if(doorplace == "outCastle")
{
_root.RemoveCourse();
_root.gotoAndStop("Courseframe");
_root.StartChar("Castle",0,50,0,50,150,_root.CurrentPlayer,_root.Fluddpow,"StarIn",true);
_root.onEnterFrame = function()
{
_root.CharCode();
};
}
else if(doorplace == "C-MR")
{
_root.changecourse("StarIn","C-4-SC1",-674,-60,-674,-60);
}
else if(doorplace == "C-MR-back")
{
_root.changecourse("StarIn","C-4",1260,0,1260,0);
}
else if(doorplace == "C-1-1")
{
_root.changecourse("StarIn","C-1",0,0,0,0);
}
else if(doorplace == "Castle-02")
{
_root.changecourse("StarIn","Castle",1400,390,1400,390,true);
}
else if(doorplace == "C-1-2")
{
_root.changecourse("StarIn","C-1",-550,-60,-550,-60);
}
else if(doorplace == "C-1-3")
{
_root.changecourse("StarIn","C-1",550,-60,550,-60);
}
else if(doorplace == "C-1-4")
{
_root.changecourse("StarIn","C-1",0,-195,0,-195);
}
else if(doorplace == "C-1-5")
{
_root.changecourse("StarIn","C-1",160,0,160,0);
}
else if(doorplace == "C-1-6")
{
_root.changecourse("StarIn","C-1",-160,0,-160,0);
}
else if(doorplace == "C-1-7")
{
_root.changecourse("StarIn","C-1",460,-200,460,-200);
}
else if(doorplace == "C-1-8")
{
_root.changecourse("StarIn","C-1",-460,-200,-460,-200);
}
else if(doorplace == "C-1-9")
{
_root.changecourse("StarIn","C-1",-390,-16,-390,-16);
}
else if(doorplace == "C-1-10")
{
_root.changecourse("StarIn","C-1",390,-16,390,-16);
}
else if(doorplace == "C-2-1")
{
_root.changecourse("StarIn","C-2",0,0,0,0);
}
else if(doorplace == "C-2-2")
{
_root.changecourse("StarIn","C-2-2",0,0,0,0);
}
else if(doorplace == "C-3-1")
{
_root.changecourse("StarIn","C-3",0,0,0,0);
}
else if(doorplace == "C-3-2")
{
_root.changecourse("StarIn","C-3-2",0,0,0,0);
}
else if(doorplace == "C-4-1")
{
_root.changecourse("StarIn","C-4",0,0,0,0);
}
else if(doorplace == "C-4-2")
{
_root.changecourse("StarIn","C-4",-846,-406,-846,-400);
}
else if(doorplace == "C-4-L")
{
if(_root.CurrentPlayer !== "Luigi")
{
_root.CurrentPlayer = "Luigi";
}
else
{
_root.CurrentPlayer = "Mario";
}
_root.changecourse("StarIn","C-4",1100,0,1100,0);
}
else if(doorplace == "C-4H-1")
{
_root.changecourse("StarIn","C-4H",0,0,0,0);
}
else if(doorplace == "C-4H-2")
{
_root.changecourse("StarIn","C-4H",0,0,382,-85);
}
else if(doorplace == "C-4H-sd")
{
_root.changecourse("StarIn","C-4H",400,-365,400,-365);
}
else if(doorplace == "C-4H-3")
{
_root.changecourse("StarIn","C-4H",0,-300,20,-575);
}
else if(doorplace == "C-5-1")
{
_root.changecourse("StarIn","C-5",0,0,0,0);
}
else if(doorplace == "C-6-1")
{
_root.changecourse("StarIn","C-6",250,0,250,0);
}
else if(doorplace == "C-6-2")
{
_root.changecourse("StarIn","C-6",-250,0,-250,0);
}
else if(doorplace == "C-6-3")
{
_root.changecourse("StarIn","C-6",0,-95,0,-95,true);
}
else if(doorplace == "C-6-4")
{
_root.changecourse("StarIn","C-6",0,80,0,80);
}
else if(doorplace == "C-7-1")
{
_root.changecourse("StarIn","C-7",0,0,0,0);
}
else if(doorplace == "C-7-2")
{
_root.changecourse("StarIn","C-7",-820,12,-820,12);
}
else if(doorplace == "C-7-3")
{
_root.changecourse("StarIn","C-7",610,40,610,40);
}
else if(doorplace == "C-8-1")
{
_root.changecourse("StarIn","C-8",0,0,0,0);
}
else if(doorplace == "C-8-2")
{
_root.changecourse("StarIn","C-8",784,-16,784,-16);
}
else if(doorplace == "C-8-3")
{
_root.changecourse("StarIn","C-8",1201,45,1201,45,true);
}
else if(doorplace == "C-9-1")
{
_root.changecourse("StarIn","C-9",0,0,0,0);
}
else if(doorplace == "C-9-2")
{
_root.changecourse("StarIn","C-9",300,-185,300,-185);
}
else if(doorplace == "C-10-1")
{
_root.changecourse("StarIn","C-10",0,0,0,0);
}
else if(doorplace == "C-10-2")
{
_root.changecourse("StarIn","C-10",-223,0,-223,0);
}
else if(doorplace == "C-10-3")
{
_root.changecourse("StarIn","C-10",720,-185,720,-185);
}
else if(doorplace == "C-10-sd")
{
_root.changecourse("StarIn","C-10",-235,-575,-235,-575);
}
else if(doorplace == "C-10-D3")
{
_root.changecourse("StarIn","C-10",-170,-512,-170,-512,true);
}
else if(doorplace == "C-10-D2")
{
_root.changecourse("StarIn","C-10",-235,-512,-235,0);
}
else if(doorplace == "C-10-D1")
{
_root.changecourse("StarIn","C-10",-297,-512,-297,0);
}
else if(doorplace == "C-11-1")
{
_root.changecourse("StarIn","C-11",0,0,0,0);
}
else if(doorplace == "C-12-1")
{
_root.changecourse("StarIn","C-12",0,0,0,0);
}
else if(doorplace == "C-12-2")
{
_root.changecourse("StarIn","C-12",80,-250,80,-250);
}
else if(doorplace == "C-13-1")
{
_root.changecourse("StarIn","C-13",0,0,0,0);
}
else if(doorplace == "C-O-1")
{
_root.changecourse("StarIn","C-O",0,0,0,0,true);
}
else if(doorplace == "C-O-2")
{
_root.changecourse("StarIn","C-O",300,0,-950,-363,true);
}
else if(doorplace == "C-Opening")
{
if(_root.Star[39] == true)
{
_root.changecourse("righttransition2","Castle",-1300,100,-1300,100);
}
else
{
_root.bgsong.stop();
_root.gotoAndStop("Intro2");
_root.RemoveCourse();
}
}
else if(doorplace == "4-1-1")
{
_root.changecourse("StarIn","4-1",610,150,610,150);
}
else if(doorplace == "4-1-2")
{
_root.changecourse("StarIn","4-1",-315,200,-315,200);
}
else if(doorplace == "4-1-3")
{
_root.changecourse("StarIn","4-1",610,-810,610,-810);
}
else if(doorplace == "4-1-4")
{
_root.changecourse("StarIn","4-1",245,-1010,245,-1010);
}
else if(doorplace == "4-1-5")
{
_root.changecourse("StarIn","4-1",610,-1305,610,-1305);
}
else if(doorplace == "4-2-1")
{
_root.changecourse("StarIn","4-2",0,0,0,0);
}
else if(doorplace == "4-2-2")
{
_root.changecourse("StarIn","4-2",-400,0,-400,0);
}
else if(doorplace == "4-2-3")
{
_root.changecourse("StarIn","4-2",-250,0,-250,0);
}
else if(doorplace == "4-2-4")
{
_root.changecourse("StarIn","4-2",250,0,250,0);
}
else if(doorplace == "4-2-5")
{
_root.changecourse("StarIn","4-2",400,0,400,0);
}
else if(doorplace == "4-2-6")
{
_root.changecourse("StarIn","4-2",-400,-375,-400,-375);
}
else if(doorplace == "4-2-7")
{
_root.changecourse("StarIn","4-2",-250,-375,-250,-375);
}
else if(doorplace == "4-2-8")
{
_root.changecourse("StarIn","4-2",250,-375,250,-375);
}
else if(doorplace == "4-2-9")
{
_root.changecourse("StarIn","4-2",400,-375,400,-375);
}
else if(doorplace == "4-2-10")
{
_root.changecourse("StarIn","4-2",0,-610,0,-610);
}
else if(doorplace == "4-3-1")
{
_root.changecourse("StarIn","4-3",0,20,0,20);
}
else if(doorplace == "4-3-2")
{
_root.changecourse("StarIn","4-3",1300,20,1300,20);
}
else if(doorplace == "4-3-3")
{
_root.changecourse("StarIn","4-3",0,-780,0,-780);
}
else if(doorplace == "4-3-4")
{
_root.changecourse("StarIn","4-3",100,-1776,100,-1776);
}
else if(doorplace == "4-4-1")
{
_root.changecourse("StarIn","4-4",0,20,0,20);
}
else if(doorplace == "4-4-2")
{
_root.changecourse("StarIn","4-4",-1300,20,-1300,20);
}
else if(doorplace == "4-4-3")
{
_root.changecourse("StarIn","4-4",0,-780,0,-780);
}
else if(doorplace == "4-4-4")
{
_root.changecourse("StarIn","4-4",200,-1776,200,-1776);
}
else if(doorplace == "4-5-1")
{
_root.changecourse("StarIn","4-5",-1300,20,-1300,20);
}
else if(doorplace == "4-5-2")
{
_root.changecourse("StarIn","4-5",1300,20,1300,20);
}
else if(doorplace == "4-6-1")
{
_root.changecourse("StarIn","4-6",0,0,0,0);
}
else if(doorplace == "4-6-2")
{
_root.changecourse("StarIn","4-6",0,-480,0,-480);
}
else if(doorplace == "4-7-1")
{
_root.changecourse("StarIn","4-7",0,0,0,0);
}
else if(doorplace == "4-7-2")
{
_root.changecourse("StarIn","4-7",-150,-400,-150,-400);
}
else if(doorplace == "4-8-1")
{
_root.changecourse("StarIn","4-8",-1350,100,-1350,100);
}
else if(doorplace == "4-8-2")
{
_root.changecourse("StarIn","4-8",-800,100,-800,100);
}
else if(doorplace == "4-8-3")
{
_root.changecourse("StarIn","4-8",0,0,0,0);
}
else if(doorplace == "4-8-4")
{
_root.changecourse("StarIn","4-8",1200,100,1200,100);
}
else if(doorplace == "4-8-5")
{
_root.changecourse("StarIn","4-8",800,100,800,100);
}
else if(doorplace == "4-9-1")
{
_root.changecourse("StarIn","4-9",0,0,0,0);
}
else if(doorplace == "4-9-2")
{
_root.changecourse("StarIn","4-9",-1450,0,-1450,0);
}
else if(doorplace == "4-9-3")
{
_root.changecourse("StarIn","4-9",0,-1055,0,-1055);
}
else if(doorplace == "4-10-1")
{
_root.changecourse("StarIn","4-10",-3090,-630,-3090,-630);
}
else if(doorplace == "4-11-1")
{
_root.changecourse("StarIn","4-11",0,0,0,0,true);
}
else if(doorplace == "5-1-1")
{
_root.changecourse("StarIn","5-1",620,150,620,150);
}
else if(doorplace == "5-1-2")
{
_root.changecourse("StarIn","5-1",2980,-50,2980,-50);
}
else if(doorplace == "5-5")
{
_root.changecourse("StarIn","5-5",0,0,0,0);
}
else if(doorplace == "5-7-1")
{
_root.changecourse("StarIn","5-7",0,0,0,0);
}
else if(doorplace == "5-8-1")
{
_root.changecourse("StarIn","5-8",0,0,0,0);
}
else if(doorplace == "6-5")
{
_root.changecourse("StarIn","6-5",500,500,-600,666,true);
}
else if(doorplace == "7-6")
{
_root.changecourse("StarIn","7-6",0,0,0,0,true);
}
else if(doorplace == "8-1-2")
{
_root.changecourse("StarIn","8-1",4128,-10,4128,-10);
}
else if(doorplace == "8-2-1")
{
_root.changecourse("StarIn","8-2",0,0,0,0);
}
else if(doorplace == "8-2-bleft")
{
_root.changecourse("StarIn","8-2",-812,-114,-812,-114);
}
else if(doorplace == "8-2-bright")
{
_root.changecourse("StarIn","8-2",760,-114,760,-114);
}
else if(doorplace == "8-2-uleft")
{
_root.changecourse("StarIn","8-2",-1350,-420,-1350,-420,true);
}
else if(doorplace == "8-2-uright")
{
_root.changecourse("StarIn","8-2",830,-420,830,-420);
}
else if(doorplace == "8-2-top")
{
_root.changecourse("StarIn","8-2",0,-1090,0,-1090);
}
else if(doorplace == "8-3")
{
_root.changecourse("StarIn","8-3",0,95,0,95);
}
else if(doorplace == "8-4")
{
_root.changecourse("StarIn","8-4",0,95,0,95);
}
else if(doorplace == "8-5")
{
_root.changecourse("StarIn","8-5",0,0,0,0,true);
}
else if(doorplace == "8-6")
{
_root.changecourse("StarIn","8-6",0,0,0,0);
}
else if(doorplace == "8-7")
{
_root.changecourse("StarIn","8-7",0,0,0,0);
}
else if(doorplace == "8-7bleft")
{
_root.changecourse("StarIn","8-7",-468,20,-468,20);
}
else if(doorplace == "8-7bright")
{
_root.changecourse("StarIn","8-7",468,20,468,20);
}
else if(doorplace == "8-7uleft")
{
_root.changecourse("StarIn","8-7",-556,-577,-556,-577);
}
else if(doorplace == "8-7uright")
{
_root.changecourse("StarIn","8-7",556,-577,556,-577);
}
else if(doorplace == "8-7utop")
{
_root.changecourse("StarIn","8-7",0,-582,0,-582);
}
else if(doorplace == "8-8")
{
_root.changecourse("StarIn","8-8",0,0,0,0);
}
else if(doorplace == "8-8u")
{
_root.changecourse("StarIn","8-8",-656,-2620,-656,-2620);
}
else if(doorplace == "8-9")
{
_root.changecourse("StarIn","8-9",0,0,0,0);
}
else if(doorplace == "8-9u")
{
_root.changecourse("StarIn","8-9",0,0,0,0);
}
else if(doorplace == "8-10")
{
_root.changecourse("StarIn","8-10",-290,0,-290,0);
}
else if(doorplace == "8-10-b")
{
_root.changecourse("StarIn","8-10-b",-547,-1470,-547,-1470,true);
}
else if(doorplace == "8-10u")
{
_root.changecourse("StarIn","8-10-b",-575,-1470,-575,-1470,true);
}
else if(doorplace == "8-11")
{
_root.changecourse("StarIn","8-11",-170,30,-170,30,true);
}
else if(doorplace == "8-11u")
{
_root.changecourse("StarIn","8-11",0,-820,0,-820,true);
}
else if(doorplace == "8-12")
{
_root.changecourse("StarIn","8-12",0,0,0,0);
}
else if(doorplace == "8-12-Warp")
{
_root.Fluddpow = "";
_root.StopBGsong();
_root.lvl8keyA = false;
_root.lvl8keyB = false;
_root.lvl8keyC = false;
_root.lvl8keyD = false;
_root.lvl8keyE = true;
_root.Playinglevel = 8;
_root.SongIntro = "BowserTrapIntro";
_root.SongRepeat = "BowserTrapRepeat";
_root.PlayMusicAndIntro();
_root.changecourse("StarIn","8-12",-192,-52,-192,-52);
}
else if(doorplace == "C-13-Warp")
{
_root.Fluddpow = "";
_root.StopBGsong();
_root.lvl8keyA = false;
_root.lvl8keyB = false;
_root.lvl8keyC = false;
_root.lvl8keyD = false;
_root.lvl8keyE = true;
_root.Playinglevel = 0;
_root.SongIntro = "None";
_root.SongRepeat = "InsidetheCastleWalls";
_root.StartNewMusicAndIntroNoVar("BowserPlan-Intro","BowserPlan-Repeat");
_root.changecourse("StarIn","C-13",1066,-215,1066,-215);
}
else if(doorplace == "8-E2-2")
{
_root.Fluddpow = "";
_root.changecourse("StarIn","8-E2-2",0,-200,0,-200,true);
}
else if(doorplace == "8-13")
{
_root.changecourse("StarIn","8-13",0,0,0,0,true);
}
else if(doorplace == "8-E3-1")
{
_root.changecourse("StarIn","8-E3-1",0,0,0,0,true);
}
else if(doorplace == "8-E5-1")
{
_root.Fluddpow = "";
_root.changecourse("StarIn","8-E5-1",-1693,-60,-1693,-60,true);
}
else if(doorplace == "8-E5-1-1")
{
_root.Fluddpow = "";
_root.changecourse("StarIn","8-E5-1",-212,-25,-212,-25,true);
}
else if(doorplace == "9-02")
{
_root.Restartcoins();
_root.Fluddpow = "";
_root.changecourse("StarIn","9-02",0,0,0,0,true);
}
else if(doorplace == "9-04")
{
_root.Restartcoins();
_root.Fluddpow = "";
_root.changecourse("StarIn","9-04",0,0,0,0,true);
}
else if(doorplace == "9-06")
{
_root.Restartcoins();
_root.Fluddpow = "";
_root.changecourse("StarIn","9-06",0,0,0,0,true);
}
else if(doorplace == "M1-2")
{
_root.changecourse("StarIn","M1-2",-1465,-320,-1465,-320,true);
}
else if(doorplace == "M2-1-1")
{
_root.changecourse("StarIn","M2-1",795,125,795,125);
}
else if(doorplace == "M2-2-1")
{
_root.changecourse("StarIn","M2-2",0,0,0,0);
}
else if(doorplace == "BC-0")
{
_root.gotoAndStop("BowserBattle3");
_root.RemoveCourse();
}
else if(doorplace == "BC-1")
{
_root.changecourse("StarIn","BC-1",0,0,0,0);
}
else if(doorplace == "C-4-SC1")
{
_root.changecourse("StarIn","C-4-SC1",0,0,0,0);
}
else if(doorplace == "C-4-SC2")
{
_root.changecourse("StarIn","C-4-SC1",0,-260,0,-260);
}
else if(doorplace == "C-4-SC1-back")
{
_root.changecourse("StarIn","C-4",1164,0,1164,0);
}
else if(doorplace == "C-4-SC1-back2")
{
_root.changecourse("StarIn","C-4",1036,0,1036,0);
}
else if(doorplace == "level1")
{
_root.changecourse("StarIn","level1",0,0,0,0);
}
else
{
_root.changecourse("StarIn","C-1",0,0,0,0);
}
};
This is taken from a Flash game, where speed and efficiency is fairly important. 1: used in 1 place 2: used in quite a lot of places 3: the door mapping must have changed during development...
$d = explode(".",$request->get("due_date",".."));
foreach ($d as $key => $val) $d[$key]=(int)$val;
if (
!is_numeric($d[0]) || $d[0]<1 ||$d[0]>31 ||
!is_numeric($d[1]) || $d[1]<1 ||$d[1]>12 ||
!is_numeric($d[2]) || $d[2]<2005 ||$d[2]>2100 ) {
$error["due_date"] = "Missing date.";
}
I think this was the last piece of code the developer wrote .... :D