Page 1 of 1

tep functions defined

Posted: Mon Sep 12, 2022 4:05 pm
by Yahalimu
Hello,
Can anyone give me a link to where the tep functions are defined?
OsC seem to have deleted a LOT of old data and contributions, can't find it..
Iain

Re: tep functions defined

Posted: Mon Sep 12, 2022 4:24 pm
by ecartz
I'm not sure that I understand your question. The tep_ functions are in includes/functions and admin/includes/functions -- that's where I would say that they are "defined". They are mostly included/required from application_top.php, which in the current version means that they are system hooks in the database: https://github.com/CE-PhoenixCart/Phoen ... 114..L1142

Look for the entries with function_surface as the hooks_class. E.g. line 1117 is the first one and 1138, the last.

If you are looking for 2.3.4: https://github.com/osCommerce/oscommerc ... /functions

Or Frozen: https://github.com/CE-PhoenixCart/Phoen ... /functions

If you are looking for old add-ons/contributions/whatever, try https://old.oscommerce.com/

If none of those answer the question, please explain more about what you want to know.

Re: tep functions defined

Posted: Thu Sep 15, 2022 7:37 pm
by Yahalimu
Thanks ecartz.
On looking at the definitions in includes/functions I realised it was more of an mysql question.
ie. a SELECT query returns an object that needs converting, even to obtain a single value. I had assumed it returned a normal array, now I know better.
Judicial use of $SQL_RESULT->fetch_row()[0] has fixed it.
All good now thanks.
Iain